wok-next annotate vpnc/receipt @ rev 21231
updated clamtk (4.36 -> 5.27)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 03 17:21:10 2019 +0100 (2019-12-03) |
parents | e4425aeb7078 |
children |
rev | line source |
---|---|
al@20748 | 1 # SliTaz package receipt v2. |
pascal@1640 | 2 |
pascal@1640 | 3 PACKAGE="vpnc" |
pascal@13517 | 4 VERSION="0.5.3" |
pascal@1640 | 5 CATEGORY="network" |
al@20748 | 6 SHORT_DESC="VPN client compatible with Cisco's EasyVPN equipment" |
pascal@1640 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
al@20748 | 9 WEB_SITE="https://www.unix-ag.uni-kl.de/~massar/vpnc/" |
al@20748 | 10 |
pascal@1640 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1640 | 12 WGET_URL="$WEB_SITE$TARBALL" |
pascal@13517 | 13 |
al@19678 | 14 BUILD_DEPENDS="libgcrypt-dev openssl-dev perl" |
al@21020 | 15 SPLIT="$PACKAGE-cert:cert" |
pascal@1640 | 16 |
al@20748 | 17 compile_rules() { |
al@20748 | 18 case $SET in |
al@20748 | 19 cert) sed -i 's|^#OPENSSL|OPENSSL|' Makefile;; # breaks GPL license |
al@20748 | 20 esac |
pascal@5883 | 21 sed -i "s|perl -w .*|&\\n sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile |
al@20748 | 22 |
al@20748 | 23 make \ |
al@20748 | 24 PREFIX=/usr \ |
al@20748 | 25 DOCDIR=/usr/share/doc/$PACKAGE-$VERSION \ |
al@21020 | 26 DESTDIR=$install \ |
al@20748 | 27 install || return 1 |
al@20748 | 28 |
al@20748 | 29 mkdir -p $install/var/run/vpnc |
al@20748 | 30 |
al@20748 | 31 cook_pick_docs README TODO |
pascal@1640 | 32 } |
pascal@1640 | 33 |
al@20748 | 34 genpkg_rules() { |
al@20748 | 35 copy @std |
al@20748 | 36 CONFIG_FILES="/etc/vpnc/" |
al@20748 | 37 TAGS="vpn tunnel" |
al@20748 | 38 case $PACKAGE in |
al@20748 | 39 vpnc) |
al@20748 | 40 DEPENDS="libgcrypt libgpg-error perl" |
al@20748 | 41 ;; |
al@20748 | 42 vpnc-cert) |
al@20748 | 43 DEPENDS="libgcrypt openssl libgpg-error perl" |
al@20748 | 44 PROVIDE="vpnc" |
al@20748 | 45 CAT="network|with OpenSSL support" |
al@20748 | 46 ;; |
al@20748 | 47 esac |
pascal@1640 | 48 } |
pascal@1640 | 49 |
al@20748 | 50 post_install() { |
al@20748 | 51 [ -n "$quiet" ] || cat <<EOT |
al@20748 | 52 |
al@20748 | 53 .-------------------------------------------. |
al@20748 | 54 | You can now update /etc/vpnc/default.conf | |
al@20748 | 55 '-------------------------------------------' |
pascal@1640 | 56 EOT |
pascal@1640 | 57 } |