Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/openvpn/
Date: Sat, 16 Feb 2019 18:58:42
Message-Id: 1550343500.a6a754e0f680a11be6e4039b23ea1e6182236542.bman@gentoo
1 commit: a6a754e0f680a11be6e4039b23ea1e6182236542
2 Author: Stefan Strogin <stefan.strogin <AT> gmail <DOT> com>
3 AuthorDate: Sat Feb 16 07:37:02 2019 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 16 18:58:20 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6a754e0
7
8 net-vpn/openvpn: fix slot operators for libressl and openssl
9
10 Package-Manager: Portage-2.3.60, Repoman-2.3.12
11 Signed-off-by: Stefan Strogin <stefan.strogin <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/11069
13 Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
14
15 ...openvpn-9999.ebuild => openvpn-2.4.6-r1.ebuild} | 40 ++++++++++++----------
16 net-vpn/openvpn/openvpn-9999.ebuild | 4 +--
17 2 files changed, 24 insertions(+), 20 deletions(-)
18
19 diff --git a/net-vpn/openvpn/openvpn-9999.ebuild b/net-vpn/openvpn/openvpn-2.4.6-r1.ebuild
20 similarity index 79%
21 copy from net-vpn/openvpn/openvpn-9999.ebuild
22 copy to net-vpn/openvpn/openvpn-2.4.6-r1.ebuild
23 index 60662fa4fd3..81d3d655a38 100644
24 --- a/net-vpn/openvpn/openvpn-9999.ebuild
25 +++ b/net-vpn/openvpn/openvpn-2.4.6-r1.ebuild
26 @@ -1,25 +1,23 @@
27 -# Copyright 1999-2018 Gentoo Foundation
28 +# Copyright 1999-2019 Gentoo Authors
29 # Distributed under the terms of the GNU General Public License v2
30
31 EAPI=6
32
33 -inherit autotools flag-o-matic user systemd linux-info git-r3
34 +inherit autotools flag-o-matic user systemd linux-info
35
36 DESCRIPTION="Robust and highly flexible tunneling application compatible with many OSes"
37 -EGIT_REPO_URI="https://github.com/OpenVPN/${PN}.git"
38 -EGIT_SUBMODULES=(-cmocka)
39 +SRC_URI="https://swupdate.openvpn.net/community/releases/${P}.tar.gz
40 + test? ( https://raw.githubusercontent.com/OpenVPN/${PN}/v${PV}/tests/unit_tests/${PN}/mock_msg.h )"
41 HOMEPAGE="https://openvpn.net/"
42
43 LICENSE="GPL-2"
44 SLOT="0"
45 -KEYWORDS=""
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
47
48 IUSE="down-root examples inotify iproute2 libressl lz4 +lzo mbedtls pam"
49 IUSE+=" pkcs11 +plugins selinux +ssl static systemd test userland_BSD"
50
51 REQUIRED_USE="static? ( !plugins !pkcs11 )
52 - lzo? ( !lz4 )
53 - pkcs11? ( ssl )
54 mbedtls? ( ssl !libressl )
55 pkcs11? ( ssl )
56 !plugins? ( !pam !down-root )
57 @@ -28,13 +26,13 @@ REQUIRED_USE="static? ( !plugins !pkcs11 )
58 CDEPEND="
59 kernel_linux? (
60 iproute2? ( sys-apps/iproute2[-minimal] )
61 - !iproute2? ( sys-apps/net-tools )
62 + !iproute2? ( >=sys-apps/net-tools-1.60_p20160215155418 )
63 )
64 pam? ( virtual/pam )
65 ssl? (
66 !mbedtls? (
67 - !libressl? ( >=dev-libs/openssl-0.9.8:* )
68 - libressl? ( dev-libs/libressl )
69 + !libressl? ( >=dev-libs/openssl-0.9.8:0= )
70 + libressl? ( dev-libs/libressl:0= )
71 )
72 mbedtls? ( net-libs/mbedtls )
73 )
74 @@ -51,6 +49,7 @@ CONFIG_CHECK="~TUN"
75
76 PATCHES=(
77 "${FILESDIR}/${PN}-external-cmocka.patch"
78 + "${FILESDIR}/${PN}-2.4.5-libressl-macro-fix.patch"
79 )
80
81 pkg_setup() {
82 @@ -60,15 +59,20 @@ pkg_setup() {
83 src_prepare() {
84 default
85 eautoreconf
86 +
87 + if use test; then
88 + cp "${DISTDIR}/mock_msg.h" tests/unit_tests/${PN} || die
89 + fi
90 }
91
92 src_configure() {
93 use static && append-ldflags -Xcompiler -static
94 SYSTEMD_UNIT_DIR=$(systemd_get_systemunitdir) \
95 TMPFILES_DIR="/usr/lib/tmpfiles.d" \
96 + IFCONFIG=/bin/ifconfig \
97 + ROUTE=/bin/route \
98 econf \
99 - --with-plugindir="${ROOT}/usr/$(get_libdir)/$PN" \
100 - $(usex mbedtls 'with-crypto-library' 'mbedtls' '' '') \
101 + $(usex mbedtls '--with-crypto-library=mbedtls' '') \
102 $(use_enable inotify async-push) \
103 $(use_enable ssl crypto) \
104 $(use_enable lz4) \
105 @@ -120,6 +124,11 @@ pkg_postinst() {
106 enewgroup openvpn
107 enewuser openvpn "" "" "" openvpn
108
109 + if use x64-macos; then
110 + elog "You might want to install tuntaposx for TAP interface support:"
111 + elog "http://tuntaposx.sourceforge.net"
112 + fi
113 +
114 elog "The openvpn init script expects to find the configuration file"
115 elog "openvpn.conf in /etc/openvpn along with any extra files it may need."
116 elog ""
117 @@ -144,11 +153,6 @@ pkg_postinst() {
118
119 if use plugins ; then
120 einfo ""
121 - einfo "plugins have been installed into /usr/$(get_libdir)/${PN}"
122 + einfo "plugins have been installed into /usr/$(get_libdir)/${PN}/plugins"
123 fi
124 -
125 - ewarn ""
126 - ewarn "You are using a live ebuild building from the sources of openvpn"
127 - ewarn "repository from http://openvpn.git.sourceforge.net. For reporting"
128 - ewarn "bugs please contact: openvpn-devel@×××××××××××××××××.net."
129 }
130
131 diff --git a/net-vpn/openvpn/openvpn-9999.ebuild b/net-vpn/openvpn/openvpn-9999.ebuild
132 index 60662fa4fd3..eb65ce756e9 100644
133 --- a/net-vpn/openvpn/openvpn-9999.ebuild
134 +++ b/net-vpn/openvpn/openvpn-9999.ebuild
135 @@ -33,8 +33,8 @@ CDEPEND="
136 pam? ( virtual/pam )
137 ssl? (
138 !mbedtls? (
139 - !libressl? ( >=dev-libs/openssl-0.9.8:* )
140 - libressl? ( dev-libs/libressl )
141 + !libressl? ( >=dev-libs/openssl-0.9.8:0= )
142 + libressl? ( dev-libs/libressl:0= )
143 )
144 mbedtls? ( net-libs/mbedtls )
145 )