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

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 15 18:29:48 2022 +0000 (2022-02-15)
parents db5ff6244742
children bd7510903310
line source
1 # SliTaz package receipt.
3 PACKAGE="pure-ftpd-pam"
4 VERSION="1.0.49"
5 CATEGORY="network"
6 SHORT_DESC="A secure FTP daemon using PAM."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.pureftpd.org/project/pure-ftpd"
11 SOURCE="pure-ftpd"
12 TARBALL="$SOURCE-$VERSION.tar.bz2"
13 WGET_URL="http://download.pureftpd.org/pub/pure-ftpd/releases/$TARBALL"
15 PROVIDE="pure-ftpd:pam"
16 DEPENDS="attr libcap libssl pam"
17 BUILD_DEPENDS="openssl-dev pam pam-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
23 sed "/latest/d;/pure-ftpd-[0-9]/!d;/tar/!d;s|.*pure-ftpd-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --prefix=/usr \
31 --with-pam \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 mkdir -p $fs/etc/init.d
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/sbin $fs/usr
45 install -g root -o root -m 0755 $WOK/$SOURCE/stuff/pure-ftpd \
46 $fs/etc/init.d
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 }