blob: 963b1de91a1d8a875f179be62c73be03942c4060 (
plain)
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
|
# $NetBSD: Makefile,v 1.2 2022/10/31 09:30:43 wiz Exp $
USE_FORT?= yes # network server
.include <bsd.init.mk>
BINDIR= /usr/sbin
.PATH: ${SRCDIR}/rpcapd
PROG= rpcapd
SRCS+= daemon.c fileconf.c log.c rpcapd.c
MANADMININ+= rpcapd.manadmin.in
MANFILEIN+= rpcapd-config.manfile.in
MAN= ${MANADMININ:S/manadmin.in/8/g} ${MANFILEIN:S/manfile.in/5/g}
CLEANFILES+= ${MAN}
.for i in ${MANADMININ}
${i:S/manadmin.in/8/}: ${i} __sed
.endfor
.for i in ${MANFILEIN}
${i:S/manfile.in/5/}: ${i} __sed
.endfor
FILES= rpcapd.socket rpcapd.inetd.conf rpcapd@.service
FILESDIR= /usr/share/examples/rpcapd
CPPFLAGS+= -pthread
LDFLAGS+= -pthread
CPPFLAGS+= -I${SRCDIR} -I${.CURDIR}/../../include
CPPFLAGS+= -DHAVE_CONFIG_H
CPPFLAGS+= -DPCAP_DONT_INCLUDE_PCAP_BPF_H
PROGDPLIBS+= pcap ${.CURDIR}/../../lib \
crypt ${NETBSDSRCDIR}/lib/libcrypt
.include <bsd.prog.mk>
|