wok-4.x view openvpn/receipt @ rev 10810
openvpn: --enable-password-save
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Jun 05 01:09:55 2011 +0200 (2011-06-05) |
parents | 130c6e5dd0e0 |
children | f2ca3cf4f646 |
line source
1 # SliTaz package receipt.
3 PACKAGE="openvpn"
4 VERSION="2.2.0"
5 CATEGORY="network"
6 SHORT_DESC="Full-featured open source SSL VPN solution."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://openvpn.net/"
10 WGET_URL="http://swupdate.openvpn.net/community/releases/$TARBALL"
11 DEPENDS="lzo openssl"
12 BUILD_DEPENDS="lzo-dev openssl-dev libcrypto-dev pam pam-dev"
13 TAGS="vpn tunnel network"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 --prefix=/usr \
21 --enable-password-save \
22 $CONFIGURE_ARGS &&
23 make &&
24 ( cd plugin/auth-pam/ ; make ) &&
25 ( cd plugin/down-root/ ; make ) &&
26 make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/sbin
33 cp -a $_pkg/usr/sbin/openvpn $fs/usr/sbin
34 }
36 # Post install/remove commands for Tazpkg.
37 post_install()
38 {
39 mkdir -p $1/etc/openvpn $1/var/run/openvpn
40 }
42 post_remove()
43 {
44 # remove config and pids
45 rm -rf $1/etc/openvpn $1/var/run/openvpn
46 }