wok-next annotate openvpn/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | a3c581bf52b8 |
children | d457c4e37c1b |
rev | line source |
---|---|
pascal@20154 | 1 # SliTaz package receipt v2. |
pascal@317 | 2 |
pascal@317 | 3 PACKAGE="openvpn" |
al@20723 | 4 VERSION="2.4.6" |
pascal@317 | 5 CATEGORY="network" |
al@20601 | 6 SHORT_DESC="Full-featured open source SSL VPN solution" |
pascal@317 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14698 | 8 LICENSE="GPL2" |
al@20906 | 9 WEB_SITE="https://openvpn.net/index.php/open-source.html" |
al@20601 | 10 |
mojo@17535 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@20723 | 12 WGET_URL="https://swupdate.openvpn.net/community/releases/$TARBALL" |
pankso@15785 | 13 |
al@20723 | 14 BUILD_DEPENDS="lzo-dev openssl-dev pam-dev lz4-dev" |
al@21020 | 15 SPLIT="$PACKAGE-doc $PACKAGE-down-root $PACKAGE-pam $PACKAGE-dev" |
pascal@317 | 16 |
al@20601 | 17 compile_rules() { |
pankso@10810 | 18 ./configure \ |
al@20723 | 19 --sbindir=/usr/bin \ |
al@20723 | 20 --enable-iproute2 \ |
al@20723 | 21 --enable-plugins \ |
al@20723 | 22 --enable-x509-alt-username \ |
pankso@10810 | 23 $CONFIGURE_ARGS && |
pascal@1514 | 24 make && |
al@20723 | 25 make install || return 1 |
al@20601 | 26 |
al@20601 | 27 install -Dm755 $stuff/etc/init.d/openvpn-client $install/etc/init.d/openvpn-client |
al@20601 | 28 install -Dm755 $stuff/etc/init.d/openvpn-server $install/etc/init.d/openvpn-server |
al@20601 | 29 install -Dm644 $stuff/etc/openvpn/openvpn.conf $install/etc/openvpn/openvpn.conf |
pascal@317 | 30 } |
pascal@317 | 31 |
al@20601 | 32 genpkg_rules() { |
pascal@20154 | 33 case $PACKAGE in |
al@20601 | 34 openvpn) |
al@20601 | 35 copy openvpn etc/ |
al@20723 | 36 DEPENDS="lz4-lib lzo openssl" |
al@20601 | 37 TAGS="vpn tunnel network" |
al@20601 | 38 ;; |
al@20601 | 39 openvpn-doc) |
al@20601 | 40 copy doc/ sample-config-files/ sample-plugins/ sample-keys/ \ |
al@20601 | 41 sample-scripts/ |
al@20601 | 42 CAT="network|documentation" |
al@20601 | 43 DEPENDS="openvpn" |
al@20601 | 44 ;; |
al@20601 | 45 openvpn-down-root) |
al@20601 | 46 copy openvpn-plugin-down-root.so |
al@20601 | 47 CAT="network|the down-root plugin" |
al@20601 | 48 DEPENDS="openvpn" |
al@20601 | 49 ;; |
al@20601 | 50 openvpn-pam) |
al@20601 | 51 copy openvpn-plugin-auth-pam.so |
al@20601 | 52 CAT="network|PAM plugin" |
al@20601 | 53 PROVIDE="openvpn:pam" |
al@20601 | 54 DEPENDS="openvpn pam" |
al@20601 | 55 TAGS="vpn tunnel network" |
al@20601 | 56 ;; |
al@20723 | 57 openvpn-dev) |
al@20723 | 58 copy @dev |
al@20723 | 59 ;; |
pascal@20154 | 60 esac |
pascal@317 | 61 } |
pascal@317 | 62 |
al@20601 | 63 post_remove_openvpn() { |
pascal@16681 | 64 # remove config |
al@20723 | 65 rm -rf "$1/etc/openvpn/" |
pascal@336 | 66 } |