milis/talimatname/genel/s/spamassassin/talimat

36 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-04-17 14:38:59 +02:00
# Description: Spam belirlemek için bir posta filtresi
2016-02-24 01:27:23 +01:00
# URL: http://search.cpan.org/
2017-04-17 14:38:59 +02:00
# Packager: milisarge
# Depends on: openssl zlib re2c perl-net-dns perl-io-socket-ssl perl-libwww perl-mail-spf perl-http-message perl-net-http perl-io-socket-inet6 perl-mail-dkim perl-crypt-ssleay razor perl-dbi
2016-02-24 01:27:23 +01:00
name=spamassassin
version=3.4.1
release=1
source=("http://www.us.apache.org/dist/spamassassin/source/Mail-SpamAssassin-$version.tar.gz"{,.asc}
spamassassin.service
spamassassin-net-dns-01.patch)
build() {
cd Mail-SpamAssassin-$version
sed -i t/sa_compile.t \
-e 's#^my $temp_binpath = $Config{sitebinexp};#my $temp_binpath = "/bin/site_perl/";#'
patch -p3 -i $SRC/spamassassin-net-dns-01.patch
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor \
CONTACT_ADDRESS=root@localhost ENABLE_SSL=yes PERL_TAINT=no
make
make DESTDIR=$PKG install
install -D -m644 $SRC/spamassassin.service $PKG/usr/lib/systemd/system/spamassassin.service
install -d -o 182 -g 182 -m 755 $PKG/var/lib/spamassassin
find $PKG \
-name '*.bs' -or \
-name .packlist -or \
-name perllocal.pod | xargs rm
}