diff options
author | tnn <tnn> | 2010-06-02 15:39:26 +0000 |
---|---|---|
committer | tnn <tnn> | 2010-06-02 15:39:26 +0000 |
commit | 02a0dffd5096836190f350c93c72a0e8ad01b84d (patch) | |
tree | b9a85e2c80fa5535e97da82544e5c869123541b2 /mail/thunderbird | |
parent | f91b234fe8d905ff1b5ebf6f7889061891cef312 (diff) | |
download | pkgsrc-02a0dffd5096836190f350c93c72a0e8ad01b84d.tar.gz |
add mozilla-enigmail option for building the Enigmail OpenPGP extension.
Defaults to off for now ...
Diffstat (limited to 'mail/thunderbird')
-rw-r--r-- | mail/thunderbird/PLIST.enigmail | 15 | ||||
-rw-r--r-- | mail/thunderbird/distinfo | 5 | ||||
-rw-r--r-- | mail/thunderbird/enigmail.mk | 48 | ||||
-rw-r--r-- | mail/thunderbird/options.mk | 8 |
4 files changed, 73 insertions, 3 deletions
diff --git a/mail/thunderbird/PLIST.enigmail b/mail/thunderbird/PLIST.enigmail new file mode 100644 index 00000000000..1fc7fb3682f --- /dev/null +++ b/mail/thunderbird/PLIST.enigmail @@ -0,0 +1,15 @@ +@comment $NetBSD: PLIST.enigmail,v 1.1 2010/06/02 15:39:26 tnn Exp $ +lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome.manifest +lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome/enigmail.jar +lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigMsgCompFields.js +lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigmail.js +lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigmail.xpt +lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigmime.xpt +lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigprefs-service.js +lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/ipc.xpt +lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults/pref/enigmail.js +lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults/preferences/enigmail.js +lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/install.rdf +lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/platform/${OPSYS}_${MACHINE_ARCH}-gcc3/components/libenigmime-${MACHINE_ARCH}-gcc3.so +lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/wrappers/gpg-agent-wrapper.sh +lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/wrappers/gpg-wrapper.sh diff --git a/mail/thunderbird/distinfo b/mail/thunderbird/distinfo index d61bd24f3cc..df14315fc16 100644 --- a/mail/thunderbird/distinfo +++ b/mail/thunderbird/distinfo @@ -1,5 +1,8 @@ -$NetBSD: distinfo,v 1.67 2010/05/19 09:21:43 tnn Exp $ +$NetBSD: distinfo,v 1.68 2010/06/02 15:39:26 tnn Exp $ +SHA1 (enigmail-1.0.1.tar.gz) = 334e70723fffc0631dadb6fd4449afffdeafc3f2 +RMD160 (enigmail-1.0.1.tar.gz) = 2abd8e70fcfcd2e75e71a97a5a3c7d1e0c292666 +Size (enigmail-1.0.1.tar.gz) = 1201945 bytes SHA1 (thunderbird-3.0.4.source.tar.bz2) = 5a6e89096da61a520e5cecb61f8afeb981f90412 RMD160 (thunderbird-3.0.4.source.tar.bz2) = ed8c905e3a6061c0ff896857fda3d96146bbc6a8 Size (thunderbird-3.0.4.source.tar.bz2) = 61094371 bytes diff --git a/mail/thunderbird/enigmail.mk b/mail/thunderbird/enigmail.mk new file mode 100644 index 00000000000..88efe0c9037 --- /dev/null +++ b/mail/thunderbird/enigmail.mk @@ -0,0 +1,48 @@ +# $NetBSD: enigmail.mk,v 1.1 2010/06/02 15:39:26 tnn Exp $ +# +# This Makefile fragment hooks the Enigmail OpenPGP extension +# (see http://www.mozilla-enigmail.org/ ) into the build. + +ENIGMAIL_DIST= enigmail-1.0.1.tar.gz +ENIGMAIL_UUID= 847b3a00-7ab1-11d4-8f02-006008948af5 +.if !defined(DISTFILES) +DISTFILES= ${DEFAULT_DISTFILES} +.endif +DISTFILES+= ${ENIGMAIL_DIST} +SITES.${ENIGMAIL_DIST}= http://www.mozilla-enigmail.org/download/source/ + +DEPENDS+= gnupg-[0-9]*:../../security/gnupg +PLIST_SRC+= PLIST.enigmail +USE_TOOLS+= unzip pax + +post-extract: enigmail-post-extract +.PHONY: enigmail-post-extract +enigmail-post-extract: + ${RUN} mv ${WRKDIR}/enigmail ${WRKSRC}/mailnews/extensions/ + +post-configure: enigmail-post-configure +.PHONY: enigmail-post-configure +enigmail-post-configure: + ${RUN} cd ${WRKSRC}/mailnews/extensions/enigmail && \ + ${SETENV} ${CONFIGURE_ENV} ${PERL5} ./makemake -r + +# We need to do a switcheroo of the dist directory while building enigmail; +# otherwise we get extra files contamination in the PLIST. +post-build: enigmail-post-build +.PHONY: enigmail-post-build +enigmail-post-build: + ${RUN} cd ${WRKSRC}/mozilla/dist && pax -rwpe . ../dist.save + ${RUN} cd ${WRKSRC}/mailnews/extensions/enigmail && \ + ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} xpi + ${RUN} ${MKDIR} "${WRKDIR}/{${ENIGMAIL_UUID}}" + ${RUN} cd "${WRKDIR}/{${ENIGMAIL_UUID}}" && \ + ${UNZIP_CMD} -aqo ${WRKSRC}/mozilla/dist/bin/enigmail*.xpi + ${RUN} rm -rf ${WRKSRC}/mozilla/dist + ${RUN} cd ${WRKSRC}/mozilla/dist.save && pax -rwpe . ../dist + +post-install: enigmail-post-install +.PHONY: enigmail-post-install +enigmail-post-install: + ${RUN} cd ${WRKDIR} && pax -rw "{${ENIGMAIL_UUID}}" \ + ${DESTDIR}${PREFIX}/lib/${MOZILLA}/extensions/. diff --git a/mail/thunderbird/options.mk b/mail/thunderbird/options.mk index fe7b1d83b25..f81a0d66ca7 100644 --- a/mail/thunderbird/options.mk +++ b/mail/thunderbird/options.mk @@ -1,7 +1,7 @@ -# $NetBSD: options.mk,v 1.3 2010/04/21 13:33:26 tnn Exp $ +# $NetBSD: options.mk,v 1.4 2010/06/02 15:39:26 tnn Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.thunderbird -PKG_SUPPORTED_OPTIONS= debug mozilla-jemalloc gnome official-mozilla-branding mozilla-lightning +PKG_SUPPORTED_OPTIONS= debug mozilla-jemalloc gnome official-mozilla-branding mozilla-lightning mozilla-enigmail PKG_SUGGESTED_OPTIONS= mozilla-lightning PLIST_VARS+= branding debug gnome @@ -53,6 +53,10 @@ PLIST_SRC+= PLIST.lightning CONFIGURE_ARGS+= --disable-calendar .endif +.if !empty(PKG_OPTIONS:Mmozilla-enigmail) +.include "enigmail.mk" +.endif + .if !empty(PKG_OPTIONS:Mofficial-mozilla-branding) CONFIGURE_ARGS+= --enable-official-branding PLIST.branding= yes |