wok-6.x view vpnc/receipt @ rev 19435
zerobin: add download button
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Oct 04 15:33:49 2016 +0200 (2016-10-04) |
parents | 90198f573d18 |
children | a78610b2eb47 |
line source
1 # SliTaz package receipt.
3 PACKAGE="vpnc"
4 VERSION="0.5.3"
5 CATEGORY="network"
6 SHORT_DESC="VPN client compatible with Cisco's EasyVPN equipment."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
11 WGET_URL="$WEB_SITE$TARBALL"
12 CONFIG_FILES="/etc/vpnc"
13 TAGS="vpn tunnel"
15 DEPENDS="libgcrypt libgpg-error glibc-base perl"
16 BUILD_DEPENDS="libgcrypt-dev openssl-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 sed -i "s|perl -w .*|&\\n sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile
23 make && make DESTDIR=$DESTDIR install
24 install -d -m 755 $DESTDIR/usr/share/man/man1 &&
25 install -d -m 755 $DESTDIR/usr/share/man/man8 &&
26 install -d -m 755 $DESTDIR/usr/share/doc &&
27 install -m 644 $src/*.1 $DESTDIR/usr/share/man/man1 &&
28 install -m 644 $src/*.8 $DESTDIR/usr/share/man/man8 &&
29 install -m 644 $src/[A-Z][A-Z]* $src/C* $DESTDIR/usr/share/doc
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr $fs/var/run/vpnc
36 cp -a $install/etc $fs
37 cp -a $install/usr/local/bin $fs/usr
38 cp -a $install/usr/local/sbin $fs/usr
39 sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script
40 }
42 # Pre and post install commands for Tazpkg.
43 post_install()
44 {
45 cat <<EOT
46 -------------
47 You can now update /etc/vpnc/default.conf
48 -------------
49 EOT
50 }