aboutsummaryrefslogtreecommitdiffstats
path: root/net/dgd-lpmud
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2014-05-29 21:33:01 +0800
committerglewis <glewis@FreeBSD.org>2014-05-29 21:33:01 +0800
commit0e6ce45de5da7325295ce4163e56ecc629be8a7b (patch)
treeb4c9e3bb376acc8f90103583ccad5c4990617126 /net/dgd-lpmud
parent89842662f2433c68785f025a2f3a8df158f3ac00 (diff)
downloadfreebsd-ports-gnome-0e6ce45de5da7325295ce4163e56ecc629be8a7b.tar.gz
freebsd-ports-gnome-0e6ce45de5da7325295ce4163e56ecc629be8a7b.tar.zst
freebsd-ports-gnome-0e6ce45de5da7325295ce4163e56ecc629be8a7b.zip
. Add staging support and remove NO_STAGE.
Diffstat (limited to 'net/dgd-lpmud')
-rw-r--r--net/dgd-lpmud/Makefile35
1 files changed, 17 insertions, 18 deletions
diff --git a/net/dgd-lpmud/Makefile b/net/dgd-lpmud/Makefile
index 9d56f05d7223..5792fc978941 100644
--- a/net/dgd-lpmud/Makefile
+++ b/net/dgd-lpmud/Makefile
@@ -21,7 +21,6 @@ NO_CDROM= ${NO_PACKAGE}
DIST_SUBDIR= dgd
WRKSRC= ${WRKDIR}/mud
-NO_STAGE= yes
post-extract:
@${CP} ${FILESDIR}/oconv.c ${WRKSRC}/
@${CP} ${FILESDIR}/Makefile.bin ${WRKSRC}/Makefile
@@ -33,33 +32,33 @@ 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
+ ${INSTALL_PROGRAM} ${WRKSRC}/hname ${STAGEDIR}${PREFIX}/bin/lpmud-hname
+ ${INSTALL_PROGRAM} ${WRKSRC}/oconv ${STAGEDIR}${PREFIX}/bin/lpmud-oconv
+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/lpmud.dgd ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/
+ ${MKDIR} ${STAGEDIR}${DATADIR}/lpmud
cd ${WRKSRC}/2.4.5 && ${FIND} . \
- | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}/lpmud
+ | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${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
+ ${STAGEDIR}${PREFIX}/etc/rc.d/dgd-lpmud.sh.sample
+ ${CHMOD} a+x ${STAGEDIR}${PREFIX}/etc/rc.d/dgd-lpmud.sh.sample
+ ${MV} ${STAGEDIR}${DATADIR}/lpmud/ACCESS.ALLOW \
+ ${STAGEDIR}${DATADIR}/lpmud/ACCESS.ALLOW.example
+ ${MV} ${STAGEDIR}${DATADIR}/lpmud/ACCESS.DENY \
+ ${STAGEDIR}${DATADIR}/lpmud/ACCESS.DENY.example
.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
post-install:
# Need a temporary directory for certain files
- ${MKDIR} ${DATADIR}/tmp
+ ${MKDIR} ${STAGEDIR}${DATADIR}/tmp
# Link in the dgd docs
- ${LN} -sf ${PREFIX}/share/doc/dgd/kfun ${DATADIR}/lpmud/doc
+ ${LN} -sf ${PREFIX}/share/doc/dgd/kfun ${STAGEDIR}${DATADIR}/lpmud/doc
# Set mudlib ownership
- -@${CHOWN} -h -R mud:mud ${DATADIR}
+ -@${CHOWN} -h -R mud:mud ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>