wok view pure-ftpd/receipt @ rev 24624

updated grep (3.4 -> 3.7)
author Hans-G?nter Theisgen
date Mon Mar 07 16:56:05 2022 +0100 (2022-03-07)
parents db5ff6244742
children bd7510903310
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="http://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 }