wok annotate pure-ftpd/receipt @ rev 24972

Up lzsa (1.3.11)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 01 08:42:44 2022 +0000 (2022-05-01)
parents 241fb98cab1c
children eb6c7b6a2a89
rev   line source
erjo@755 1 # SliTaz package receipt.
erjo@755 2
erjo@755 3 PACKAGE="pure-ftpd"
Hans-G?nter@23456 4 VERSION="1.0.49"
pascal@1423 5 CATEGORY="network"
Hans-G?nter@23456 6 SHORT_DESC="A secure FTP daemon."
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@15376 8 LICENSE="BSD"
Hans-G?nter@23456 9 WEB_SITE="https://www.pureftpd.org/project/pure-ftpd"
Hans-G?nter@23456 10 HANDBOOK_URL="https://www.pureftpd.org/project/pure-ftpd/doc"
Hans-G?nter@23456 11
erjo@755 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@24972 13 WGET_URL="https://download.pureftpd.org/pub/pure-ftpd/releases/$TARBALL"
erjo@755 14
erjo@11635 15 DEPENDS="attr libcap libssl"
erjo@11635 16 BUILD_DEPENDS="openssl-dev"
erjo@11635 17
pascal@24453 18 # What is the latest version available today?
pascal@24453 19 current_version()
pascal@24453 20 {
pascal@24453 21 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24453 22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24453 23 }
pascal@24453 24
erjo@755 25 # Rules to configure and make the package.
erjo@755 26 compile_rules()
erjo@755 27 {
Hans-G?nter@23456 28 ./configure \
Hans-G?nter@23456 29 --prefix=/usr \
Hans-G?nter@23456 30 --without-pam \
Hans-G?nter@23456 31 --with-puredb \
Hans-G?nter@23456 32 --with-extauth \
Hans-G?nter@23456 33 $CONFIGURE_ARGS &&
Hans-G?nter@23456 34 make &&
Hans-G?nter@23456 35 make install
erjo@755 36 }
erjo@755 37
erjo@755 38 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@755 39 genpkg_rules()
erjo@755 40 {
Hans-G?nter@23456 41 mkdir -p $fs/usr
Hans-G?nter@23456 42 mkdir -p $fs/etc/init.d
Hans-G?nter@23456 43
Hans-G?nter@23456 44 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23456 45 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@23456 46 install -g root -o root -m 0755 $stuff/pure-ftpd \
Hans-G?nter@23456 47 $fs/etc/init.d
erjo@755 48 }
erjo@755 49
erjo@755 50 post_install()
erjo@755 51 {
erjo@755 52 echo ""
Hans-G?nter@23456 53 echo -e "\nTo start $PACKAGE server you can run :\n"
slaxemulator@11358 54 echo "/etc/init.d/$PACKAGE start"
slaxemulator@11358 55 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
erjo@755 56 }