wok-next diff 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 |
line diff
1.1 --- a/openvpn/receipt Fri Mar 02 12:12:14 2018 +0200 1.2 +++ b/openvpn/receipt Tue Apr 17 01:13:26 2018 +0300 1.3 @@ -3,72 +3,65 @@ 1.4 PACKAGE="openvpn" 1.5 VERSION="2.3.6" 1.6 CATEGORY="network" 1.7 -SHORT_DESC="Full-featured open source SSL VPN solution." 1.8 +SHORT_DESC="Full-featured open source SSL VPN solution" 1.9 MAINTAINER="pascal.bellard@slitaz.org" 1.10 LICENSE="GPL2" 1.11 +WEB_SITE="http://openvpn.net/" 1.12 + 1.13 TARBALL="$PACKAGE-$VERSION.tar.xz" 1.14 -WEB_SITE="http://openvpn.net/" 1.15 WGET_URL="http://swupdate.openvpn.net/community/releases/$TARBALL" 1.16 -TAGS="vpn tunnel network" 1.17 1.18 BUILD_DEPENDS="lzo-dev openssl-dev pam-dev" 1.19 SPLIT="openvpn openvpn-doc openvpn-down-root openvpn-pam" 1.20 1.21 -# Rules to configure and make the package. 1.22 -compile_rules() 1.23 -{ 1.24 +compile_rules() { 1.25 ./configure \ 1.26 - --prefix=/usr \ 1.27 --enable-password-save \ 1.28 $CONFIGURE_ARGS && 1.29 make && 1.30 ( cd plugin/auth-pam/ ; make ) && 1.31 ( cd plugin/down-root/ ; make ) && 1.32 - make DESTDIR=$DESTDIR install 1.33 + make DESTDIR=$DESTDIR install || return 1 1.34 + 1.35 + install -Dm755 $stuff/etc/init.d/openvpn-client $install/etc/init.d/openvpn-client 1.36 + install -Dm755 $stuff/etc/init.d/openvpn-server $install/etc/init.d/openvpn-server 1.37 + install -Dm644 $stuff/etc/openvpn/openvpn.conf $install/etc/openvpn/openvpn.conf 1.38 + 1.39 + install -Dm755 $src/src/plugins/down-root/.libs/openvpn-plugin-down-root.so \ 1.40 + $install/usr/share/openvpn/openvpn-plugin-down-root.so 1.41 + install -Dm755 $src/src/plugins/auth-pam/.libs/openvpn-plugin-auth-pam.so \ 1.42 + $install/usr/share/openvpn/openvpn-plugin-auth-pam.so 1.43 } 1.44 1.45 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.46 -genpkg_rules() 1.47 -{ 1.48 +genpkg_rules() { 1.49 case $PACKAGE in 1.50 - openvpn) 1.51 - DEPENDS="lzo openssl" 1.52 - mkdir -p $fs/usr/sbin 1.53 - cp -a $install/usr/sbin/openvpn $fs/usr/sbin 1.54 - cp -a $stuff/etc $fs 1.55 - chown root.root $fs/etc/init.d/* 1.56 - chmod 0644 $fs/etc/openvpn/openvpn.conf 1.57 - ;; 1.58 - openvpn-doc) 1.59 - CAT="network|Documentation for OpenVPN." 1.60 - DEPENDS="openvpn" 1.61 - mkdir -p $fs/usr/share/openvpn 1.62 - cp -a $install/usr/share/ $fs/usr/ 1.63 - cp -a $src/sample/sample-config-files $fs/usr/share/openvpn 1.64 - cp -a $src/sample/sample-plugins $fs/usr/share/openvpn 1.65 - cp -a $src/sample/sample-keys $fs/usr/share/openvpn 1.66 - cp -a $src/sample/sample-scripts $fs/usr/share/openvpn 1.67 - ;; 1.68 - openvpn-down-root) 1.69 - CAT="network|The down-root plugin for OpenVPN." 1.70 - DEPENDS="openvpn" 1.71 - mkdir -p $fs/usr/share/openvpn 1.72 - cp -a $src/src/plugins/down-root/.libs/openvpn-plugin-down-root.so \ 1.73 - $fs/usr/share/openvpn 1.74 - ;; 1.75 - openvpn-pam) 1.76 - CAT="network|PAM plugin for OpenVPN." 1.77 - PROVIDE="openvpn:pam" 1.78 - DEPENDS="openvpn pam" 1.79 - mkdir -p $fs/usr/share/openvpn 1.80 - cp -a $src/src/plugins/auth-pam/.libs/openvpn-plugin-auth-pam.so \ 1.81 - $fs/usr/share/openvpn 1.82 - ;; 1.83 + openvpn) 1.84 + copy openvpn etc/ 1.85 + DEPENDS="lzo openssl" 1.86 + TAGS="vpn tunnel network" 1.87 + ;; 1.88 + openvpn-doc) 1.89 + copy doc/ sample-config-files/ sample-plugins/ sample-keys/ \ 1.90 + sample-scripts/ 1.91 + CAT="network|documentation" 1.92 + DEPENDS="openvpn" 1.93 + ;; 1.94 + openvpn-down-root) 1.95 + copy openvpn-plugin-down-root.so 1.96 + CAT="network|the down-root plugin" 1.97 + DEPENDS="openvpn" 1.98 + ;; 1.99 + openvpn-pam) 1.100 + copy openvpn-plugin-auth-pam.so 1.101 + CAT="network|PAM plugin" 1.102 + PROVIDE="openvpn:pam" 1.103 + DEPENDS="openvpn pam" 1.104 + TAGS="vpn tunnel network" 1.105 + ;; 1.106 esac 1.107 } 1.108 1.109 -post_remove_openvpn() 1.110 -{ 1.111 +post_remove_openvpn() { 1.112 # remove config 1.113 rm -rf ${root}/etc/openvpn 1.114 }