summaryrefslogtreecommitdiff
path: root/net-mgmt/wide-dhcp/Makefile
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1996-05-04 02:43:35 +0000
committerSatoshi Asami <asami@FreeBSD.org>1996-05-04 02:43:35 +0000
commit6370b9489269271afbedbdf4851adb3989e3d58d (patch)
tree3d62c17a230678a8edc5a1f0339000c329697927 /net-mgmt/wide-dhcp/Makefile
parentAdd trafshow. (diff)
Re-import wide-dhcp to a more suitable location. Also change the port
to one that works. Submitted by: Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp>
Notes
Notes: svn path=/head/; revision=3061
Diffstat (limited to 'net-mgmt/wide-dhcp/Makefile')
-rw-r--r--net-mgmt/wide-dhcp/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/net-mgmt/wide-dhcp/Makefile b/net-mgmt/wide-dhcp/Makefile
new file mode 100644
index 000000000000..90a143b0ee6c
--- /dev/null
+++ b/net-mgmt/wide-dhcp/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: dhcp
+# Version required: 1.3beta
+# Date created: 21 November 1995
+# Whom: Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp>
+#
+# $Id$
+#
+
+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
+EXTRACT_ONLY= dhcp-1.3beta.tar.gz
+
+MAINTAINER= sanpei@yy.cs.keio.ac.jp
+
+post-patch:
+ if [ ! -f ${WRKSRC}/server/tzfile.h ]; then \
+ cp ${DISTDIR}/tzfile.h ${WRKSRC}/server/; \
+ fi
+
+post-install:
+ @if [ ! -d ${PREFIX}/share/dhcp ]; then \
+ mkdir -p ${PREFIX}/share/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/
+ @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 <bsd.port.mk>