summaryrefslogtreecommitdiff
path: root/net-mgmt/wide-dhcp/Makefile
blob: 9e5d627b66b017f085a40c0a8add6a1d03fe79ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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: Makefile,v 1.4 1996/11/18 11:37:02 asami 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
EXTRACT_ONLY=	dhcp-1.3beta.tar.gz

MAINTAINER=     sanpei@yy.cs.keio.ac.jp

MAKE_ENV=	OSTYPE=`uname`

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} ${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>