wok view proftpd/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents 0262035dc1e7
children
line source
1 # SliTaz package receipt.
3 PACKAGE="proftpd"
4 VERSION="1.3.8b"
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 '/tag\//!d;s|.*tag/v*||;s|".*||;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 }