wok-current view openvpn/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents bc2b9d9bed6f
children
line source
1 # SliTaz package receipt.
3 PACKAGE="openvpn"
4 VERSION="2.5.7"
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 # 2.5.7 unrecognised:
30 # --enable-password-save
32 ./configure \
33 --prefix=/usr \
34 $CONFIGURE_ARGS &&
35 make &&
36 ( cd src/plugins/auth-pam/ ; make ) &&
37 ( cd src/plugins/down-root/ ; make ) &&
38 make install DESTDIR=$DESTDIR
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/sbin
46 cp -a $install/usr/sbin/openvpn $fs/usr/sbin
47 cp -a $stuff/* $fs
49 chown root.root $fs/etc/init.d/*
50 chmod 0644 $fs/etc/openvpn/openvpn.conf
51 }
53 post_remove()
54 {
55 # remove configuration
56 rm -rf $root/etc/openvpn
57 }