wok annotate pure-ftpd-pam/receipt @ rev 24749

cairo: modified lookup-symbol.c for binutils-2.37
author Hans-G?nter Theisgen
date Wed Mar 16 17:06:35 2022 +0100 (2022-03-16)
parents db5ff6244742
children bd7510903310
rev   line source
pascal@2189 1 # SliTaz package receipt.
pascal@2189 2
pascal@2189 3 PACKAGE="pure-ftpd-pam"
Hans-G?nter@23456 4 VERSION="1.0.49"
pascal@2189 5 CATEGORY="network"
Hans-G?nter@23456 6 SHORT_DESC="A secure FTP daemon using PAM."
pascal@2189 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
pascal@2189 11 SOURCE="pure-ftpd"
pascal@2189 12 TARBALL="$SOURCE-$VERSION.tar.bz2"
pascal@2189 13 WGET_URL="http://download.pureftpd.org/pub/pure-ftpd/releases/$TARBALL"
Hans-G?nter@23456 14
pascal@2189 15 PROVIDE="pure-ftpd:pam"
Hans-G?nter@23456 16 DEPENDS="attr libcap libssl pam"
Hans-G?nter@23456 17 BUILD_DEPENDS="openssl-dev pam pam-dev"
pascal@15376 18
pascal@24453 19 # What is the latest version available today?
pascal@24453 20 current_version()
pascal@24453 21 {
pascal@24453 22 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24453 23 sed "/latest/d;/pure-ftpd-[0-9]/!d;/tar/!d;s|.*pure-ftpd-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24453 24 }
pascal@24453 25
pascal@2189 26 # Rules to configure and make the package.
pascal@2189 27 compile_rules()
pascal@2189 28 {
Hans-G?nter@23456 29 ./configure \
Hans-G?nter@23456 30 --prefix=/usr \
Hans-G?nter@23456 31 --with-pam \
Hans-G?nter@23456 32 $CONFIGURE_ARGS &&
pascal@2189 33 make &&
slaxemulator@11358 34 make DESTDIR=$DESTDIR install
pascal@2189 35 }
pascal@2189 36
pascal@2189 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2189 38 genpkg_rules()
pascal@2189 39 {
Hans-G?nter@23456 40 mkdir -p $fs/usr
Hans-G?nter@23456 41 mkdir -p $fs/etc/init.d
Hans-G?nter@23456 42
Hans-G?nter@23456 43 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23456 44 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@23456 45 install -g root -o root -m 0755 $WOK/$SOURCE/stuff/pure-ftpd \
Hans-G?nter@23456 46 $fs/etc/init.d
pascal@2189 47 }
pascal@2189 48
pascal@2189 49 post_install()
pascal@2189 50 {
pascal@2189 51 echo ""
Hans-G?nter@23456 52 echo -e "\nTo start $PACKAGE server you can run :\n"
slaxemulator@11358 53 echo "/etc/init.d/$PACKAGE start"
slaxemulator@11358 54 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
pascal@2189 55 }