diff options
author | Masafumi Max NAKANE <max@FreeBSD.org> | 1997-05-30 18:38:11 +0000 |
---|---|---|
committer | Masafumi Max NAKANE <max@FreeBSD.org> | 1997-05-30 18:38:11 +0000 |
commit | b880ad35b0d9ed27220020c15606af080d83ec99 (patch) | |
tree | 905b9b6dc7a2d2cdc6f3be93d63fdddb02de974a /net/wide-dhcp | |
parent | 3d0c04fa57980bed59c1f5e6edf5ae928c7ca733 (diff) | |
download | ports-b880ad35b0d9ed27220020c15606af080d83ec99.tar.gz ports-b880ad35b0d9ed27220020c15606af080d83ec99.zip |
Notes
Diffstat (limited to 'net/wide-dhcp')
-rw-r--r-- | net/wide-dhcp/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/net/wide-dhcp/Makefile b/net/wide-dhcp/Makefile index 86a87ad881f9..a2acd4f74f0c 100644 --- a/net/wide-dhcp/Makefile +++ b/net/wide-dhcp/Makefile @@ -3,7 +3,7 @@ # Date created: 21 November 1995 # Whom: Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp> # -# $Id: Makefile,v 1.7 1996/12/28 23:39:28 asami Exp $ +# $Id: Makefile,v 1.8 1997/04/04 02:19:46 brian Exp $ # DISTNAME= dhcp-1.3beta @@ -36,13 +36,21 @@ post-install: @${CP} ${WRKSRC}/db_sample/dhcpdb.relay ${PREFIX}/share/dhcp/dhcpdb.relay.sample @${CP} ${WRKSRC}/db_sample/dhcpdb.server ${PREFIX}/share/dhcp/dhcpdb.server.sample @${CP} ${WRKSRC}/db_sample/intro.dhcp ${PREFIX}/share/dhcp/ + @${CP} ${WRKSRC}/db_sample/intro.dhcp.jis ${PREFIX}/share/dhcp/ @if [ ! -f ${STARTUP_SCRIPT} ]; then \ echo "Installing ${STARTUP_SCRIPT} startup file."; \ echo '#!/bin/sh' > ${STARTUP_SCRIPT}; \ - echo 'if [ -f /etc/dhcpdb.pool -a -f /etc/dhcpdb.relay \'\ + echo 'DB_POOL=/etc/dhcpdb.pool' >> ${STARTUP_SCRIPT}; \ + echo 'DB_RELAY=/etc/dhcpdb.relay' >> ${STARTUP_SCRIPT}; \ + echo 'DB_BIND=/var/db/dhcpdb.bind' >> ${STARTUP_SCRIPT};\ + echo 'if [ -f $${DB_POOL} -a -f $${DB_RELAY} \'\ >> ${STARTUP_SCRIPT}; \ echo ' -a -x /usr/local/sbin/dhcps ]; then' \ >> ${STARTUP_SCRIPT}; \ + echo ' if [ -f $${DB_BIND} ]; then' >> ${STARTUP_SCRIPT};\ + echo ' find $${DB_POOL} -newer $${DB_BIND} -exec rm $${DB_BIND} \;'\ + >> ${STARTUP_SCRIPT}; \ + echo ' fi' >> ${STARTUP_SCRIPT}; \ echo " ${PREFIX}/sbin/dhcps [Intarface Name]" \ >> ${STARTUP_SCRIPT}; \ echo " echo -n ' dhcps'" \ |