wok view openvpn/receipt @ rev 25039

Up aspell-pl (6.0_20210731-0), icmptx (20190501)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 26 14:53:15 2022 +0000 (2022-05-26)
parents 7bea68e23e6b
children adec29cf1856
line source
1 # SliTaz package receipt.
3 PACKAGE="openvpn"
4 VERSION="2.5.2"
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 - https://github.com/OpenVPN/openvpn/tags 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/v*\(.*\).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 }