SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "proftpd"

# SliTaz package receipt.

PACKAGE="proftpd"
VERSION="1.3.7d"
CATEGORY="network"
SHORT_DESC="Highly configurable FTP server."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="http://www.proftpd.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="ftp://ftp.proftpd.org/distrib/source/$TARBALL"

SUGGESTED="proftpd-lang"
DEPENDS=""
BUILD_DEPENDS=""

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/proftpd/proftpd/releases 2>/dev/null | \
    sed '/archive.*tar/!d;/rc[0-9]/d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure            \
        --prefix=/usr        \
        --sysconfdir=/etc    \
        --localstatedir=/var    \
        --mandir=/usr/share/man    \
        --enable-nls        \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr

    cp -a $install/usr/sbin        $fs/usr
    cp -a $install/usr/bin        $fs/usr
#    cp -a $install/usr/lib/proftpd    $fs/usr/lib    # empty directory
    cp -a $install/etc        $fs

    cat >> $fs/etc/proftpd.conf <<EOT

# SSLv3 is unsafe, see CVE-2014-3566 POODLE
# TLSProtocol TLSv1
EOT
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)