aboutsummaryrefslogtreecommitdiff
path: root/net/dgd/Makefile
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2003-08-29 18:30:08 +0000
committerGreg Lewis <glewis@FreeBSD.org>2003-08-29 18:30:08 +0000
commit2d3e091eb2b3769a27b8e164efd2113078b3abee (patch)
treeee955c15fe200907dfc9d2158e427822eec543c4 /net/dgd/Makefile
parentbdcd94775fd4b3aca2dd47049a3585f772bfb593 (diff)
downloadports-2d3e091eb2b3769a27b8e164efd2113078b3abee.tar.gz
ports-2d3e091eb2b3769a27b8e164efd2113078b3abee.zip
Notes
Diffstat (limited to 'net/dgd/Makefile')
-rw-r--r--net/dgd/Makefile39
1 files changed, 36 insertions, 3 deletions
diff --git a/net/dgd/Makefile b/net/dgd/Makefile
index 9d0779d9c8c7..1061e84ec745 100644
--- a/net/dgd/Makefile
+++ b/net/dgd/Makefile
@@ -7,7 +7,8 @@
PORTNAME= dgd
PORTVERSION= 1.2p3
-CATEGORIES= net lang
+PORTREVISION= 1
+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/
@@ -21,9 +22,41 @@ RESTRICTED= "license required for commercial use"
DIST_SUBDIR= dgd
WRKSRC= ${WRKDIR}/dgd/src
ALL_TARGET= install
+USE_REINPLACE= yes
+
+CPIO?= /usr/bin/cpio
+
+do-configure:
+ ${REINPLACE_CMD} -e "s:%%DATADIR%%:${DATADIR}:" ${WRKDIR}/dgd/mud.dgd
do-install:
- @${TAR} -C ${WRKDIR} -cf - `${GREP} '^dgd/' ${PLIST}` \
- | ${TAR} -C ${PREFIX} -xpf -
+ ${INSTALL_PROGRAM} ${WRKDIR}/dgd/bin/driver ${PREFIX}/sbin/dgd
+ ${INSTALL_PROGRAM} ${WRKDIR}/dgd/bin/precomp ${PREFIX}/bin/precomp
+ ${MKDIR} ${PREFIX}/etc/${PORTNAME}
+ ${INSTALL_DATA} ${WRKDIR}/dgd/mud.dgd \
+ ${PREFIX}/etc/${PORTNAME}/kernel.dgd
+ ${MKDIR} ${DATADIR}/kernel
+ cd ${WRKDIR}/dgd/mud && ${FIND} . \
+ | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}/kernel
+ # Install an RC script for DGD
+ ${CAT} ${FILESDIR}/dgd.sh | ${SED} -e "s:%%PREFIX%%:${PREFIX}:" \
+ -e "s:%%DATADIR%%:${DATADIR}:" > \
+ ${PREFIX}/etc/rc.d/dgd.sh.sample
+ ${CHMOD} a+x ${PREFIX}/etc/rc.d/dgd.sh.sample
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKDIR}/dgd/Copyright ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKDIR}/dgd/Credits ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKDIR}/dgd/README ${DOCSDIR}
+ cd ${WRKDIR}/dgd/doc && ${FIND} . \
+ | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
+.endif
+
+post-install:
+ # Need a temporary directory for certain files
+ ${MKDIR} ${DATADIR}/tmp
+ # Run package install script
+ ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} \
+ POST-INSTALL
.include <bsd.port.mk>