diff options
author | joerg <joerg@pkgsrc.org> | 2010-02-11 21:57:09 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2010-02-11 21:57:09 +0000 |
commit | 7b0151f3cad9db6c6d581a4564df22b43918a839 (patch) | |
tree | bb70a399001ec82a0e7d7ae742a30e242698ebcd /net/lambdamoo | |
parent | 8a7d95efaa5598453a1b107fc629f7b64a817ca8 (diff) | |
download | pkgsrc-7b0151f3cad9db6c6d581a4564df22b43918a839.tar.gz |
DESTDIR support. Create home directory at runtime with 700.
Diffstat (limited to 'net/lambdamoo')
-rw-r--r-- | net/lambdamoo/Makefile | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/net/lambdamoo/Makefile b/net/lambdamoo/Makefile index 7b1769d1938..f799daf7da0 100644 --- a/net/lambdamoo/Makefile +++ b/net/lambdamoo/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.22 2007/12/02 12:14:53 wiz Exp $ +# $NetBSD: Makefile,v 1.23 2010/02/11 21:57:09 joerg Exp $ DISTNAME= LambdaMOO-1.8.1 PKGNAME= lambdamoo-1.8.1 +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lambdamoo/} @@ -9,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://sourceforge.net/projects/lambdamoo/ COMMENT= The definitive MOO software +PKG_DESTDIR_SUPPORT= user-destdir + DEPENDS+= lambdamoo-core>=990412:../../net/lambdamoo-core DEPENDS+= lambdamoo-doc>=1.8.0p6:../../net/lambdamoo-doc @@ -25,13 +28,15 @@ PKG_SHELL.${LAMBDAMOO_USER}= ${SH} PKG_GROUPS_VARS+= LAMBDAMOO_GROUP PKG_USERS_VARS+= LAMBDAMOO_USER +OWN_DIRS_PERMS+= ${LAMBDAMOO_HOME} ${LAMBDAMOO_USER} ${LAMBDAMOO_GROUP} 700 + FILES_SUBST+= LAMBDAMOO_HOME=${LAMBDAMOO_HOME:Q} WRKSRC= ${WRKDIR}/MOO-1.8.1 BUILD_TARGET= GNU_CONFIGURE= yes USE_TOOLS+= yacc -INSTALLATION_DIRS= sbin +INSTALLATION_DIRS= sbin share/lambdamoo share/doc/lambdamoo pre-build: ${MV} ${WRKSRC}/restart.sh ${WRKSRC}/restart.sh.in @@ -39,18 +44,12 @@ pre-build: "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_PROGRAM} ${WRKSRC}/moo ${DESTDIR}${PREFIX}/sbin + ${INSTALL_SCRIPT} ${WRKSRC}/restart.sh ${DESTDIR}${PREFIX}/share/lambdamoo + ${INSTALL_DATA} ${WRKSRC}/Minimal.db ${DESTDIR}${PREFIX}/share/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} + ${DESTDIR}${PREFIX}/share/doc/lambdamoo/ .include "../../mk/bsd.pkg.mk" |