Removed -P pidpath argument. -p pidfile sufficient
[prads.git] / Makefile
blob9d8832df54ec6f8ede23b72e34f54aca34ea5415
1 PREFIX=/usr/local
2 BINDIR=${PREFIX}/bin
3 CONFDIR=${PREFIX}/etc/prads
4 MANDIR=${PREFIX}/share/man/man1
6 build:
7 @echo "You need libpcre-dev and libpcap-dev to compile this program."
8 ${MAKE} CONFDIR=${CONFDIR} -C src/
10 clean:
11 ${MAKE} -C src/ $@
12 rm -f doc/prads.1 doc/prads.1.gz
13 rm -f doc/prads-wirefuzz.1 doc/prads-wirefuzz.1.gz
14 rm -f doc/prads-asset-report.1 doc/prads-asset-report.1.gz
15 rm -f doc/prads2snort.1 doc/prads2snort.1.gz
17 .PHONY: man
18 man: doc/prads.1.gz doc/prads-asset-report.1.gz doc/prads-wirefuzz.1.gz doc/prads2snort.1.gz
20 doc/%.1.gz: doc/%.1
21 @>$@<$< gzip -9
23 doc/%.1: doc/%.man
24 rst2man $< >$@
26 install: man
27 # binaries
28 install -d ${DESTDIR}${BINDIR}
29 install -m 755 -o root -g root src/prads ${DESTDIR}${BINDIR}/prads
30 install -m 755 -o root -g root tools/prads-asset-report ${DESTDIR}${BINDIR}/prads-asset-report
31 install -m 755 -o root -g root tools/prads2snort ${DESTDIR}${BINDIR}/prads2snort
32 # config
33 install -d ${DESTDIR}${CONFDIR}
34 install -m 644 -o root -g root etc/prads.conf ${DESTDIR}${CONFDIR}/
35 # fingerprints
36 #install -m 644 -o root -g root etc/osi.fp ${DESTDIR}${CONFDIR}/
37 #install -m 644 -o root -g root etc/oso.fp ${DESTDIR}${CONFDIR}/
38 #install -m 644 -o root -g root etc/osu.fp ${DESTDIR}${CONFDIR}/
39 install -m 644 -o root -g root etc/tcp-syn.fp ${DESTDIR}${CONFDIR}/
40 install -m 644 -o root -g root etc/tcp-synack.fp ${DESTDIR}${CONFDIR}/
41 install -m 644 -o root -g root etc/tcp-fin.fp ${DESTDIR}${CONFDIR}/
42 install -m 644 -o root -g root etc/tcp-rst.fp ${DESTDIR}${CONFDIR}/
43 install -m 644 -o root -g root etc/tcp-stray-ack.fp ${DESTDIR}${CONFDIR}/
44 # signatures
45 install -m 644 -o root -g root etc/eth.sig ${DESTDIR}${CONFDIR}/
46 install -m 644 -o root -g root etc/icmp-data.sig ${DESTDIR}${CONFDIR}/
47 install -m 644 -o root -g root etc/mac.sig ${DESTDIR}${CONFDIR}/
48 install -m 644 -o root -g root etc/mtu.sig ${DESTDIR}${CONFDIR}/
49 install -m 644 -o root -g root etc/os.sig ${DESTDIR}${CONFDIR}/
50 install -m 644 -o root -g root etc/tcp-clients.sig ${DESTDIR}${CONFDIR}/
51 install -m 644 -o root -g root etc/tcp-service.sig ${DESTDIR}${CONFDIR}/
52 install -m 644 -o root -g root etc/udp-service.sig ${DESTDIR}${CONFDIR}/
53 install -m 644 -o root -g root etc/service-string.sig ${DESTDIR}${CONFDIR}/
54 install -m 644 -o root -g root etc/web-application.sig ${DESTDIR}${CONFDIR}/
55 # ports
56 install -d ${DESTDIR}${CONFDIR}
57 install -m 644 -o root -g root etc/udp.ports ${DESTDIR}${CONFDIR}/
58 install -d ${DESTDIR}${CONFDIR}/init.d
59 install -m 755 -o root -g root doc/prads.rc ${DESTDIR}${CONFDIR}/init.d/
60 # man pages
61 install -d ${DESTDIR}${MANDIR}
62 install -m 644 -o root -g root doc/prads.1.gz ${DESTDIR}${MANDIR}/
63 install -m 644 -o root -g root doc/prads-asset-report.1.gz ${DESTDIR}${MANDIR}/
64 install -m 644 -o root -g root doc/prads2snort.1.gz ${DESTDIR}${MANDIR}/
67 .PHONY: build clean install