head	1.4;
access;
symbols
	netbsd-11-0-RC4:1.4
	netbsd-11-0-RC3:1.4
	netbsd-11-0-RC2:1.4
	netbsd-11-0-RC1:1.4
	perseant-exfatfs-base-20250801:1.4
	netbsd-11:1.4.0.4
	netbsd-11-base:1.4
	netbsd-10-1-RELEASE:1.2
	perseant-exfatfs-base-20240630:1.4
	perseant-exfatfs:1.4.0.2
	perseant-exfatfs-base:1.4
	netbsd-10-0-RELEASE:1.2
	netbsd-10-0-RC6:1.2
	netbsd-10-0-RC5:1.2
	netbsd-10-0-RC4:1.2
	netbsd-10-0-RC3:1.2
	netbsd-10-0-RC2:1.2
	netbsd-10-0-RC1:1.2
	netbsd-10:1.2.0.2
	netbsd-10-base:1.2
	cjep_sun2x-base1:1.1
	cjep_sun2x:1.1.0.6
	cjep_sun2x-base:1.1
	cjep_staticlib_x-base1:1.1
	cjep_staticlib_x:1.1.0.4
	cjep_staticlib_x-base:1.1
	phil-wifi-20200421:1.1
	phil-wifi:1.1.0.2
	phil-wifi-20200411:1.1
	phil-wifi-20200406:1.1;
locks; strict;
comment	@# @;


1.4
date	2023.08.17.15.30.36;	author christos;	state Exp;
branches;
next	1.3;
commitid	g6t4Cddkyy4dA9BE;

1.3
date	2023.08.17.15.18.13;	author christos;	state Exp;
branches;
next	1.2;
commitid	BYS4e4TOJZ9Ov9BE;

1.2
date	2022.10.31.09.30.43;	author wiz;	state Exp;
branches;
next	1.1;
commitid	vU6bCLcKCZjJUQZD;

1.1
date	2020.03.29.17.12.45;	author christos;	state Exp;
branches
	1.1.2.1;
next	;
commitid	soCyG1nK5nKbSj2C;

1.1.2.1
date	2020.03.29.17.12.45;	author martin;	state dead;
branches;
next	1.1.2.2;
commitid	X01YhRUPVUDaec4C;

1.1.2.2
date	2020.04.13.07.46.12;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;


desc
@@


1.4
log
@Don't build with OpenSSL by default because we install in /lib and there
is no libcrypto there.
@
text
@# $NetBSD: Makefile,v 1.3 2023/08/17 15:18:13 christos 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

.if ${USE_OPENSSL:Uno} == "yes"
CPPFLAGS+=	-DHAVE_OPENSSL
PROGDPLIBS+=	ssl ${OPENSSLDIR}/lib/libssl \
		crypto ${OPENSSLDIR}/lib/libcrypto 
.endif

.include <bsd.prog.mk>
@


1.3
log
@merge conflicts between libpcap 1.9.1 and 1.10.4
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2022/10/31 09:30:43 wiz Exp $
a36 2
		ssl ${OPENSSLDIR}/lib/libssl \
		crypto ${OPENSSLDIR}/lib/libcrypto \
d39 6
@


1.2
log
@remove (AFAIKT) unused _OPENBSD_SOURCE
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2020/03/29 17:12:45 christos Exp $
d37 2
@


1.1
log
@ENABLE_REMOTE and add rpcapd(8)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.50 2020/01/29 23:42:57 christos Exp $
d33 1
a33 1
CPPFLAGS+=	-DHAVE_CONFIG_H -D_OPENBSD_SOURCE
@


1.1.2.1
log
@file Makefile was added on branch phil-wifi on 2020-04-13 07:46:12 +0000
@
text
@d1 39
@


1.1.2.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@a0 39
# $NetBSD: Makefile,v 1.1 2020/03/29 17:12:45 christos 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 -D_OPENBSD_SOURCE
CPPFLAGS+=	-DPCAP_DONT_INCLUDE_PCAP_BPF_H

PROGDPLIBS+=	pcap ${.CURDIR}/../../lib \
		crypt ${NETBSDSRCDIR}/lib/libcrypt

.include <bsd.prog.mk>
@


