wok annotate vpnc-cert/receipt @ rev 25270

gst-ffmpeg*: ORC_TARGET_ALTIVEC_ALTIVEC not defined yet
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 17 15:43:19 2022 +0000 (2022-07-17)
parents 34e801e0eb52
children df63c4ce07f8
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@24976 12 WGET_URL="$WEB_SITE/$TARBALL"
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@13516 30 sed -i 's|^#OPENSSL|OPENSSL|' Makefile # breaks GPL license
pascal@13516 31 sed -i "s|perl -w .*|&\\n sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile
pascal@13516 32 make && make DESTDIR=$DESTDIR install
pascal@19369 33 install -d -m 755 $DESTDIR/usr/share/man/man1 &&
pascal@19369 34 install -d -m 755 $DESTDIR/usr/share/man/man8 &&
pascal@19369 35 install -d -m 755 $DESTDIR/usr/share/doc &&
pascal@19371 36 install -m 644 $src/*.1 $DESTDIR/usr/share/man/man1 &&
pascal@19371 37 install -m 644 $src/*.8 $DESTDIR/usr/share/man/man8 &&
pascal@19371 38 install -m 644 $src/[A-Z][A-Z]* $src/C* $DESTDIR/usr/share/doc
pascal@13516 39 }
pascal@13516 40
pascal@13516 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13516 42 genpkg_rules()
pascal@13516 43 {
pascal@13516 44 mkdir -p $fs/usr $fs/var/run/vpnc
pascal@13516 45 cp -a $install/etc $fs
pascal@13516 46 cp -a $install/usr/local/bin $fs/usr
pascal@13516 47 cp -a $install/usr/local/sbin $fs/usr
pascal@13516 48 sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script
pascal@13516 49 }
pascal@13516 50
pascal@13516 51 # Pre and post install commands for Tazpkg.
pascal@13516 52 post_install()
pascal@13516 53 {
pascal@13516 54 cat <<EOT
pascal@13516 55 -------------
pascal@13516 56 You can now update /etc/vpnc/default.conf
pascal@13516 57 -------------
pascal@13516 58 EOT
pascal@13516 59 }