pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/lambdamoo DESTDIR support. Create home directory a...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8a63ecb434d8
branches: trunk
changeset: 571406:8a63ecb434d8
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Feb 11 21:57:09 2010 +0000
description:
DESTDIR support. Create home directory at runtime with 700.
diffstat:
net/lambdamoo/Makefile | 23 +++++++++++------------
1 files changed, 11 insertions(+), 12 deletions(-)
diffs (62 lines):
diff -r a8e8e8b19d2d -r 8a63ecb434d8 net/lambdamoo/Makefile
--- a/net/lambdamoo/Makefile Thu Feb 11 21:43:39 2010 +0000
+++ b/net/lambdamoo/Makefile Thu Feb 11 21:57:09 2010 +0000
@@ -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 @@
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_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 @@
"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"
Home |
Main Index |
Thread Index |
Old Index