wok view vpnc-cert/receipt @ 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 | |
children | 7336f62c21cc |
line source
1 # SliTaz package receipt.
3 PACKAGE="vpnc-cert"
4 VERSION="0.5.1"
5 CATEGORY="network"
6 SHORT_DESC="VPN client compatible with Cisco's EasyVPN equipment."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
10 WGET_URL="$WEB_SITE$TARBALL"
11 CONFIG_FILES="/etc/vpnc"
12 TAGS="vpn tunnel"
13 PROVIDES="vpnc"
15 DEPENDS="libgcrypt libgpg-error glibc-base perl libcrypto"
16 BUILD_DEPENDS="libgcrypt-dev openssl-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 sed -i 's|^#OPENSSL|OPENSSL|' Makefile # breaks GPL license
23 sed -i "s|perl -w .*|&\\n sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile
24 make && make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr $fs/var/run/vpnc
31 cp -a $install/etc $fs
32 cp -a $install/usr/local/bin $fs/usr
33 cp -a $install/usr/local/sbin $fs/usr
34 sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script
35 }
37 # Pre and post install commands for Tazpkg.
38 post_install()
39 {
40 cat <<EOT
41 -------------
42 You can now update /etc/vpnc/default.conf
43 -------------
44 EOT
45 }