diff options
author | edwin <edwin@FreeBSD.org> | 2004-01-17 23:09:02 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2004-01-17 23:09:02 +0000 |
commit | 8766918381d5fcb78c3906a5d36af5702248437b (patch) | |
tree | 389616b2df1e9351d5544f030b02d3ec62c8af18 /net/isc-dhcp40-server/Makefile | |
parent | 1b876c48852d3c8ea853134deae96db98bd1e185 (diff) | |
download | FreeBSD-ports-8766918381d5fcb78c3906a5d36af5702248437b.zip FreeBSD-ports-8766918381d5fcb78c3906a5d36af5702248437b.tar.gz |
Maintainer update: isc-dhcp3 splitted to -server, -client, -relay and -devel sub-ports
Step one: convert net/isc-dhcp3 into net/isc-dhcp3-server
PR: ports/51757
Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net>
Diffstat (limited to 'net/isc-dhcp40-server/Makefile')
-rw-r--r-- | net/isc-dhcp40-server/Makefile | 73 |
1 files changed, 59 insertions, 14 deletions
diff --git a/net/isc-dhcp40-server/Makefile b/net/isc-dhcp40-server/Makefile index 4bdee63..0a60769 100644 --- a/net/isc-dhcp40-server/Makefile +++ b/net/isc-dhcp40-server/Makefile @@ -12,11 +12,11 @@ CATEGORIES= net MASTER_SITES= ${MASTER_SITE_ISC} MASTER_SITE_SUBDIR= dhcp dhcp/dhcp-3.0-history PKGNAMEPREFIX= isc- -PKGNAMESUFFIX= 3 +PKGNAMESUFFIX= 3-${SUBSYS} DISTNAME= ${PORTNAME}-${RELEASE}${VERSION}${PATCHLEVEL} MAINTAINER= cyrille.lefevre@laposte.net -COMMENT= ISC Dynamic Host Configuration Protocol client and server code +COMMENT?= The ISC Dynamic Host Configuration Protocol server USE_REINPLACE= yes @@ -26,16 +26,32 @@ USE_REINPLACE= yes # HAS_CONFIGURE= yes +CONFIGURE_ARGS= --subsys ${SUBSYS} +ALL_TARGET= all.${SUBSYS} +INSTALL_TARGET= install.${SUBSYS} +SUBSYS?= server + +.if ${SUBSYS} == client +MAN5= dhclient.conf.5 dhclient.leases.5 +MAN8= dhclient.8 dhclient-script.8 +.elif ${SUBSYS} == server MAN1= omshell.1 -MAN3= dhcpctl.3 omapi.3 omshell.3 -MAN5= dhclient.conf.5 dhclient.leases.5 \ - dhcp-eval.5 dhcp-options.5 dhcpd.conf.5 \ - dhcpd.leases.5 -MAN8= dhclient.8 dhclient-script.8 dhcpd.8 dhcrelay.8 +MAN5= dhcpd.conf.5 dhcpd.leases.5 +MAN8= dhcpd.8 +.elif ${SUBSYS} == relay +MAN8= dhcrelay.8 +.else +MAN3= dhcpctl.3 omapi.3 +.endif +.if ${SUBSYS} != relay +MAN5+= dhcp-eval.5 dhcp-options.5 +.endif -MSG_FILE= ${PKGDIR}/pkg-message -PKGMESSAGE= ${WRKDIR}/pkg-message +MSG_FILE= ${.CURDIR}/pkg-message +MSG_FILE= ${.CURDIR}/pkg-message +PKGMESSAGE= ${.CURDIR}/pkg-message +PLIST= ${.CURDIR}/pkg-plist # Local variables # @@ -61,14 +77,32 @@ PATCHLEVEL= pl${PORTVERSION:E} RELEASE= ${PORTVERSION} .endif -PATCH_SUBDIRS= common minires dst omapip server client relay dhcpctl +PATCH_SUBDIRS= common minires dst omapip +.if ${SUBSYS} == server || ${SUBSYS} == devel +PATCH_SUBDIRS+= dhcpctl +.endif +.if ${SUBSYS} != devel +PATCH_SUBDIRS+= ${SUBSYS} +.endif +.if ${SUBSYS} == server +PATCH_SUBDIRS+= omshell +.endif -BIN_FILES= dhclient dhcpd dhcrelay omshell +.if ${SUBSYS} == client +BIN_FILES= dhclient CONF_FILES= dhclient.conf -RC_FILES= isc-dhcpd isc-dhcrelay +SAMP_FILES= client/dhclient.conf +DATA_FILES= dhclient.leases +.elif ${SUBSYS} == server +BIN_FILES= dhcpd omshell +RC_FILES= isc-dhcpd +SAMP_FILES= server/dhcpd.conf +DATA_FILES= dhcpd.leases +.elif ${SUBSYS} == relay +BIN_FILES= dhcrelay +RC_FILES= isc-dhcrelay +.endif DOC_FILES= ANONCVS CHANGES COPYRIGHT README RELNOTES -SAMP_FILES= client/dhclient.conf server/dhcpd.conf -DATA_FILES= dhclient.leases dhcpd.leases SAMP_SUFX= .sample @@ -79,6 +113,17 @@ DATADIR= /var/db STRIP_CMD?= strip +# Post-extract +# + +post-extract: extract-omshell + +extract-omshell: + @${MKDIR} ${WRKSRC}/omshell + @${MV} ${WRKSRC}/dhcpctl/omshell.? ${WRKSRC}/omshell + @${CP} ${FILESDIR}/omshell::Makefile.dist \ + ${WRKSRC}/omshell/Makefile.dist + # Post-patch # |