milis/talimatname/genel/s/spamassassin/talimat

36 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Spam belirlemek için bir posta filtresi
2016-02-24 01:27:23 +01:00
# URL: http://search.cpan.org/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: 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
2017-10-28 14:10:23 +02:00
isim=spamassassin
surum=3.4.1
devir=1
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
kaynak=("http://www.us.apache.org/dist/spamassassin/source/Mail-SpamAssassin-$surum.tar.gz"{,.asc}
2016-02-24 01:27:23 +01:00
spamassassin.service
spamassassin-net-dns-01.patch)
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd Mail-SpamAssassin-$surum
2016-02-24 01:27:23 +01:00
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
}