SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pure-ftpd-pam"

# SliTaz package receipt.

PACKAGE="pure-ftpd-pam"
VERSION="1.0.51"
CATEGORY="network"
SHORT_DESC="A secure FTP daemon using PAM."
MAINTAINER="erjo@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://www.pureftpd.org/project/pure-ftpd"

SOURCE="pure-ftpd"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WGET_URL="https://download.pureftpd.org/pub/pure-ftpd/releases/$TARBALL"

PROVIDE="pure-ftpd:pam"
DEPENDS="attr libcap libssl pam"
BUILD_DEPENDS="openssl-dev pam pam-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    sed "/latest/d;/pure-ftpd-[0-9]/!d;/tar/!d;s|.*pure-ftpd-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure        \
        --prefix=/usr    \
        --with-pam    \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

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

    install -g root -o root -m 0755 $WOK/$SOURCE/stuff/pure-ftpd \
                    $fs/etc/init.d
    cook_copy_folders    bin
    cook_copy_folders    sbin
}

post_install()
{
    echo ""
    echo -e "\nTo start $PACKAGE server you can run :\n"
    echo "/etc/init.d/$PACKAGE start"
    echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
}
6047 packages and 209931 files in current database (Mon Jul 1 15:25:36 2024)