wok-6.x annotate proftpd-tls/receipt @ rev 25107

Up open-iscsi (2.0.873)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 22 17:23:49 2022 +0000 (2022-06-22)
parents 241fb98cab1c
children d642857253e7
rev   line source
mojo@23842 1 # SliTaz package receipt.
mojo@23842 2
mojo@23842 3 PACKAGE="proftpd-tls"
mojo@23842 4 VERSION="1.3.6d"
mojo@23842 5 CATEGORY="network"
mojo@23842 6 SHORT_DESC="Highly configurable FTP server."
mojo@23842 7 MAINTAINER="mojo@slitaz.org"
mojo@23842 8 LICENSE="GPL2"
mojo@23842 9 WEB_SITE="http://www.proftpd.org/"
mojo@23842 10
mojo@23842 11 TARBALL="proftpd-$VERSION.tar.gz"
mojo@23842 12 WGET_URL="ftp://ftp.proftpd.org/distrib/source/$TARBALL"
mojo@23842 13
mojo@23842 14 DEPENDS="openssl"
mojo@23842 15 BUILD_DEPENDS="openssl-dev"
mojo@23842 16
pascal@24453 17 # What is the latest version available today?
pascal@24453 18 current_version()
pascal@24453 19 {
pascal@24614 20 wget -O - https://github.com/proftpd/proftpd/releases 2>/dev/null | \
pascal@24614 21 sed '/archive.*tar/!d;/rc[0-9]/d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24453 22 }
pascal@24453 23
mojo@23842 24 # Rules to configure and make the package.
mojo@23842 25 compile_rules()
mojo@23842 26 {
mojo@23842 27 ./configure \
mojo@23842 28 --prefix=/usr \
mojo@23842 29 --sysconfdir=/etc \
mojo@23842 30 --localstatedir=/var/run \
mojo@23842 31 --mandir=/usr/share/man \
mojo@23842 32 --with-modules=mod_tls \
mojo@23842 33 $CONFIGURE_ARGS &&
mojo@23842 34 make &&
mojo@23842 35 make DESTDIR=$DESTDIR install
mojo@23842 36 }
mojo@23842 37
mojo@23842 38 # Rules to gen a SliTaz package suitable for Tazpkg.
mojo@23842 39 genpkg_rules()
mojo@23842 40 {
mojo@23842 41 mkdir -p $fs/usr/libexec
mojo@23842 42 mkdir -p $fs/etc/init.d
mojo@23842 43
mojo@23842 44 cp -a $install/usr/sbin $fs/usr
mojo@23842 45 cp -a $install/usr/bin $fs/usr
mojo@23842 46 cp -a $install/etc $fs
mojo@23842 47 install -g root -o root -m 0755 $stuff/protocols \
mojo@23842 48 $fs/etc
mojo@23842 49 install -g root -o root -m 0755 $stuff/proftpd \
mojo@23842 50 $fs/etc/init.d
mojo@23842 51 }
mojo@23842 52
mojo@23842 53 post_install()
mojo@23842 54 {
mojo@23842 55 echo ""
mojo@23842 56 echo -e "\nTo start proftpd server you can run :\n"
mojo@23842 57 echo "/etc/init.d/proftpd start"
mojo@23842 58 echo -e "Or add proftpd to RUN_DAEMONS in /etc/rcS.conf\n"
mojo@23842 59 }