wok-current view openvpn/receipt @ rev 16661
Up rtorrent (0.9.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 14 07:04:33 2014 +0000 (2014-05-14) |
parents | f498b54a20cd |
children | 0d8a1a3edc72 |
line source
1 # SliTaz package receipt.
3 PACKAGE="openvpn"
4 VERSION="2.3.3"
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 TAGS="vpn tunnel network"
13 HOST_ARCH="i486 arm"
15 DEPENDS="lzo libcrypto openssl"
16 BUILD_DEPENDS="lzo-dev libcrypto-dev openssl-dev pam-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure \
23 --prefix=/usr \
24 --enable-password-save \
25 $CONFIGURE_ARGS &&
26 make &&
27 ( cd plugin/auth-pam/ ; make ) &&
28 ( cd plugin/down-root/ ; make ) &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/sbin
36 cp -a $install/usr/sbin/openvpn $fs/usr/sbin
37 cp -a $stuff/etc $fs
38 chown root.root $fs/etc/init.d/*
39 chmod 0644 $fs/etc/openvpn/openvpn.conf
40 }
42 # Post install/remove commands for Tazpkg.
43 post_install()
44 {
45 mkdir -p ${root}/var/run/openvpn
46 }
48 post_remove()
49 {
50 # remove config and pids
51 rm -rf ${root}/etc/openvpn ${root}/var/run/openvpn
52 }