wok annotate vpnc/receipt @ rev 1937

Up slitaz-tools (2.8)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 26 20:18:26 2008 +0000 (2008-12-26)
parents
children f135405894d8
rev   line source
pascal@1640 1 # SliTaz package receipt.
pascal@1640 2
pascal@1640 3 PACKAGE="vpnc"
pascal@1640 4 VERSION="0.5.1"
pascal@1640 5 CATEGORY="network"
pascal@1640 6 SHORT_DESC="VPN client compatible with Cisco's EasyVPN equipment."
pascal@1640 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@1640 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1640 9 WEB_SITE="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
pascal@1640 10 WGET_URL="$WEB_SITE$TARBALL"
pascal@1640 11 DEPENDS="libgcrypt libgpg-error glibc-base perl"
pascal@1640 12 BUILD_DEV="linux-headers libgcrypt-dev openssl-dev"
pascal@1640 13 CONFIG_FILES="/etc/vpnc"
pascal@1640 14
pascal@1640 15 # Rules to configure and make the package.
pascal@1640 16 compile_rules()
pascal@1640 17 {
pascal@1640 18 cd $src
pascal@1640 19 make && make DESTDIR=$PWD/_pkg install
pascal@1640 20 }
pascal@1640 21
pascal@1640 22 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1640 23 genpkg_rules()
pascal@1640 24 {
pascal@1640 25 mkdir -p $fs/usr $fs/var/run/vpnc
pascal@1640 26 cp -a $_pkg/etc $fs
pascal@1640 27 cp -a $_pkg/usr/local/bin $fs/usr
pascal@1640 28 cp -a $_pkg/usr/local/sbin $fs/usr
pascal@1640 29 sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script
pascal@1640 30 }
pascal@1640 31
pascal@1640 32 # Pre and post install commands for Tazpkg.
pascal@1640 33 post_install()
pascal@1640 34 {
pascal@1640 35 cat <<EOT
pascal@1640 36 -------------
pascal@1640 37 You can now update /etc/vpnc/default.conf
pascal@1640 38 -------------
pascal@1640 39 EOT
pascal@1640 40 }
pascal@1640 41