wok-current annotate spamassassin/receipt @ rev 24462
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 16 21:07:01 2022 +0000 (2022-02-16) |
parents | 3ae2d1f7b186 |
children | d765616e1f3d |
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@22340 | 11 WGET_URL="http://miroir.univ-lorraine.fr/apache//spamassassin/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 } |