wok annotate vpnc/receipt @ rev 15402
Up: lvm2-dev (2.02.98)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sat Nov 02 21:27:40 2013 +0100 (2013-11-02) |
parents | 7336f62c21cc |
children | 90198f573d18 |
rev | line source |
---|---|
pascal@1640 | 1 # SliTaz package receipt. |
pascal@1640 | 2 |
pascal@1640 | 3 PACKAGE="vpnc" |
pascal@13517 | 4 VERSION="0.5.3" |
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@15002 | 8 LICENSE="GPL2" |
pascal@1640 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1640 | 10 WEB_SITE="http://www.unix-ag.uni-kl.de/~massar/vpnc/" |
pascal@1640 | 11 WGET_URL="$WEB_SITE$TARBALL" |
pascal@13517 | 12 CONFIG_FILES="/etc/vpnc" |
pascal@13517 | 13 TAGS="vpn tunnel" |
pascal@13517 | 14 |
pascal@1640 | 15 DEPENDS="libgcrypt libgpg-error glibc-base perl" |
slaxemulator@6640 | 16 BUILD_DEPENDS="libgcrypt-dev openssl-dev" |
pascal@1640 | 17 |
pascal@1640 | 18 # Rules to configure and make the package. |
pascal@1640 | 19 compile_rules() |
pascal@1640 | 20 { |
pascal@1640 | 21 cd $src |
pascal@5883 | 22 sed -i "s|perl -w .*|&\\n sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile |
pascal@13517 | 23 make && make DESTDIR=$DESTDIR install |
pascal@1640 | 24 } |
pascal@1640 | 25 |
pascal@1640 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1640 | 27 genpkg_rules() |
pascal@1640 | 28 { |
pascal@1640 | 29 mkdir -p $fs/usr $fs/var/run/vpnc |
pascal@13517 | 30 cp -a $install/etc $fs |
pascal@13517 | 31 cp -a $install/usr/local/bin $fs/usr |
pascal@13517 | 32 cp -a $install/usr/local/sbin $fs/usr |
pascal@1640 | 33 sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script |
pascal@1640 | 34 } |
pascal@1640 | 35 |
pascal@1640 | 36 # Pre and post install commands for Tazpkg. |
pascal@1640 | 37 post_install() |
pascal@1640 | 38 { |
pascal@1640 | 39 cat <<EOT |
pascal@1640 | 40 ------------- |
pascal@1640 | 41 You can now update /etc/vpnc/default.conf |
pascal@1640 | 42 ------------- |
pascal@1640 | 43 EOT |
pascal@1640 | 44 } |
pascal@1640 | 45 |