wok-6.x view vpnc-cert/receipt @ rev 25377
updated udpxy (1.0.24.1 -> 1.0.25.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 11:20:37 2022 +0100 (2022-07-30) |
parents | 34e801e0eb52 |
children | df63c4ce07f8 |
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="$WEB_SITE/$TARBALL"
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 sed -i 's|^#OPENSSL|OPENSSL|' Makefile # breaks GPL license
31 sed -i "s|perl -w .*|&\\n sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile
32 make && make DESTDIR=$DESTDIR install
33 install -d -m 755 $DESTDIR/usr/share/man/man1 &&
34 install -d -m 755 $DESTDIR/usr/share/man/man8 &&
35 install -d -m 755 $DESTDIR/usr/share/doc &&
36 install -m 644 $src/*.1 $DESTDIR/usr/share/man/man1 &&
37 install -m 644 $src/*.8 $DESTDIR/usr/share/man/man8 &&
38 install -m 644 $src/[A-Z][A-Z]* $src/C* $DESTDIR/usr/share/doc
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr $fs/var/run/vpnc
45 cp -a $install/etc $fs
46 cp -a $install/usr/local/bin $fs/usr
47 cp -a $install/usr/local/sbin $fs/usr
48 sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script
49 }
51 # Pre and post install commands for Tazpkg.
52 post_install()
53 {
54 cat <<EOT
55 -------------
56 You can now update /etc/vpnc/default.conf
57 -------------
58 EOT
59 }