wok-6.x annotate vpnc/receipt @ rev 25068

updated alsa-tools packages (1.1.5 -> 1.2.5)
author Hans-G?nter Theisgen
date Fri Jun 10 13:52:51 2022 +0100 (2022-06-10)
parents 1805f71c5d9f
children 8b627a0fc33a
rev   line source
pascal@1640 1 # SliTaz package receipt.
pascal@1640 2
pascal@1640 3 PACKAGE="vpnc"
pascal@13517 4 VERSION="0.5.3"
pascal@1640 5 CATEGORY="network"
pascal@1640 6 SHORT_DESC="VPN client compatible with Cisco's EasyVPN equipment."
pascal@1640 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
pascal@1640 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@21792 10 WEB_SITE="https://github.com/streambinder/vpnc"
pascal@25060 11 WGET_URL="https://www.unix-ag.uni-kl.de/~massar/vpnc/$TARBALL"
pascal@13517 12 CONFIG_FILES="/etc/vpnc"
pascal@13517 13 TAGS="vpn tunnel"
pascal@13517 14
pascal@1640 15 DEPENDS="libgcrypt libgpg-error glibc-base perl"
slaxemulator@6640 16 BUILD_DEPENDS="libgcrypt-dev openssl-dev"
pascal@1640 17
pascal@24497 18 # What is the latest version available today?
pascal@24497 19 current_version()
pascal@24497 20 {
pascal@24497 21 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
pascal@24497 22 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
pascal@24497 23 }
pascal@24497 24
pascal@1640 25 # Rules to configure and make the package.
pascal@1640 26 compile_rules()
pascal@1640 27 {
pascal@5883 28 sed -i "s|perl -w .*|&\\n sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile
pascal@13517 29 make && make DESTDIR=$DESTDIR install
pascal@19369 30 install -d -m 755 $DESTDIR/usr/share/man/man1 &&
pascal@19369 31 install -d -m 755 $DESTDIR/usr/share/man/man8 &&
pascal@19369 32 install -d -m 755 $DESTDIR/usr/share/doc &&
pascal@19371 33 install -m 644 $src/*.1 $DESTDIR/usr/share/man/man1 &&
pascal@19371 34 install -m 644 $src/*.8 $DESTDIR/usr/share/man/man8 &&
pascal@19371 35 install -m 644 $src/[A-Z][A-Z]* $src/C* $DESTDIR/usr/share/doc
pascal@1640 36 }
pascal@1640 37
pascal@1640 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1640 39 genpkg_rules()
pascal@1640 40 {
pascal@1640 41 mkdir -p $fs/usr $fs/var/run/vpnc
pascal@13517 42 cp -a $install/etc $fs
pascal@13517 43 cp -a $install/usr/local/bin $fs/usr
pascal@13517 44 cp -a $install/usr/local/sbin $fs/usr
pascal@1640 45 sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script
pascal@1640 46 }
pascal@1640 47
pascal@1640 48 # Pre and post install commands for Tazpkg.
pascal@1640 49 post_install()
pascal@1640 50 {
pascal@1640 51 cat <<EOT
pascal@1640 52 -------------
pascal@1640 53 You can now update /etc/vpnc/default.conf
pascal@1640 54 -------------
pascal@1640 55 EOT
pascal@1640 56 }