wok annotate openvpn/receipt @ rev 25107

Up open-iscsi (2.0.873)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 22 17:23:49 2022 +0000 (2022-06-22)
parents bc2b9d9bed6f
children
rev   line source
pascal@317 1 # SliTaz package receipt.
pascal@317 2
pascal@317 3 PACKAGE="openvpn"
Hans-G?nter@25072 4 VERSION="2.5.7"
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@25072 29 # 2.5.7 unrecognised:
Hans-G?nter@25072 30 # --enable-password-save
Hans-G?nter@25072 31
Hans-G?nter@21643 32 ./configure \
Hans-G?nter@21643 33 --prefix=/usr \
pankso@10810 34 $CONFIGURE_ARGS &&
pascal@1514 35 make &&
Hans-G?nter@21643 36 ( cd src/plugins/auth-pam/ ; make ) &&
Hans-G?nter@21643 37 ( cd src/plugins/down-root/ ; make ) &&
Hans-G?nter@25072 38 make install DESTDIR=$DESTDIR
pascal@317 39 }
pascal@317 40
pascal@317 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@317 42 genpkg_rules()
pascal@317 43 {
pascal@317 44 mkdir -p $fs/usr/sbin
Hans-G?nter@21643 45
Hans-G?nter@21643 46 cp -a $install/usr/sbin/openvpn $fs/usr/sbin
pascal@23176 47 cp -a $stuff/* $fs
Hans-G?nter@21643 48
Hans-G?nter@25072 49 chown root.root $fs/etc/init.d/*
Hans-G?nter@25072 50 chmod 0644 $fs/etc/openvpn/openvpn.conf
pascal@317 51 }
pascal@317 52
pascal@16681 53 post_remove()
pascal@336 54 {
Hans-G?nter@25072 55 # remove configuration
Hans-G?nter@25072 56 rm -rf $root/etc/openvpn
pascal@336 57 }