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