unitas/mail-filter/assp/assp-2.4.3-r14258.ebuild

103 lines
2.6 KiB
Bash
Raw Normal View History

2014-10-06 14:15:23 +02:00
# 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"
2014-10-29 14:25:28 +01:00
IUSE="berkdb clamav ipv6 ldap mysql sasl snmp spf srs ssl syslog"
2014-10-06 14:15:23 +02:00
DEPEND="app-arch/unzip"
RDEPEND="dev-lang/perl[ithreads]
2014-10-29 14:25:28 +01:00
dev-perl/libwww-perl
dev-perl/Archive-Zip
2014-10-06 14:15:23 +02:00
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
2014-10-29 14:25:28 +01:00
dev-perl/Lingua-Stem-Snowball
2014-10-06 14:15:23 +02:00
dev-perl/Mail-DKIM
dev-perl/mime-construct
2014-10-29 14:25:28 +01:00
dev-perl/NetAddr-IP
2014-10-06 14:15:23 +02:00
dev-perl/Net-CIDR-Lite
2014-10-29 14:25:28 +01:00
dev-perl/Regexp-Optimizer
dev-perl/Schedule-Cron
dev-perl/Sys-CpuAffinity
2014-10-06 14:15:23 +02:00
dev-perl/Sys-MemInfo
dev-perl/Text-Unidecode
2014-10-29 14:25:28 +01:00
dev-perl/Thread-State
dev-perl/Tie-DBI
2014-10-06 14:15:23 +02:00
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 )
2014-10-29 14:25:28 +01:00
spf? ( dev-perl/Mail-SPF-Query
dev-perl/Mail-SPF )
2014-10-06 14:15:23 +02:00
srs? ( dev-perl/Mail-SRS )
2014-10-29 14:25:28 +01:00
ssl? ( dev-perl/IO-Socket-SSL
dev-perl/Net-SSLeay
dev-perl/Net-SMTP-SSL )
berkdb? ( sys-libs/db:6.0 )
mysql? ( virtual/mysql )
2014-10-06 14:15:23 +02:00
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}"
2014-10-14 11:49:13 +02:00
mkdir quarantine
2014-10-06 14:15:23 +02:00
}
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
}