wok-next diff vpnc/receipt @ rev 20831

Remove lz4c
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 15 14:58:21 2018 +0200 (2018-06-15)
parents daa754d4b004
children d5aab818505e
line diff
     1.1 --- a/vpnc/receipt	Sat Mar 25 17:39:12 2017 +0200
     1.2 +++ b/vpnc/receipt	Fri Jun 15 14:58:21 2018 +0200
     1.3 @@ -1,51 +1,57 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="vpnc"
     1.8  VERSION="0.5.3"
     1.9  CATEGORY="network"
    1.10 -SHORT_DESC="VPN client compatible with Cisco's EasyVPN equipment."
    1.11 +SHORT_DESC="VPN client compatible with Cisco's EasyVPN equipment"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="https://www.unix-ag.uni-kl.de/~massar/vpnc/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
    1.18  WGET_URL="$WEB_SITE$TARBALL"
    1.19 -CONFIG_FILES="/etc/vpnc"
    1.20 -TAGS="vpn tunnel"
    1.21  
    1.22 -DEPENDS="libgcrypt libgpg-error glibc-base perl"
    1.23  BUILD_DEPENDS="libgcrypt-dev openssl-dev perl"
    1.24 +SPLIT="vpnc-cert:cert"
    1.25  
    1.26 -# Rules to configure and make the package.
    1.27 -compile_rules()
    1.28 -{
    1.29 -	cd $src
    1.30 +compile_rules() {
    1.31 +	case $SET in
    1.32 +		cert) sed -i 's|^#OPENSSL|OPENSSL|' Makefile;; # breaks GPL license
    1.33 +	esac
    1.34  	sed -i "s|perl -w .*|&\\n	sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile
    1.35 -	make && make DESTDIR=$DESTDIR install
    1.36 -	install -d -m 755 $DESTDIR/usr/share/man/man1 &&
    1.37 -	install -d -m 755 $DESTDIR/usr/share/man/man8 &&
    1.38 -	install -d -m 755 $DESTDIR/usr/share/doc &&
    1.39 -	install -m 644 $src/*.1 $DESTDIR/usr/share/man/man1 &&
    1.40 -	install -m 644 $src/*.8 $DESTDIR/usr/share/man/man8 &&
    1.41 -	install -m 644 $src/[A-Z][A-Z]* $src/C* $DESTDIR/usr/share/doc
    1.42 +
    1.43 +	make \
    1.44 +		PREFIX=/usr \
    1.45 +		DOCDIR=/usr/share/doc/$PACKAGE-$VERSION \
    1.46 +		DESTDIR=$DESTDIR \
    1.47 +		install || return 1
    1.48 +
    1.49 +	mkdir -p $install/var/run/vpnc
    1.50 +
    1.51 +	cook_pick_docs README TODO
    1.52  }
    1.53  
    1.54 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.55 -genpkg_rules()
    1.56 -{
    1.57 -	mkdir -p $fs/usr $fs/var/run/vpnc
    1.58 -	cp -a $install/etc $fs
    1.59 -	cp -a $install/usr/local/bin $fs/usr
    1.60 -	cp -a $install/usr/local/sbin $fs/usr
    1.61 -	sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script
    1.62 +genpkg_rules() {
    1.63 +	copy @std
    1.64 +	CONFIG_FILES="/etc/vpnc/"
    1.65 +	TAGS="vpn tunnel"
    1.66 +	case $PACKAGE in
    1.67 +		vpnc)
    1.68 +			DEPENDS="libgcrypt   libgpg-error perl"
    1.69 +			;;
    1.70 +		vpnc-cert)
    1.71 +			DEPENDS="libgcrypt openssl   libgpg-error perl"
    1.72 +			PROVIDE="vpnc"
    1.73 +			CAT="network|with OpenSSL support"
    1.74 +			;;
    1.75 +	esac
    1.76  }
    1.77  
    1.78 -# Pre and post install commands for Tazpkg.
    1.79 -post_install()
    1.80 -{
    1.81 -	cat <<EOT
    1.82 --------------
    1.83 -You can now update /etc/vpnc/default.conf
    1.84 --------------
    1.85 +post_install() {
    1.86 +	[ -n "$quiet" ] || cat <<EOT
    1.87 +
    1.88 +	.-------------------------------------------.
    1.89 +	| You can now update /etc/vpnc/default.conf |
    1.90 +	'-------------------------------------------'
    1.91  EOT
    1.92  }
    1.93 -