add assp ebuild

This commit is contained in:
Jörg Deckert 2014-10-06 14:15:23 +02:00
parent 81ea3a14ac
commit ecf89d4da9
3 changed files with 130 additions and 0 deletions

View File

@ -0,0 +1,3 @@
AUX asspd.init 618 SHA256 7b987fd468e0e63e24ba85b788af364e7d8194f2a595029616ec34452177e6d0 SHA512 4f875b0a9120b20fa60537cf52922f808d0a1c4c495a7dfe696f7a01fa978b608384aeb36f183e56152fdba84153d77be697985a687fd0b1550b324a9602d73d WHIRLPOOL bfa5510fc748822dec61fb41b506bc927abf4837d02c44e08d94bb71cd81f8a840a7a301662ad8898345d2ca9efc034ec9f74d14cad8700a888fc9b209d66d34
DIST ASSP_2.4.3_14258_install.zip 1530651 SHA256 e3c0f850b4c790242787f90bc5c4d49dc9e10eea7c8f1f3de2fe0b7b0b0e3650 SHA512 a852081e767a6c6944e79fc98c3bd21d96683507586fd6368c0962df1ee925307db5744394daca7815d43987b1f2fba425b27ddf40f5f2ad48828c907a8cf776 WHIRLPOOL f76b03a41aaf450717199fc46b74d05f761d58a942944945ee0e7c70b8ada8ffa87db2158ccbcec6de04a3ae6ff336c08b34143a1f126bc2cf933f08e1448398
EBUILD assp-2.4.3-r14258.ebuild 2650 SHA256 367ec20848fbfc27eda439b5abc6b85f4974f83ce0d361807f5766535f15528c SHA512 84a8a7f2e3b983a0e005e616a2ccb1dfeeb2399ccad646573dc40a8eb7fd75dedbbaf2f5006d8b2c595ab51e5b87bd0862ed78dc5709ddf168924d526a19aef2 WHIRLPOOL 34be431c5ec3c40e1413612cfa31b9150de20500ef206f1e9e05dcb32bddb4493df1d81a312514c112763cc7c03562f04c5683c92d8c3e2854e765814eb475ef

View File

@ -0,0 +1,105 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/assp/assp-1.9.8.13030.ebuild,v 1.3 2014/08/10 21:15:28 slyfox Exp $
EAPI=5
inherit eutils user
DESCRIPTION="Anti-Spam SMTP Proxy written in Perl"
HOMEPAGE="http://assp.sourceforge.net/"
MY_PN=ASSP_${PV}_${PR/r/}_install
SRC_URI="mirror://sourceforge/project/${PN}/ASSP%20V2%20multithreading/${PV}%20${PR/r/}/${MY_PN}.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="clamav ipv6 ldap sasl snmp spf srs ssl syslog"
DEPEND="app-arch/unzip"
RDEPEND="dev-lang/perl[ithreads]
dev-perl/BerkeleyDB
dev-perl/Convert-TNEF
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/Mail-DKIM
dev-perl/libwww-perl
dev-perl/mime-construct
dev-perl/Net-CIDR-Lite
dev-perl/Schedule-Cron-Events
dev-perl/Sys-MemInfo
dev-perl/Text-Unidecode
dev-perl/Unicode-LineBreak
dev-perl/Digest-SHA1
virtual/perl-Digest-MD5
virtual/perl-Time-HiRes
clamav? ( dev-perl/File-Scan-ClamAV )
ipv6? ( dev-perl/IO-Socket-INET6 )
sasl? ( dev-perl/Authen-SASL )
snmp? ( dev-perl/Net-SNMP )
spf? ( dev-perl/Mail-SPF-Query )
srs? ( dev-perl/Mail-SRS )
ssl? ( dev-perl/IO-Socket-SSL )
syslog? ( virtual/perl-Sys-Syslog )
ldap? ( dev-perl/perl-ldap )"
S=${WORKDIR}/${PN}
pkg_setup() {
enewgroup assp
enewuser assp -1 -1 /dev/null assp
}
src_unpack() {
unpack ${A}
cd "${S}"
## local FILES="
## assp.pl
## assp-monitor.pl
## assp_pop3.pl
## "
## # just being safe
## for file in ${FILES}; do
## edos2unix ${file}
## done
## # 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() {
dodir /opt/assp
cp -r . ${D}/opt/assp
fowners assp:assp -R /opt/assp
fperms 755 /opt/assp/assp-monitor.pl /opt/assp/assp.pl /opt/assp/assp_pop3.pl
# Install the init.d script to listen
newinitd "${FILESDIR}/asspd.init" asspd
}
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
}

View File

@ -0,0 +1,22 @@
#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/assp/files/asspd.init,v 1.2 2010/08/26 15:22:19 patrick Exp $
depend() {
need net
}
start() {
ebegin "Starting ASSP"
start-stop-daemon -b --start --quiet --startas /opt/assp/assp.pl \
--pidfile /opt/assp/pid -- /opt/assp/
2<&1 > /dev/null
eend $?
}
stop() {
ebegin "Stopping ASSP"
start-stop-daemon --stop --quiet --pidfile /opt/assp/pid
eend $?
}