Index: head/net/wide-dhcp/Makefile =================================================================== --- head/net/wide-dhcp/Makefile (revision 6638) +++ head/net/wide-dhcp/Makefile (revision 6639) @@ -1,72 +1,80 @@ # New ports collection makefile for: dhcp # Version required: 1.3beta # Date created: 21 November 1995 # Whom: Yoshiro MIHIRA # -# $Id: Makefile,v 1.8 1997/04/04 02:19:46 brian Exp $ +# $Id: Makefile,v 1.9 1997/05/30 18:38:11 max Exp $ # DISTNAME= dhcp-1.3beta PKGNAME= wide-dhcp-1.3b CATEGORIES= net MASTER_SITES= ftp://sh.wide.ad.jp/WIDE/free-ware/dhcp/ \ ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/src/lib/libc/stdtime/ DISTFILES= dhcp-1.3beta.tar.gz tzfile.h MAINTAINER= sanpei@yy.cs.keio.ac.jp EXTRACT_ONLY= dhcp-1.3beta.tar.gz IGNOREFILES= tzfile.h MAKE_ENV= OSTYPE=`uname` +MAN5= dhcpdb.server.5 dhcpdb.pool.5 dhcpdb.relay.5 +MAN8= dhcpc.8 dhcps.8 relay.8 dhcpm.8 + STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/wide-dhcps.sh.sample post-patch: - if [ ! -f ${WRKSRC}/server/tzfile.h ]; then \ + @if [ ! -f ${WRKSRC}/server/tzfile.h ]; then \ ${CP} ${DISTDIR}/tzfile.h ${WRKSRC}/server/; \ fi post-install: - @if [ ! -d ${PREFIX}/share/dhcp ]; then \ - ${MKDIR} ${PREFIX}/share/dhcp; \ +.if !defined(NOPORTDOCS) + @if [ ! -d ${PREFIX}/share/doc/dhcp ]; then \ + ${MKDIR} ${PREFIX}/share/doc/dhcp; \ fi - @${CP} ${WRKSRC}/README ${PREFIX}/share/dhcp/ - @${CP} ${WRKSRC}/README.jis ${PREFIX}/share/dhcp/ - @${CP} ${WRKSRC}/db_sample/dhcpdb.pool ${PREFIX}/share/dhcp/dhcpdb.pool.sample - @${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 [ ! -d ${PREFIX}/share/examples/dhcp ]; then \ + ${MKDIR} ${PREFIX}/share/examples/dhcp; \ + fi + @${CP} ${WRKSRC}/README ${PREFIX}/share/doc/dhcp/ + @${CP} ${WRKSRC}/README.jis ${PREFIX}/share/doc/dhcp/ + @${CP} ${WRKSRC}/db_sample/dhcpdb.pool ${PREFIX}/share/examples/dhcp/dhcpdb.pool.sample + @${CP} ${WRKSRC}/db_sample/dhcpdb.relay ${PREFIX}/share/examples/dhcp/dhcpdb.relay.sample + @${CP} ${WRKSRC}/db_sample/dhcpdb.server ${PREFIX}/share/examples/dhcp/dhcpdb.server.sample + @${CP} ${WRKSRC}/db_sample/intro.dhcp ${PREFIX}/share/doc/dhcp/ + @${CP} ${WRKSRC}/db_sample/intro.dhcp.jis ${PREFIX}/share/doc/dhcp/ +.endif @if [ ! -f ${STARTUP_SCRIPT} ]; then \ echo "Installing ${STARTUP_SCRIPT} startup file."; \ echo '#!/bin/sh' > ${STARTUP_SCRIPT}; \ 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'" \ >> ${STARTUP_SCRIPT}; \ echo 'fi' >> ${STARTUP_SCRIPT}; \ chmod 755 ${STARTUP_SCRIPT}; \ chown bin.bin ${STARTUP_SCRIPT}; \ fi @if [ ! -c /dev/bpf1 ]; then \ echo "**********************************************************";\ echo "* W a r n i n g *";\ echo "* This DHCP program needs Berkeley packet filter (bpf). *";\ echo "* To use DHCP, your kernel must be rebuilt with bpf, and *";\ echo "* make bpf devices on /dev directory. *";\ echo "* Please read some info file with \`pkg_info ${PKGNAME}'. *";\ echo "**********************************************************";\ fi .include Property changes on: head/net/wide-dhcp/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.9 \ No newline at end of property +1.10 \ No newline at end of property Index: head/net/wide-dhcp/files/patch-aa =================================================================== --- head/net/wide-dhcp/files/patch-aa (revision 6638) +++ head/net/wide-dhcp/files/patch-aa (revision 6639) @@ -1,29 +1,34 @@ --- client/Makefile.FreeBSD.orig Mon Oct 9 14:34:12 1995 -+++ client/Makefile.FreeBSD Fri Mar 28 17:25:06 1997 -@@ -1,14 +1,22 @@ ++++ client/Makefile.FreeBSD Fri May 30 22:46:17 1997 +@@ -1,17 +1,26 @@ INCLUDE = ../server/dhcp.h dhcpc.h common.h ../server/common_subr.h dhcpc_subr.h OBJ = dhcpc_subr.o flushroute.o getmac.o common_subr.o dhcpc.o -LDFLAGS = +LDFLAGS = -lkvm +SBIN= ${PREFIX}/sbin +LIBEXEC= ${PREFIX}/libexec +MAN= ${PREFIX}/man ++CP= /bin/cp ++RM= /bin/rm -CC = gcc -CFLAGS = -Wall -g -I. -I../server #-DDEBUG -#CC = cc +#CC = gcc +CFLAGS += -Wall -I. -I../server #-DDEBUG +CC = cc #CFLAGS = -g -I. -I../server #-DDEBUG dhcpc: ${OBJ} ${CC} ${CFLAGS} -o dhcpc ${OBJ} ${LDFLAGS} -+ + +install: dhcpc + ${INSTALL} -c -m 755 -s dhcpc ${SBIN}/dhcpc -+ cp dhcpc.8 ${MAN}/man8/dhcpc.8 -+ gzip -9nf ${MAN}/man8/dhcpc.8 - ++ ${CP} dhcpc.8 ${MAN}/man8/dhcpc.8 ++ clean: - rm -f *~ *.o *core* dhcpc +- rm -f *~ *.o *core* dhcpc ++ ${RM} -f *~ *.o *core* dhcpc + + dhcpc.o: dhcpc.c config.h ${INCLUDE} + dhcpc_subr.o: dhcpc_subr.c ${INCLUDE} Property changes on: head/net/wide-dhcp/files/patch-aa ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/net/wide-dhcp/files/patch-ae =================================================================== --- head/net/wide-dhcp/files/patch-ae (revision 6638) +++ head/net/wide-dhcp/files/patch-ae (revision 6639) @@ -1,32 +1,35 @@ --- server/Makefile.FreeBSD.orig Mon Nov 6 16:18:41 1995 -+++ server/Makefile.FreeBSD Fri Mar 28 17:26:44 1997 -@@ -1,13 +1,25 @@ ++++ server/Makefile.FreeBSD Fri May 30 22:47:17 1997 +@@ -1,16 +1,27 @@ OBJ = dhcps.o database.o hash.o ctime.o getmac.o common_subr.o \ interface.o delarp.o -LDFLAGS = -CC = gcc -CFLAGS = -g -Wall #-DCOMPAT_RFC1541 #-DNOICMPCHK -#CC = cc +LDFLAGS = -lkvm +#CC = gcc +CFLAGS += -Wall #-DCOMPAT_RFC1541 #-DNOICMPCHK +CC = cc #CFLAGS = -g #-DCOMPAT_RFC1541 #-DNOICMPCHK +SBIN= ${PREFIX}/sbin +LIBEXEC= ${PREFIX}/libexec +MAN= ${PREFIX}/man ++CP= /bin/cp ++RM= /bin/rm dhcps: ${OBJ} ${CC} ${CFLAGS} -o dhcps ${OBJ} ${LDFLAGS} -+ + +install: dhcps + ${INSTALL} -c -m 755 -s dhcps ${SBIN}/dhcps -+ cp dhcpdb.pool.5 ${MAN}/man5/dhcpdb.pool.5 -+ gzip -9nf ${MAN}/man5/dhcpdb.pool.5 -+ cp dhcpdb.relay.5 ${MAN}/man5/dhcpdb.relay.5 -+ gzip -9nf ${MAN}/man5/dhcpdb.relay.5 -+ cp dhcps.8 ${MAN}/man8/dhcps.8 -+ gzip -9nf ${MAN}/man8/dhcps.8 - ++ ${CP} dhcpdb.pool.5 ${MAN}/man5/dhcpdb.pool.5 ++ ${CP} dhcpdb.relay.5 ${MAN}/man5/dhcpdb.relay.5 ++ ${CP} dhcps.8 ${MAN}/man8/dhcps.8 ++ clean: - rm -f *~ *.o *core* dhcps +- rm -f *~ *.o *core* dhcps ++ ${RM} -f *~ *.o *core* dhcps + + dhcps.o: dhcps.c dhcp.h common.h common_subr.h hash.h dhcps.h + database.o: database.c dhcp.h common.h hash.h database.h Property changes on: head/net/wide-dhcp/files/patch-ae ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/net/wide-dhcp/files/patch-ag =================================================================== --- head/net/wide-dhcp/files/patch-ag (revision 6638) +++ head/net/wide-dhcp/files/patch-ag (revision 6639) @@ -1,29 +1,35 @@ --- relay/Makefile.FreeBSD.orig Mon Oct 9 15:09:37 1995 -+++ relay/Makefile.FreeBSD Fri Mar 28 17:26:07 1997 -@@ -1,12 +1,22 @@ ++++ relay/Makefile.FreeBSD Fri May 30 22:47:02 1997 +@@ -1,17 +1,27 @@ OBJ = relay.o getmac.o common_subr.o interface.o -CC = gcc -CFLAGS = -g -Wall -I. -I../server -#CC = cc +#CC = gcc +CFLAGS += -Wall -I. -I../server +CC = cc #CFLAGS = -g -I. -I../server -LDFLAGS = +LDFLAGS = -lkvm +SBIN= ${PREFIX}/sbin +LIBEXEC= ${PREFIX}/libexec +MAN= ${PREFIX}/man ++CP= /bin/cp ++RM= /bin/rm relay: ${OBJ} ${CC} ${CFLAGS} -o relay ${OBJ} ${LDFLAGS} -+ + +install: relay + ${INSTALL} -c -m 755 -s relay ${SBIN}/relay -+ cp relay.8 ${MAN}/man8/relay.8 -+ gzip -9nf ${MAN}/man8/relay.8 -+ cp dhcpdb.server.5 ${MAN}/man5/dhcpdb.server.5 -+ gzip -9nf ${MAN}/man5/dhcpdb.server.5 - ++ ${CP} relay.8 ${MAN}/man8/relay.8 ++ ${CP} dhcpdb.server.5 ${MAN}/man5/dhcpdb.server.5 ++ relay.o: relay.c common.h ../server/dhcp.h ../server/common_subr.h common_subr.o: ../server/common_subr.c ../server/dhcp.h common.h ../server/common_subr.h + interface.o: ../server/interface.c common.h + getmac.o: ../server/getmac.c + + clean: +- rm -f *~ *.o *core* relay ++ ${RM} -f *~ *.o *core* relay Property changes on: head/net/wide-dhcp/files/patch-ag ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/net/wide-dhcp/files/patch-aq =================================================================== --- head/net/wide-dhcp/files/patch-aq (revision 6638) +++ head/net/wide-dhcp/files/patch-aq (revision 6639) @@ -1,24 +1,26 @@ --- tools/Makefile.FreeBSD.orig Mon Oct 9 15:00:53 1995 -+++ tools/Makefile.FreeBSD Fri Mar 28 17:27:46 1997 -@@ -1,10 +1,18 @@ ++++ tools/Makefile.FreeBSD Fri May 30 22:48:22 1997 +@@ -1,10 +1,19 @@ -CC = gcc -CFLAGS = -g -Wall -I. -I../server -#CC = cc +#CC = gcc +CFLAGS += -Wall -I. -I../server +CC = cc #CFLAGS = -g -I. -I../server +SBIN= ${PREFIX}/sbin +LIBEXEC= ${PREFIX}/libexec +MAN= ${PREFIX}/man ++CP= /bin/cp ++RM= /bin/rm dhcpm: dhcpm.c ../server/dhcp.h $(CC) $(CFLAGS) dhcpm.c -o dhcpm -+ + +install: dhcpm + ${INSTALL} -c -m 755 -s dhcpm ${SBIN}/dhcpm -+ cp dhcpm.8 ${MAN}/man8/dhcpm.8 -+ gzip -9nf ${MAN}/man8/dhcpm.8 - ++ ${CP} dhcpm.8 ${MAN}/man8/dhcpm.8 ++ clean: - rm -rf *~ *.o *core* dhcpm +- rm -rf *~ *.o *core* dhcpm ++ ${RM} -rf *~ *.o *core* dhcpm Property changes on: head/net/wide-dhcp/files/patch-aq ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/net/wide-dhcp/pkg-descr =================================================================== --- head/net/wide-dhcp/pkg-descr (revision 6638) +++ head/net/wide-dhcp/pkg-descr (revision 6639) @@ -1,86 +1,86 @@ << DHCP WIDE-Implementation, version 1.3 >> October, 1995. This package is a distribution kit of DHCP WIDE-Implementation version 1.3. DHCP (Dynamic Host Configuration Protocol) is a protocol which provides informations to computer when it boots. This release includes DHCP server, relay agent, and client. See "Copyright" included in this directory. Also, portions of this software may fall under the copyrights which are included the end of this file. These are included corresponded source code files. You can get the latest version from; ftp://sh.wide.ad.jp/WIDE/free-ware/dhcp/ ------------------------------ ** Attention for this ports file ** To use DHCP, your kernel must be rebuilt with the following line added to your kernel config file (/sys/i386/conf/): pseudo-device bpfilter 4 #Berkeley packet filter and make bpf devices in your /dev directory: /dev/bpf[1-3]. cd /dev ./MAKEDEV bpf1 ./MAKEDEV bpf2 ./MAKEDEV bpf3 ** dhcpdb.relay file is need without relay agent ** Please read more information in - /usr/local/share/dhcp/intro.dhcp. + /usr/local/share/doc/dhcp/intro.dhcp or intro.dhcp.jis. ** CHECK_SUM Problem under FreeBSD 2.1.x ** This port collection is use tzfile.h from FreeBSD-current source tree. Because this file is frequently changed, md5 check sum of this file in files/md5 is ``IGNORE''. If you use this port collection ***under FreeBSD 2.1-stable***: 2.1.0-RELEASE, 2.1.5-RELASE, 2.1.6-RELEASE, 2.1.7-RELEASE, please use latest bsd.ports.mk and bsd.port.subdir.mk files in /usr/share/mk or manually check checksum and delete files/md5 file. ** kernel dependence of package program files ** This compiled programs(packages) depends on kernel table as ifconfig program. So please use fit package to your FreeBSD (for example under 2.1.5-RELEASE, use packages-2.1.5, do not use packages-2.2) or recompile from ports collection. ** additional function ** DHCP client(dhcpc) in this port is supported "dynamic change /etc/resolv.conf and hostname via DHCP infomation". o `-r' is recreate /etc/resolv.conf (resolv.conf file is overwritten.) o `-n' is reset HOSTNAME ** Acknowledgements to this ports file ** Special thanks to: Hirotaka TAKETA Hajimu UMEMOTO Tamotsu KANOH Junichi SATOH Hisashi HIRAMOTO Takeshi TAGUCHI Keisuke INOUE - Yoshiro MIHIRA (sanpei@yy.cs.keio.ac.jp) Property changes on: head/net/wide-dhcp/pkg-descr ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/net/wide-dhcp/pkg-plist =================================================================== --- head/net/wide-dhcp/pkg-plist (revision 6638) +++ head/net/wide-dhcp/pkg-plist (revision 6639) @@ -1,23 +1,23 @@ sbin/dhcpc sbin/dhcpm sbin/relay sbin/dhcps man/man8/dhcpc.8.gz man/man8/relay.8.gz man/man8/dhcps.8.gz man/man8/dhcpm.8.gz man/man5/dhcpdb.server.5.gz man/man5/dhcpdb.pool.5.gz man/man5/dhcpdb.relay.5.gz -share/dhcp/README -share/dhcp/README.jis -share/dhcp/intro.dhcp -share/dhcp/intro.dhcp.jis -share/dhcp/dhcpdb.pool.sample -share/dhcp/dhcpdb.relay.sample -share/dhcp/dhcpdb.server.sample +share/doc/dhcp/README +share/doc/dhcp/README.jis +share/doc/dhcp/intro.dhcp +share/doc/dhcp/intro.dhcp.jis +share/examples/dhcp/dhcpdb.pool.sample +share/examples/dhcp/dhcpdb.relay.sample +share/examples/dhcp/dhcpdb.server.sample etc/rc.d/wide-dhcps.sh.sample @exec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcps /etc/services.bak ; echo "dhcps 67/udp # dhcp server") > /etc/services @unexec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcps /etc/services.bak ) > /etc/services @exec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcpc /etc/services.bak ; echo "dhcpc 68/udp # dhcp client") > /etc/services @unexec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcpc /etc/services.bak ) > /etc/services Property changes on: head/net/wide-dhcp/pkg-plist ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/net-mgmt/wide-dhcp/Makefile =================================================================== --- head/net-mgmt/wide-dhcp/Makefile (revision 6638) +++ head/net-mgmt/wide-dhcp/Makefile (revision 6639) @@ -1,72 +1,80 @@ # New ports collection makefile for: dhcp # Version required: 1.3beta # Date created: 21 November 1995 # Whom: Yoshiro MIHIRA # -# $Id: Makefile,v 1.8 1997/04/04 02:19:46 brian Exp $ +# $Id: Makefile,v 1.9 1997/05/30 18:38:11 max Exp $ # DISTNAME= dhcp-1.3beta PKGNAME= wide-dhcp-1.3b CATEGORIES= net MASTER_SITES= ftp://sh.wide.ad.jp/WIDE/free-ware/dhcp/ \ ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/src/lib/libc/stdtime/ DISTFILES= dhcp-1.3beta.tar.gz tzfile.h MAINTAINER= sanpei@yy.cs.keio.ac.jp EXTRACT_ONLY= dhcp-1.3beta.tar.gz IGNOREFILES= tzfile.h MAKE_ENV= OSTYPE=`uname` +MAN5= dhcpdb.server.5 dhcpdb.pool.5 dhcpdb.relay.5 +MAN8= dhcpc.8 dhcps.8 relay.8 dhcpm.8 + STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/wide-dhcps.sh.sample post-patch: - if [ ! -f ${WRKSRC}/server/tzfile.h ]; then \ + @if [ ! -f ${WRKSRC}/server/tzfile.h ]; then \ ${CP} ${DISTDIR}/tzfile.h ${WRKSRC}/server/; \ fi post-install: - @if [ ! -d ${PREFIX}/share/dhcp ]; then \ - ${MKDIR} ${PREFIX}/share/dhcp; \ +.if !defined(NOPORTDOCS) + @if [ ! -d ${PREFIX}/share/doc/dhcp ]; then \ + ${MKDIR} ${PREFIX}/share/doc/dhcp; \ fi - @${CP} ${WRKSRC}/README ${PREFIX}/share/dhcp/ - @${CP} ${WRKSRC}/README.jis ${PREFIX}/share/dhcp/ - @${CP} ${WRKSRC}/db_sample/dhcpdb.pool ${PREFIX}/share/dhcp/dhcpdb.pool.sample - @${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 [ ! -d ${PREFIX}/share/examples/dhcp ]; then \ + ${MKDIR} ${PREFIX}/share/examples/dhcp; \ + fi + @${CP} ${WRKSRC}/README ${PREFIX}/share/doc/dhcp/ + @${CP} ${WRKSRC}/README.jis ${PREFIX}/share/doc/dhcp/ + @${CP} ${WRKSRC}/db_sample/dhcpdb.pool ${PREFIX}/share/examples/dhcp/dhcpdb.pool.sample + @${CP} ${WRKSRC}/db_sample/dhcpdb.relay ${PREFIX}/share/examples/dhcp/dhcpdb.relay.sample + @${CP} ${WRKSRC}/db_sample/dhcpdb.server ${PREFIX}/share/examples/dhcp/dhcpdb.server.sample + @${CP} ${WRKSRC}/db_sample/intro.dhcp ${PREFIX}/share/doc/dhcp/ + @${CP} ${WRKSRC}/db_sample/intro.dhcp.jis ${PREFIX}/share/doc/dhcp/ +.endif @if [ ! -f ${STARTUP_SCRIPT} ]; then \ echo "Installing ${STARTUP_SCRIPT} startup file."; \ echo '#!/bin/sh' > ${STARTUP_SCRIPT}; \ 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'" \ >> ${STARTUP_SCRIPT}; \ echo 'fi' >> ${STARTUP_SCRIPT}; \ chmod 755 ${STARTUP_SCRIPT}; \ chown bin.bin ${STARTUP_SCRIPT}; \ fi @if [ ! -c /dev/bpf1 ]; then \ echo "**********************************************************";\ echo "* W a r n i n g *";\ echo "* This DHCP program needs Berkeley packet filter (bpf). *";\ echo "* To use DHCP, your kernel must be rebuilt with bpf, and *";\ echo "* make bpf devices on /dev directory. *";\ echo "* Please read some info file with \`pkg_info ${PKGNAME}'. *";\ echo "**********************************************************";\ fi .include Property changes on: head/net-mgmt/wide-dhcp/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.9 \ No newline at end of property +1.10 \ No newline at end of property Index: head/net-mgmt/wide-dhcp/files/patch-aa =================================================================== --- head/net-mgmt/wide-dhcp/files/patch-aa (revision 6638) +++ head/net-mgmt/wide-dhcp/files/patch-aa (revision 6639) @@ -1,29 +1,34 @@ --- client/Makefile.FreeBSD.orig Mon Oct 9 14:34:12 1995 -+++ client/Makefile.FreeBSD Fri Mar 28 17:25:06 1997 -@@ -1,14 +1,22 @@ ++++ client/Makefile.FreeBSD Fri May 30 22:46:17 1997 +@@ -1,17 +1,26 @@ INCLUDE = ../server/dhcp.h dhcpc.h common.h ../server/common_subr.h dhcpc_subr.h OBJ = dhcpc_subr.o flushroute.o getmac.o common_subr.o dhcpc.o -LDFLAGS = +LDFLAGS = -lkvm +SBIN= ${PREFIX}/sbin +LIBEXEC= ${PREFIX}/libexec +MAN= ${PREFIX}/man ++CP= /bin/cp ++RM= /bin/rm -CC = gcc -CFLAGS = -Wall -g -I. -I../server #-DDEBUG -#CC = cc +#CC = gcc +CFLAGS += -Wall -I. -I../server #-DDEBUG +CC = cc #CFLAGS = -g -I. -I../server #-DDEBUG dhcpc: ${OBJ} ${CC} ${CFLAGS} -o dhcpc ${OBJ} ${LDFLAGS} -+ + +install: dhcpc + ${INSTALL} -c -m 755 -s dhcpc ${SBIN}/dhcpc -+ cp dhcpc.8 ${MAN}/man8/dhcpc.8 -+ gzip -9nf ${MAN}/man8/dhcpc.8 - ++ ${CP} dhcpc.8 ${MAN}/man8/dhcpc.8 ++ clean: - rm -f *~ *.o *core* dhcpc +- rm -f *~ *.o *core* dhcpc ++ ${RM} -f *~ *.o *core* dhcpc + + dhcpc.o: dhcpc.c config.h ${INCLUDE} + dhcpc_subr.o: dhcpc_subr.c ${INCLUDE} Property changes on: head/net-mgmt/wide-dhcp/files/patch-aa ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/net-mgmt/wide-dhcp/files/patch-ae =================================================================== --- head/net-mgmt/wide-dhcp/files/patch-ae (revision 6638) +++ head/net-mgmt/wide-dhcp/files/patch-ae (revision 6639) @@ -1,32 +1,35 @@ --- server/Makefile.FreeBSD.orig Mon Nov 6 16:18:41 1995 -+++ server/Makefile.FreeBSD Fri Mar 28 17:26:44 1997 -@@ -1,13 +1,25 @@ ++++ server/Makefile.FreeBSD Fri May 30 22:47:17 1997 +@@ -1,16 +1,27 @@ OBJ = dhcps.o database.o hash.o ctime.o getmac.o common_subr.o \ interface.o delarp.o -LDFLAGS = -CC = gcc -CFLAGS = -g -Wall #-DCOMPAT_RFC1541 #-DNOICMPCHK -#CC = cc +LDFLAGS = -lkvm +#CC = gcc +CFLAGS += -Wall #-DCOMPAT_RFC1541 #-DNOICMPCHK +CC = cc #CFLAGS = -g #-DCOMPAT_RFC1541 #-DNOICMPCHK +SBIN= ${PREFIX}/sbin +LIBEXEC= ${PREFIX}/libexec +MAN= ${PREFIX}/man ++CP= /bin/cp ++RM= /bin/rm dhcps: ${OBJ} ${CC} ${CFLAGS} -o dhcps ${OBJ} ${LDFLAGS} -+ + +install: dhcps + ${INSTALL} -c -m 755 -s dhcps ${SBIN}/dhcps -+ cp dhcpdb.pool.5 ${MAN}/man5/dhcpdb.pool.5 -+ gzip -9nf ${MAN}/man5/dhcpdb.pool.5 -+ cp dhcpdb.relay.5 ${MAN}/man5/dhcpdb.relay.5 -+ gzip -9nf ${MAN}/man5/dhcpdb.relay.5 -+ cp dhcps.8 ${MAN}/man8/dhcps.8 -+ gzip -9nf ${MAN}/man8/dhcps.8 - ++ ${CP} dhcpdb.pool.5 ${MAN}/man5/dhcpdb.pool.5 ++ ${CP} dhcpdb.relay.5 ${MAN}/man5/dhcpdb.relay.5 ++ ${CP} dhcps.8 ${MAN}/man8/dhcps.8 ++ clean: - rm -f *~ *.o *core* dhcps +- rm -f *~ *.o *core* dhcps ++ ${RM} -f *~ *.o *core* dhcps + + dhcps.o: dhcps.c dhcp.h common.h common_subr.h hash.h dhcps.h + database.o: database.c dhcp.h common.h hash.h database.h Property changes on: head/net-mgmt/wide-dhcp/files/patch-ae ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/net-mgmt/wide-dhcp/files/patch-ag =================================================================== --- head/net-mgmt/wide-dhcp/files/patch-ag (revision 6638) +++ head/net-mgmt/wide-dhcp/files/patch-ag (revision 6639) @@ -1,29 +1,35 @@ --- relay/Makefile.FreeBSD.orig Mon Oct 9 15:09:37 1995 -+++ relay/Makefile.FreeBSD Fri Mar 28 17:26:07 1997 -@@ -1,12 +1,22 @@ ++++ relay/Makefile.FreeBSD Fri May 30 22:47:02 1997 +@@ -1,17 +1,27 @@ OBJ = relay.o getmac.o common_subr.o interface.o -CC = gcc -CFLAGS = -g -Wall -I. -I../server -#CC = cc +#CC = gcc +CFLAGS += -Wall -I. -I../server +CC = cc #CFLAGS = -g -I. -I../server -LDFLAGS = +LDFLAGS = -lkvm +SBIN= ${PREFIX}/sbin +LIBEXEC= ${PREFIX}/libexec +MAN= ${PREFIX}/man ++CP= /bin/cp ++RM= /bin/rm relay: ${OBJ} ${CC} ${CFLAGS} -o relay ${OBJ} ${LDFLAGS} -+ + +install: relay + ${INSTALL} -c -m 755 -s relay ${SBIN}/relay -+ cp relay.8 ${MAN}/man8/relay.8 -+ gzip -9nf ${MAN}/man8/relay.8 -+ cp dhcpdb.server.5 ${MAN}/man5/dhcpdb.server.5 -+ gzip -9nf ${MAN}/man5/dhcpdb.server.5 - ++ ${CP} relay.8 ${MAN}/man8/relay.8 ++ ${CP} dhcpdb.server.5 ${MAN}/man5/dhcpdb.server.5 ++ relay.o: relay.c common.h ../server/dhcp.h ../server/common_subr.h common_subr.o: ../server/common_subr.c ../server/dhcp.h common.h ../server/common_subr.h + interface.o: ../server/interface.c common.h + getmac.o: ../server/getmac.c + + clean: +- rm -f *~ *.o *core* relay ++ ${RM} -f *~ *.o *core* relay Property changes on: head/net-mgmt/wide-dhcp/files/patch-ag ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/net-mgmt/wide-dhcp/files/patch-aq =================================================================== --- head/net-mgmt/wide-dhcp/files/patch-aq (revision 6638) +++ head/net-mgmt/wide-dhcp/files/patch-aq (revision 6639) @@ -1,24 +1,26 @@ --- tools/Makefile.FreeBSD.orig Mon Oct 9 15:00:53 1995 -+++ tools/Makefile.FreeBSD Fri Mar 28 17:27:46 1997 -@@ -1,10 +1,18 @@ ++++ tools/Makefile.FreeBSD Fri May 30 22:48:22 1997 +@@ -1,10 +1,19 @@ -CC = gcc -CFLAGS = -g -Wall -I. -I../server -#CC = cc +#CC = gcc +CFLAGS += -Wall -I. -I../server +CC = cc #CFLAGS = -g -I. -I../server +SBIN= ${PREFIX}/sbin +LIBEXEC= ${PREFIX}/libexec +MAN= ${PREFIX}/man ++CP= /bin/cp ++RM= /bin/rm dhcpm: dhcpm.c ../server/dhcp.h $(CC) $(CFLAGS) dhcpm.c -o dhcpm -+ + +install: dhcpm + ${INSTALL} -c -m 755 -s dhcpm ${SBIN}/dhcpm -+ cp dhcpm.8 ${MAN}/man8/dhcpm.8 -+ gzip -9nf ${MAN}/man8/dhcpm.8 - ++ ${CP} dhcpm.8 ${MAN}/man8/dhcpm.8 ++ clean: - rm -rf *~ *.o *core* dhcpm +- rm -rf *~ *.o *core* dhcpm ++ ${RM} -rf *~ *.o *core* dhcpm Property changes on: head/net-mgmt/wide-dhcp/files/patch-aq ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/net-mgmt/wide-dhcp/pkg-descr =================================================================== --- head/net-mgmt/wide-dhcp/pkg-descr (revision 6638) +++ head/net-mgmt/wide-dhcp/pkg-descr (revision 6639) @@ -1,86 +1,86 @@ << DHCP WIDE-Implementation, version 1.3 >> October, 1995. This package is a distribution kit of DHCP WIDE-Implementation version 1.3. DHCP (Dynamic Host Configuration Protocol) is a protocol which provides informations to computer when it boots. This release includes DHCP server, relay agent, and client. See "Copyright" included in this directory. Also, portions of this software may fall under the copyrights which are included the end of this file. These are included corresponded source code files. You can get the latest version from; ftp://sh.wide.ad.jp/WIDE/free-ware/dhcp/ ------------------------------ ** Attention for this ports file ** To use DHCP, your kernel must be rebuilt with the following line added to your kernel config file (/sys/i386/conf/): pseudo-device bpfilter 4 #Berkeley packet filter and make bpf devices in your /dev directory: /dev/bpf[1-3]. cd /dev ./MAKEDEV bpf1 ./MAKEDEV bpf2 ./MAKEDEV bpf3 ** dhcpdb.relay file is need without relay agent ** Please read more information in - /usr/local/share/dhcp/intro.dhcp. + /usr/local/share/doc/dhcp/intro.dhcp or intro.dhcp.jis. ** CHECK_SUM Problem under FreeBSD 2.1.x ** This port collection is use tzfile.h from FreeBSD-current source tree. Because this file is frequently changed, md5 check sum of this file in files/md5 is ``IGNORE''. If you use this port collection ***under FreeBSD 2.1-stable***: 2.1.0-RELEASE, 2.1.5-RELASE, 2.1.6-RELEASE, 2.1.7-RELEASE, please use latest bsd.ports.mk and bsd.port.subdir.mk files in /usr/share/mk or manually check checksum and delete files/md5 file. ** kernel dependence of package program files ** This compiled programs(packages) depends on kernel table as ifconfig program. So please use fit package to your FreeBSD (for example under 2.1.5-RELEASE, use packages-2.1.5, do not use packages-2.2) or recompile from ports collection. ** additional function ** DHCP client(dhcpc) in this port is supported "dynamic change /etc/resolv.conf and hostname via DHCP infomation". o `-r' is recreate /etc/resolv.conf (resolv.conf file is overwritten.) o `-n' is reset HOSTNAME ** Acknowledgements to this ports file ** Special thanks to: Hirotaka TAKETA Hajimu UMEMOTO Tamotsu KANOH Junichi SATOH Hisashi HIRAMOTO Takeshi TAGUCHI Keisuke INOUE - Yoshiro MIHIRA (sanpei@yy.cs.keio.ac.jp) Property changes on: head/net-mgmt/wide-dhcp/pkg-descr ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/net-mgmt/wide-dhcp/pkg-plist =================================================================== --- head/net-mgmt/wide-dhcp/pkg-plist (revision 6638) +++ head/net-mgmt/wide-dhcp/pkg-plist (revision 6639) @@ -1,23 +1,23 @@ sbin/dhcpc sbin/dhcpm sbin/relay sbin/dhcps man/man8/dhcpc.8.gz man/man8/relay.8.gz man/man8/dhcps.8.gz man/man8/dhcpm.8.gz man/man5/dhcpdb.server.5.gz man/man5/dhcpdb.pool.5.gz man/man5/dhcpdb.relay.5.gz -share/dhcp/README -share/dhcp/README.jis -share/dhcp/intro.dhcp -share/dhcp/intro.dhcp.jis -share/dhcp/dhcpdb.pool.sample -share/dhcp/dhcpdb.relay.sample -share/dhcp/dhcpdb.server.sample +share/doc/dhcp/README +share/doc/dhcp/README.jis +share/doc/dhcp/intro.dhcp +share/doc/dhcp/intro.dhcp.jis +share/examples/dhcp/dhcpdb.pool.sample +share/examples/dhcp/dhcpdb.relay.sample +share/examples/dhcp/dhcpdb.server.sample etc/rc.d/wide-dhcps.sh.sample @exec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcps /etc/services.bak ; echo "dhcps 67/udp # dhcp server") > /etc/services @unexec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcps /etc/services.bak ) > /etc/services @exec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcpc /etc/services.bak ; echo "dhcpc 68/udp # dhcp client") > /etc/services @unexec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcpc /etc/services.bak ) > /etc/services Property changes on: head/net-mgmt/wide-dhcp/pkg-plist ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property