wok view vpnc/receipt @ rev 25582

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