wok-current annotate vpnc/receipt @ rev 19450
syslinux: typo in iso2exe
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 17 15:31:24 2016 +0200 (2016-10-17) |
parents | 90198f573d18 |
children | a78610b2eb47 |
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@19369 | 24 install -d -m 755 $DESTDIR/usr/share/man/man1 && |
pascal@19369 | 25 install -d -m 755 $DESTDIR/usr/share/man/man8 && |
pascal@19369 | 26 install -d -m 755 $DESTDIR/usr/share/doc && |
pascal@19371 | 27 install -m 644 $src/*.1 $DESTDIR/usr/share/man/man1 && |
pascal@19371 | 28 install -m 644 $src/*.8 $DESTDIR/usr/share/man/man8 && |
pascal@19371 | 29 install -m 644 $src/[A-Z][A-Z]* $src/C* $DESTDIR/usr/share/doc |
pascal@1640 | 30 } |
pascal@1640 | 31 |
pascal@1640 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1640 | 33 genpkg_rules() |
pascal@1640 | 34 { |
pascal@1640 | 35 mkdir -p $fs/usr $fs/var/run/vpnc |
pascal@13517 | 36 cp -a $install/etc $fs |
pascal@13517 | 37 cp -a $install/usr/local/bin $fs/usr |
pascal@13517 | 38 cp -a $install/usr/local/sbin $fs/usr |
pascal@1640 | 39 sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script |
pascal@1640 | 40 } |
pascal@1640 | 41 |
pascal@1640 | 42 # Pre and post install commands for Tazpkg. |
pascal@1640 | 43 post_install() |
pascal@1640 | 44 { |
pascal@1640 | 45 cat <<EOT |
pascal@1640 | 46 ------------- |
pascal@1640 | 47 You can now update /etc/vpnc/default.conf |
pascal@1640 | 48 ------------- |
pascal@1640 | 49 EOT |
pascal@1640 | 50 } |
pascal@1640 | 51 |