aboutsummaryrefslogtreecommitdiff
path: root/net/dhcpd/Makefile
blob: 1014bf1ecd7f5d5a8610709e1ff3f62801db9b0a (plain) (blame)
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
PORTNAME=	dhcpd
PORTVERSION=	6.6.20200413
CATEGORIES=	net

MAINTAINER=	koue@chaosophia.net
COMMENT=	OpenBSD dhcp daemon

LICENSE=	BSD3CLAUSE

USES=		ssl uidfix

WRKSRC_SUBDIR=	src/usr.sbin/${PORTNAME}

USE_GITHUB=	yes
GH_ACCOUNT=	koue

CONFLICTS=	isc-dhcp4[1-3]-server*

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

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>