wok view openvpn/receipt @ rev 24608
updated gmp and gmp-dev (6.2.0 -> 6.2.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 04 07:03:01 2022 +0100 (2022-03-04) |
parents | 05c8d8d9d934 |
children | bc2b9d9bed6f |
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 - $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 }