2001-02-07 14:51:16 +00:00
|
|
|
# ex:ts=8
|
2000-02-13 03:25:05 +00:00
|
|
|
# Ports collection makefile for: dhcp
|
|
|
|
# Date created: 21 November 1995
|
|
|
|
# Whom: Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp>
|
1996-05-04 02:43:35 +00:00
|
|
|
#
|
1999-08-30 14:24:37 +00:00
|
|
|
# $FreeBSD$
|
1996-05-04 02:43:35 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 18:14:07 +00:00
|
|
|
PORTNAME= wide-dhcp
|
2000-04-15 01:44:53 +00:00
|
|
|
PORTVERSION= 1.4.0.6
|
2001-01-16 17:33:20 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ftp://sh.wide.ad.jp/WIDE/free-ware/dhcp/ \
|
1999-02-07 19:46:13 +00:00
|
|
|
ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/wide-dhcp/ \
|
|
|
|
ftp://ftp.st.ryukoku.ac.jp/pub/network/dhcp/wide/ \
|
|
|
|
ftp://ftp.sage-au.org.au/pub/network/boot/wide-dhcp/
|
2000-04-09 18:14:07 +00:00
|
|
|
DISTNAME= dhcp-1.4.0p6
|
1996-05-04 02:43:35 +00:00
|
|
|
|
2000-02-13 03:25:05 +00:00
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
1996-05-04 02:43:35 +00:00
|
|
|
|
1998-08-10 09:07:55 +00:00
|
|
|
MAKE_ENV= OSTYPE=${OPSYS}
|
1996-05-20 08:06:55 +00:00
|
|
|
|
1997-05-30 18:52:45 +00:00
|
|
|
MAN5= dhcpdb.server.5 dhcpdb.pool.5 dhcpdb.relay.5
|
|
|
|
MAN8= dhcpc.8 dhcps.8 relay.8 dhcpm.8
|
|
|
|
|
1997-04-04 02:20:28 +00:00
|
|
|
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/wide-dhcps.sh.sample
|
|
|
|
|
1996-05-04 02:43:35 +00:00
|
|
|
post-install:
|
1997-05-30 18:52:45 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@if [ ! -d ${PREFIX}/share/doc/dhcp ]; then \
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/dhcp; \
|
|
|
|
fi
|
|
|
|
@if [ ! -d ${PREFIX}/share/examples/dhcp ]; then \
|
|
|
|
${MKDIR} ${PREFIX}/share/examples/dhcp; \
|
1996-05-04 02:43:35 +00:00
|
|
|
fi
|
1997-05-30 18:52:45 +00:00
|
|
|
@${CP} ${WRKSRC}/README ${PREFIX}/share/doc/dhcp/
|
|
|
|
@${CP} ${WRKSRC}/README.jis ${PREFIX}/share/doc/dhcp/
|
2000-02-13 03:25:05 +00:00
|
|
|
@${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
|
1997-05-30 18:52:45 +00:00
|
|
|
@${CP} ${WRKSRC}/db_sample/intro.dhcp ${PREFIX}/share/doc/dhcp/
|
2000-02-13 03:25:05 +00:00
|
|
|
@${CP} ${WRKSRC}/db_sample/intro.dhcp.jis \
|
|
|
|
${PREFIX}/share/doc/dhcp/
|
1997-05-30 18:52:45 +00:00
|
|
|
.endif
|
2000-02-13 03:25:05 +00:00
|
|
|
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
|
|
|
|
${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \
|
2000-07-05 12:37:06 +00:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/wide-dhcps.sh.sample ${STARTUP_SCRIPT}; \
|
1997-04-04 02:20:28 +00:00
|
|
|
fi
|
1996-05-04 02:43:35 +00:00
|
|
|
@if [ ! -c /dev/bpf1 ]; then \
|
2000-02-13 03:25:05 +00:00
|
|
|
${ECHO} "********************************************************";\
|
|
|
|
${ECHO} "* W a r n i n g *";\
|
|
|
|
${ECHO} "* DHCP the needs Berkeley Packet Filter (bpf). *";\
|
|
|
|
${ECHO} "* To use DHCP, your kernel must be rebuilt with bpf, *";\
|
|
|
|
${ECHO} "* and make bpf devices on /dev directory. *";\
|
|
|
|
${ECHO} "* Please read the info file by \`pkg_info ${PKGNAME}'. *";\
|
|
|
|
${ECHO} "********************************************************";\
|
1996-05-04 02:43:35 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|