wok-next annotate openvpn/receipt @ rev 20601
More fix libtool.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Apr 17 01:13:26 2018 +0300 (2018-04-17) |
parents | c4e53a39395a |
children | 97d48a6b3447 |
rev | line source |
---|---|
pascal@20154 | 1 # SliTaz package receipt v2. |
pascal@317 | 2 |
pascal@317 | 3 PACKAGE="openvpn" |
mojo@17535 | 4 VERSION="2.3.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@20601 | 9 WEB_SITE="http://openvpn.net/" |
al@20601 | 10 |
mojo@17535 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@10585 | 12 WGET_URL="http://swupdate.openvpn.net/community/releases/$TARBALL" |
pankso@15785 | 13 |
al@20453 | 14 BUILD_DEPENDS="lzo-dev openssl-dev pam-dev" |
pascal@20154 | 15 SPLIT="openvpn openvpn-doc openvpn-down-root openvpn-pam" |
pascal@317 | 16 |
al@20601 | 17 compile_rules() { |
pankso@10810 | 18 ./configure \ |
pankso@10810 | 19 --enable-password-save \ |
pankso@10810 | 20 $CONFIGURE_ARGS && |
pascal@1514 | 21 make && |
pascal@2224 | 22 ( cd plugin/auth-pam/ ; make ) && |
pascal@2224 | 23 ( cd plugin/down-root/ ; make ) && |
al@20601 | 24 make DESTDIR=$DESTDIR install || return 1 |
al@20601 | 25 |
al@20601 | 26 install -Dm755 $stuff/etc/init.d/openvpn-client $install/etc/init.d/openvpn-client |
al@20601 | 27 install -Dm755 $stuff/etc/init.d/openvpn-server $install/etc/init.d/openvpn-server |
al@20601 | 28 install -Dm644 $stuff/etc/openvpn/openvpn.conf $install/etc/openvpn/openvpn.conf |
al@20601 | 29 |
al@20601 | 30 install -Dm755 $src/src/plugins/down-root/.libs/openvpn-plugin-down-root.so \ |
al@20601 | 31 $install/usr/share/openvpn/openvpn-plugin-down-root.so |
al@20601 | 32 install -Dm755 $src/src/plugins/auth-pam/.libs/openvpn-plugin-auth-pam.so \ |
al@20601 | 33 $install/usr/share/openvpn/openvpn-plugin-auth-pam.so |
pascal@317 | 34 } |
pascal@317 | 35 |
al@20601 | 36 genpkg_rules() { |
pascal@20154 | 37 case $PACKAGE in |
al@20601 | 38 openvpn) |
al@20601 | 39 copy openvpn etc/ |
al@20601 | 40 DEPENDS="lzo openssl" |
al@20601 | 41 TAGS="vpn tunnel network" |
al@20601 | 42 ;; |
al@20601 | 43 openvpn-doc) |
al@20601 | 44 copy doc/ sample-config-files/ sample-plugins/ sample-keys/ \ |
al@20601 | 45 sample-scripts/ |
al@20601 | 46 CAT="network|documentation" |
al@20601 | 47 DEPENDS="openvpn" |
al@20601 | 48 ;; |
al@20601 | 49 openvpn-down-root) |
al@20601 | 50 copy openvpn-plugin-down-root.so |
al@20601 | 51 CAT="network|the down-root plugin" |
al@20601 | 52 DEPENDS="openvpn" |
al@20601 | 53 ;; |
al@20601 | 54 openvpn-pam) |
al@20601 | 55 copy openvpn-plugin-auth-pam.so |
al@20601 | 56 CAT="network|PAM plugin" |
al@20601 | 57 PROVIDE="openvpn:pam" |
al@20601 | 58 DEPENDS="openvpn pam" |
al@20601 | 59 TAGS="vpn tunnel network" |
al@20601 | 60 ;; |
pascal@20154 | 61 esac |
pascal@317 | 62 } |
pascal@317 | 63 |
al@20601 | 64 post_remove_openvpn() { |
pascal@16681 | 65 # remove config |
pascal@16681 | 66 rm -rf ${root}/etc/openvpn |
pascal@336 | 67 } |