diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2005-07-13 18:53:57 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2005-07-13 18:53:57 +0000 |
commit | c7f38464f178f2eef01e21d2b308157cb0e2a299 (patch) | |
tree | e9bfe07c84b5c5792b9bb097f9e45c86d7ba28ee /mail-client/ciphire-mail | |
parent | Add Ciphire license (diff) | |
download | historical-c7f38464f178f2eef01e21d2b308157cb0e2a299.tar.gz historical-c7f38464f178f2eef01e21d2b308157cb0e2a299.tar.bz2 historical-c7f38464f178f2eef01e21d2b308157cb0e2a299.zip |
Initial import by me.
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'mail-client/ciphire-mail')
-rw-r--r-- | mail-client/ciphire-mail/ChangeLog | 10 | ||||
-rw-r--r-- | mail-client/ciphire-mail/Manifest | 14 | ||||
-rw-r--r-- | mail-client/ciphire-mail/ciphire-mail-1.0.0.ebuild | 137 | ||||
-rw-r--r-- | mail-client/ciphire-mail/files/digest-ciphire-mail-1.0.0 | 1 | ||||
-rw-r--r-- | mail-client/ciphire-mail/metadata.xml | 9 |
5 files changed, 171 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..7aedf2221277 --- /dev/null +++ b/mail-client/ciphire-mail/Manifest @@ -0,0 +1,14 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 5f6e64e4066ae63417bd3afa33045cbf ciphire-mail-1.0.0.ebuild 3526 +MD5 695c9b7173ed44459d14f12cc66193e8 ChangeLog 378 +MD5 b612d343db3c54560665171eb7db245c metadata.xml 223 +MD5 3ba822caed60cb1af266084b7298fe80 files/digest-ciphire-mail-1.0.0 83 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.1 (GNU/Linux) + +iD8DBQFC1WPb1ZcsMnZjRyIRAtUwAKCsypzFGYc9nWwOYkIYKzPtfmwOGQCgikj9 +ivCjud8qKxsMuKIUcm1HM6Y= +=B/dV +-----END PGP SIGNATURE----- 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> |