blob: 7b1a00d4021d68f7ee36378818b50de67fe34d34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# New ports collection makefile for: dgd-lpmud
# Date created: 10 November 1994
# Whom: adam
#
# $FreeBSD$
#
PORTNAME= dgd-lpmud
PORTVERSION= 2.4.5
PORTREVISION= 1
CATEGORIES= net games
MASTER_SITES= ftp://ftp.lysator.liu.se/pub/lpmud/drivers/dgd/lpc/ \
${MASTER_SITE_LOCAL:S|%SUBDIR%|glewis/dgd|}
DISTNAME= 2.4.5-for-1.1
EXTRACT_SUFX= .tgz
MAINTAINER= glewis@FreeBSD.org
COMMENT= LPmud mudlib, for use with DGD
RUN_DEPENDS= ${LOCALBASE}/sbin/dgd:${PORTSDIR}/net/dgd
NO_PACKAGE= "depends on DGD, which is NO_CDROM"
RESTRICTED= "no monetary gain, tarball OK for CDROM"
DIST_SUBDIR= dgd
WRKSRC= ${WRKDIR}/mud
post-extract:
@${CP} ${FILESDIR}/oconv.c ${WRKSRC}/
@${CP} ${FILESDIR}/Makefile.bin ${WRKSRC}/Makefile
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
# Run package install script
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} \
POST-INSTALL
# Set mudlib ownership
-@${CHOWN} -h -R mud:mud ${DATADIR}
.include <bsd.port.mk>
|