2013-09-20 22:10:23 +00:00
|
|
|
# Created by: adam
|
1999-08-30 14:24:37 +00:00
|
|
|
# $FreeBSD$
|
1994-11-24 04:57:18 +00:00
|
|
|
|
2000-04-09 18:14:07 +00:00
|
|
|
PORTNAME= dgd-lpmud
|
|
|
|
PORTVERSION= 2.4.5
|
2011-08-03 06:30:01 +00:00
|
|
|
PORTREVISION= 4
|
2003-08-29 18:40:03 +00:00
|
|
|
CATEGORIES= net games
|
2010-03-24 05:09:17 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL:S|%SUBDIR%|glewis/dgd|} \
|
|
|
|
http://ftp.dworkin.nl/dgd/lib/
|
|
|
|
DISTNAME= 2.4.5-for-1.4
|
2003-08-29 18:40:03 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
1994-11-24 04:57:18 +00:00
|
|
|
|
2002-06-17 02:35:08 +00:00
|
|
|
MAINTAINER= glewis@FreeBSD.org
|
2003-02-27 18:52:21 +00:00
|
|
|
COMMENT= LPmud mudlib, for use with DGD
|
1996-03-19 14:45:55 +00:00
|
|
|
|
2003-08-29 18:40:03 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/dgd:${PORTSDIR}/net/dgd
|
|
|
|
|
2011-01-25 07:04:00 +00:00
|
|
|
NO_PACKAGE= no monetary gain, tarball OK for CDROM
|
1996-06-19 14:57:21 +00:00
|
|
|
|
1996-11-18 11:44:27 +00:00
|
|
|
DIST_SUBDIR= dgd
|
1996-11-06 22:53:25 +00:00
|
|
|
WRKSRC= ${WRKDIR}/mud
|
2003-08-29 18:40:03 +00:00
|
|
|
|
2013-09-20 22:10:23 +00:00
|
|
|
NO_STAGE= yes
|
2003-08-29 18:40:03 +00:00
|
|
|
post-extract:
|
|
|
|
@${CP} ${FILESDIR}/oconv.c ${WRKSRC}/
|
|
|
|
@${CP} ${FILESDIR}/Makefile.bin ${WRKSRC}/Makefile
|
|
|
|
|
2009-07-06 02:27:20 +00:00
|
|
|
post-patch:
|
|
|
|
cd ${WRKSRC} && ${FIND} . -name '*.orig' -delete
|
|
|
|
|
2003-08-29 18:40:03 +00:00
|
|
|
do-configure:
|
|
|
|
${REINPLACE_CMD} -e "s:%%DATADIR%%:${DATADIR}:" ${WRKSRC}/lpmud.dgd
|
1995-10-25 14:38:49 +00:00
|
|
|
|
|
|
|
do-install:
|
2003-08-29 18:40:03 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/hname ${PREFIX}/bin/lpmud-hname
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/oconv ${PREFIX}/bin/lpmud-oconv
|
|
|
|
${MKDIR} ${PREFIX}/etc/${PORTNAME}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lpmud.dgd ${PREFIX}/etc/${PORTNAME}/
|
|
|
|
${MKDIR} ${DATADIR}/lpmud
|
|
|
|
cd ${WRKSRC}/2.4.5 && ${FIND} . \
|
|
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}/lpmud
|
|
|
|
# Install an RC script for dgd-lpmud
|
|
|
|
${CAT} ${FILESDIR}/dgd-lpmud.sh | ${SED} -e "s:%%PREFIX%%:${PREFIX}:" \
|
|
|
|
-e "s:%%DATADIR%%:${DATADIR}:" > \
|
|
|
|
${PREFIX}/etc/rc.d/dgd-lpmud.sh.sample
|
|
|
|
${CHMOD} a+x ${PREFIX}/etc/rc.d/dgd-lpmud.sh.sample
|
|
|
|
${MV} ${DATADIR}/lpmud/ACCESS.ALLOW \
|
|
|
|
${DATADIR}/lpmud/ACCESS.ALLOW.example
|
|
|
|
${MV} ${DATADIR}/lpmud/ACCESS.DENY \
|
|
|
|
${DATADIR}/lpmud/ACCESS.DENY.example
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
# Need a temporary directory for certain files
|
|
|
|
${MKDIR} ${DATADIR}/tmp
|
|
|
|
# Link in the dgd docs
|
|
|
|
${LN} -sf ${PREFIX}/share/doc/dgd/kfun ${DATADIR}/lpmud/doc
|
2003-09-03 05:39:14 +00:00
|
|
|
# Set mudlib ownership
|
|
|
|
-@${CHOWN} -h -R mud:mud ${DATADIR}
|
1994-11-24 04:57:18 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|