wok-6.x view pure-ftpd/receipt @ rev 25519

created recipes for libuv and libuv-dev 1.44.1
author Hans-G?nter Theisgen
date Fri Feb 24 15:35:59 2023 +0100 (20 months ago)
parents bd7510903310
children
line source
1 # SliTaz package receipt.
3 PACKAGE="pure-ftpd"
4 VERSION="1.0.51"
5 CATEGORY="network"
6 SHORT_DESC="A secure FTP daemon."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.pureftpd.org/project/pure-ftpd"
10 HANDBOOK_URL="https://www.pureftpd.org/project/pure-ftpd/doc"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="https://download.pureftpd.org/pub/pure-ftpd/releases/$TARBALL"
15 DEPENDS="attr libcap libssl"
16 BUILD_DEPENDS="openssl-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --prefix=/usr \
30 --without-pam \
31 --with-puredb \
32 --with-extauth \
33 $CONFIGURE_ARGS &&
34 make &&
35 make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/etc/init.d
43 install -g root -o root -m 0755 $stuff/pure-ftpd \
44 $fs/etc/init.d
45 cook_copy_folders bin
46 cook_copy_folders sbin
47 }
49 post_install()
50 {
51 echo ""
52 echo -e "\nTo start $PACKAGE server you can run :\n"
53 echo "/etc/init.d/$PACKAGE start"
54 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
55 }