wok annotate 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
rev   line source
pascal@14768 1 # SliTaz package receipt.
pascal@14768 2
pascal@14768 3 PACKAGE="proftpd"
pascal@25630 4 VERSION="1.3.8b"
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@25601 22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;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 }