add mozilla-enigmail option for building the Enigmail OpenPGP extension.

Defaults to off for now ...
This commit is contained in:
tnn 2010-06-02 15:39:26 +00:00
parent 96b799cc1c
commit 8c42fb8a1f
4 changed files with 73 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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/.

View file

@ -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