wok-6.x view openvpn/receipt @ rev 23660

updated spacefm (0.9.4 -> 1.0.6)
author Hans-G?nter Theisgen
date Fri Apr 24 06:18:34 2020 +0100 (2020-04-24)
parents 74c050f1ea1e
children 05c8d8d9d934
line source
1 # SliTaz package receipt.
3 PACKAGE="openvpn"
4 VERSION="2.4.9"
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 }