wok-next view openvpn/receipt @ rev 20906
Update homepages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Aug 10 12:53:17 2018 +0300 (2018-08-10) |
parents | 97d48a6b3447 |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="openvpn"
4 VERSION="2.4.6"
5 CATEGORY="network"
6 SHORT_DESC="Full-featured open source SSL VPN solution"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://openvpn.net/index.php/open-source.html"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://swupdate.openvpn.net/community/releases/$TARBALL"
14 BUILD_DEPENDS="lzo-dev openssl-dev pam-dev lz4-dev"
15 SPLIT="openvpn openvpn-doc openvpn-down-root openvpn-pam openvpn-dev"
17 compile_rules() {
18 ./configure \
19 --sbindir=/usr/bin \
20 --enable-iproute2 \
21 --enable-plugins \
22 --enable-x509-alt-username \
23 $CONFIGURE_ARGS &&
24 make &&
25 make install || return 1
27 install -Dm755 $stuff/etc/init.d/openvpn-client $install/etc/init.d/openvpn-client
28 install -Dm755 $stuff/etc/init.d/openvpn-server $install/etc/init.d/openvpn-server
29 install -Dm644 $stuff/etc/openvpn/openvpn.conf $install/etc/openvpn/openvpn.conf
30 }
32 genpkg_rules() {
33 case $PACKAGE in
34 openvpn)
35 copy openvpn etc/
36 DEPENDS="lz4-lib lzo openssl"
37 TAGS="vpn tunnel network"
38 ;;
39 openvpn-doc)
40 copy doc/ sample-config-files/ sample-plugins/ sample-keys/ \
41 sample-scripts/
42 CAT="network|documentation"
43 DEPENDS="openvpn"
44 ;;
45 openvpn-down-root)
46 copy openvpn-plugin-down-root.so
47 CAT="network|the down-root plugin"
48 DEPENDS="openvpn"
49 ;;
50 openvpn-pam)
51 copy openvpn-plugin-auth-pam.so
52 CAT="network|PAM plugin"
53 PROVIDE="openvpn:pam"
54 DEPENDS="openvpn pam"
55 TAGS="vpn tunnel network"
56 ;;
57 openvpn-dev)
58 copy @dev
59 ;;
60 esac
61 }
63 post_remove_openvpn() {
64 # remove config
65 rm -rf "$1/etc/openvpn/"
66 }