wok-6.x annotate openvpn/receipt @ rev 23252
updated nss-ldapd (0.7.15 -> 0.9.11)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 25 14:43:12 2020 +0100 (2020-03-25) |
parents | ea14002b02bc |
children | 0699e7a9c776 |
rev | line source |
---|---|
pascal@317 | 1 # SliTaz package receipt. |
pascal@317 | 2 |
pascal@317 | 3 PACKAGE="openvpn" |
pascal@23178 | 4 VERSION="2.4.8" |
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@23178 | 22 wget -O - $WEB_SITE/community-downloads/ 2>/dev/null | \ |
pascal@23178 | 23 sed '/releases/!d;/tar/!d;s|.*openvpn-\(.*\).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 } |