diff options
author | Patrick Lauer <patrick@gentoo.org> | 2012-07-04 02:35:19 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2012-07-04 02:35:19 +0000 |
commit | 91b6bcdaf2b4db677886120089c17440c7460076 (patch) | |
tree | 849ac021f162190f1bf0974701f0320f50b1bb26 /mail-filter | |
parent | Bump (diff) | |
download | historical-91b6bcdaf2b4db677886120089c17440c7460076.tar.gz historical-91b6bcdaf2b4db677886120089c17440c7460076.tar.bz2 historical-91b6bcdaf2b4db677886120089c17440c7460076.zip |
Bump
Package-Manager: portage-2.2.0_alpha115/cvs/Linux x86_64
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/assp/ChangeLog | 8 | ||||
-rw-r--r-- | mail-filter/assp/Manifest | 4 | ||||
-rw-r--r-- | mail-filter/assp/assp-1.9.3.7.ebuild | 178 |
3 files changed, 187 insertions, 3 deletions
diff --git a/mail-filter/assp/ChangeLog b/mail-filter/assp/ChangeLog index f1109408fb27..bfd1767c6e03 100644 --- a/mail-filter/assp/ChangeLog +++ b/mail-filter/assp/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for mail-filter/assp # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/assp/ChangeLog,v 1.43 2012/06/18 07:16:28 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/assp/ChangeLog,v 1.44 2012/07/04 02:35:19 patrick Exp $ + +*assp-1.9.3.7 (04 Jul 2012) + + 04 Jul 2012; Patrick Lauer <patrick@gentoo.org> +assp-1.9.3.7.ebuild: + Bump *assp-1.9.3.6 (18 Jun 2012) @@ -235,4 +240,3 @@ 18 Nov 2006; William L. Thomson Jr. <wltjr@gentoo.org> ChangeLog: Initial ebuild for ASSP, made possible via user contributions, first Linuxkrn and then ovaron2, thank you. - diff --git a/mail-filter/assp/Manifest b/mail-filter/assp/Manifest index a53fdd3e77c6..6565106db057 100644 --- a/mail-filter/assp/Manifest +++ b/mail-filter/assp/Manifest @@ -6,10 +6,12 @@ DIST ASSP_1.9.1.3-Install.zip 763977 RMD160 bf970857e001178f4540d94bf8b15d702bfe DIST ASSP_1.9.2.0-Install.zip 839038 RMD160 a6bea0de136b970c30f219ff4fb808023319110e SHA1 9dbc77a6164eb43531c173d86124579165a8d6f6 SHA256 65bdad2405011430fe373a8cefcb006d77f1c5d4842fbefd7b81aeb11cd4254e DIST ASSP_1.9.3.5-Install.zip 862341 RMD160 429a1aa539936ccff6f0a1989d66253a1ce46f18 SHA1 183d19f61b16b3a3fffd1690af287910e452c2ca SHA256 28ba8f1d665db883a8364f269251453659617876bc6d889b8c58d7b233f44735 DIST ASSP_1.9.3.6-Install.zip 862688 RMD160 69b89dc3fff58d1a2abe6692f7de58f45809f8c7 SHA1 8bf66e6446da7dc3abcd95bfcd55dbf5bcadbf57 SHA256 ace76aa09a005e863a6b5313dce176501b5929c3103e09b2eafe0131092f9a70 +DIST ASSP_1.9.3.7-Install.zip 863327 RMD160 06702e49fcff6b29a7f90885159711e6239b97ef SHA1 79f0fa2c8e47b74125f4b000877b017b5fa940ee SHA256 28ef08ce26f745ca2ae4d58e06b022a33f8f4cf18eaa2981ea95f5f577975f0d EBUILD assp-1.8.5.9.ebuild 5910 RMD160 2dd6f9249c0b8764e65b73e291aa3448f34412fb SHA1 cf0439458521cd89566cbf2a2d2ace5c856c2175 SHA256 abcd768783c1014d1874994386260884c438f1286a64fd483bc27db085ef75ba EBUILD assp-1.9.1.3.ebuild 5949 RMD160 9bd5ca56855180eb0ed575dc50c7a61e2338a953 SHA1 ef1eb7db965555c9ad3bb9772d0e8ab81e24c645 SHA256 cc8aadc1edb719b04225042165b59821b8c112ee7e46602a50c8d6e46333299b EBUILD assp-1.9.2.0.ebuild 5949 RMD160 dc4d2c0f41e6c6fd031cb710e6fb98c52d7192d4 SHA1 a7696bd9b39fe20ab8fcd0cfee3ab33f53ed18e6 SHA256 d1fe74b1675b18143420c559c6e37b68ab4c1e2ef2b8b128c9836c4b7a192144 EBUILD assp-1.9.3.5.ebuild 5960 RMD160 4c98d436cf5d634f36db9f1575f05905ea05a662 SHA1 ee510671948788057432fb3632e0aa89026990f5 SHA256 694acd9fddda51de69b584543fb775d99c11d9b1ea6db30f8289dae6e3c57efb EBUILD assp-1.9.3.6.ebuild 5960 RMD160 d39fab3256e667d1fc5298ba542b1e6896ff10d6 SHA1 a9d7b67645424c85be9e6834ea7d5164a90ca917 SHA256 5a2641e96fc4cbb899187db07674f52f6964bc7fca1c92cae9b410a49f90ee99 -MISC ChangeLog 8667 RMD160 f5944b346cd0cfc90117f7438c365bc6b14720a4 SHA1 1ae5f68aac6c90a16bae68e80b8ded3db34e4442 SHA256 e6e0556bbfd645d8d0d130997a9865954008bb14a10246e385124132303c14bc +EBUILD assp-1.9.3.7.ebuild 5960 RMD160 40ceccd03b35872c2f6fec52c3b6a439374507b7 SHA1 ef11088849a8e83271382d0ba1df4f971b221986 SHA256 5891ca9eb2a854ed55b8832429f097f634740f1d27677bf91dd31f7b45b99de7 +MISC ChangeLog 8775 RMD160 dde8e681bfe078c604f5e4948a6047fa71758101 SHA1 edea309ea6a9a465d64e900addef0208271e8e59 SHA256 384fcd9e2fd42eab2e7fd9aa15b19b18e8a27f8ce581e1229ccc87b153927e8d MISC metadata.xml 952 RMD160 310ea2cef7b899abea7d00505e0764a8d56487b0 SHA1 6de2b830a0ad77d91cca502f02bdbe5a1ce3c62b SHA256 47420d03c557612984522bc0c831d8a7ceacdeb1fbe78aa835daae8da681324c diff --git a/mail-filter/assp/assp-1.9.3.7.ebuild b/mail-filter/assp/assp-1.9.3.7.ebuild new file mode 100644 index 000000000000..47d1251f114d --- /dev/null +++ b/mail-filter/assp/assp-1.9.3.7.ebuild @@ -0,0 +1,178 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/assp/assp-1.9.3.7.ebuild,v 1.1 2012/07/04 02:35:19 patrick Exp $ + +inherit eutils user + +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" + +# this is a pre-release, so no keywords for now +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 +} |