1994-08-30 12:55:07 +00:00
|
|
|
# New ports collection makefile for: dgd
|
|
|
|
# Date created: 23 August 1994
|
2001-05-06 05:18:27 +00:00
|
|
|
# Whom: adam@veda.is
|
1994-08-30 12:55:07 +00:00
|
|
|
#
|
1999-08-30 14:24:37 +00:00
|
|
|
# $FreeBSD$
|
1996-02-08 00:30:51 +00:00
|
|
|
#
|
1994-08-30 12:55:07 +00:00
|
|
|
|
2000-04-09 18:14:07 +00:00
|
|
|
PORTNAME= dgd
|
2004-03-08 05:50:53 +00:00
|
|
|
PORTVERSION= 1.2p4
|
2003-09-05 22:15:51 +00:00
|
|
|
PORTREVISION= 2
|
2003-08-29 18:30:08 +00:00
|
|
|
CATEGORIES= net lang games
|
2002-07-23 17:20:19 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL:S|%SUBDIR%|glewis/dgd|} \
|
|
|
|
ftp://ftp.dworkin.nl/pub/dgd/ \
|
|
|
|
ftp://ftp.imaginary.com/pub/LPC/servers/DGD/
|
|
|
|
|
2002-05-20 19:01:51 +00:00
|
|
|
MAINTAINER= glewis@FreeBSD.org
|
2003-02-27 18:52:21 +00:00
|
|
|
COMMENT= Dworkin's Generic Driver (network server)
|
1995-05-03 19:23:39 +00:00
|
|
|
|
1996-12-08 09:48:59 +00:00
|
|
|
NO_CDROM= "no distribution to corporate environment"
|
|
|
|
RESTRICTED= "license required for commercial use"
|
1996-06-17 17:46:35 +00:00
|
|
|
|
2004-03-19 17:06:58 +00:00
|
|
|
OPTIONS= NETWORKING "With networking kfuns" off \
|
|
|
|
ANSI "Allow ANSI escape codes" off
|
2004-03-08 22:06:11 +00:00
|
|
|
|
1996-03-10 09:01:56 +00:00
|
|
|
DIST_SUBDIR= dgd
|
1994-08-30 12:55:07 +00:00
|
|
|
WRKSRC= ${WRKDIR}/dgd/src
|
2003-09-05 22:15:51 +00:00
|
|
|
PATCH_WRKSRC= ${WRKDIR}/dgd
|
2003-08-14 17:28:36 +00:00
|
|
|
ALL_TARGET= install
|
2003-08-29 18:30:08 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2004-03-08 22:06:11 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-03-19 17:06:58 +00:00
|
|
|
.if defined(WITH_NETWORKING)
|
|
|
|
PATCH_SITES+= ftp://noname.franken.de/pub/dgd/
|
|
|
|
PATCHFILES+= Network-1-DGD-1.2p3-patch.gz
|
2003-09-05 22:15:51 +00:00
|
|
|
PLIST_SUB+= NETWORKING=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NETWORKING="@comment "
|
|
|
|
.endif
|
2003-08-29 18:30:08 +00:00
|
|
|
|
2004-03-19 17:06:58 +00:00
|
|
|
.ifdef (WITH_ANSI)
|
|
|
|
PATCH_SITES+= http://www.eyesbeyond.com/dgd/
|
|
|
|
PATCHFILES+= ansi.diff
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_NETWORKING) || defined(WITH_ANSI)
|
|
|
|
PATCH_SITES+= ${MASTER_SITE_LOCAL:S|%SUBDIR%|glewis/dgd|}
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
PATCH_STRIP= -p0 -F 3
|
|
|
|
.endif
|
|
|
|
|
2003-08-29 18:30:08 +00:00
|
|
|
do-configure:
|
|
|
|
${REINPLACE_CMD} -e "s:%%DATADIR%%:${DATADIR}:" ${WRKDIR}/dgd/mud.dgd
|
1994-08-30 12:55:07 +00:00
|
|
|
|
2003-09-05 22:15:51 +00:00
|
|
|
.ifdef (WITH_NETWORKING)
|
|
|
|
post-configure:
|
|
|
|
cd ${WRKDIR}/dgd/ && ${FIND} . -name '*.orig' -delete
|
|
|
|
.endif
|
|
|
|
|
1995-04-22 12:30:11 +00:00
|
|
|
do-install:
|
2003-08-29 18:30:08 +00:00
|
|
|
${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}
|
2003-09-05 22:15:51 +00:00
|
|
|
.ifdef (WITH_NETWORKING)
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/dgd/Copyright.NETWORK-PACKAGE ${DOCSDIR}
|
|
|
|
.endif
|
2003-08-29 18:30:08 +00:00
|
|
|
${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
|
2004-03-08 22:06:11 +00:00
|
|
|
# Run package installation script
|
2003-08-29 18:30:08 +00:00
|
|
|
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} \
|
|
|
|
POST-INSTALL
|
2003-09-03 05:33:18 +00:00
|
|
|
# Set mudlib ownership
|
|
|
|
-@${CHOWN} -h -R mud:mud ${DATADIR}
|
1995-04-24 16:52:12 +00:00
|
|
|
|
2004-03-08 22:06:11 +00:00
|
|
|
.include <bsd.port.post.mk>
|