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

updated st (0.5 -> 0.8.2)
author Hans-G?nter Theisgen
date Fri Oct 11 14:31:25 2019 +0100 (2019-10-11)
parents a78610b2eb47
children 34e801e0eb52
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@1640 11 WGET_URL="$WEB_SITE$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@1640 18 # Rules to configure and make the package.
pascal@1640 19 compile_rules()
pascal@1640 20 {
pascal@5883 21 sed -i "s|perl -w .*|&\\n sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile
pascal@13517 22 make && make DESTDIR=$DESTDIR install
pascal@19369 23 install -d -m 755 $DESTDIR/usr/share/man/man1 &&
pascal@19369 24 install -d -m 755 $DESTDIR/usr/share/man/man8 &&
pascal@19369 25 install -d -m 755 $DESTDIR/usr/share/doc &&
pascal@19371 26 install -m 644 $src/*.1 $DESTDIR/usr/share/man/man1 &&
pascal@19371 27 install -m 644 $src/*.8 $DESTDIR/usr/share/man/man8 &&
pascal@19371 28 install -m 644 $src/[A-Z][A-Z]* $src/C* $DESTDIR/usr/share/doc
pascal@1640 29 }
pascal@1640 30
pascal@1640 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1640 32 genpkg_rules()
pascal@1640 33 {
pascal@1640 34 mkdir -p $fs/usr $fs/var/run/vpnc
pascal@13517 35 cp -a $install/etc $fs
pascal@13517 36 cp -a $install/usr/local/bin $fs/usr
pascal@13517 37 cp -a $install/usr/local/sbin $fs/usr
pascal@1640 38 sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script
pascal@1640 39 }
pascal@1640 40
pascal@1640 41 # Pre and post install commands for Tazpkg.
pascal@1640 42 post_install()
pascal@1640 43 {
pascal@1640 44 cat <<EOT
pascal@1640 45 -------------
pascal@1640 46 You can now update /etc/vpnc/default.conf
pascal@1640 47 -------------
pascal@1640 48 EOT
pascal@1640 49 }