wok-next view vpnc/receipt @ rev 21155

tar: add tar-lang subpackage
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Feb 02 13:51:47 2019 +0200 (2019-02-02)
parents e4425aeb7078
children
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="https://www.unix-ag.uni-kl.de/~massar/vpnc/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE$TARBALL"
14 BUILD_DEPENDS="libgcrypt-dev openssl-dev perl"
15 SPLIT="$PACKAGE-cert:cert"
17 compile_rules() {
18 case $SET in
19 cert) sed -i 's|^#OPENSSL|OPENSSL|' Makefile;; # breaks GPL license
20 esac
21 sed -i "s|perl -w .*|&\\n sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile
23 make \
24 PREFIX=/usr \
25 DOCDIR=/usr/share/doc/$PACKAGE-$VERSION \
26 DESTDIR=$install \
27 install || return 1
29 mkdir -p $install/var/run/vpnc
31 cook_pick_docs README TODO
32 }
34 genpkg_rules() {
35 copy @std
36 CONFIG_FILES="/etc/vpnc/"
37 TAGS="vpn tunnel"
38 case $PACKAGE in
39 vpnc)
40 DEPENDS="libgcrypt libgpg-error perl"
41 ;;
42 vpnc-cert)
43 DEPENDS="libgcrypt openssl libgpg-error perl"
44 PROVIDE="vpnc"
45 CAT="network|with OpenSSL support"
46 ;;
47 esac
48 }
50 post_install() {
51 [ -n "$quiet" ] || cat <<EOT
53 .-------------------------------------------.
54 | You can now update /etc/vpnc/default.conf |
55 '-------------------------------------------'
56 EOT
57 }