diff options
author | wxs <wxs@FreeBSD.org> | 2011-02-14 10:21:27 +0800 |
---|---|---|
committer | wxs <wxs@FreeBSD.org> | 2011-02-14 10:21:27 +0800 |
commit | 1cecb9109b5aa5bdf083cb1f01cd4327ed1d8b9d (patch) | |
tree | dfac2a597e26c34ce923e07d6055f23f23eb1896 /net/isc-dhcp41-server/Makefile | |
parent | 6b6a1b293b9d6adfa921bdfe1934c46fc5bda0c1 (diff) | |
download | freebsd-ports-gnome-1cecb9109b5aa5bdf083cb1f01cd4327ed1d8b9d.tar.gz freebsd-ports-gnome-1cecb9109b5aa5bdf083cb1f01cd4327ed1d8b9d.tar.zst freebsd-ports-gnome-1cecb9109b5aa5bdf083cb1f01cd4327ed1d8b9d.zip |
Add support for DHCPv6 server.
PR: ports/153781
Submitted by: Douglas William Thrift <douglas@douglasthrift.net>
Diffstat (limited to 'net/isc-dhcp41-server/Makefile')
-rw-r--r-- | net/isc-dhcp41-server/Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/net/isc-dhcp41-server/Makefile b/net/isc-dhcp41-server/Makefile index bed943b09073..921ab20a625f 100644 --- a/net/isc-dhcp41-server/Makefile +++ b/net/isc-dhcp41-server/Makefile @@ -20,7 +20,7 @@ MAINTAINER= wxs@FreeBSD.org COMMENT?= The ISC Dynamic Host Configuration Protocol server PATCHLEVEL= P1 -PORTREVISION_SERVER= 1 +PORTREVISION_SERVER= 2 PORTREVISION_CLIENT= 0 PORTREVISION_RELAY= 0 @@ -70,7 +70,7 @@ MAN8= dhcpd.8 MAN1= omshell.1 MAN3= dhcpctl.3 omapi.3 CFLAGS+= -fPIC -CONF_FILE= dhcpd.conf +CONF_FILE= dhcpd.conf dhcpd6.conf .else MAN8= dhcrelay.8 .endif @@ -152,6 +152,8 @@ do-install: ${MAKE} -C ${WRKSRC}/includes install ${MAKE} -C ${WRKSRC}/common install ${INSTALL_DATA} ${WRKSRC}/dhcpctl/dhcpctl.h ${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/doc/examples/dhcpd-dhcpv6.conf \ + ${PREFIX}/etc/dhcpd6.conf.sample .endif .if defined(WITH_DHCP_LDAP) @${MKDIR} ${SCHEMA_DIR} @@ -166,12 +168,16 @@ do-install: post-install: .if defined(CONF_FILE) - if [ ! -f ${PREFIX}/etc/${CONF_FILE} ]; then \ - ${CP} -p ${PREFIX}/etc/${CONF_FILE}.sample ${PREFIX}/etc/${CONF_FILE} ; \ +.for FILE in ${CONF_FILE} + if [ ! -f ${PREFIX}/etc/${FILE} ]; then \ + ${CP} -p ${PREFIX}/etc/${FILE}.sample ${PREFIX}/etc/${FILE} ; \ fi +.endfor .endif .if ${SUBSYS} == client ${INSTALL_SCRIPT} ${WRKSRC}/client/scripts/freebsd ${PREFIX}/sbin/dhclient-script +.elif ${SUBSYS} == server + @${LN} -sf isc-dhcpd ${PREFIX}/etc/rc.d/isc-dhcpd6 .endif @${SED} ${PKGMESSAGE_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ ${MSG_FILE} > ${PKGMESSAGE} |