summaryrefslogtreecommitdiffstats
path: root/net/dgd
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2004-03-08 22:06:11 +0000
committerglewis <glewis@FreeBSD.org>2004-03-08 22:06:11 +0000
commitcc333c575a000e02c5c60bcda489995cff2636be (patch)
treef931655233c7165b2bbb15030821390658f90447 /net/dgd
parent9d6dc3319b047e1004c9d53ff74f2a6fdfbbd172 (diff)
downloadFreeBSD-ports-cc333c575a000e02c5c60bcda489995cff2636be.zip
FreeBSD-ports-cc333c575a000e02c5c60bcda489995cff2636be.tar.gz
. Use OPTIONS.
. Change a comment to avoid triggering a portlint warning.
Diffstat (limited to 'net/dgd')
-rw-r--r--net/dgd/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/net/dgd/Makefile b/net/dgd/Makefile
index 80e9ce6..538cfc9 100644
--- a/net/dgd/Makefile
+++ b/net/dgd/Makefile
@@ -12,12 +12,6 @@ CATEGORIES= net lang games
MASTER_SITES= ${MASTER_SITE_LOCAL:S|%SUBDIR%|glewis/dgd|} \
ftp://ftp.dworkin.nl/pub/dgd/ \
ftp://ftp.imaginary.com/pub/LPC/servers/DGD/
-.ifdef (WITH_NETWORKING)
-PATCH_SITES= ftp://noname.franken.de/pub/dgd/
-PATCHFILES= Network-1-DGD-1.2p3-patch.gz
-PATCH_DIST_STRIP= -p1
-PATCH_STRIP= -p0 -F 3
-.endif
MAINTAINER= glewis@FreeBSD.org
COMMENT= Dworkin's Generic Driver (network server)
@@ -25,13 +19,21 @@ COMMENT= Dworkin's Generic Driver (network server)
NO_CDROM= "no distribution to corporate environment"
RESTRICTED= "license required for commercial use"
+OPTIONS= NETWORKING "With networking kfuns" off
+
DIST_SUBDIR= dgd
WRKSRC= ${WRKDIR}/dgd/src
PATCH_WRKSRC= ${WRKDIR}/dgd
ALL_TARGET= install
USE_REINPLACE= yes
+.include <bsd.port.pre.mk>
+
.ifdef (WITH_NETWORKING)
+PATCH_SITES= ftp://noname.franken.de/pub/dgd/
+PATCHFILES= Network-1-DGD-1.2p3-patch.gz
+PATCH_DIST_STRIP= -p1
+PATCH_STRIP= -p0 -F 3
PLIST_SUB+= NETWORKING=""
.else
PLIST_SUB+= NETWORKING="@comment "
@@ -74,10 +76,10 @@ do-install:
post-install:
# Need a temporary directory for certain files
${MKDIR} ${DATADIR}/tmp
- # Run package install script
+ # Run package installation script
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} \
POST-INSTALL
# Set mudlib ownership
-@${CHOWN} -h -R mud:mud ${DATADIR}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud