wok-6.x view vpnc/receipt @ rev 6459

firefox-dev: wipe old versions
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 29 15:38:02 2010 +0200 (2010-09-29)
parents 85036876c1c4
children 7130b9831b50
line source
1 # SliTaz package receipt.
3 PACKAGE="vpnc"
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 DEPENDS="libgcrypt libgpg-error glibc-base perl"
12 BUILD_DEPENDS="linux-headers libgcrypt-dev openssl-dev"
13 CONFIG_FILES="/etc/vpnc"
14 TAGS="vpn tunnel"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 sed -i "s|perl -w .*|&\\n sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile
21 make && make DESTDIR=$PWD/_pkg install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr $fs/var/run/vpnc
28 cp -a $_pkg/etc $fs
29 cp -a $_pkg/usr/local/bin $fs/usr
30 cp -a $_pkg/usr/local/sbin $fs/usr
31 sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script
32 }
34 # Pre and post install commands for Tazpkg.
35 post_install()
36 {
37 cat <<EOT
38 -------------
39 You can now update /etc/vpnc/default.conf
40 -------------
41 EOT
42 }