summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cummings <mcummings@gentoo.org>2006-02-20 21:19:53 +0000
committerMichael Cummings <mcummings@gentoo.org>2006-02-20 21:19:53 +0000
commitdaecef83da8a1aed7dffa4b47070c13699fddb0a (patch)
tree1607bace4625c7741a4b49001af60316469c45e6 /mail-filter/anomy-sanitizer
parentMetadata cleanup (diff)
downloadhistorical-daecef83da8a1aed7dffa4b47070c13699fddb0a.tar.gz
historical-daecef83da8a1aed7dffa4b47070c13699fddb0a.tar.bz2
historical-daecef83da8a1aed7dffa4b47070c13699fddb0a.zip
Bug 123522, ebuild submitted by jakub to clean up anomy-sanitizer
Package-Manager: portage-2.1_pre3-r1
Diffstat (limited to 'mail-filter/anomy-sanitizer')
-rw-r--r--mail-filter/anomy-sanitizer/ChangeLog8
-rw-r--r--mail-filter/anomy-sanitizer/Manifest10
-rw-r--r--mail-filter/anomy-sanitizer/anomy-sanitizer-1.76-r1.ebuild103
-rw-r--r--mail-filter/anomy-sanitizer/files/digest-anomy-sanitizer-1.76-r11
4 files changed, 117 insertions, 5 deletions
diff --git a/mail-filter/anomy-sanitizer/ChangeLog b/mail-filter/anomy-sanitizer/ChangeLog
index 79572be749b1..39ccd84bf27a 100644
--- a/mail-filter/anomy-sanitizer/ChangeLog
+++ b/mail-filter/anomy-sanitizer/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for mail-filter/anomy-sanitizer
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/anomy-sanitizer/ChangeLog,v 1.11 2006/02/13 14:33:26 mcummings Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/anomy-sanitizer/ChangeLog,v 1.12 2006/02/20 21:19:53 mcummings Exp $
+
+*anomy-sanitizer-1.76-r1 (20 Feb 2006)
+
+ 20 Feb 2006; Michael Cummings <mcummings@gentoo.org>
+ +anomy-sanitizer-1.76-r1.ebuild:
+ Bug 123522, ebuild submitted by jakub to clean up anomy-sanitizer
13 Feb 2006; Michael Cummings <mcummings@gentoo.org>
anomy-sanitizer-1.67.ebuild, anomy-sanitizer-1.70.ebuild,
diff --git a/mail-filter/anomy-sanitizer/Manifest b/mail-filter/anomy-sanitizer/Manifest
index b9754b16ffaa..bf4feeae6fcd 100644
--- a/mail-filter/anomy-sanitizer/Manifest
+++ b/mail-filter/anomy-sanitizer/Manifest
@@ -1,14 +1,16 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 8f3d40b8a6603a92e2da43110282ee51 ChangeLog 2094
+MD5 886ae038f8cf7938e9f28656b30cdddd ChangeLog 2293
MD5 dfcdc42557c0f8e65c8e232a090b6f5e anomy-sanitizer-1.67.ebuild 2955
MD5 274ba06eac31fe6af588934487134993 anomy-sanitizer-1.70.ebuild 2955
+MD5 ffb91d2ec5a23ebf570bc0287958464a anomy-sanitizer-1.76-r1.ebuild 3025
MD5 2eb75ad99f32f61bfc1c6fd7a48b2ab0 anomy-sanitizer-1.76.ebuild 3024
MD5 9d08cc149086d19bbf4d2f7f0d17e105 files/anomy.conf 6714
MD5 bfbe48e53cc13347c50082c700ca1981 files/digest-anomy-sanitizer-1.67 72
MD5 ca5a2e524fc83140e046ae2c0c8f0e3e files/digest-anomy-sanitizer-1.70 72
MD5 1bdbd19274c7e18905755393bf54a9f1 files/digest-anomy-sanitizer-1.76 72
+MD5 1bdbd19274c7e18905755393bf54a9f1 files/digest-anomy-sanitizer-1.76-r1 72
MD5 28080935c9282efa29386151ab7036ab files/sample2_mailfilter.sh 1898
MD5 ea517247fe8f9611e41361de67d49d52 files/sample_e-mail-architecture.png 15409
MD5 e516d95d8691b03784d4868f0d4dc9ac files/sample_e-mail-architektur.flw 7001
@@ -17,7 +19,7 @@ MD5 e2d8f1bf77722def1dd432e26455c818 metadata.xml 305
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
-iD8DBQFD8JistG5z4I8BtQoRAuKLAJwJN+rYlMXlAgAD2FMKU1IqAzj4UgCeNtHT
-Vb77DVlIkfsZcZPhCiltB6c=
-=JVya
+iD8DBQFD+jKBtG5z4I8BtQoRAkOZAKCO2rzgnmz2uX7NKDYpZ/p+UsR1HACfa9pr
+LdwFFgtQ8j/KRP5FTvnLiUM=
+=u4q+
-----END PGP SIGNATURE-----
diff --git a/mail-filter/anomy-sanitizer/anomy-sanitizer-1.76-r1.ebuild b/mail-filter/anomy-sanitizer/anomy-sanitizer-1.76-r1.ebuild
new file mode 100644
index 000000000000..73fa1d0f8d5b
--- /dev/null
+++ b/mail-filter/anomy-sanitizer/anomy-sanitizer-1.76-r1.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/anomy-sanitizer/anomy-sanitizer-1.76-r1.ebuild,v 1.1 2006/02/20 21:19:53 mcummings Exp $
+
+inherit eutils
+
+DESCRIPTION="Perl based e-mail filtering tool, sensitive to html tags, mime types and attachments"
+HOMEPAGE="http://mailtools.anomy.net/"
+SRC_URI="http://mailtools.anomy.net/dist/${PN}-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-lang/perl
+ >=virtual/perl-MIME-Base64-2.12-r2
+ >=dev-perl/Mail-Audit-2.1-r1
+ dev-perl/Convert-TNEF
+ dev-perl/MIME-tools
+ dev-perl/libwww-perl
+ virtual/mta"
+
+S="${WORKDIR}/anomy"
+DEST="/usr/share/${PN}"
+SANI_WORKDIR="/var/spool/sanitizer"
+SANI_CONFDIR="/etc/mail/${PN}"
+
+src_install() {
+ dodoc *.sanitizer CREDITS UNICODE.TXT
+ dohtml sanitizer.html
+ rm -rf "${S}/contrib/.tmp"
+ rm -f *.sanitizer CREDITS UNICODE.TXT sanitizer.html
+ mv "${S}/contrib" "${D}/usr/share/doc/${PF}/"
+
+ insinto /usr/share/doc/${PF}/examples
+ doins ${FILESDIR}/*.{sh,png,flw}
+
+ keepdir ${SANI_CONFDIR}
+ insinto ${SANI_CONFDIR}
+ doins ${FILESDIR}/*.conf
+
+ keepdir ${SANI_WORKDIR}
+ dodir ${DEST}
+ insinto ${DEST}
+
+# generate lists for doins
+ _list="anomy anomy/bin anomy/bin/Anomy anomy/bin/Anomy/Sanitizer anomy/testcases anomy/testcases/results.def"
+
+ for i in $_list; do
+ _di=`echo $i | sed -e "s/^anomy//g; s/^\///g"` &>/dev/null
+ insinto ${DEST}/$_di
+
+ _sublist=`find ${WORKDIR}/$i/* -type f -maxdepth 0`
+ for l in $_sublist; do
+ echo &>/dev/null
+ doins $l
+ done
+ done
+
+ dosym ${SANI_CONFDIR}/anomy.conf ${DEST}/anomy.conf
+}
+
+pkg_preinst() {
+ enewgroup sanitizer
+ enewuser sanitizer -1 -1 ${SANI_WORKDIR} sanitizer
+}
+
+pkg_postinst() {
+ chown -R sanitizer:sanitizer ${ROOT}/${SANI_WORKDIR}
+ chmod -R a-rwx,g+X,u+rwX ${ROOT}/${SANI_WORKDIR}
+ chown -R sanitizer:sanitizer ${ROOT}/${DEST}
+ chmod -R a-rwx,g+rX,u+rX ${ROOT}/${DEST}
+ chown sanitizer:sanitizer ${ROOT}/${SANI_CONFDIR}/anomy.conf
+ chmod 0640 ${ROOT}/${SANI_CONFDIR}/anomy.conf
+ chmod u+x ${ROOT}/${DEST}/bin/*.pl
+ chmod u+x ${ROOT}/${DEST}/testcases/*.sh
+ chmod u+w ${ROOT}/${DEST}/*
+ chmod u+w ${ROOT}/${DEST}/bin
+ chmod u+w ${ROOT}/${DEST}/bin/Anomy
+ chmod u+w ${ROOT}/${DEST}/bin/Anomy/Sanitizer
+ chmod u+w ${ROOT}/${DEST}/testcases
+ chmod u+w ${ROOT}/${DEST}/testcases/results.def
+
+ einfo ""
+ einfo "There is a howto for the integration of sanitizer"
+ einfo "into your (postfix) mail system at"
+ einfo "http://advosys.ca/papers/postfix-filtering.html"
+ einfo "Please find example scripts to be used to integrate sanitizer"
+ einfo "into your (postfix) mail system at"
+ einfo "/usr/share/doc/${PF}/examples"
+ einfo "There is also a png and kivio document about a possible"
+ einfo "e-mail architecture"
+ einfo ""
+
+}
+
+pkg_postrm() {
+ einfo "After unmerging this ebuild, you will have to remove"
+ einfo "created user and group manually. To do so, run:"
+ einfo "userdel -r sanitizer; groupdel sanitizer"
+}
diff --git a/mail-filter/anomy-sanitizer/files/digest-anomy-sanitizer-1.76-r1 b/mail-filter/anomy-sanitizer/files/digest-anomy-sanitizer-1.76-r1
new file mode 100644
index 000000000000..0ff0d0c1b401
--- /dev/null
+++ b/mail-filter/anomy-sanitizer/files/digest-anomy-sanitizer-1.76-r1
@@ -0,0 +1 @@
+MD5 1f53b7da3cc4f3d78631546335ff9dcd anomy-sanitizer-1.76.tar.gz 172722