wok-current annotate pure-ftpd/receipt @ rev 25187
mencoder: reordered recipe
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jul 12 10:44:40 2022 +0100 (2022-07-12) |
parents | bd7510903310 |
children |
rev | line source |
---|---|
erjo@755 | 1 # SliTaz package receipt. |
erjo@755 | 2 |
erjo@755 | 3 PACKAGE="pure-ftpd" |
Hans-G?nter@25158 | 4 VERSION="1.0.51" |
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/etc/init.d |
Hans-G?nter@23456 | 42 |
Hans-G?nter@23456 | 43 install -g root -o root -m 0755 $stuff/pure-ftpd \ |
Hans-G?nter@23456 | 44 $fs/etc/init.d |
Hans-G?nter@25158 | 45 cook_copy_folders bin |
Hans-G?nter@25158 | 46 cook_copy_folders sbin |
erjo@755 | 47 } |
erjo@755 | 48 |
erjo@755 | 49 post_install() |
erjo@755 | 50 { |
erjo@755 | 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" |
erjo@755 | 55 } |