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