wok-next view openvpn/receipt @ rev 20634
oxine: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 27 12:51:30 2018 +0200 (2018-04-27) |
parents | c4e53a39395a |
children | 97d48a6b3447 |
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 WEB_SITE="http://openvpn.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="http://swupdate.openvpn.net/community/releases/$TARBALL"
14 BUILD_DEPENDS="lzo-dev openssl-dev pam-dev"
15 SPLIT="openvpn openvpn-doc openvpn-down-root openvpn-pam"
17 compile_rules() {
18 ./configure \
19 --enable-password-save \
20 $CONFIGURE_ARGS &&
21 make &&
22 ( cd plugin/auth-pam/ ; make ) &&
23 ( cd plugin/down-root/ ; make ) &&
24 make DESTDIR=$DESTDIR install || return 1
26 install -Dm755 $stuff/etc/init.d/openvpn-client $install/etc/init.d/openvpn-client
27 install -Dm755 $stuff/etc/init.d/openvpn-server $install/etc/init.d/openvpn-server
28 install -Dm644 $stuff/etc/openvpn/openvpn.conf $install/etc/openvpn/openvpn.conf
30 install -Dm755 $src/src/plugins/down-root/.libs/openvpn-plugin-down-root.so \
31 $install/usr/share/openvpn/openvpn-plugin-down-root.so
32 install -Dm755 $src/src/plugins/auth-pam/.libs/openvpn-plugin-auth-pam.so \
33 $install/usr/share/openvpn/openvpn-plugin-auth-pam.so
34 }
36 genpkg_rules() {
37 case $PACKAGE in
38 openvpn)
39 copy openvpn etc/
40 DEPENDS="lzo openssl"
41 TAGS="vpn tunnel network"
42 ;;
43 openvpn-doc)
44 copy doc/ sample-config-files/ sample-plugins/ sample-keys/ \
45 sample-scripts/
46 CAT="network|documentation"
47 DEPENDS="openvpn"
48 ;;
49 openvpn-down-root)
50 copy openvpn-plugin-down-root.so
51 CAT="network|the down-root plugin"
52 DEPENDS="openvpn"
53 ;;
54 openvpn-pam)
55 copy openvpn-plugin-auth-pam.so
56 CAT="network|PAM plugin"
57 PROVIDE="openvpn:pam"
58 DEPENDS="openvpn pam"
59 TAGS="vpn tunnel network"
60 ;;
61 esac
62 }
64 post_remove_openvpn() {
65 # remove config
66 rm -rf ${root}/etc/openvpn
67 }