to the auhors patches (CC'ed), if you have no objection, I dissociated the paranoia patch from the jail one. you can now choose between both -DPARANOIA -DJAIL, -DPARANOIA only or -DJAIL only. Makefile PORTREVISION bumped WITHOUT_DHCP_PARANOIA and WITHOUT_DHCP_JAIL added. pkg-message updated to inform about the new options. files/patch-server::dhcpd.c new file Fix: take care, this patch is in two parts, the first one againt /dev/null and the second one a cvs diff. How-To-Repeat: n/a
please, use the following Makefile instead of the provided one : pre-everything -> OPTIONS thanks in advance. Index: Makefile =================================================================== RCS file: /home/ncvs/ports/net/isc-dhcp3-server/Makefile,v retrieving revision 1.94 diff -u -I$Id.*$ -I$.+BSD.*$ -r1.94 Makefile --- Makefile 22 Mar 2004 23:33:08 -0000 1.94 +++ Makefile 31 May 2004 00:37:55 -0000 @@ -8,7 +8,7 @@ PORTNAME= dhcp PORTVERSION= 3.0.1.r12 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_ISC} MASTER_SITE_SUBDIR= dhcp dhcp/dhcp-3.0-history @@ -117,15 +117,12 @@ RCSCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} PKGMESSAGE_SUB= PREFIX=${PREFIX} MAN1PREFIX=${MAN1PREFIX} -# Pre-everything -# - -.if ${SUBSYS} == client && !defined(WITHOUT_INTERFACE_POLLING) -pre-everything:: - @${ECHO_MSG} - @${ECHO_MSG} "If you want to compile without interface polling support." - @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITHOUT_INTERFACE_POLLING=yes\"" - @${ECHO_MSG} +.if ${SUBSYS} == client +OPTIONS= INTERFACE_POLLING "interface polling support" on +.endif +.if ${SUBSYS} == server +OPTIONS= DHCP_PARANOIA "add -user, -group and -chroot options" on \ + DHCP_JAIL "add -chroot and -jail options" on .endif # Post-extract @@ -156,6 +153,14 @@ .if ${SUBSYS} == client && !defined(WITHOUT_INTERFACE_POLLING) @${ECHO_CMD} CFLAGS += -DENABLE_POLLING_MODE >> ${WRKSRC}/site.conf .endif +.if ${SUBSYS} == server +.if !defined(WITHOUT_DHCP_PARANOIA) + @${ECHO_CMD} CFLAGS += -DPARANOIA >> ${WRKSRC}/site.conf +.endif +.if !defined(WITHOUT_DHCP_JAIL) + @${ECHO_CMD} CFLAGS += -DJAIL >> ${WRKSRC}/site.conf +.endif +.endif patch-makefile-conf: @${REINPLACE_CMD} -e 's|^DEBUG[ ]*=|# DEBUG ?=|g' \ Cyrille Lefevre -- mailto:cyrille.lefevre@laposte.net
State Changed From-To: open->closed Committed, thanks! Please note that you have to define OPTIONS before bsd.port.pre.mk