wok-next view openvpn/receipt @ rev 20332
Up exosip, httpfs-fuse, libvncserver, upx; add upx391 (for httpfs-fuse)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Nov 15 14:21:32 2017 +0200 (2017-11-15) |
parents | 63d2fe54fb44 |
children | e6615350078d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="openvpn"
4 VERSION="2.3.6"
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.xz"
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 BUILD_DEPENDS="lzo-dev libcrypto-dev openssl-dev pam-dev"
16 SPLIT="openvpn openvpn-doc openvpn-down-root openvpn-pam"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure \
22 --prefix=/usr \
23 --enable-password-save \
24 $CONFIGURE_ARGS &&
25 make &&
26 ( cd plugin/auth-pam/ ; make ) &&
27 ( cd plugin/down-root/ ; make ) &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 case $PACKAGE in
35 openvpn)
36 DEPENDS="lzo libcrypto openssl"
37 mkdir -p $fs/usr/sbin
38 cp -a $install/usr/sbin/openvpn $fs/usr/sbin
39 cp -a $stuff/etc $fs
40 chown root.root $fs/etc/init.d/*
41 chmod 0644 $fs/etc/openvpn/openvpn.conf
42 ;;
43 openvpn-doc)
44 CAT="network|Documentation for OpenVPN."
45 DEPENDS="openvpn"
46 mkdir -p $fs/usr/share/openvpn
47 cp -a $install/usr/share/ $fs/usr/
48 cp -a $src/sample/sample-config-files $fs/usr/share/openvpn
49 cp -a $src/sample/sample-plugins $fs/usr/share/openvpn
50 cp -a $src/sample/sample-keys $fs/usr/share/openvpn
51 cp -a $src/sample/sample-scripts $fs/usr/share/openvpn
52 ;;
53 openvpn-down-root)
54 CAT="network|The down-root plugin for OpenVPN."
55 DEPENDS="openvpn"
56 mkdir -p $fs/usr/share/openvpn
57 cp -a $src/src/plugins/down-root/.libs/openvpn-plugin-down-root.so \
58 $fs/usr/share/openvpn
59 ;;
60 openvpn-pam)
61 CAT="network|PAM plugin for OpenVPN."
62 PROVIDE="openvpn:pam"
63 DEPENDS="openvpn pam"
64 mkdir -p $fs/usr/share/openvpn
65 cp -a $src/src/plugins/auth-pam/.libs/openvpn-plugin-auth-pam.so \
66 $fs/usr/share/openvpn
67 ;;
68 esac
69 }
71 post_remove_openvpn()
72 {
73 # remove config
74 rm -rf ${root}/etc/openvpn
75 }