3af863882f
While here, remove unneeded USERS and GROUPS lines. PR: 229490 Submitted by: Nikola Kolev <koue@chaosophia.net> (maintainer)
47 lines
885 B
Makefile
47 lines
885 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= dhcpd
|
|
PORTVERSION= 6.0.20170207
|
|
PORTREVISION= 2
|
|
CATEGORIES= net
|
|
|
|
MAINTAINER= koue@chaosophia.net
|
|
COMMENT= OpenBSD dhcp daemon
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
WRKSRC_SUBDIR= src/usr.sbin/${PORTNAME}
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= koue
|
|
|
|
CONFLICTS= isc-dhcp4[1-3]-server*
|
|
|
|
USES= ssl uidfix
|
|
USE_RC_SUBR= dhcpd
|
|
|
|
CFLAGS+= -Wall
|
|
|
|
MAKE_ARGS+= BINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/man/man
|
|
|
|
OPTIONS_DEFINE= NOPF
|
|
|
|
NOPF_DESC= Disable PF support
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
NOPF_CFLAGS= -DNO_PF=1
|
|
NOPF_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-dhcp.c \
|
|
${PATCHDIR}/extra-patch-dhcpd.c \
|
|
${PATCHDIR}/extra-patch-memory.c \
|
|
${PATCHDIR}/extra-patch-pfutils.c
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|/etc/dhcpd.conf|${PREFIX}/etc/dhcpd.conf|" \
|
|
${WRKSRC}/dhcpd.[h8]
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/dhcpd.conf \
|
|
${STAGEDIR}${PREFIX}/etc/dhcpd.conf.sample
|
|
|
|
.include <bsd.port.mk>
|