SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "proftpd"

# SliTaz package receipt.

PACKAGE="proftpd"
VERSION="1.3.8b"
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 '/tag\//!d;s|.*tag/v*||;s|".*||;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
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)