wok view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="proftpd"
4 VERSION="1.3.7d"
5 CATEGORY="network"
6 SHORT_DESC="Highly configurable FTP server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.proftpd.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="ftp://ftp.proftpd.org/distrib/source/$TARBALL"
14 SUGGESTED="proftpd-lang"
15 DEPENDS=""
16 BUILD_DEPENDS=""
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://github.com/proftpd/proftpd/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;/rc[0-9]/d;s|.*/v*\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 --localstatedir=/var \
32 --mandir=/usr/share/man \
33 --enable-nls \
34 $CONFIGURE_ARGS &&
35 make &&
36 make install DESTDIR=$DESTDIR
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
44 cp -a $install/usr/sbin $fs/usr
45 cp -a $install/usr/bin $fs/usr
46 # cp -a $install/usr/lib/proftpd $fs/usr/lib # empty directory
47 cp -a $install/etc $fs
49 cat >> $fs/etc/proftpd.conf <<EOT
51 # SSLv3 is unsafe, see CVE-2014-3566 POODLE
52 # TLSProtocol TLSv1
53 EOT
54 }