wok-next annotate vpnc/receipt @ rev 14395
ecore: update deps+bdeps +tags (e18 release is scheduled next month)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Apr 23 17:23:33 2013 +0200 (2013-04-23) |
parents | 7130b9831b50 |
children | 7896f0694ef6 |
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@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@13517 | 11 CONFIG_FILES="/etc/vpnc" |
pascal@13517 | 12 TAGS="vpn tunnel" |
pascal@13517 | 13 |
pascal@1640 | 14 DEPENDS="libgcrypt libgpg-error glibc-base perl" |
slaxemulator@6640 | 15 BUILD_DEPENDS="libgcrypt-dev openssl-dev" |
pascal@1640 | 16 |
pascal@1640 | 17 # Rules to configure and make the package. |
pascal@1640 | 18 compile_rules() |
pascal@1640 | 19 { |
pascal@1640 | 20 cd $src |
pascal@5883 | 21 sed -i "s|perl -w .*|&\\n sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile |
pascal@13517 | 22 make && make DESTDIR=$DESTDIR install |
pascal@1640 | 23 } |
pascal@1640 | 24 |
pascal@1640 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1640 | 26 genpkg_rules() |
pascal@1640 | 27 { |
pascal@1640 | 28 mkdir -p $fs/usr $fs/var/run/vpnc |
pascal@13517 | 29 cp -a $install/etc $fs |
pascal@13517 | 30 cp -a $install/usr/local/bin $fs/usr |
pascal@13517 | 31 cp -a $install/usr/local/sbin $fs/usr |
pascal@1640 | 32 sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script |
pascal@1640 | 33 } |
pascal@1640 | 34 |
pascal@1640 | 35 # Pre and post install commands for Tazpkg. |
pascal@1640 | 36 post_install() |
pascal@1640 | 37 { |
pascal@1640 | 38 cat <<EOT |
pascal@1640 | 39 ------------- |
pascal@1640 | 40 You can now update /etc/vpnc/default.conf |
pascal@1640 | 41 ------------- |
pascal@1640 | 42 EOT |
pascal@1640 | 43 } |
pascal@1640 | 44 |