summaryrefslogtreecommitdiffstats
path: root/net/wide-dhcp
diff options
context:
space:
mode:
authormax <max@FreeBSD.org>1997-05-30 18:38:11 +0000
committermax <max@FreeBSD.org>1997-05-30 18:38:11 +0000
commit53a286a8f3f31d78d92ca12004d6c1acbc50f1ea (patch)
treed7e7e2d6ea546118bc804ec031c374c111197ba3 /net/wide-dhcp
parent1418df57421621445233ea2f840a4174060b385c (diff)
downloadFreeBSD-ports-53a286a8f3f31d78d92ca12004d6c1acbc50f1ea.zip
FreeBSD-ports-53a286a8f3f31d78d92ca12004d6c1acbc50f1ea.tar.gz
Part 5/6 of the update:
Remove dhcpdb.bind file if changed dhcpdb.pool file. If dhcpdb.pool file is changed and dhcpdb.bind file is not matched to new pool file, dhcp server(dhcps) can not run with some errors like this. * dhcps in free(): warning: modified (chunk-) pointer. * dhcps[25591]: hash_ins() with client identifier failed in read_bind_db() I fixed start-up script to remove dhcpdb.bind file when dhcpdb.pool file is newer than dhcpdb.bind. Install intro.dhcp.jis file into ${PREFIX}/share/dhcp dirctory. PR: 3717 Submitted-by: sanpei@yy.cs.keio.ac.jp
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 86a87ad..a2acd4f 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'" \
OpenPOWER on IntegriCloud