2005-06-17 05:50:19 +02:00
|
|
|
# $NetBSD: Makefile,v 1.14 2005/06/17 03:50:25 jlam Exp $
|
2002-05-26 02:21:43 +02:00
|
|
|
|
|
|
|
DISTNAME= LambdaMOO-1.8.1
|
|
|
|
PKGNAME= lambdamoo-1.8.1
|
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ftp://ftp.place.org/pub/moo/ \
|
|
|
|
${MASTER_SITE_SOURCEFORGE:=lambdamoo/} \
|
|
|
|
ftp://ftp.kanga.nu/pub/mirrors/download.sourceforge.net/lambdamoo/
|
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2004-01-28 08:13:55 +01:00
|
|
|
HOMEPAGE= http://sourceforge.net/projects/lambdamoo/
|
2002-05-26 02:21:43 +02:00
|
|
|
COMMENT= The definitive MOO software
|
|
|
|
|
|
|
|
DEPENDS+= lambdamoo-core>=990412:../../net/lambdamoo-core
|
|
|
|
DEPENDS+= lambdamoo-doc>=1.8.0p6:../../net/lambdamoo-doc
|
|
|
|
|
|
|
|
LAMBDAMOO_USER?= lambdamoo
|
|
|
|
LAMBDAMOO_GROUP?= lambdamoo
|
|
|
|
LAMBDAMOO_HOME?= ${PREFIX}/share/${LAMBDAMOO_USER}
|
|
|
|
|
2003-01-28 23:03:00 +01:00
|
|
|
USE_PKGINSTALL= yes
|
2003-08-31 00:51:11 +02:00
|
|
|
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
|
|
|
|
|
2002-05-26 02:21:43 +02:00
|
|
|
PKG_GROUPS= ${LAMBDAMOO_GROUP}
|
|
|
|
PKG_USERS= ${LAMBDAMOO_USER}:${LAMBDAMOO_GROUP}
|
|
|
|
_PKG_USER_HOME= ${LAMBDAMOO_HOME}
|
|
|
|
_PKG_USER_SHELL= ${SH}
|
2003-08-30 21:49:25 +02:00
|
|
|
|
|
|
|
FILES_SUBST+= LAMBDAMOO_HOME=${LAMBDAMOO_HOME}
|
2002-05-26 02:21:43 +02:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/MOO-1.8.1
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET=
|
2002-05-26 02:21:43 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-06-17 05:50:19 +02:00
|
|
|
INSTALLATION_DIRS= sbin
|
2002-05-26 02:21:43 +02:00
|
|
|
|
2003-01-13 14:33:57 +01:00
|
|
|
pre-build:
|
2002-05-26 02:21:43 +02:00
|
|
|
${MV} ${WRKSRC}/restart.sh ${WRKSRC}/restart.sh.in
|
2002-05-26 02:57:14 +02:00
|
|
|
${SED} <${WRKSRC}/restart.sh.in >${WRKSRC}/restart.sh \
|
2002-05-26 02:21:43 +02:00
|
|
|
"s|__PREFIX__|${PREFIX}|g"
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/moo ${PREFIX}/sbin
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/lambdamoo
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/restart.sh ${PREFIX}/share/lambdamoo
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Minimal.db ${PREFIX}/share/lambdamoo
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lambdamoo
|
|
|
|
${INSTALL_DATA} \
|
|
|
|
${WRKSRC}/README \
|
|
|
|
${WRKSRC}/README.Minimal \
|
|
|
|
${PREFIX}/share/doc/lambdamoo/
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${CHOWN} -R ${LAMBDAMOO_USER}:${LAMBDAMOO_GROUP} ${LAMBDAMOO_HOME}
|
|
|
|
${CHMOD} u+w ${LAMBDAMOO_HOME}
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|