wok view openvpn/receipt @ rev 15466

asterisk: add some addons
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 08 09:51:52 2013 +0000 (2013-11-08)
parents f2ca3cf4f646
children 051931e905b0
line source
1 # SliTaz package receipt.
3 PACKAGE="openvpn"
4 VERSION="2.2.1"
5 CATEGORY="network"
6 SHORT_DESC="Full-featured open source SSL VPN solution."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://openvpn.net/"
11 WGET_URL="http://swupdate.openvpn.net/community/releases/$TARBALL"
12 DEPENDS="lzo openssl"
13 BUILD_DEPENDS="lzo-dev openssl-dev libcrypto-dev pam pam-dev"
14 TAGS="vpn tunnel network"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --enable-password-save \
23 $CONFIGURE_ARGS &&
24 make &&
25 ( cd plugin/auth-pam/ ; make ) &&
26 ( cd plugin/down-root/ ; make ) &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/sbin
34 cp -a $_pkg/usr/sbin/openvpn $fs/usr/sbin
35 }
37 # Post install/remove commands for Tazpkg.
38 post_install()
39 {
40 mkdir -p $1/etc/openvpn $1/var/run/openvpn
41 }
43 post_remove()
44 {
45 # remove config and pids
46 rm -rf $1/etc/openvpn $1/var/run/openvpn
47 }