summaryrefslogtreecommitdiff
path: root/net/wide-dhcp
diff options
context:
space:
mode:
Diffstat (limited to 'net/wide-dhcp')
-rw-r--r--net/wide-dhcp/Makefile12
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'" \