# SliTaz package receipt. PACKAGE="pure-ftpd" VERSION="1.0.51" CATEGORY="network" SHORT_DESC="A secure FTP daemon." MAINTAINER="erjo@slitaz.org" LICENSE="BSD" WEB_SITE="https://www.pureftpd.org/project/pure-ftpd" HANDBOOK_URL="https://www.pureftpd.org/project/pure-ftpd/doc" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="https://download.pureftpd.org/pub/pure-ftpd/releases/$TARBALL" DEPENDS="attr libcap libssl" BUILD_DEPENDS="openssl-dev" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ --without-pam \ --with-puredb \ --with-extauth \ $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/etc/init.d install -g root -o root -m 0755 $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" }