wok view pure-ftpd/receipt @ rev 25102

Use archive.org for some broken wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 21 16:00:20 2022 +0000 (2022-06-21)
parents 241fb98cab1c
children eb6c7b6a2a89
line source
1 # SliTaz package receipt.
3 PACKAGE="pure-ftpd"
4 VERSION="1.0.49"
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/usr
42 mkdir -p $fs/etc/init.d
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/sbin $fs/usr
46 install -g root -o root -m 0755 $stuff/pure-ftpd \
47 $fs/etc/init.d
48 }
50 post_install()
51 {
52 echo ""
53 echo -e "\nTo start $PACKAGE server you can run :\n"
54 echo "/etc/init.d/$PACKAGE start"
55 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
56 }