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