talimat 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Tanım: Spam belirlemek için bir posta filtresi
  2. # URL: http://search.cpan.org/
  3. # Paketçi: milisarge
  4. # 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
  5. # Grup: güvenlik
  6. isim=spamassassin
  7. surum=3.4.1
  8. devir=1
  9. kaynak=("http://www.us.apache.org/dist/spamassassin/source/Mail-SpamAssassin-$surum.tar.gz"{,.asc}
  10. spamassassin.service
  11. spamassassin-net-dns-01.patch)
  12. derle() {
  13. cd Mail-SpamAssassin-$surum
  14. sed -i t/sa_compile.t \
  15. -e 's#^my $temp_binpath = $Config{sitebinexp};#my $temp_binpath = "/bin/site_perl/";#'
  16. patch -p3 -i $SRC/spamassassin-net-dns-01.patch
  17. PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor \
  18. CONTACT_ADDRESS=root@localhost ENABLE_SSL=yes PERL_TAINT=no
  19. make
  20. make DESTDIR=$PKG install
  21. install -D -m644 $SRC/spamassassin.service $PKG/usr/lib/systemd/system/spamassassin.service
  22. install -d -o 182 -g 182 -m 755 $PKG/var/lib/spamassassin
  23. find $PKG \
  24. -name '*.bs' -or \
  25. -name .packlist -or \
  26. -name perllocal.pod | xargs rm
  27. }