wok-current annotate spamassassin/receipt @ rev 25376
updated tzdata (2019c -> 2022a)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 10:43:02 2022 +0100 (2022-07-30) |
parents | 934055de50e2 |
children |
rev | line source |
---|---|
pascal@22340 | 1 # SliTaz package receipt. |
pascal@22340 | 2 |
pascal@22340 | 3 PACKAGE="spamassassin" |
pascal@23836 | 4 VERSION="3.4.4" |
pascal@22340 | 5 CATEGORY="network" |
pascal@22340 | 6 SHORT_DESC="anti-spam platform to classify email and block spam" |
pascal@22340 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@22340 | 8 LICENSE="Apache" |
pascal@22340 | 9 TARBALL="Mail-SpamAssassin-$VERSION.tar.gz" |
pascal@22340 | 10 WEB_SITE="https://spamassassin.apache.org/" |
pascal@24979 | 11 WGET_URL="https://archive.apache.org/dist/$PACKAGE/source/$TARBALL" |
pascal@22340 | 12 CONFIG_FILES="/etc/mail/spamassassin" |
pascal@22340 | 13 |
pascal@22340 | 14 DEPENDS="perl-net-dns perl-html-parser perl-netaddr-ip" |
pascal@22340 | 15 BUILD_DEPENDS="perl-net-dns perl-html-parser perl-netaddr-ip" |
pascal@22340 | 16 |
pascal@24462 | 17 # What is the latest version available today? |
pascal@24462 | 18 current_version() |
pascal@24462 | 19 { |
pascal@24462 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24462 | 21 sed "/latest/d;/Mail-SpamAssassin-[0-9]/!d;/tar/!d;s|.*Mail-SpamAssassin-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24462 | 22 } |
pascal@24462 | 23 |
pascal@22340 | 24 # Rules to configure and make the package. |
pascal@22340 | 25 compile_rules() |
pascal@22340 | 26 { |
pascal@22340 | 27 echo -n | perl Makefile.PL && |
pascal@22340 | 28 make && |
pascal@22340 | 29 make DESTDIR=$DESTDIR install |
pascal@22340 | 30 } |
pascal@22340 | 31 |
pascal@22340 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@22340 | 33 genpkg_rules() |
pascal@22340 | 34 { |
pascal@22340 | 35 cp -a $install/* $fs/ |
pascal@22340 | 36 } |