nixpkgs/pkgs/by-name/ar/arp-scan/remove-install-exec-hook.patch
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

25 lines
1.0 KiB
Diff

diff --git a/Makefile.am b/Makefile.am
index c02e1cc..0dd6321 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -29,19 +29,3 @@ arp-scan.1: arp-scan.1.dist Makefile
$(do_subst) < $(srcdir)/arp-scan.1.dist > arp-scan.1
get-oui.1: get-oui.1.dist Makefile
$(do_subst) < $(srcdir)/get-oui.1.dist > get-oui.1
-# Install arp-scan with cap_net_raw if possible, otherwise SUID root
-install-exec-hook:
- @if command -v setcap > /dev/null; then \
- if setcap cap_net_raw+p $(DESTDIR)$(bindir)/arp-scan$(EXEEXT); then \
- echo "setcap cap_net_raw+p $(DESTDIR)$(bindir)/arp-scan$(EXEEXT)"; \
- chmod u-s $(DESTDIR)$(bindir)/arp-scan$(EXEEXT); \
- else \
- echo "Setcap failed on $(DESTDIR)$(bindir)/arp-scan$(EXEEXT), falling back to setuid" >&2; \
- echo "chmod u+s $(DESTDIR)$(bindir)/arp-scan$(EXEEXT)"; \
- chmod u+s $(DESTDIR)$(bindir)/arp-scan$(EXEEXT); \
- fi \
- else \
- echo "Setcap is not installed, falling back to setuid" >&2 ; \
- echo "chmod u+s $(DESTDIR)$(bindir)/arp-scan$(EXEEXT)" ;\
- chmod u+s $(DESTDIR)$(bindir)/arp-scan$(EXEEXT) ;\
- fi