wok view openvpn/receipt @ rev 23649

Up openvpn (2.4.9)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 20 13:31:36 2020 +0000 (2020-04-20)
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 }