2000-06-14 12:21:21 -04:00
|
|
|
# ex:ts=8
|
1996-03-08 06:45:10 -05:00
|
|
|
# Ports collection makefile for: dhcp
|
|
|
|
# Date created: 7 Mar 1996
|
|
|
|
# Whom: se
|
|
|
|
#
|
1999-08-30 10:24:37 -04:00
|
|
|
# $FreeBSD$
|
1996-03-08 06:45:10 -05:00
|
|
|
#
|
|
|
|
|
2000-06-14 12:21:21 -04:00
|
|
|
PORTNAME= isc-dhcp3
|
2000-12-02 01:25:48 -05:00
|
|
|
PORTVERSION= 3.0.b2.11
|
1996-11-18 06:44:27 -05:00
|
|
|
CATEGORIES= net
|
1997-05-31 12:14:04 -04:00
|
|
|
MASTER_SITES= ftp://ftp.isc.org/isc/dhcp/
|
2000-10-04 03:41:49 -04:00
|
|
|
DISTNAME= dhcp-3.0b2pl${PORTVERSION:S/3.0.b2.//g}
|
1996-03-08 06:45:10 -05:00
|
|
|
|
2000-06-14 12:21:21 -04:00
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
1997-06-03 03:35:25 -04:00
|
|
|
|
2000-12-02 03:49:49 -05:00
|
|
|
.if defined(USE_FACILITY)
|
|
|
|
_USE_FACILITY:= `${ECHO} ${USE_FACILITY} | ${TR} "[:lower:]" "[:upper:]"`
|
|
|
|
USE_FACILITY= ${_USE_FACILITY}
|
|
|
|
.else
|
|
|
|
USE_FACILITY= DAEMON
|
|
|
|
.endif
|
1999-01-12 22:37:28 -05:00
|
|
|
Y2K= http://www.isc.org/y2k.html
|
|
|
|
|
1997-01-14 15:16:10 -05:00
|
|
|
HAS_CONFIGURE= yes
|
1996-03-08 06:45:10 -05:00
|
|
|
|
2000-09-30 14:42:33 -04:00
|
|
|
MAN3= dhcpctl.3 omapi.3
|
2000-07-05 02:32:18 -04:00
|
|
|
MAN5= dhclient.conf.5 dhclient.leases.5 dhcp-contrib.5 \
|
|
|
|
dhcp-eval.5 dhcp-options.5 dhcpd.conf.5 \
|
1997-12-01 18:49:12 -05:00
|
|
|
dhcpd.leases.5
|
1999-06-25 16:08:41 -04:00
|
|
|
MAN8= dhclient.8 dhclient-script.8 dhcpd.8 dhcrelay.8
|
1996-11-18 06:44:27 -05:00
|
|
|
|
2000-12-02 03:49:49 -05:00
|
|
|
pre-fetch:
|
|
|
|
.if ${USE_FACILITY} == "DAEMON"
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} " You can choose which syslog faciliy by setting LOG_FACILITY to:"
|
|
|
|
@${ECHO} " daemon, local{0-7}"
|
|
|
|
@${ECHO} " 'daemon' is the default option if one is not defined."
|
|
|
|
@${ECHO} " Press Control-C and run make clean build LOG_FACILITY=<local{0-7}>,"
|
|
|
|
@${ECHO} " if you wish to use a different logging facility."
|
|
|
|
@${ECHO} ""
|
|
|
|
@sleep 2
|
|
|
|
.endif
|
|
|
|
|
2000-06-14 12:21:21 -04:00
|
|
|
post-patch:
|
|
|
|
@${PERL} -pi.fbsd -e 's.!!PREFIX!!.${PREFIX}.g' ${WRKSRC}/includes/dhcpd.h
|
2000-12-02 03:49:49 -05:00
|
|
|
@${PERL} -pi.fbsd -e "s.!!USE_FACILITY!!.${USE_FACILITY}.g" ${WRKSRC}/includes/site.h
|
2000-06-25 17:08:08 -04:00
|
|
|
@${PERL} -pi.fbsd -e 's.!!PREFIX!!.${PREFIX}.g' ${WRKSRC}/client/scripts/freebsd
|
2000-09-30 15:47:32 -04:00
|
|
|
.for MF in relay/Makefile.dist server/Makefile.dist client/Makefile.dist common/Makefile.dist dhcpctl/Makefile.dist minires/Makefile.dist omapip/Makefile.dist
|
|
|
|
@${PERL} -pi.fbsd -e 's|^DEBUG[ ]*=|DEBUG ?=|g ; s|^CFLAGS[ ]*=|CFLAGS +=|g' ${WRKSRC}/${MF}
|
|
|
|
.endfor
|
2000-06-14 12:21:21 -04:00
|
|
|
|
1997-11-14 09:19:06 -05:00
|
|
|
post-install:
|
1997-12-01 18:49:12 -05:00
|
|
|
${TOUCH} /var/db/dhcpd.leases
|
1998-05-23 23:04:27 -04:00
|
|
|
.for file in dhclient dhcpd dhcrelay
|
|
|
|
if [ -f ${PREFIX}/sbin/${file} ]; then \
|
|
|
|
strip ${PREFIX}/sbin/${file}; \
|
|
|
|
fi
|
|
|
|
.endfor
|
1997-11-14 09:19:06 -05:00
|
|
|
|
1996-03-08 06:45:10 -05:00
|
|
|
.include <bsd.port.mk>
|