wok-next view openvpn/receipt @ rev 21403
updated php again (7.4.4 -> 7.4.5)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 21 10:28:30 2020 +0100 (2020-04-21) |
parents | d5aab818505e |
children |
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/community/"
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="$PACKAGE-doc $PACKAGE-down-root $PACKAGE-pam $PACKAGE-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 }