wok annotate vpnc/receipt @ rev 25725

added recipe for xfce4-notifyd-lang
author Hans-G?nter Theisgen
date Sat Aug 17 17:12:02 2024 +0100 (3 months ago)
parents 7f7bd3c9775e
children
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@25541 11 WGET_URL="https://github.com/sailfishos/vpnc/archive/refs/tags/$VERSION-6.tar.gz"
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@25541 28 [ -s $TARBALL ] && tar xzf $TARBALL -C ..
pascal@5883 29 sed -i "s|perl -w .*|&\\n sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile
pascal@13517 30 make && make DESTDIR=$DESTDIR install
pascal@19369 31 install -d -m 755 $DESTDIR/usr/share/man/man1 &&
pascal@19369 32 install -d -m 755 $DESTDIR/usr/share/man/man8 &&
pascal@19369 33 install -d -m 755 $DESTDIR/usr/share/doc &&
pascal@19371 34 install -m 644 $src/*.1 $DESTDIR/usr/share/man/man1 &&
pascal@19371 35 install -m 644 $src/*.8 $DESTDIR/usr/share/man/man8 &&
pascal@19371 36 install -m 644 $src/[A-Z][A-Z]* $src/C* $DESTDIR/usr/share/doc
pascal@1640 37 }
pascal@1640 38
pascal@1640 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1640 40 genpkg_rules()
pascal@1640 41 {
pascal@1640 42 mkdir -p $fs/usr $fs/var/run/vpnc
pascal@13517 43 cp -a $install/etc $fs
pascal@13517 44 cp -a $install/usr/local/bin $fs/usr
pascal@13517 45 cp -a $install/usr/local/sbin $fs/usr
pascal@1640 46 sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script
pascal@1640 47 }
pascal@1640 48
pascal@1640 49 # Pre and post install commands for Tazpkg.
pascal@1640 50 post_install()
pascal@1640 51 {
pascal@1640 52 cat <<EOT
pascal@1640 53 -------------
pascal@1640 54 You can now update /etc/vpnc/default.conf
pascal@1640 55 -------------
pascal@1640 56 EOT
pascal@1640 57 }