File: Makefile.am

package info (click to toggle)
arp-scan 1.10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,128 kB
  • sloc: ansic: 3,256; sh: 1,767; perl: 523; makefile: 42
file content (47 lines) | stat: -rw-r--r-- 2,387 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Process this file with automake to produce Makefile.in
#
pkgsysconfdir = $(sysconfdir)/$(PACKAGE)
AM_CPPFLAGS = -DPKGDATADIR=\"$(pkgdatadir)\" -DPKGSYSCONFDIR=\"$(sysconfdir)/$(PACKAGE)\"
#
bin_PROGRAMS = arp-scan
#
dist_bin_SCRIPTS = get-oui get-iab arp-fingerprint
#
dist_check_SCRIPTS = check-run1 check-packet check-decode check-host-list check-ieee-reg check-error check-options check-prng
check_PROGRAMS = mt19937ar-test
mt19937ar_test_SOURCES = mt19937ar-test.c mt19937ar.c mt19937ar.h
#
dist_man_MANS = arp-scan.1 get-oui.1 arp-fingerprint.1 mac-vendor.5
#
arp_scan_SOURCES = arp-scan.c arp-scan.h error.c wrappers.c utils.c mt19937ar.c format.c mt19937ar.h
arp_scan_LDADD = $(LIBOBJS)
#
dist_pkgsysconf_DATA = mac-vendor.txt
dist_pkgdata_DATA = ieee-oui.txt
#
TESTS = $(dist_check_SCRIPTS)
EXTRA_DIST = arp-scan.1.dist get-oui.1.dist pkt-simple-request.dat pkt-custom-request.dat pkt-custom-request-padding.dat pkt-custom-request-llc.dat pkt-custom-request-vlan.dat pkt-simple-response.pcap pkt-padding-response.pcap pkt-vlan-response.pcap pkt-llc-response.pcap pkt-net1921681-response.pcap pkt-trailer-response.pcap pkt-vlan-llc-response.pcap pkt-custom-request-vlan-llc.dat pkt-dup-response.pcap pkt-diff-frame-addr.pcap pkt-local-admin.pcap pkt-ieee-regcheck.pcap
#
# Substitute autoconf pkgdatadir variable in arp-scan.1 manpage
CLEANFILES = arp-scan.1 get-oui.1
do_subst = $(SED) -e 's,[@]PKGDATADIR[@],$(pkgdatadir),g;s,[@]PKGSYSCONFDIR[@],$(pkgsysconfdir),g'
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