wok annotate proftpd/receipt @ rev 25375

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 30 08:30:06 2022 +0000 (2022-07-30)
parents bc2b9d9bed6f
children 0262035dc1e7
rev   line source
pascal@14768 1 # SliTaz package receipt.
pascal@14768 2
pascal@14768 3 PACKAGE="proftpd"
Hans-G?nter@25149 4 VERSION="1.3.7d"
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
Hans-G?nter@25149 14 SUGGESTED="proftpd-lang"
pascal@14768 15 DEPENDS=""
pascal@14768 16 BUILD_DEPENDS=""
pascal@14768 17
pascal@24459 18 # What is the latest version available today?
pascal@24459 19 current_version()
pascal@24459 20 {
pascal@24614 21 wget -O - https://github.com/proftpd/proftpd/releases 2>/dev/null | \
pascal@24614 22 sed '/archive.*tar/!d;/rc[0-9]/d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24459 23 }
pascal@24459 24
pascal@14768 25 # Rules to configure and make the package.
pascal@14768 26 compile_rules()
pascal@14768 27 {
Hans-G?nter@21703 28 ./configure \
Hans-G?nter@21703 29 --prefix=/usr \
Hans-G?nter@21703 30 --sysconfdir=/etc \
Hans-G?nter@21703 31 --localstatedir=/var \
Hans-G?nter@21703 32 --mandir=/usr/share/man \
Hans-G?nter@25149 33 --enable-nls \
pascal@14768 34 $CONFIGURE_ARGS &&
pascal@14768 35 make &&
Hans-G?nter@25149 36 make install DESTDIR=$DESTDIR
pascal@14768 37 }
pascal@14768 38
pascal@14768 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14768 40 genpkg_rules()
pascal@14768 41 {
Hans-G?nter@21703 42 mkdir -p $fs/usr
Hans-G?nter@21703 43
Hans-G?nter@21703 44 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@21703 45 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21703 46 # cp -a $install/usr/lib/proftpd $fs/usr/lib # empty directory
Hans-G?nter@21703 47 cp -a $install/etc $fs
Hans-G?nter@21703 48
pascal@17238 49 cat >> $fs/etc/proftpd.conf <<EOT
pascal@17238 50
pascal@17238 51 # SSLv3 is unsafe, see CVE-2014-3566 POODLE
pascal@17238 52 # TLSProtocol TLSv1
pascal@17238 53 EOT
pascal@14768 54 }