1996-05-04 02:43:35 +00:00
|
|
|
# New ports collection makefile for: dhcp
|
|
|
|
# Version required: 1.3beta
|
|
|
|
# Date created: 21 November 1995
|
|
|
|
# Whom: Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp>
|
|
|
|
#
|
1997-04-04 02:20:28 +00:00
|
|
|
# $Id: Makefile,v 1.7 1996/12/28 23:39:28 asami Exp $
|
1996-05-04 02:43:35 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= dhcp-1.3beta
|
|
|
|
PKGNAME= wide-dhcp-1.3b
|
1996-11-18 11:44:27 +00:00
|
|
|
CATEGORIES= net
|
1996-05-04 02:43:35 +00:00
|
|
|
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
|
|
|
|
|
1996-12-28 23:39:32 +00:00
|
|
|
EXTRACT_ONLY= dhcp-1.3beta.tar.gz
|
|
|
|
IGNOREFILES= tzfile.h
|
1996-05-30 08:54:17 +00:00
|
|
|
MAKE_ENV= OSTYPE=`uname`
|
1996-05-20 08:06:55 +00:00
|
|
|
|
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-patch:
|
|
|
|
if [ ! -f ${WRKSRC}/server/tzfile.h ]; then \
|
1996-12-01 01:23:27 +00:00
|
|
|
${CP} ${DISTDIR}/tzfile.h ${WRKSRC}/server/; \
|
1996-05-04 02:43:35 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@if [ ! -d ${PREFIX}/share/dhcp ]; then \
|
1996-12-01 01:23:27 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/dhcp; \
|
1996-05-04 02:43:35 +00:00
|
|
|
fi
|
1996-12-03 03:34:37 +00:00
|
|
|
@${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/
|
1997-04-04 02:20:28 +00:00
|
|
|
@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 \'\
|
|
|
|
>> ${STARTUP_SCRIPT}; \
|
|
|
|
echo ' -a -x /usr/local/sbin/dhcps ]; then' \
|
|
|
|
>> ${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
|
1996-05-04 02:43:35 +00:00
|
|
|
@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>
|