1 |
commit: 9c3452893b828ec48768c4ce334b7bae602bd35f |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 29 16:06:02 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 29 16:06:19 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c345289 |
7 |
|
8 |
media-sound/umurmur: Revbump adding mbedtls support. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/647656 |
11 |
Package-Manager: Portage-2.3.65, Repoman-2.3.12 |
12 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
13 |
|
14 |
media-sound/umurmur/umurmur-0.2.17-r2.ebuild | 114 +++++++++++++++++++++++++++ |
15 |
1 file changed, 114 insertions(+) |
16 |
|
17 |
diff --git a/media-sound/umurmur/umurmur-0.2.17-r2.ebuild b/media-sound/umurmur/umurmur-0.2.17-r2.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..cf1ac28351f |
20 |
--- /dev/null |
21 |
+++ b/media-sound/umurmur/umurmur-0.2.17-r2.ebuild |
22 |
@@ -0,0 +1,114 @@ |
23 |
+# Copyright 1999-2019 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+inherit autotools systemd readme.gentoo-r1 user |
29 |
+ |
30 |
+DESCRIPTION="Minimalistic Murmur (Mumble server)" |
31 |
+HOMEPAGE="https://github.com/umurmur/umurmur" |
32 |
+if [[ "${PV}" == 9999 ]] ; then |
33 |
+ inherit git-r3 |
34 |
+ EGIT_REPO_URI="https://github.com/umurmur/umurmur.git" |
35 |
+else |
36 |
+ SRC_URI="https://github.com/${PN}/${PN}/archive/${PV/_}.tar.gz -> ${P}.tar.gz" |
37 |
+ KEYWORDS="~amd64 ~arm ~x86" |
38 |
+fi |
39 |
+LICENSE="BSD" |
40 |
+SLOT="0" |
41 |
+IUSE="gnutls libressl mbedtls shm" |
42 |
+ |
43 |
+# ssl-provider precendence: gnutls, mbedtls, libressl |
44 |
+# and openssl if none specified |
45 |
+DEPEND=">=dev-libs/protobuf-c-1.0.0_rc2 |
46 |
+ dev-libs/libconfig |
47 |
+ gnutls? ( >=net-libs/gnutls-3.0.0 ) |
48 |
+ !gnutls? ( |
49 |
+ mbedtls? ( net-libs/mbedtls ) |
50 |
+ !mbedtls? ( |
51 |
+ libressl? ( dev-libs/libressl:0= ) |
52 |
+ !libressl? ( dev-libs/openssl:0= ) |
53 |
+ ) |
54 |
+ ) |
55 |
+" |
56 |
+ |
57 |
+RDEPEND="${DEPEND}" |
58 |
+ |
59 |
+DOC_CONTENTS=" |
60 |
+ A configuration file has been installed at /etc/umurmur/umurmur.conf - you |
61 |
+ may want to review it. See also\n |
62 |
+ https://github.com/umurmur/umurmur/wiki/Configuration " |
63 |
+ |
64 |
+S="${WORKDIR}/${P/_}" |
65 |
+ |
66 |
+get_ssl_impl() { |
67 |
+ local ssl_provider=() |
68 |
+ |
69 |
+ use gnutls && ssl_provider+=( gnutls ) |
70 |
+ use mbedtls && ssl_provider+=( mbedtls ) |
71 |
+ use libressl && ssl_provider+=( libressl ) |
72 |
+ |
73 |
+ if ! use gnutls && ! use mbedtls && ! use libressl ; then |
74 |
+ ssl_provider+=( openssl ) |
75 |
+ fi |
76 |
+ echo ${ssl_provider[@]} |
77 |
+} |
78 |
+ |
79 |
+pkg_pretend() { |
80 |
+ local ssl_provider=( $(get_ssl_impl) ) |
81 |
+ |
82 |
+ if [[ ${#ssl_provider[@]} -gt 1 ]] ; then |
83 |
+ ewarn "More than one ssl provider selected (${ssl_provider[@]})" |
84 |
+ ewarn "defaulting to ${ssl_provider[0]}." |
85 |
+ fi |
86 |
+} |
87 |
+ |
88 |
+pkg_setup() { |
89 |
+ enewgroup murmur |
90 |
+ enewuser murmur "" "" "" murmur |
91 |
+} |
92 |
+ |
93 |
+src_prepare() { |
94 |
+ default |
95 |
+ eautoreconf |
96 |
+} |
97 |
+ |
98 |
+src_configure() { |
99 |
+ local ssl_provider=( $(get_ssl_impl) ) |
100 |
+ |
101 |
+ local myeconfargs=( |
102 |
+ --with-ssl="${ssl_provider[@]}" |
103 |
+ $(use_enable shm shmapi) |
104 |
+ ) |
105 |
+ econf "${myeconfargs[@]}" |
106 |
+} |
107 |
+ |
108 |
+src_install() { |
109 |
+ local confdir |
110 |
+ |
111 |
+ emake DESTDIR="${D}" install |
112 |
+ |
113 |
+ newinitd "${FILESDIR}"/umurmurd.initd umurmurd |
114 |
+ newconfd "${FILESDIR}"/umurmurd.confd umurmurd |
115 |
+ systemd_dounit "${FILESDIR}"/umurmurd.service |
116 |
+ |
117 |
+ dodoc AUTHORS ChangeLog |
118 |
+ newdoc README.md README |
119 |
+ |
120 |
+ confdir="/etc/umurmur" |
121 |
+ insinto "${confdir}" |
122 |
+ doins "${FILESDIR}"/umurmur.conf |
123 |
+ |
124 |
+ # Some permissions are adjusted as the config may contain a server |
125 |
+ # password, and /etc/umurmur will typically contain the cert and the |
126 |
+ # key used to sign it, which are read after priveleges are dropped. |
127 |
+ fperms 0750 "${confdir}" |
128 |
+ fowners -R root:murmur "${confdir}" |
129 |
+ fperms 0640 "${confdir}"/umurmur.conf |
130 |
+ |
131 |
+ readme.gentoo_create_doc |
132 |
+} |
133 |
+ |
134 |
+pkg_postinst() { |
135 |
+ readme.gentoo_print_elog |
136 |
+} |