wok rev 13516
Add vpnc-cert
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Oct 19 10:04:18 2012 +0200 (2012-10-19) |
parents | 9d8cc149f886 |
children | 7336f62c21cc |
files | vpnc-cert/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/vpnc-cert/receipt Fri Oct 19 10:04:18 2012 +0200 1.3 @@ -0,0 +1,46 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="vpnc-cert" 1.7 +VERSION="0.5.1" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="VPN client compatible with Cisco's EasyVPN equipment." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 +WEB_SITE="http://www.unix-ag.uni-kl.de/~massar/vpnc/" 1.13 +WGET_URL="$WEB_SITE$TARBALL" 1.14 +CONFIG_FILES="/etc/vpnc" 1.15 +TAGS="vpn tunnel" 1.16 +PROVIDES="vpnc" 1.17 + 1.18 +DEPENDS="libgcrypt libgpg-error glibc-base perl libcrypto" 1.19 +BUILD_DEPENDS="libgcrypt-dev openssl-dev" 1.20 + 1.21 +# Rules to configure and make the package. 1.22 +compile_rules() 1.23 +{ 1.24 + cd $src 1.25 + sed -i 's|^#OPENSSL|OPENSSL|' Makefile # breaks GPL license 1.26 + sed -i "s|perl -w .*|&\\n sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile 1.27 + make && make DESTDIR=$DESTDIR install 1.28 +} 1.29 + 1.30 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.31 +genpkg_rules() 1.32 +{ 1.33 + mkdir -p $fs/usr $fs/var/run/vpnc 1.34 + cp -a $install/etc $fs 1.35 + cp -a $install/usr/local/bin $fs/usr 1.36 + cp -a $install/usr/local/sbin $fs/usr 1.37 + sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script 1.38 +} 1.39 + 1.40 +# Pre and post install commands for Tazpkg. 1.41 +post_install() 1.42 +{ 1.43 + cat <<EOT 1.44 +------------- 1.45 +You can now update /etc/vpnc/default.conf 1.46 +------------- 1.47 +EOT 1.48 +} 1.49 +