diff options
author | roy <roy@pkgsrc.org> | 2008-12-19 07:59:26 +0000 |
---|---|---|
committer | roy <roy@pkgsrc.org> | 2008-12-19 07:59:26 +0000 |
commit | 047da652c463c0b28fa2d3da09eb378b7db5ba33 (patch) | |
tree | 748f190a4182ab4bb5ce8dddac0fb3156c81b211 /mail | |
parent | 6c998f235de22d5e8681f29d836a537d6230e63c (diff) | |
download | pkgsrc-047da652c463c0b28fa2d3da09eb378b7db5ba33.tar.gz |
Add an INSTALL template instead of post-install: target so that
binary packages and unpriv cleaning work.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/thunderbird/INSTALL | 15 | ||||
-rw-r--r-- | mail/thunderbird/Makefile-thunderbird.common | 7 |
2 files changed, 18 insertions, 4 deletions
diff --git a/mail/thunderbird/INSTALL b/mail/thunderbird/INSTALL new file mode 100644 index 00000000000..4f85fda97b0 --- /dev/null +++ b/mail/thunderbird/INSTALL @@ -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 --git a/mail/thunderbird/Makefile-thunderbird.common b/mail/thunderbird/Makefile-thunderbird.common index 219ff34b758..5befaddbdbb 100644 --- a/mail/thunderbird/Makefile-thunderbird.common +++ b/mail/thunderbird/Makefile-thunderbird.common @@ -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}/chrome/app-chrome.manifest 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" |