wok-next diff pure-ftpd/receipt @ rev 21469

updated tinc (1.0.25 -> 1.0.36)
author Hans-G?nter Theisgen
date Wed May 13 07:41:00 2020 +0100 (2020-05-13)
parents e6615350078d
children
line diff
     1.1 --- a/pure-ftpd/receipt	Wed Feb 28 16:28:07 2018 +0200
     1.2 +++ b/pure-ftpd/receipt	Wed May 13 07:41:00 2020 +0100
     1.3 @@ -4,53 +4,44 @@
     1.4  VERSION="1.0.46"
     1.5  CATEGORY="network"
     1.6  SHORT_DESC="A secure FTP daemon"
     1.7 -MAINTAINER="erjo@slitaz.org"
     1.8 +MAINTAINER="devel@slitaz.org"
     1.9  LICENSE="BSD"
    1.10  WEB_SITE="https://www.pureftpd.org/project/pure-ftpd"
    1.11 -CONFIG_FILES="/etc/pure-ftpd.conf"
    1.12  
    1.13  TARBALL="pure-ftpd-$VERSION.tar.bz2"
    1.14  WGET_URL="https://download.pureftpd.org/pub/pure-ftpd/releases/$TARBALL"
    1.15  
    1.16  BUILD_DEPENDS="openssl-dev pam-dev"
    1.17 -SPLIT="pure-ftpd pure-ftpd-pam"
    1.18 +SPLIT="$PACKAGE-pam:pam"
    1.19  
    1.20 -# Rules to configure and make the package.
    1.21 -compile_rules()
    1.22 -{
    1.23 -	cp -a $src $src-pam
    1.24 +compile_rules() {
    1.25 +	case $SET in
    1.26 +		'')  SET_ARGS='--without-pam --with-puredb --with-extauth';;
    1.27 +		pam) SET_ARGS='--with-pam';;
    1.28 +	esac
    1.29 +
    1.30  	./configure \
    1.31 -		--without-pam \
    1.32 -		--with-puredb \
    1.33 -		--with-extauth \
    1.34 +		$SET_ARGS \
    1.35  		$CONFIGURE_ARGS &&
    1.36 -	make && make install || return 1
    1.37 -
    1.38 -	cd $src-pam
    1.39 -	./configure \
    1.40 -		--with-pam \
    1.41 -		$CONFIGURE_ARGS &&
    1.42 -	make && make DESTDIR=$DESTDIR-pam install || return 1
    1.43 +	make &&
    1.44 +	make install || return 1
    1.45  
    1.46  	# daemon
    1.47 -	mkdir -p $install/etc/init.d $install-pam/etc/init.d
    1.48 -	install -groot -oroot -m0755 $stuff/pure-ftpd $install/etc/init.d
    1.49 -	install -groot -oroot -m0755 $stuff/pure-ftpd $install-pam/etc/init.d
    1.50 +	install -Dm755 $stuff/pure-ftpd $install/etc/init.d/pure-ftpd
    1.51  }
    1.52  
    1.53 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.54 -genpkg_rules()
    1.55 -{
    1.56 +genpkg_rules() {
    1.57  	case $PACKAGE in
    1.58 -	pure-ftpd)
    1.59 -		DEPENDS="attr libcap openssl"
    1.60 -		copy @std
    1.61 -		;;
    1.62 -	pure-ftpd-pam)
    1.63 -		DEPENDS="attr libcap pam"
    1.64 -		PROVIDE="pure-ftpd:pam"
    1.65 -		CAT="network|using PAM"
    1.66 -		install=$install-pam copy @std
    1.67 -		;;
    1.68 +		pure-ftpd)
    1.69 +			copy @std
    1.70 +			DEPENDS="attr libcap openssl"
    1.71 +			;;
    1.72 +		*-pam)
    1.73 +			copy @std
    1.74 +			CAT="network|using PAM"
    1.75 +			DEPENDS="attr libcap pam"
    1.76 +			PROVIDE="pure-ftpd:pam"
    1.77 +			;;
    1.78  	esac
    1.79 +	CONFIG_FILES="/etc/pure-ftpd.conf"
    1.80  }