wok annotate proftpd/receipt @ rev 24459

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 16 11:53:30 2022 +0000 (2022-02-16)
parents 76c6aefc6ac6
children bc2b9d9bed6f
rev   line source
pascal@14768 1 # SliTaz package receipt.
pascal@14768 2
pascal@14768 3 PACKAGE="proftpd"
mojo@23842 4 VERSION="1.3.6d"
pascal@14768 5 CATEGORY="network"
pascal@14768 6 SHORT_DESC="Highly configurable FTP server."
pascal@14768 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
Hans-G?nter@21703 9 WEB_SITE="http://www.proftpd.org/"
Hans-G?nter@21703 10
pascal@14768 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@14768 12 WGET_URL="ftp://ftp.proftpd.org/distrib/source/$TARBALL"
pascal@14768 13
pascal@14768 14 DEPENDS=""
pascal@14768 15 BUILD_DEPENDS=""
pascal@14768 16
pascal@24459 17 # What is the latest version available today?
pascal@24459 18 current_version()
pascal@24459 19 {
pascal@24459 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24459 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;/[0-9]rc[0-9]/d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24459 22 }
pascal@24459 23
pascal@14768 24 # Rules to configure and make the package.
pascal@14768 25 compile_rules()
pascal@14768 26 {
Hans-G?nter@21703 27 ./configure \
Hans-G?nter@21703 28 --prefix=/usr \
Hans-G?nter@21703 29 --sysconfdir=/etc \
Hans-G?nter@21703 30 --localstatedir=/var \
Hans-G?nter@21703 31 --mandir=/usr/share/man \
pascal@14768 32 $CONFIGURE_ARGS &&
pascal@14768 33 make &&
pascal@14768 34 make DESTDIR=$DESTDIR install
pascal@14768 35 }
pascal@14768 36
pascal@14768 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14768 38 genpkg_rules()
pascal@14768 39 {
Hans-G?nter@21703 40 mkdir -p $fs/usr
Hans-G?nter@21703 41
Hans-G?nter@21703 42 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@21703 43 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21703 44 # cp -a $install/usr/lib/proftpd $fs/usr/lib # empty directory
Hans-G?nter@21703 45 cp -a $install/etc $fs
Hans-G?nter@21703 46
pascal@17238 47 cat >> $fs/etc/proftpd.conf <<EOT
pascal@17238 48
pascal@17238 49 # SSLv3 is unsafe, see CVE-2014-3566 POODLE
pascal@17238 50 # TLSProtocol TLSv1
pascal@17238 51 EOT
pascal@14768 52 }