1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/net/dgd-lpmud/Makefile

65 lines
1.8 KiB
Makefile
Raw Normal View History

# Created by: adam
1999-08-30 14:24:37 +00:00
# $FreeBSD$
1994-11-24 04:57:18 +00:00
PORTNAME= dgd-lpmud
PORTVERSION= 2.4.5
PORTREVISION= 4
CATEGORIES= net games
MASTER_SITES= ${MASTER_SITE_LOCAL:S|%SUBDIR%|glewis/dgd|} \
http://ftp.dworkin.nl/dgd/lib/
DISTNAME= 2.4.5-for-1.4
EXTRACT_SUFX= .tgz
1994-11-24 04:57:18 +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
RUN_DEPENDS= ${LOCALBASE}/sbin/dgd:${PORTSDIR}/net/dgd
NO_PACKAGE= no monetary gain, tarball OK for CDROM
DIST_SUBDIR= dgd
1996-11-06 22:53:25 +00:00
WRKSRC= ${WRKDIR}/mud
NO_STAGE= yes
post-extract:
@${CP} ${FILESDIR}/oconv.c ${WRKSRC}/
@${CP} ${FILESDIR}/Makefile.bin ${WRKSRC}/Makefile
post-patch:
cd ${WRKSRC} && ${FIND} . -name '*.orig' -delete
do-configure:
${REINPLACE_CMD} -e "s:%%DATADIR%%:${DATADIR}:" ${WRKSRC}/lpmud.dgd
do-install:
${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
# Set mudlib ownership
-@${CHOWN} -h -R mud:mud ${DATADIR}
1994-11-24 04:57:18 +00:00
.include <bsd.port.mk>