wok-current annotate openvpn/receipt @ rev 25024
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 18 20:10:17 2022 +0000 (2022-05-18) |
parents | 7bea68e23e6b |
children | adec29cf1856 |
rev | line source |
---|---|
pascal@317 | 1 # SliTaz package receipt. |
pascal@317 | 2 |
pascal@317 | 3 PACKAGE="openvpn" |
pascal@24049 | 4 VERSION="2.5.2" |
pascal@317 | 5 CATEGORY="network" |
Hans-G?nter@21643 | 6 TAGS="vpn tunnel network" |
pascal@317 | 7 SHORT_DESC="Full-featured open source SSL VPN solution." |
pascal@317 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14698 | 9 LICENSE="GPL2" |
Hans-G?nter@21643 | 10 WEB_SITE="https://openvpn.net/" |
Hans-G?nter@21643 | 11 |
mojo@17535 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@21643 | 13 WGET_URL="https://swupdate.openvpn.net/community/releases/$TARBALL" |
Hans-G?nter@21643 | 14 |
Hans-G?nter@21643 | 15 DEPENDS="libcrypto lzo openssl" |
Hans-G?nter@21643 | 16 BUILD_DEPENDS="libcrypto-dev lzo-dev openssl-dev pam-dev" |
Hans-G?nter@21643 | 17 |
pankso@16381 | 18 HOST_ARCH="i486 arm" |
pankso@15785 | 19 |
pascal@23178 | 20 current_version() |
pascal@23178 | 21 { |
pascal@24614 | 22 wget -O - https://github.com/OpenVPN/openvpn/tags 2>/dev/null | \ |
pascal@24614 | 23 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@23178 | 24 } |
pascal@23178 | 25 |
pascal@317 | 26 # Rules to configure and make the package. |
pascal@317 | 27 compile_rules() |
pascal@317 | 28 { |
Hans-G?nter@21643 | 29 ./configure \ |
Hans-G?nter@21643 | 30 --prefix=/usr \ |
Hans-G?nter@21643 | 31 --enable-password-save \ |
pankso@10810 | 32 $CONFIGURE_ARGS && |
pascal@1514 | 33 make && |
Hans-G?nter@21643 | 34 ( cd src/plugins/auth-pam/ ; make ) && |
Hans-G?nter@21643 | 35 ( cd src/plugins/down-root/ ; make ) && |
slaxemulator@10125 | 36 make DESTDIR=$DESTDIR install |
pascal@317 | 37 } |
pascal@317 | 38 |
pascal@317 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@317 | 40 genpkg_rules() |
pascal@317 | 41 { |
pascal@317 | 42 mkdir -p $fs/usr/sbin |
Hans-G?nter@21643 | 43 |
Hans-G?nter@21643 | 44 cp -a $install/usr/sbin/openvpn $fs/usr/sbin |
pascal@23176 | 45 cp -a $stuff/* $fs |
Hans-G?nter@21643 | 46 |
devl547@16412 | 47 chown root.root $fs/etc/init.d/* |
devl547@16412 | 48 chmod 0644 $fs/etc/openvpn/openvpn.conf |
pascal@317 | 49 } |
pascal@317 | 50 |
pascal@16681 | 51 post_remove() |
pascal@336 | 52 { |
pascal@16681 | 53 # remove config |
pascal@16681 | 54 rm -rf ${root}/etc/openvpn |
pascal@336 | 55 } |