1 |
commit: c5fb8ed958c5aec23184281f39cb7159b4a576f8 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 1 07:49:06 2015 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 1 07:53:16 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5fb8ed9 |
7 |
|
8 |
media-sound/umurmur: Revbump to add libressl support (bug #561922) |
9 |
|
10 |
Package-Manager: portage-2.2.22 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
media-sound/umurmur/umurmur-0.2.16a-r1.ebuild | 99 +++++++++++++++++++++++++++ |
14 |
1 file changed, 99 insertions(+) |
15 |
|
16 |
diff --git a/media-sound/umurmur/umurmur-0.2.16a-r1.ebuild b/media-sound/umurmur/umurmur-0.2.16a-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..958ee0d |
19 |
--- /dev/null |
20 |
+++ b/media-sound/umurmur/umurmur-0.2.16a-r1.ebuild |
21 |
@@ -0,0 +1,99 @@ |
22 |
+# Copyright 1999-2015 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+# $Id$ |
25 |
+ |
26 |
+EAPI=5 |
27 |
+ |
28 |
+inherit autotools systemd eutils readme.gentoo user |
29 |
+ |
30 |
+DESCRIPTION="Minimalistic Murmur (Mumble server)" |
31 |
+HOMEPAGE="https://code.google.com/p/umurmur/ https://github.com/umurmur/umurmur" |
32 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="BSD" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~arm ~x86" |
37 |
+IUSE="gnutls libressl polarssl shm" |
38 |
+ |
39 |
+# ssl-provider precendence: polarssl, gnutls, libressl |
40 |
+# and openssl if none specified |
41 |
+DEPEND=">=dev-libs/protobuf-c-1.0.0_rc2 |
42 |
+ dev-libs/libconfig |
43 |
+ polarssl? ( >=net-libs/polarssl-1.0.0 ) |
44 |
+ gnutls? ( !polarssl? ( >=net-libs/gnutls-3.0.0 ) ) |
45 |
+ libressl? ( !polarssl? ( !gnutls? ( dev-libs/libressl ) ) ) |
46 |
+ !gnutls? ( !polarssl? ( !libressl? ( dev-libs/openssl:0 ) ) )" |
47 |
+ |
48 |
+RDEPEND="${DEPEND}" |
49 |
+ |
50 |
+DOC_CONTENTS=" |
51 |
+ A configuration file has been installed at /etc/umurmur.conf - you may |
52 |
+ want to review it. See also\n |
53 |
+ https://github.com/umurmur/umurmur/wiki/Configuration " |
54 |
+ |
55 |
+pkg_pretend() { |
56 |
+ local ssl_provider=( ) |
57 |
+ use polarssl && ssl_provider+=( polarssl ) |
58 |
+ use gnutls && ssl_provider+=( gnutls ) |
59 |
+ use libressl && ssl_provider+=( libressl ) |
60 |
+ |
61 |
+ if [[ ${#ssl_provider[@]} -gt 1 ]] ; then |
62 |
+ ewarn "More than one ssl provider selected (${ssl_provider[@]})" |
63 |
+ ewarn "defaulting to ${ssl_provider[0]}." |
64 |
+ fi |
65 |
+} |
66 |
+ |
67 |
+pkg_setup() { |
68 |
+ enewgroup murmur |
69 |
+ enewuser murmur "" "" "" murmur |
70 |
+} |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ eautoreconf |
74 |
+} |
75 |
+ |
76 |
+src_configure() { |
77 |
+ local myconf |
78 |
+ |
79 |
+ econf \ |
80 |
+ --with-ssl=$(usev polarssl || usev gnutls || echo openssl) \ |
81 |
+ $(use_enable shm shmapi) |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ local confdir |
86 |
+ |
87 |
+ emake DESTDIR="${D}" install |
88 |
+ |
89 |
+ newinitd "${FILESDIR}"/umurmurd.initd umurmurd |
90 |
+ newconfd "${FILESDIR}"/umurmurd.confd umurmurd |
91 |
+ systemd_dounit "${FILESDIR}"/umurmurd.service |
92 |
+ |
93 |
+ dodoc AUTHORS ChangeLog |
94 |
+ newdoc README.md README |
95 |
+ |
96 |
+ confdir="/etc/umurmur" |
97 |
+ insinto "${confdir}" |
98 |
+ doins "${FILESDIR}"/umurmur.conf |
99 |
+ |
100 |
+ # Some permissions are adjusted as the config may contain a server |
101 |
+ # password, and /etc/umurmur will typically contain the cert and the |
102 |
+ # key used to sign it, which are read after priveleges are dropped. |
103 |
+ fperms 0750 "${confdir}" |
104 |
+ fowners -R root:murmur "${confdir}" |
105 |
+ fperms 0640 "${confdir}"/umurmur.conf |
106 |
+ |
107 |
+ readme.gentoo_create_doc |
108 |
+} |
109 |
+ |
110 |
+pkg_postinst() { |
111 |
+ readme.gentoo_print_elog |
112 |
+ |
113 |
+ if use polarssl ; then |
114 |
+ elog |
115 |
+ elog "Because you have enabled PolarSSL support, umurmurd will use a" |
116 |
+ elog "predefined test-certificate and key if none are configured, which" |
117 |
+ elog "is insecure. See https://code.google.com/p/umurmur/wiki/Installing02x#Installing_uMurmur_with_PolarSSL_support" |
118 |
+ elog "for more information on how to create your certificate and key" |
119 |
+ fi |
120 |
+} |