2000-06-14 18:21:21 +02:00
|
|
|
# ex:ts=8
|
1996-03-08 12:45:10 +01:00
|
|
|
# Ports collection makefile for: dhcp
|
|
|
|
# Date created: 7 Mar 1996
|
|
|
|
# Whom: se
|
|
|
|
#
|
1999-08-30 16:24:37 +02:00
|
|
|
# $FreeBSD$
|
1996-03-08 12:45:10 +01:00
|
|
|
#
|
|
|
|
|
2001-03-09 16:10:15 +01:00
|
|
|
PORTNAME= dhcp
|
2001-05-14 02:17:11 +02:00
|
|
|
PORTVERSION= 3.0.r4
|
1996-11-18 12:44:27 +01:00
|
|
|
CATEGORIES= net
|
2001-05-14 02:17:11 +02:00
|
|
|
MASTER_SITES= ftp://ftp.isc.org/isc/%SUBDIR%/ \
|
|
|
|
${US_MASTER_SITES} ${JAPAN_MASTER_SITES} \
|
|
|
|
${AUSTRIA_MASTER_SITES} ${FRANCE_MASTER_SITES} \
|
|
|
|
${FINLAND_MASTER_SITES} ${GERMANY_MASTER_SITES} \
|
|
|
|
${HUNGARY_MASTER_SITES} ${ICELAND_MASTER_SITES} \
|
|
|
|
${LATVIA_MASTER_SITES} ${POLAND_MASTER_SITES} \
|
|
|
|
${RUSSIA_MASTER_SITES} ${SPAIN_MASTER_SITES} \
|
|
|
|
${SWEDEN_MASTER_SITES} ${UK_MASTER_SITES} \
|
|
|
|
${NETHERLANDS_MASTER_SITES} ${BRAZIL_MASTER_SITES} \
|
|
|
|
${GREECE_MASTER_SITES} ${TURKEY_MASTER_SITES}
|
|
|
|
MASTER_SITE_SUBDIR= dhcp dpcp/dhcp-3.0-history
|
2001-03-09 16:10:15 +01:00
|
|
|
PKGNAMEPREFIX= isc-
|
2001-03-13 23:07:58 +01:00
|
|
|
PKGNAMESUFFIX= 3
|
2001-04-22 13:59:08 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${RELEASE}${VERSION}${PATCHLEVEL}
|
1996-03-08 12:45:10 +01:00
|
|
|
|
2001-02-20 12:53:21 +01:00
|
|
|
MAINTAINER= clefevre@poboxes.com
|
1997-06-03 09:35:25 +02:00
|
|
|
|
2001-02-17 15:17:30 +01:00
|
|
|
#
|
|
|
|
# Global variables
|
|
|
|
#
|
1999-01-13 04:37:28 +01:00
|
|
|
|
1997-01-14 21:16:10 +01:00
|
|
|
HAS_CONFIGURE= yes
|
1996-03-08 12:45:10 +01:00
|
|
|
|
2001-04-25 14:13:34 +02:00
|
|
|
PLIST_SUB= PKGBASE="${PKGBASE}"
|
|
|
|
|
2000-09-30 20:42:33 +02:00
|
|
|
MAN3= dhcpctl.3 omapi.3
|
2000-07-05 08:32:18 +02:00
|
|
|
MAN5= dhclient.conf.5 dhclient.leases.5 dhcp-contrib.5 \
|
|
|
|
dhcp-eval.5 dhcp-options.5 dhcpd.conf.5 \
|
1997-12-02 00:49:12 +01:00
|
|
|
dhcpd.leases.5
|
1999-06-25 22:08:41 +02:00
|
|
|
MAN8= dhclient.8 dhclient-script.8 dhcpd.8 dhcrelay.8
|
1996-11-18 12:44:27 +01:00
|
|
|
|
2001-02-17 15:17:30 +01:00
|
|
|
#
|
|
|
|
# Local variables
|
|
|
|
#
|
|
|
|
|
2001-05-14 02:17:11 +02:00
|
|
|
# fast
|
|
|
|
AUSTRIA_MASTER_SITES= ftp://gd.tuwien.ac.at/infosys/servers/isc/%SUBDIR%/
|
|
|
|
FRANCE_MASTER_SITES= ftp://ftp.ciril.fr/pub/isc/%SUBDIR%/ \
|
|
|
|
ftp://ftp.grolier.fr/pub/isc/%SUBDIR%/
|
|
|
|
FINLAND_MASTER_SITES= ftp://ftp.funet.fi/pub/mirrors/ftp.isc.org/isc/%SUBDIR%/
|
|
|
|
GERMANY_MASTER_SITES= ftp://ftp.freenet.de/pub/ftp.isc.org/isc/%SUBDIR%/ \
|
|
|
|
ftp://ftp.gigabell.net/pub/%SUBDIR%/
|
|
|
|
HUNGARY_MASTER_SITES= ftp://ftp.fsn.hu/pub/isc/%SUBDIR%/
|
|
|
|
ICELAND_MASTER_SITES= ftp://ftp.gm.is/pub/isc/%SUBDIR%/
|
|
|
|
JAPAN_MASTER_SITES= ftp://ftp.kyushu-u.ac.jp/pub/Net/isc/%SUBDIR%/ \
|
|
|
|
ftp://ftp.iij.ad.jp/pub/network/isc/%SUBDIR%/ \
|
|
|
|
ftp://ftp.u-aizu.ac.jp/pub/net/isc/%SUBDIR%/
|
|
|
|
LATVIA_MASTER_SITES= ftp://ftp.linux.lv/pub/software/isc/%SUBDIR%/
|
|
|
|
POLAND_MASTER_SITES= ftp://ftp.task.gda.pl/mirror/ftp.isc.org/isc/%SUBDIR%/
|
|
|
|
RUSSIA_MASTER_SITES= ftp://ftp.cdu.elektra.ru/pub/unix/isc/%SUBDIR%/
|
|
|
|
SPAIN_MASTER_SITES= ftp://ftp.si.uniovi.es/mirror/isc/%SUBDIR%/
|
|
|
|
SWEDEN_MASTER_SITES= ftp://ftp.sunet.se/pub/network/isc/%SUBDIR%/ \
|
|
|
|
ftp://ftp.chl.chalmers.se/pub/unix/network/isc/%SUBDIR%/
|
|
|
|
UK_MASTER_SITES= ftp://unix.hensa.ac.uk/mirrors/ftp.isc.org/isc/%SUBDIR%/
|
|
|
|
US_MASTER_SITES= ftp://ftp.epix.net/pub/isc/%SUBDIR%/ \
|
|
|
|
ftp://ftp.nominum.com/pub/isc/SUBDIR%/
|
|
|
|
NETHERLANDS_MASTER_SITES= ftp://ftp.ripe.net/mirrors/sites/ftp.isc.org/isc/%SUBDIR%/ \
|
|
|
|
ftp://ftp.nl.uu.net/pub/mirrors/ftp.isc.org/%SUBDIR%/
|
|
|
|
|
|
|
|
# slow
|
|
|
|
BRAZIL_MASTER_SITES= ftp://ftp.pop-mg.com.br/pub/isc/%SUBDIR%/
|
|
|
|
GREECE_MASTER_SITES= ftp://ftp.ntua.gr/pub/net/isc/isc/%SUBDIR%/
|
|
|
|
TURKEY_MASTER_SITES= ftp://ftp.ulak.net.tr/pub/networking/isc/%SUBDIR%/ \
|
|
|
|
ftp://ftp.metu.edu.tr/pub/mirrors/ftp.isc.org/%SUBDIR%/
|
|
|
|
|
2001-04-22 13:59:08 +02:00
|
|
|
# for instance, possible version formats are, in order:
|
|
|
|
# 1.2.r3.4 (or 1.2.b3.4), 1.2.r3 (or 1.2.b3), 1.2.3, 1.2
|
|
|
|
# which have to become:
|
|
|
|
# 1.2rc3pl4 (or 1.2beta3pl4), 1.2rc3 (or 1.2beta3), 1.2pl3, 1.2
|
|
|
|
VERSION=
|
|
|
|
PATCHLEVEL=
|
|
|
|
.if ${PORTVERSION:R:E:M[br]*} != ""
|
|
|
|
RELEASE= ${PORTVERSION:R:R}
|
|
|
|
VERSION= ${PORTVERSION:R:E:S/b/beta/:S/r/rc/}
|
|
|
|
PATCHLEVEL= pl${PORTVERSION:E}
|
|
|
|
.elif ${PORTVERSION:E:M[br]*} != ""
|
|
|
|
RELEASE= ${PORTVERSION:R}
|
|
|
|
VERSION= ${PORTVERSION:E:S/b/beta/:S/r/rc/}
|
|
|
|
.elif ${PORTVERSION:R:E} != ""
|
|
|
|
RELEASE= ${PORTVERSION:R}
|
|
|
|
PATCHLEVEL= pl${PORTVERSION:E}
|
|
|
|
.else
|
|
|
|
RELEASE= ${PORTVERSION}
|
|
|
|
.endif
|
|
|
|
|
2001-03-23 02:33:47 +01:00
|
|
|
PATCH_SUBDIRS= common minires dst omapip server client relay dhcpctl
|
2001-02-17 15:17:30 +01:00
|
|
|
|
|
|
|
BIN_FILES= dhclient dhcpd dhcrelay
|
|
|
|
SAMP_FILES= client/dhclient.conf server/dhcpd.conf
|
|
|
|
RCD_FILES= isc-dhcpd.sh.sample
|
|
|
|
DOC_FILES= CHANGES COPYRIGHT README RELNOTES
|
|
|
|
DATA_FILES= dhclient.leases dhcpd.leases
|
|
|
|
CONF_FILES= dhclient.conf
|
|
|
|
|
|
|
|
BIN_DIR= ${PREFIX}/sbin
|
|
|
|
ETC_DIR= ${PREFIX}/etc
|
|
|
|
RCD_DIR= ${PREFIX}/etc/rc.d
|
2001-03-15 15:29:14 +01:00
|
|
|
DOC_DIR= ${PREFIX}/share/doc/${PKGBASE}
|
2001-02-17 15:17:30 +01:00
|
|
|
VARDB_DIR= /var/db
|
2001-03-24 12:09:53 +01:00
|
|
|
VARRUN_DIR= /var/run
|
2001-02-17 15:17:30 +01:00
|
|
|
|
|
|
|
STRIP?= strip
|
|
|
|
|
|
|
|
#
|
|
|
|
# Post-patch
|
|
|
|
#
|
|
|
|
|
2001-03-23 02:33:47 +01:00
|
|
|
post-patch: patch-scripts patch-makefile-conf patch-makefiles-dist
|
2001-02-17 15:17:30 +01:00
|
|
|
|
|
|
|
patch-scripts:
|
|
|
|
@${PERL} -pi.fbsd -e 's.!!PREFIX!!.${PREFIX}.g' \
|
|
|
|
${WRKSRC}/client/scripts/freebsd
|
|
|
|
|
2001-03-23 02:33:47 +01:00
|
|
|
patch-makefile-conf:
|
|
|
|
@${PERL} -pi.fbsd -e 's|^DEBUG[ ]*=|# DEBUG ?=|g' \
|
|
|
|
${WRKSRC}/Makefile.conf
|
|
|
|
|
|
|
|
patch-makefiles-dist:
|
2001-02-17 15:17:30 +01:00
|
|
|
.for subdir in ${PATCH_SUBDIRS}
|
2001-03-23 02:33:47 +01:00
|
|
|
@${PERL} -pi.fbsd -e 's|^CFLAGS[ ]*=|CFLAGS +=|g' \
|
2001-02-17 15:17:30 +01:00
|
|
|
${WRKSRC}/${subdir}/Makefile.dist
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
#
|
|
|
|
# Post-install
|
|
|
|
#
|
|
|
|
|
|
|
|
post-install: strip-binary-files install-startup-files \
|
|
|
|
install-doc-files install-sample-files \
|
|
|
|
create-data-files create-conf-files
|
|
|
|
|
|
|
|
strip-binary-files:
|
|
|
|
.for file in ${BIN_FILES}
|
|
|
|
.if exists({BIN_DIR}/${file})
|
|
|
|
@${STRIP} ${BIN_DIR}/${file}
|
2000-12-02 09:49:49 +01:00
|
|
|
.endif
|
2001-02-17 15:17:30 +01:00
|
|
|
.endfor
|
2000-12-02 09:49:49 +01:00
|
|
|
|
2001-02-17 15:17:30 +01:00
|
|
|
install-startup-files:
|
|
|
|
.for file in ${RCD_FILES}
|
|
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/${file} ${RCD_DIR}/${file}
|
2000-09-30 21:47:32 +02:00
|
|
|
.endfor
|
2000-06-14 18:21:21 +02:00
|
|
|
|
2001-02-17 15:17:30 +01:00
|
|
|
install-doc-files:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOC_DIR}
|
|
|
|
.for file in ${DOC_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOC_DIR}/${file}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
install-sample-files:
|
|
|
|
.for file in ${SAMP_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${ETC_DIR}/${file:T}.sample
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
create-data-files:
|
|
|
|
.for file in ${DATA_FILES}
|
|
|
|
.if !exists(${VARDB_DIR}/${file})
|
|
|
|
@${TOUCH} ${VARDB_DIR}/${file}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
create-conf-files:
|
|
|
|
.for file in ${CONF_FILES}
|
|
|
|
.if !exists(${ETC_DIR}/${file})
|
|
|
|
@${TOUCH} ${ETC_DIR}/${file}
|
|
|
|
.endif
|
1998-05-24 05:04:27 +02:00
|
|
|
.endfor
|
1997-11-14 15:19:06 +01:00
|
|
|
|
1996-03-08 12:45:10 +01:00
|
|
|
.include <bsd.port.mk>
|