| 
									
										
										
										
											2016-02-16 22:57:42 +00:00
										 |  |  | # Copyright 2016 Julian Ospald <hasufell@posteo.de> | 
					
						
							|  |  |  | # Distributed under the terms of the GNU General Public License v2 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | require systemd-service | 
					
						
							|  |  |  | require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ] | 
					
						
							| 
									
										
										
										
											2016-04-22 15:42:34 +00:00
										 |  |  | require github [ user=fatbob313 ] | 
					
						
							| 
									
										
										
										
											2016-02-16 22:57:42 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-28 23:05:15 +00:00
										 |  |  | SUMMARY="Minimalistic Murmur (Mumble server)" | 
					
						
							| 
									
										
										
										
											2016-02-16 22:57:42 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-17 01:53:28 +00:00
										 |  |  | LICENCES="BSD-3" | 
					
						
							| 
									
										
										
										
											2016-02-16 22:57:42 +00:00
										 |  |  | SLOT="0" | 
					
						
							|  |  |  | PLATFORMS="~amd64 ~x86" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | MYOPTIONS="
 | 
					
						
							|  |  |  |     ( providers: libressl openssl ) [[ | 
					
						
							|  |  |  |         number-selected = exactly-one | 
					
						
							|  |  |  |     ]] | 
					
						
							|  |  |  | "
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DEPENDENCIES="
 | 
					
						
							|  |  |  |     build+run: | 
					
						
							|  |  |  |         dev-libs/protobuf-c | 
					
						
							|  |  |  |         dev-libs/libconfig | 
					
						
							|  |  |  |         providers:libressl? ( dev-libs/libressl:= ) | 
					
						
							|  |  |  |         providers:openssl? ( dev-libs/openssl ) | 
					
						
							|  |  |  |     run: | 
					
						
							|  |  |  |         group/umurmur | 
					
						
							|  |  |  |         user/umurmur | 
					
						
							|  |  |  | "
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DEFAULT_SRC_CONFIGURE_PARAMS=( | 
					
						
							|  |  |  |     --with-ssl=openssl | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | src_install() { | 
					
						
							|  |  |  |     default | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-17 11:02:26 +00:00
										 |  |  |     exeinto /etc/init.d | 
					
						
							| 
									
										
										
										
											2016-03-19 00:55:27 +00:00
										 |  |  |     newexe "${FILES}"/umurmurd.initd umurmurd | 
					
						
							| 
									
										
										
										
											2016-02-16 22:57:42 +00:00
										 |  |  |     insinto /etc/conf.d | 
					
						
							| 
									
										
										
										
											2016-02-17 01:53:28 +00:00
										 |  |  |     newins "${FILES}"/umurmurd.confd umurmurd | 
					
						
							| 
									
										
										
										
											2016-02-16 22:57:42 +00:00
										 |  |  |     install_systemd_files | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-17 01:53:28 +00:00
										 |  |  |     local confdir="/etc/umurmur" | 
					
						
							|  |  |  |     insinto "${confdir}" | 
					
						
							|  |  |  |     doins "${FILES}"/umurmur.conf | 
					
						
							| 
									
										
										
										
											2016-02-16 22:57:42 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-17 01:53:28 +00:00
										 |  |  |     # Some permissions are adjusted as the config may contain a server | 
					
						
							|  |  |  |     # password, and /etc/umurmur will typically contain the cert and the | 
					
						
							|  |  |  |     # key used to sign it, which are read after priveleges are dropped. | 
					
						
							|  |  |  |     edo chmod 0750 "${IMAGE%/}/${confdir}" | 
					
						
							|  |  |  |     edo chown -R root:umurmur "${IMAGE%/}/${confdir}" | 
					
						
							|  |  |  |     edo chmod 0640 "${IMAGE%/}/${confdir}"/umurmur.conf | 
					
						
							| 
									
										
										
										
											2016-02-16 22:57:42 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 |