# HG changeset patch # User Pascal Bellard # Date 1350633858 -7200 # Node ID 45ebb0c2566a6dcfa19d84ee67454836f8134910 # Parent 9d8cc149f886463c02ff8e27e2038ca23768f22f Add vpnc-cert diff -r 9d8cc149f886 -r 45ebb0c2566a vpnc-cert/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vpnc-cert/receipt Fri Oct 19 10:04:18 2012 +0200 @@ -0,0 +1,46 @@ +# SliTaz package receipt. + +PACKAGE="vpnc-cert" +VERSION="0.5.1" +CATEGORY="network" +SHORT_DESC="VPN client compatible with Cisco's EasyVPN equipment." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.unix-ag.uni-kl.de/~massar/vpnc/" +WGET_URL="$WEB_SITE$TARBALL" +CONFIG_FILES="/etc/vpnc" +TAGS="vpn tunnel" +PROVIDES="vpnc" + +DEPENDS="libgcrypt libgpg-error glibc-base perl libcrypto" +BUILD_DEPENDS="libgcrypt-dev openssl-dev" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + sed -i 's|^#OPENSSL|OPENSSL|' Makefile # breaks GPL license + sed -i "s|perl -w .*|&\\n sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile + make && make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr $fs/var/run/vpnc + cp -a $install/etc $fs + cp -a $install/usr/local/bin $fs/usr + cp -a $install/usr/local/sbin $fs/usr + sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script +} + +# Pre and post install commands for Tazpkg. +post_install() +{ + cat <