wok-current view openvpn/receipt @ rev 15742
Up: tazdev and tazwikiss (match slitaz-dev-tools Hg tag)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Jan 02 14:50:15 2014 +0100 (2014-01-02) |
parents | b768ede0c5cb |
children | 6167b0fd38db |
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 $install/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 }