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