aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/Makefile1
-rw-r--r--mail/enigmail-thunderbird/Makefile23
-rw-r--r--mail/enigmail-thunderbird/pkg-deinstall8
-rw-r--r--mail/enigmail-thunderbird/pkg-install9
4 files changed, 41 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index b2a3a4297a47..fbbb798fb944 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -61,6 +61,7 @@
SUBDIR += emh-xemacs21-mule
SUBDIR += emil
SUBDIR += enigmail
+ SUBDIR += enigmail-thunderbird
SUBDIR += esmtp
SUBDIR += evolution
SUBDIR += exact
diff --git a/mail/enigmail-thunderbird/Makefile b/mail/enigmail-thunderbird/Makefile
new file mode 100644
index 000000000000..99eb78cd7eab
--- /dev/null
+++ b/mail/enigmail-thunderbird/Makefile
@@ -0,0 +1,23 @@
+# New ports collection makefile for: enigmail
+# Date created: 20 January 2004
+# Whom: Alex Dupre <ale@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PKGNAMESUFFIX= -thunderbird
+
+COMMENT= A GnuPG extension for the Thunderbird mail client
+
+EXTRACT_DEPENDS=${WRKSRC}/Makefile:${LOCAL_SRCDIR}:configure
+RUN_DEPENDS= thunderbird:${LOCAL_SRCDIR}
+
+MASTERDIR= ${.CURDIR}/../enigmail
+
+PKGINSTALL= ${.CURDIR}/pkg-install
+PKGDEINSTALL= ${.CURDIR}/pkg-deinstall
+
+LOCAL_SRCDIR= ${PORTSDIR}/mail/mozilla-thunderbird
+LOCAL_SUBDIR= lib/thunderbird/lib/mozilla-1.6b
+
+.include "${MASTERDIR}/Makefile"
diff --git a/mail/enigmail-thunderbird/pkg-deinstall b/mail/enigmail-thunderbird/pkg-deinstall
new file mode 100644
index 000000000000..daf8822ecf16
--- /dev/null
+++ b/mail/enigmail-thunderbird/pkg-deinstall
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if test "$2" = "POST-DEINSTALL"; then
+FILE=${PKG_PREFIX}/lib/thunderbird/lib/mozilla-1.6b/chrome/installed-chrome.txt
+cp ${FILE} ${FILE}.orig
+cat ${FILE}.orig | grep -v enigmail > ${FILE}
+rm ${FILE}.orig
+fi
diff --git a/mail/enigmail-thunderbird/pkg-install b/mail/enigmail-thunderbird/pkg-install
new file mode 100644
index 000000000000..1af73768ec7f
--- /dev/null
+++ b/mail/enigmail-thunderbird/pkg-install
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if test "$2" = "POST-INSTALL"; then
+cat << EOF >> ${PKG_PREFIX}/lib/thunderbird/lib/mozilla-1.6b/chrome/installed-chrome.txt
+content,install,url,jar:resource:/chrome/enigmail.jar!/content/enigmail/
+skin,install,url,jar:resource:/chrome/enigmail-skin-tbird.jar!/skin/classic/enigmail/
+locale,install,url,jar:resource:/chrome/enigmail.jar!/locale/en-US/enigmail/
+EOF
+fi