wok-current annotate vpnc-cert/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents 7f7bd3c9775e
children
rev   line source
pascal@13516 1 # SliTaz package receipt.
pascal@13516 2
pascal@13516 3 PACKAGE="vpnc-cert"
pascal@13517 4 SOURCE="vpnc"
pascal@13517 5 VERSION="0.5.3"
pascal@13516 6 CATEGORY="network"
pascal@13516 7 SHORT_DESC="VPN client compatible with Cisco's EasyVPN equipment."
pascal@13516 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15002 9 LICENSE="GPL2"
pascal@13517 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@21792 11 WEB_SITE="https://github.com/streambinder/vpnc"
pascal@25541 12 WGET_URL="https://github.com/sailfishos/vpnc/archive/refs/tags/$VERSION-6.tar.gz"
pascal@13516 13 CONFIG_FILES="/etc/vpnc"
pascal@13516 14 TAGS="vpn tunnel"
pascal@17482 15 PROVIDE="vpnc"
pascal@13516 16
pascal@13516 17 DEPENDS="libgcrypt libgpg-error glibc-base perl libcrypto"
pascal@13516 18 BUILD_DEPENDS="libgcrypt-dev openssl-dev"
pascal@13516 19
pascal@24497 20 # What is the latest version available today?
pascal@24497 21 current_version()
pascal@24497 22 {
pascal@24497 23 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
pascal@24497 24 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
pascal@24497 25 }
pascal@24497 26
pascal@13516 27 # Rules to configure and make the package.
pascal@13516 28 compile_rules()
pascal@13516 29 {
pascal@25541 30 [ -s $TARBALL ] && tar xzf $TARBALL -C ..
pascal@13516 31 sed -i 's|^#OPENSSL|OPENSSL|' Makefile # breaks GPL license
pascal@13516 32 sed -i "s|perl -w .*|&\\n sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile
pascal@13516 33 make && make DESTDIR=$DESTDIR install
pascal@19369 34 install -d -m 755 $DESTDIR/usr/share/man/man1 &&
pascal@19369 35 install -d -m 755 $DESTDIR/usr/share/man/man8 &&
pascal@19369 36 install -d -m 755 $DESTDIR/usr/share/doc &&
pascal@19371 37 install -m 644 $src/*.1 $DESTDIR/usr/share/man/man1 &&
pascal@19371 38 install -m 644 $src/*.8 $DESTDIR/usr/share/man/man8 &&
pascal@19371 39 install -m 644 $src/[A-Z][A-Z]* $src/C* $DESTDIR/usr/share/doc
pascal@13516 40 }
pascal@13516 41
pascal@13516 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13516 43 genpkg_rules()
pascal@13516 44 {
pascal@13516 45 mkdir -p $fs/usr $fs/var/run/vpnc
pascal@13516 46 cp -a $install/etc $fs
pascal@13516 47 cp -a $install/usr/local/bin $fs/usr
pascal@13516 48 cp -a $install/usr/local/sbin $fs/usr
pascal@13516 49 sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script
pascal@13516 50 }
pascal@13516 51
pascal@13516 52 # Pre and post install commands for Tazpkg.
pascal@13516 53 post_install()
pascal@13516 54 {
pascal@13516 55 cat <<EOT
pascal@13516 56 -------------
pascal@13516 57 You can now update /etc/vpnc/default.conf
pascal@13516 58 -------------
pascal@13516 59 EOT
pascal@13516 60 }