summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-07-13 18:53:57 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-07-13 18:53:57 +0000
commit87295c6e68a751ff3223469d7121b600f52f7e02 (patch)
tree78a592afe2f1375e5f7b8aa766faf007b625a5e2 /mail-client
parentAdd Ciphire license (diff)
downloadgentoo-2-87295c6e68a751ff3223469d7121b600f52f7e02.tar.gz
gentoo-2-87295c6e68a751ff3223469d7121b600f52f7e02.tar.bz2
gentoo-2-87295c6e68a751ff3223469d7121b600f52f7e02.zip
Initial import by me.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'mail-client')
-rw-r--r--mail-client/ciphire-mail/ChangeLog10
-rw-r--r--mail-client/ciphire-mail/Manifest7
-rw-r--r--mail-client/ciphire-mail/ciphire-mail-1.0.0.ebuild137
-rw-r--r--mail-client/ciphire-mail/files/digest-ciphire-mail-1.0.01
-rw-r--r--mail-client/ciphire-mail/metadata.xml9
5 files changed, 164 insertions, 0 deletions
diff --git a/mail-client/ciphire-mail/ChangeLog b/mail-client/ciphire-mail/ChangeLog
new file mode 100644
index 000000000000..ec47b8113240
--- /dev/null
+++ b/mail-client/ciphire-mail/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for mail-client/ciphire-mail
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-client/ciphire-mail/ChangeLog,v 1.1 2005/07/13 18:53:57 azarah Exp $
+
+*ciphire-mail-1.0.0 (13 Jul 2005)
+
+ 13 Jul 2005; Martin Schlemmer <azarah@gentoo.org> +metadata.xml,
+ +ciphire-mail-1.0.0.ebuild:
+ Initial import by me.
+
diff --git a/mail-client/ciphire-mail/Manifest b/mail-client/ciphire-mail/Manifest
new file mode 100644
index 000000000000..ac5d4f741850
--- /dev/null
+++ b/mail-client/ciphire-mail/Manifest
@@ -0,0 +1,7 @@
+MD5 251ef3d23282eb98d57bf36f28845a33 ciphire-mail-0.11.6.ebuild 1865
+MD5 2c664a1af4e7b0b1af0d67cac15c6e72 ciphire-mail-1.0.0.ebuild 1802
+MD5 3432e8dcee622c853bab705e50045193 .ciphire-mail-0.11.6.ebuild.swp 12288
+MD5 825f1fd71af0eb37c2eb508275c87d9c ciphire-mail-0.11.29.ebuild 1810
+MD5 3ba822caed60cb1af266084b7298fe80 files/digest-ciphire-mail-1.0.0 83
+MD5 797b9091593cd64fc4356df745f2fc00 files/digest-ciphire-mail-0.11.29 85
+MD5 ff313c8aa6cf020e1bccdb62eb6a1d8d files/digest-ciphire-mail-0.11.6 84
diff --git a/mail-client/ciphire-mail/ciphire-mail-1.0.0.ebuild b/mail-client/ciphire-mail/ciphire-mail-1.0.0.ebuild
new file mode 100644
index 000000000000..d96f58648d5e
--- /dev/null
+++ b/mail-client/ciphire-mail/ciphire-mail-1.0.0.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-client/ciphire-mail/ciphire-mail-1.0.0.ebuild,v 1.1 2005/07/13 18:53:57 azarah Exp $
+
+inherit eutils
+
+LOC="/opt/ciphire-mail"
+DESCRIPTION="Ciphire Mail is an email encryption tool, operating seamlessly in the background."
+HOMEPAGE="http://www.ciphire.com/"
+SRC_URI="${P}-linux-i686.tar.gz"
+LICENSE="Ciphire"
+SLOT="0"
+# Do not support amd64 as yet, as we need 64bit support
+KEYWORDS="-* ~x86 -amd64"
+RESTRICT="nostrip fetch nomirror"
+IUSE="X gnome kde"
+
+DEPEND=
+RDEPEND="X? ( virtual/x11 )
+ x86? ( >=x11-libs/qt-3.2 )
+ amd64? ( app-emulation/emul-linux-x86-glibc
+ >=app-emulation/emul-linux-x86-baselibs-2.1.1
+ X? ( >=app-emulation/emul-linux-x86-xlibs-1.2
+ >=app-emulation/emul-linux-x86-qtlibs-1.1 ) )"
+
+pkg_nofetch() {
+ einfo "You need to perform the following steps to install this package:"
+ einfo " - Go here: https://www.ciphire.com/linux_download.html,"
+ einfo " - download ${A} and place it in ${DISTDIR}"
+ einfo " - emerge this package again"
+}
+
+pkg_setup() {
+ if ( [[ -d /usr/local/ciphire ]] || type -p ciphire-ctl &>/dev/null ) && \
+ ! portageq has_version / ciphire-mail ; then
+ echo
+ einfo "If you have previously had Ciphire Mail manually installed,"
+ einfo "please uninstall it first (from dir you installed it):"
+ echo
+ einfo " # ./ciphire-uninstall system"
+ echo
+ einfo "and then remerge ciphire-mail."
+ echo
+ die "Old version of ciphire-mail installed"
+ fi
+
+ check_license || die "License check failed"
+}
+
+src_unpack() {
+ unpack "${A}"
+
+ # Do not run 'more' to show the license
+ sed -i -e 's:more\(.*LICENSE.txt\):echo\1:' \
+ "${S}/files/setupdata/libciphire.sh"
+}
+
+src_install() {
+ local x=
+
+ dodir "${LOC}"
+ keepdir "${LOC}/updates"
+ # Do not enable the graphical popups
+ env -u DISPLAY \
+ ./install-ciphire.sh "${D}${LOC}" <<-EOF
+ n
+ yes
+ y
+ n
+ n
+ EOF
+ [[ "$?" != 0 ]] && die "install-ciphire.sh failed"
+
+ # Revert the change in src_unpack()
+ dosed -e 's:echo\(.*LICENSE.txt\):more\1:' \
+ "${LOC}"/setupdata/libciphire.sh
+
+ # Fixup $D in setupdata
+ for x in "${D}${LOC}"/setupdata/*; do
+ sed -i -e "s:${D}::g" "${x}"
+ done
+
+ # Enable X support
+ use X && dosed -e 's:^XSUPPORT=.*:XSUPPORT=1:' \
+ "${LOC}"/setupdata/ciphire.distconfig
+
+ cm_make_wrapper ciphire-setup ciphire-setup "${LOC}"
+ cm_make_wrapper ciphire-ctl ciphire-ctl "${LOC}"
+ cm_make_wrapper ciphire-msg ciphire-msg "${LOC}"
+
+ if use X && ( use gnome || use kde ) ; then
+ make_desktop_entry ciphire-setup \
+ "Ciphire Mail User Setup" \
+ "${LOC}"/data/ciphire32.png \
+ "Network" \
+ "${LOC}"
+ fi
+}
+
+pkg_postinst() {
+ if [[ ${ROOT} == "/" ]] ; then
+ use X && env -u DISPLAY "${LOC}"/ciphire-systemsetup xreinstall \
+ || env -u DISPLAY "${LOC}"/ciphire-systemsetup reinstall
+ fi
+
+ echo
+ einfo "To setup Ciphire Mail for a user, please run as that user:"
+ echo
+ einfo " ${LOC}/ciphire-setup"
+ echo
+ einfo "If you have previously had Ciphire Mail manually installed,"
+ einfo "please uninstall it first (from dir you installed it):"
+ echo
+ einfo " # ./ciphire-uninstall system"
+ echo
+ einfo "and then remerge ciphire-mail."
+ echo
+}
+
+cm_make_wrapper() {
+ local wrapper=$1 bin=$2 dir=$3
+ local tmpwrapper=$(emktemp)
+
+ cat << EOF > "${tmpwrapper}"
+#!/bin/bash
+
+exec ${dir}/${bin} "\$@"
+EOF
+ chmod go+rx "${tmpwrapper}"
+ if [[ -n $5 ]] ; then
+ exeinto "${5}"
+ newexe "${tmpwrapper}" "${wrapper}"
+ else
+ newbin "${tmpwrapper}" "${wrapper}"
+ fi
+}
+
diff --git a/mail-client/ciphire-mail/files/digest-ciphire-mail-1.0.0 b/mail-client/ciphire-mail/files/digest-ciphire-mail-1.0.0
new file mode 100644
index 000000000000..90ac0b9a01be
--- /dev/null
+++ b/mail-client/ciphire-mail/files/digest-ciphire-mail-1.0.0
@@ -0,0 +1 @@
+MD5 55f42675bf010b60587694ad9d68dc44 ciphire-mail-1.0.0-linux-i686.tar.gz 10278857
diff --git a/mail-client/ciphire-mail/metadata.xml b/mail-client/ciphire-mail/metadata.xml
new file mode 100644
index 000000000000..7fdfe1013083
--- /dev/null
+++ b/mail-client/ciphire-mail/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>azarah@gentoo.org</email>
+</maintainer>
+</pkgmetadata>