summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cummings <mcummings@gentoo.org>2005-05-14 01:47:34 +0000
committerMichael Cummings <mcummings@gentoo.org>2005-05-14 01:47:34 +0000
commit28522cf16f2e4627077c2bdd86bf3bc0ebe9ac05 (patch)
tree43771ffca835c7eb242fe8e55150da4e4c252b40 /mail-filter/anomy-sanitizer
parentbug 55662 (diff)
downloadhistorical-28522cf16f2e4627077c2bdd86bf3bc0ebe9ac05.tar.gz
historical-28522cf16f2e4627077c2bdd86bf3bc0ebe9ac05.tar.bz2
historical-28522cf16f2e4627077c2bdd86bf3bc0ebe9ac05.zip
Version bump, bug 78001
Package-Manager: portage-2.0.51.20-r4
Diffstat (limited to 'mail-filter/anomy-sanitizer')
-rw-r--r--mail-filter/anomy-sanitizer/ChangeLog10
-rw-r--r--mail-filter/anomy-sanitizer/Manifest20
-rw-r--r--mail-filter/anomy-sanitizer/anomy-sanitizer-1.67.ebuild4
-rw-r--r--mail-filter/anomy-sanitizer/anomy-sanitizer-1.70.ebuild107
-rw-r--r--mail-filter/anomy-sanitizer/files/digest-anomy-sanitizer-1.701
5 files changed, 129 insertions, 13 deletions
diff --git a/mail-filter/anomy-sanitizer/ChangeLog b/mail-filter/anomy-sanitizer/ChangeLog
index 4a29f63daf0d..0b13e0459387 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-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/anomy-sanitizer/ChangeLog,v 1.6 2004/09/25 21:02:13 slarti Exp $
+# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/anomy-sanitizer/ChangeLog,v 1.7 2005/05/14 01:47:34 mcummings Exp $
+
+*anomy-sanitizer-1.70 (13 May 2005)
+
+ 13 May 2005; Michael Cummings <mcummings@gentoo.org>
+ +anomy-sanitizer-1.70.ebuild:
+ Version bump, bug 78001
25 Sep 2004; Tom Martin <slarti@gentoo.org> anomy-sanitizer-1.67.ebuild:
Marked ~amd64.
diff --git a/mail-filter/anomy-sanitizer/Manifest b/mail-filter/anomy-sanitizer/Manifest
index f820e4bfd0f2..7a46427bf0b7 100644
--- a/mail-filter/anomy-sanitizer/Manifest
+++ b/mail-filter/anomy-sanitizer/Manifest
@@ -1,19 +1,21 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 7dfd3f325fe801b5e6596d493b77b78e ChangeLog 1313
+MD5 5462c8f3c4230db071f19a1a466336ad ChangeLog 1467
+MD5 b1df0664ae503662dfc4baa3cced81c8 anomy-sanitizer-1.67.ebuild 2951
MD5 e2d8f1bf77722def1dd432e26455c818 metadata.xml 305
-MD5 d40d6e09bdb2ccdb7adc56a5c2cc7b6b anomy-sanitizer-1.67.ebuild 2948
-MD5 e516d95d8691b03784d4868f0d4dc9ac files/sample_e-mail-architektur.flw 7001
+MD5 e4dcd849410c1266b0702235e08ce2ef anomy-sanitizer-1.70.ebuild 2951
+MD5 9d08cc149086d19bbf4d2f7f0d17e105 files/anomy.conf 6714
MD5 bfbe48e53cc13347c50082c700ca1981 files/digest-anomy-sanitizer-1.67 72
MD5 28080935c9282efa29386151ab7036ab files/sample2_mailfilter.sh 1898
-MD5 9d08cc149086d19bbf4d2f7f0d17e105 files/anomy.conf 6714
-MD5 021c6f48e4dd016e195dfe39afd39522 files/sample_mailfiler.sh 1725
MD5 ea517247fe8f9611e41361de67d49d52 files/sample_e-mail-architecture.png 15409
+MD5 e516d95d8691b03784d4868f0d4dc9ac files/sample_e-mail-architektur.flw 7001
+MD5 021c6f48e4dd016e195dfe39afd39522 files/sample_mailfiler.sh 1725
+MD5 ca5a2e524fc83140e046ae2c0c8f0e3e files/digest-anomy-sanitizer-1.70 72
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
+Version: GnuPG v1.4.0 (GNU/Linux)
-iD8DBQFBVdz1CHk4+ZoBpvsRAj6TAJ9C/jZXP/4rDDd7vMDL6AQ/eFpt8QCfelF8
-FqOBOwIqBG3T0BfpjE4kevk=
-=/OyK
+iD8DBQFChVi/tG5z4I8BtQoRAn9pAJ43q+ZOrJ71fWQHDxCJ4e65hMrlgwCdEFbK
+uQNf72js4hYnmEGSeLqPmys=
+=yXu4
-----END PGP SIGNATURE-----
diff --git a/mail-filter/anomy-sanitizer/anomy-sanitizer-1.67.ebuild b/mail-filter/anomy-sanitizer/anomy-sanitizer-1.67.ebuild
index c298b130f9da..5cc5ae67a636 100644
--- a/mail-filter/anomy-sanitizer/anomy-sanitizer-1.67.ebuild
+++ b/mail-filter/anomy-sanitizer/anomy-sanitizer-1.67.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 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.67.ebuild,v 1.6 2004/09/25 21:02:13 slarti Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/anomy-sanitizer/anomy-sanitizer-1.67.ebuild,v 1.7 2005/05/14 01:47:34 mcummings Exp $
DESCRIPTION="Perl based e-mail filtering tool, sensitive to html tags, mime types and attachments"
HOMEPAGE="http://mailtools.anomy.net/"
diff --git a/mail-filter/anomy-sanitizer/anomy-sanitizer-1.70.ebuild b/mail-filter/anomy-sanitizer/anomy-sanitizer-1.70.ebuild
new file mode 100644
index 000000000000..120b8836acd1
--- /dev/null
+++ b/mail-filter/anomy-sanitizer/anomy-sanitizer-1.70.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2005 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.70.ebuild,v 1.1 2005/05/14 01:47:34 mcummings Exp $
+
+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="~x86 ~ppc ~amd64"
+IUSE=""
+
+RDEPEND="dev-lang/perl
+ >=dev-perl/MIME-Base64-2.12-r2
+ >=dev-perl/Mail-Audit-2.1-r1
+ virtual/mta"
+DEPEND="${RDEPEND}"
+
+
+DEST="/usr/share/${PN}"
+SANI_WORKDIR="/var/spool/sanitizer"
+
+
+src_install() {
+ keepdir ${SANI_WORKDIR}
+ dodir ${DEST}
+ insinto ${DEST}
+
+# generate lists for doins
+ _list="anomy anomy/bin anomy/bin/Anomy anomy/bin/Anomy/Sanitizer anomy/contrib anomy/testcases anomy/testcases/results.def"
+
+ for i in $_list; do
+ _di=`echo $i | sed -e "s/^anomy//g; s/^\///g"`
+ insinto ${DEST}/$_di
+
+ _sublist=`find ${WORKDIR}/$i/* -type f -maxdepth 0`
+ for l in $_sublist; do
+ echo
+ doins $l
+ done
+ done
+
+ insinto ${DEST}
+ doins ${FILESDIR}/*.conf
+ doins ${FILESDIR}/*.sh
+ doins ${FILESDIR}/*.png
+ doins ${FILESDIR}/*.flw
+
+ keepdir /etc/mail/anomy-sanitizer
+ dosym ${DEST}/anomy.conf /etc/mail/anomy-sanitizer/anomy.conf
+}
+
+pkg_postinst() {
+ if [ -z "`grep ^sanitizer: ${ROOT}/etc/group`" ]; then
+ groupadd sanitizer
+ fi
+
+ if [ -z "`grep ^sanitizer: ${ROOT}/etc/shadow`" ]; then
+ useradd sanitizer -d ${SANI_WORKDIR} -g sanitizer -s /bin/false
+ fi
+
+ if [ -z "`grep ^sanitizer:.*sanitizer /etc/group`" ]; then
+ usermod -G sanitizer sanitizer
+ fi
+
+ 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}
+ chmod u+x ${ROOT}/${DEST}/bin/*.pl
+ chmod u+x ${ROOT}/${DEST}/contrib/*.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}/contrib
+ chmod u+w ${ROOT}/${DEST}/testcases
+ chmod u+w ${ROOT}/${DEST}/testcases/results.def
+
+ echo ""
+ echo ""
+ einfo "There is a howto for the integration of sanitizer"
+ einfo "into your (postfix) mail system at"
+ einfo "\thttp://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 "\t${ROOT}/${DEST}"
+ einfo "There is also a png and kivio document about a possible"
+ einfo "e-mail architecture"
+ echo ""
+ echo ""
+}
+
+pkg_postrm() {
+ rm -f ${ROOT}/${DEST}/anomy.conf
+
+ # remove groups and users
+ if [ -n "`grep ^sanitizer: ${ROOT}/etc/group`" ]; then
+ groupdel sanitizer
+ fi
+
+ if [ -n "`grep ^sanitizer: ${ROOT}/etc/shadow`" ]; then
+ userdel -r sanitizer
+ fi
+}
diff --git a/mail-filter/anomy-sanitizer/files/digest-anomy-sanitizer-1.70 b/mail-filter/anomy-sanitizer/files/digest-anomy-sanitizer-1.70
new file mode 100644
index 000000000000..f259841c11c3
--- /dev/null
+++ b/mail-filter/anomy-sanitizer/files/digest-anomy-sanitizer-1.70
@@ -0,0 +1 @@
+MD5 457de36b03828320f29e7df7e102420d anomy-sanitizer-1.70.tar.gz 155322