wok view openvpn/receipt @ rev 24042

modified stuff/get-anydesk
author Hans-G?nter Theisgen
date Thu Apr 15 15:26:18 2021 +0100 (2021-04-15)
parents 0699e7a9c776
children 7bea68e23e6b
line source
1 # SliTaz package receipt.
3 PACKAGE="openvpn"
4 VERSION="2.5.0"
5 CATEGORY="network"
6 TAGS="vpn tunnel network"
7 SHORT_DESC="Full-featured open source SSL VPN solution."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://openvpn.net/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://swupdate.openvpn.net/community/releases/$TARBALL"
15 DEPENDS="libcrypto lzo openssl"
16 BUILD_DEPENDS="libcrypto-dev lzo-dev openssl-dev pam-dev"
18 HOST_ARCH="i486 arm"
20 current_version()
21 {
22 wget -O - $WEB_SITE/community-downloads/ 2>/dev/null | \
23 sed '/releases/!d;/tar/!d;s|.*openvpn-\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --prefix=/usr \
31 --enable-password-save \
32 $CONFIGURE_ARGS &&
33 make &&
34 ( cd src/plugins/auth-pam/ ; make ) &&
35 ( cd src/plugins/down-root/ ; make ) &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/sbin
44 cp -a $install/usr/sbin/openvpn $fs/usr/sbin
45 cp -a $stuff/* $fs
47 chown root.root $fs/etc/init.d/*
48 chmod 0644 $fs/etc/openvpn/openvpn.conf
49 }
51 post_remove()
52 {
53 # remove config
54 rm -rf ${root}/etc/openvpn
55 }