pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/thunderbird Add an INSTALL template instead of po...
details: https://anonhg.NetBSD.org/pkgsrc/rev/55b9eb839be7
branches: trunk
changeset: 551716:55b9eb839be7
user: roy <roy%pkgsrc.org@localhost>
date: Fri Dec 19 07:59:26 2008 +0000
description:
Add an INSTALL template instead of post-install: target so that
binary packages and unpriv cleaning work.
diffstat:
mail/thunderbird/INSTALL | 15 +++++++++++++++
mail/thunderbird/Makefile-thunderbird.common | 7 +++----
2 files changed, 18 insertions(+), 4 deletions(-)
diffs (41 lines):
diff -r 90f3be7eb0de -r 55b9eb839be7 mail/thunderbird/INSTALL
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/thunderbird/INSTALL Fri Dec 19 07:59:26 2008 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: INSTALL,v 1.1 2008/12/19 07:59:26 roy Exp $
+
+MOZILLA="@MOZILLA@"
+MOZILLA_BIN="@MOZILLA_BIN@"
+MOZILLA_FIVE_HOME="${PKG_PREFIX}/lib/${MOZILLA}"
+export MOZILLA_FIVE_HOME
+
+case ${STAGE} in
+POST-INSTALL)
+ ${MKDIR} -p "./tmpdir-${PKGNAME}"
+ LD_LIBRARY_PATH="${MOZILLA_FIVE_HOME}:${PKG_PREFIX}/lib" HOME="./tmpdir-${PKGNAME}" \
+ ${MOZILLA_FIVE_HOME}/${MOZILLA_BIN} -register
+ ${RM} -fr "./tmpdir-${PKGNAME}"
+ ;;
+esac
diff -r 90f3be7eb0de -r 55b9eb839be7 mail/thunderbird/Makefile-thunderbird.common
--- a/mail/thunderbird/Makefile-thunderbird.common Fri Dec 19 07:58:42 2008 +0000
+++ b/mail/thunderbird/Makefile-thunderbird.common Fri Dec 19 07:59:26 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile-thunderbird.common,v 1.38 2008/11/24 17:19:13 is Exp $
+# $NetBSD: Makefile-thunderbird.common,v 1.39 2008/12/19 07:59:26 roy Exp $
# used by mail/thunderbird/Makefile
# used by mail/thunderbird-gtk1/Makefile
@@ -25,10 +25,9 @@
CHECK_FILES_SKIP+= ${PREFIX}/lib/${MOZILLA}/components/compreg.dat
CHECK_FILES_SKIP+= ${PREFIX}/lib/${MOZILLA}/components/xpti.dat
+INSTALL_TEMPLATES+= ${.CURDIR}/../../mail/thunderbird/INSTALL
+
post-install:
- cd ${PREFIX}/lib/${MOZILLA} && \
- ${SETENV} LD_LIBRARY_PATH=.:${PREFIX}/lib MOZILLA_FIVE_HOME=. HOME=${WRKSRC:Q} \
- ./${MOZILLA_BIN} -register
${FIND} ${DESTDIR:Q}${PREFIX:Q}/lib/${MOZILLA}/defaults -type f -exec ${CHMOD} u+w {} \;
.include "../../mk/bsd.fast.prefs.mk"
Home |
Main Index |
Thread Index |
Old Index