wok view vpnc/receipt @ rev 24626

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 07 17:32:18 2022 +0000 (2022-03-07)
parents 3937da23fe1e
children 1805f71c5d9f
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="$WEB_SITE$TARBALL"
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 sed -i "s|perl -w .*|&\\n sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile
29 make && make DESTDIR=$DESTDIR install
30 install -d -m 755 $DESTDIR/usr/share/man/man1 &&
31 install -d -m 755 $DESTDIR/usr/share/man/man8 &&
32 install -d -m 755 $DESTDIR/usr/share/doc &&
33 install -m 644 $src/*.1 $DESTDIR/usr/share/man/man1 &&
34 install -m 644 $src/*.8 $DESTDIR/usr/share/man/man8 &&
35 install -m 644 $src/[A-Z][A-Z]* $src/C* $DESTDIR/usr/share/doc
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr $fs/var/run/vpnc
42 cp -a $install/etc $fs
43 cp -a $install/usr/local/bin $fs/usr
44 cp -a $install/usr/local/sbin $fs/usr
45 sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script
46 }
48 # Pre and post install commands for Tazpkg.
49 post_install()
50 {
51 cat <<EOT
52 -------------
53 You can now update /etc/vpnc/default.conf
54 -------------
55 EOT
56 }