diff options
author | Patrick Lauer <patrick@gentoo.org> | 2011-07-28 21:20:44 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2011-07-28 21:20:44 +0000 |
commit | 18e8a2d0e508bd6b3bcdc94c64da3e4f7a7ab5fd (patch) | |
tree | baa8648791359f9a04c9b24f9f4c80fd33c408a7 /mail-filter | |
parent | Cull old versions (diff) | |
download | historical-18e8a2d0e508bd6b3bcdc94c64da3e4f7a7ab5fd.tar.gz historical-18e8a2d0e508bd6b3bcdc94c64da3e4f7a7ab5fd.tar.bz2 historical-18e8a2d0e508bd6b3bcdc94c64da3e4f7a7ab5fd.zip |
Bump for #363973
Package-Manager: portage-2.2.0_alpha47/cvs/Linux x86_64
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/assp/ChangeLog | 7 | ||||
-rw-r--r-- | mail-filter/assp/Manifest | 4 | ||||
-rw-r--r-- | mail-filter/assp/assp-1.8.5.9.ebuild | 177 |
3 files changed, 186 insertions, 2 deletions
diff --git a/mail-filter/assp/ChangeLog b/mail-filter/assp/ChangeLog index b46f8920d00e..6ac2a556cd7a 100644 --- a/mail-filter/assp/ChangeLog +++ b/mail-filter/assp/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for mail-filter/assp # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/assp/ChangeLog,v 1.34 2011/03/04 15:37:49 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/assp/ChangeLog,v 1.35 2011/07/28 21:20:44 patrick Exp $ + +*assp-1.8.5.9 (28 Jul 2011) + + 28 Jul 2011; Patrick Lauer <patrick@gentoo.org> +assp-1.8.5.9.ebuild: + Bump for #363973 *assp-1.7.5.7-r1 (04 Mar 2011) diff --git a/mail-filter/assp/Manifest b/mail-filter/assp/Manifest index 7ac54025b5bb..0b92ef1effcd 100644 --- a/mail-filter/assp/Manifest +++ b/mail-filter/assp/Manifest @@ -5,11 +5,13 @@ DIST ASSP_1.2.6-Install.zip 245745 RMD160 35b7808ef6cd8819e0c29d147c42fc409d69e5 DIST ASSP_1.3.3.8-Install.zip 332926 RMD160 823307c69887aaaaf0440af637c186d1ac147a33 SHA1 586f149e4f8bce36039ee874e8e4e4cdc16549a7 SHA256 48a84aa63cbcff99833710c7ccbef69933558e98368982456f5ec8d201fad3ba DIST ASSP_1.6.5.0-Install.zip 549619 RMD160 a86e2fbff5e98ba9b309bbd86eae849e4dc2934d SHA1 00a8cc04f389262b931be75a348b1c8ba1a8331f SHA256 ac451d1d8802321965013b29a22c684921be20f528ed988e5e7190580ceee389 DIST ASSP_1.7.5.7-Install.zip 634483 RMD160 496896e28b759b000d3577d40a128d55b96c45ec SHA1 b9ca3cd22b2dbd0ac5b95e7fe181ba65f5771b24 SHA256 e1a12cd1bf0196d9eff8b60824c5f6dd06afa4570320ad484f578634980a1fed +DIST ASSP_1.8.5.9-Install.zip 750552 RMD160 8b773241422d04ea34acd2b995cf7b8049c22326 SHA1 d99c2c24745efc3a6ab3e8abf70cadd26b61a89d SHA256 f468d8cd0003280ff089efd438c0516f928f772fd9cc0e6d522866a21492ccb1 EBUILD assp-1.2.6-r3.ebuild 2794 RMD160 3611fb165bac6b18c47dc386f24186ae1824c6dd SHA1 abc97a2d33328dda7fd9be91e96953c0a6a3030b SHA256 f1f3dbb0af44f4e9366399f32e5cb5503cb06e5bb968426f1ebd7df9798779e8 EBUILD assp-1.3.3.8-r1.ebuild 5839 RMD160 b3e18f9efebcac2a114f8b731962e2a23ebb5aa2 SHA1 ef8d8da3db4ae3b29632ad56211a9df846cc67e5 SHA256 7afee10a65a3e6e7a5fe41a862f796b35da79a1b99b847b810fdfac1ac2ff2b4 EBUILD assp-1.3.3.8-r2.ebuild 6122 RMD160 f82c3aa5abe413e2539f5cd87c494531949a8d0f SHA1 efc6c19519e830eb9ab0ce751eeeb682be1568c7 SHA256 92604bc9f29e273d50dc3f82df71dbb7686bea0e022ed79aa1d8beec4d1507ee EBUILD assp-1.6.5.0.ebuild 5933 RMD160 166a66eb36f908ab03a726618990d1bb80d10c4b SHA1 7ac3dff951b976aa9c01742c51135ae85674b0cd SHA256 8aebdfa9bfe997798cd8321e649358ed51c03ce783b824c2b4c0e2e69c1eef19 EBUILD assp-1.7.5.7-r1.ebuild 6007 RMD160 45bd9d4886bdaff1fe9a8e415ba0cd2538cc9af0 SHA1 51a3e1694d425ba3834546ea5b48d91c8d6bfadc SHA256 22eb81542fbd37ac2bb26a536279d56fecd4e00f261db0ace01bb9ac13d04ff2 EBUILD assp-1.7.5.7.ebuild 5902 RMD160 600c6e3df53f99e73ff43c1ddf24bb1bbf6e3ce5 SHA1 9a5bd12e82ff681a129d7961f66b3b32d8e8669e SHA256 3e036123c52a6729e7f1d23681d13f10893472cf3aa8ba56597a03890dabacb5 -MISC ChangeLog 7400 RMD160 2f99e43072da45c2bffa70d9a14fd0bf669eedb7 SHA1 1e7f42f3901fb0ce0fa21eb3c4e2eec183458788 SHA256 36b4b89bfad4661725e9b9505cd99082e90043ca3adcdcea6ec5542cf1147544 +EBUILD assp-1.8.5.9.ebuild 5907 RMD160 e99d6af33d49f9e65b6100cf5919ee8d32f2ba3e SHA1 88775aa4938247ac9080416d2ee2237f9e42120e SHA256 569e8eaaef516b7a11ebe2f46aeba0c72d4a916a7492ff5e8a58225f9b422d38 +MISC ChangeLog 7521 RMD160 7b2bde6c5b0a03125c9468e7d9df3c20515994e1 SHA1 0b8d00412ebdd2030121bd310dd2a5d87b9d7a01 SHA256 a0a644b4362b7a08882112462b72ce84fc118968b0be1b0932a0dd7c188f7a7d MISC metadata.xml 974 RMD160 4b43d57c2c330154ea18200b86fe10b1c599bbee SHA1 514d7d7445b7be6a0428b906d0a6e38cda26be7a SHA256 15c0f5305f968eb6a24955750a74d154501177cc976354e42bb4993ab6bb4ac1 diff --git a/mail-filter/assp/assp-1.8.5.9.ebuild b/mail-filter/assp/assp-1.8.5.9.ebuild new file mode 100644 index 000000000000..e898bfe5f2b0 --- /dev/null +++ b/mail-filter/assp/assp-1.8.5.9.ebuild @@ -0,0 +1,177 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/assp/assp-1.8.5.9.ebuild,v 1.1 2011/07/28 21:20:44 patrick Exp $ + +inherit eutils + +DESCRIPTION="Anti-Spam SMTP Proxy written in Perl." +HOMEPAGE="http://assp.sourceforge.net/" +MY_PN=ASSP_${PV}-Install +SRC_URI="mirror://sourceforge/${PN}/${MY_PN}.zip" +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +IUSE="ipv6 ldap sasl spf srs ssl syslog" + +DEPEND="app-arch/unzip" + +RDEPEND="dev-lang/perl + dev-perl/Net-DNS + dev-perl/File-ReadBackwards + virtual/perl-IO-Compress + dev-perl/Email-MIME + dev-perl/Email-Send + dev-perl/Email-Valid + dev-perl/libwww-perl + dev-perl/mime-construct + dev-perl/Net-CIDR-Lite + virtual/perl-Digest-MD5 + virtual/perl-Time-HiRes + ipv6? ( dev-perl/IO-Socket-INET6 ) + sasl? ( dev-perl/Authen-SASL ) + spf? ( dev-perl/Mail-SPF ) + srs? ( dev-perl/Mail-SRS ) + ssl? ( dev-perl/IO-Socket-SSL ) + syslog? ( perl-core/Sys-Syslog ) + ldap? ( dev-perl/perl-ldap )" + +S=${WORKDIR}/${MY_PN}/ASSP + +pkg_setup() { + enewgroup assp + enewuser assp -1 -1 /dev/null assp +} + +src_unpack() { + unpack ${A} + cd "${S}" + + local FILES=" + assp.pl + rebuildspamdb.pl + stat.pl + " + # just being safe + for file in ${FILES}; do + edos2unix ${file} + done + + # portable changes via sed vs patch + sed -i -e 's|file:files/|file:/etc/assp/|' \ + -e 's|$base/images|/usr/share/assp/images|' \ + -e 's|logs/maillog.txt|/var/log/assp/maillog.txt|' \ + -e 's|PID File'\'',40,textinput,'\''pid'\''|PID File'\'',40,textinput,'\''asspd.pid'\''|' \ + -e 's|Daemon\*\*'\'',0,checkbox,0|Daemon\*\*'\'',0,checkbox,1|' \ + -e 's|UID\*\*'\'',20,textinput,'\'''\''|UID\*\*'\'',20,textinput,'\''assp'\''|' \ + -e 's|GID\*\*'\'',20,textinput,'\'''\''|GID\*\*'\'',20,textinput,'\''assp'\''|' \ + -e 's|popFileEditor'\('\\'\''pb/pbdb\.\([^\.]*\)\.db\\'\'',|popFileEditor(\\'\''/var/lib/assp/pb/pbdb.\1.db\\'\'',|g' \ + -e 's|$base/assp.cfg|/etc/assp/assp.cfg|g' \ + -e 's|$base/$pidfile|/var/run/assp/asspd.pid|' \ + -e 's|mkdir "$base/$logdir",0700 if $logdir;||' \ + -e 's|mkdir "$base/$logdir",0700;||' \ + -e 's|$base/$logfile|$logfile|' \ + -e 's|$base/$logdir|$logdir|' \ + -e 's|"maillog.log"|"/var/log/assp/maillog.log"|' \ + -e 's|-d "$base/logs" or mkdir "$base/logs",0700;||' \ + -e 's|-d "$base/notes" or mkdir "$base/notes",0700;||' \ + -e 's|-d "$base/docs" or mkdir "$base/docs",0777;||' \ + -e 's|$base/$archivelogfile|$archivelogfile|' \ + -e 's|"$base/$file",$sub,"$this|"/etc/assp/$file",$sub,"$this|' \ + -e 's|"$base/$file",'\'''\'',"$this|"/etc/assp/$file",'\'''\'',"$this|' \ + -e 's|my $fil=$1; $fil="$base/$fil" if $fil!~/^\\Q$base\\E/i;|my $fil=$1;|' \ + -e 's|$fil="$base/$fil" if $fil!~/^\\Q$base\\E/i;|$fil="/etc/assp/$fil" if $fil!~/^\\/etc\\/assp\\/\|\\/var\\/lib\\/assp\\/\/i;|' \ + -e 's|$fil="$base/$fil" if $fil!~/^((\[a-z\]:)?\[\\/\\\\\]\|\\Q$base\\E)/;||' \ + -e 's|if ($fil !~ /^\\Q$base\\E/i) {|if ($fil !~ /^\\/usr\\/share\\/assp\\//i) {|' \ + -e 's|$fil = "$base/$fil";|$fil = "/usr/share/assp/$fil";|' \ + -e 's|Q$base\\E|Q\\/etc\\/assp\\/\\E|' \ + -e 's|$fil="$base/$fil"|$fil="/etc/assp/$fil"|' \ + -e 's|$base/$bf|/etc/assp/$bf|g' \ + -e 's|rebuildrun.txt|/var/lib/assp/rebuildrun.txt|' \ + assp.pl || die + + # sed rebuildspamdb.pl + sed -i -e 's|assp.cfg|/etc/assp/assp.cfg|' \ + -e 's|} && "$Config{base}/$Config{logfile}" \|\| '\''maillog.txt'\'';|};|' \ + -e 's|tmaxtick('\''rebuild'\'');|tmaxtick('\''/var/lib/assp/rebuild'\'');|' \ + -e 's|goodhosts|/var/lib/assp/goodhosts|g' \ + -e 's|rebuildrun.txt|/var/lib/assp/rebuildrun.txt|' \ + -e 's|$base/$DropList|$DropList|' \ + -e 's|&fixPath($base) . "/|"|' \ + -e 's|= "/var/lib/assp/rebuildrun.txt";|= "/var/lib/assp/rebuildrun.txt";\n $RebuildLog = "/var/lib/assp/rebuild.log";|' \ + -e 's|"$base//|"/|g' \ + rebuildspamdb.pl || die + + # remove windows stuff + rm "${S}/addservice.pl" || die "Could not remove ${S}/addservice.pl" + rm -f "${S}/Win32-quickstart-guide.txt" || die "Could not remove ${S}/Win32-quickstart-guide.txt" +} + +src_install() { + # Configuration directory + dodir /etc/assp/notes + + insinto /etc/assp + # Installs files that are used by assp for black/gray lists, + # and domain country lookup. To be changed by admin as needed. + doins files/*.txt || die + + fowners assp:assp /etc/assp -R + fperms 770 /etc/assp /etc/assp/notes + + # Setup directories for mail to be stored for filter + keepdir /var/lib/assp/spam /var/lib/assp/notspam + keepdir /var/lib/assp/errors/spam /var/lib/assp/errors/notspam + + # Logs directory + keepdir /var/log/assp + fowners assp:assp -R /var/log/assp + fperms 770 /var/log/assp + + # Install the app + exeinto /usr/share/assp + doexe *.pl *.sh || die + insinto /usr/share/assp + doins -r images/ || die + + # Lock down the files/data + fowners assp:assp -R /usr/share/assp + fperms 770 /usr/share/assp + + # Data storage + fowners assp:assp -R /var/lib/assp + fperms 770 /var/lib/assp + + # PID directory + dodir /var/run/assp + keepdir /var/run/assp + fowners assp:assp -R /var/run/assp + fperms 770 /var/run/assp + + # Install the init.d script to listen + newinitd "${FILESDIR}/asspd.init" asspd + + dohtml docs/*.htm || die "Failed to install html docs" +} + +pkg_postinst() { + elog + elog "To configure ASSP, start /etc/init.d/asspd then point" + elog "your browser to http://localhost:55555" + elog "Username: admin Password: nospam4me (CHANGE ASAP!)" + elog + elog "File permissions have been set to use assp:assp" + elog "with mode 770 on directories. When you configure" + elog "ASSP, make sure and use the user assp." + elog + elog "Don't change any path related options." + elog + elog "See the on-line docs for a complete tutorial." + elog "http://assp.sourceforge.net/docs.html" + elog + elog "If upgrading, please update your old config to set both" + elog "redre.txt and nodelay.txt path of /etc/assp. There are" + elog "also many new options that you should review." + elog +} |