diff options
author | Mark Felder <feld@FreeBSD.org> | 2019-03-20 19:06:00 +0000 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2019-03-20 19:06:00 +0000 |
commit | ddffc6c5a699c0cd889604bd663fefdbc30850f9 (patch) | |
tree | db33bcfec10bc6fe0dee4595eccbd800194d1317 | |
parent | e4574862003b7d1e4dac2c00ee00029b9cc2a277 (diff) | |
download | ports-ddffc6c5a699c0cd889604bd663fefdbc30850f9.tar.gz ports-ddffc6c5a699c0cd889604bd663fefdbc30850f9.zip |
Notes
-rw-r--r-- | audio/Makefile | 1 | ||||
-rw-r--r-- | audio/murmur/Makefile | 100 | ||||
-rw-r--r-- | audio/murmur/distinfo | 3 | ||||
-rw-r--r-- | audio/murmur/files/murmur.in | 41 | ||||
-rw-r--r-- | audio/murmur/files/patch-initialize-SSL | 34 | ||||
-rw-r--r-- | audio/murmur/pkg-descr | 4 | ||||
-rw-r--r-- | audio/murmur/pkg-plist | 7 |
7 files changed, 190 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile index 57da6c91abc2..3672f5d5f8cf 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -550,6 +550,7 @@ SUBDIR += mpg321 SUBDIR += mpiosh SUBDIR += mps + SUBDIR += murmur SUBDIR += musepack SUBDIR += musescore SUBDIR += musicbox-tag-editor diff --git a/audio/murmur/Makefile b/audio/murmur/Makefile new file mode 100644 index 000000000000..f9ee33534dc6 --- /dev/null +++ b/audio/murmur/Makefile @@ -0,0 +1,100 @@ +# Created by: Ayumi M <ayu@commun.jp> +# $FreeBSD$ + +PORTNAME= murmur +DISTVERSION= 1.3.0-rc1 +PORTREVISION= 0 +CATEGORIES= audio net + +MAINTAINER= feld@FreeBSD.org +COMMENT= Murmur is the server component of Mumble + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${LOCALBASE}/include/boost/function.hpp:devel/boost-libs +LIB_DEPENDS= libprotobuf.so:devel/protobuf + +USERS= murmur +GROUPS= murmur +USES= compiler:c++11-lang qmake pkgconfig qt:5 ssl +USE_CXXSTD= c++11 +USE_QT= buildtools core network sql xml + +USE_GITHUB= YES +GH_ACCOUNT= mumble-voip +GH_PROJECT= mumble + +CONFIG= no-client +QMAKE_ARGS= "CONFIG+=${CONFIG}" + +USE_RC_SUBR= murmur +SUB_LIST+= USERS="${USERS}" GROUPS="${GROUPS}" + +OPTIONS_DEFINE= BONJOUR DBUS DOCS ICE +OPTIONS_DEFAULT= BONJOUR MYSQL SQLITE +OPTIONS_MULTI= SQL +OPTIONS_MULTI_SQL= MYSQL SQLITE +ICE_DESC= Ice Support +BONJOUR_DESC= Bonjour Support + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MICE} +LIB_DEPENDS+= libIce.so:devel/ice +.else +CONFIG+= no-ice +.endif + +.if ${PORT_OPTIONS:MDBUS} +USE_QT+= dbus +.else +CONFIG+= no-dbus +.endif + +.if ${PORT_OPTIONS:MBONJOUR} +LIB_DEPENDS+= libdns_sd.so:net/mDNSResponder +.else +CONFIG+= no-bonjour +.endif + +.if ${PORT_OPTIONS:MMYSQL} +USE_QT+= sql-mysql +.else +CONFIG+= no-sql-mysql +.endif + +.if ${PORT_OPTIONS:MSQLITE} +USE_QT+= sql-sqlite3_run +.else +CONFIG+= no-sqlite3_run +.endif + +.include <bsd.port.pre.mk> +# PCH is broken on GCC +.if ${CHOSEN_COMPILER_TYPE} == gcc +CONFIG+= no-pch +.endif + +post-patch: + @${ECHO_CMD} 'QMAKE_LFLAGS += -fstack-protector' >> ${WRKSRC}/src/murmur/murmur.pro + +pre-install: + ${SED} -i '' -e 's|database=.*|database=/var/db/murmur/murmur.sqlite|' ${WRKSRC}/scripts/murmur.ini + ${SED} -i '' -e 's|#pidfile=.*|pidfile=/var/run/murmur/murmur.pid|' ${WRKSRC}/scripts/murmur.ini + ${SED} -i '' -e 's|#logfile=.*|logfile=/var/log/murmur/murmur.log|' ${WRKSRC}/scripts/murmur.ini + ${SED} -i '' -e 's|#host=.*|host=0.0.0.0|' ${WRKSRC}/scripts/murmur.ini + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/release/murmurd ${STAGEDIR}${PREFIX}/sbin + ${INSTALL_DATA} ${WRKSRC}/scripts/murmur.ini ${STAGEDIR}${PREFIX}/etc/murmur.ini.sample + ${MKDIR} ${STAGEDIR}${MAN1PREFIX}/man/man1 + ${CP} ${WRKSRC}/man/murmurd.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for f in CHANGES INSTALL README README.Linux + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} +.endfor + +.include <bsd.port.post.mk> diff --git a/audio/murmur/distinfo b/audio/murmur/distinfo new file mode 100644 index 000000000000..779ee34051b7 --- /dev/null +++ b/audio/murmur/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1553098586 +SHA256 (mumble-voip-mumble-1.3.0-rc1_GH0.tar.gz) = acf475910923326ef3293192b2cfe2bc3cb0abeea444ac76b4c191b918a4cfeb +SIZE (mumble-voip-mumble-1.3.0-rc1_GH0.tar.gz) = 4741717 diff --git a/audio/murmur/files/murmur.in b/audio/murmur/files/murmur.in new file mode 100644 index 000000000000..b3eced81adbb --- /dev/null +++ b/audio/murmur/files/murmur.in @@ -0,0 +1,41 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: murmur +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# murmur_enable (bool): Set to NO by default. +# Set it to YES to enable murmur. +# murmur_flags (str): Set to "" by default. +# Extra flags passed to start command. +# + +. /etc/rc.subr + +name=murmur +rcvar=murmur_enable +load_rc_config $name + +# Set some defaults +: ${murmur_enable:=NO} +: ${murmur_user=%%USERS%%} + +command="%%PREFIX%%/sbin/murmurd" +command_args="-ini %%PREFIX%%/etc/murmur.ini" +pidfile=/var/run/murmur/murmur.pid +start_precmd=murmur_prestart + +murmur_prestart() { + for i in /var/log/murmur /var/run/murmur /var/db/murmur; do + if [ ! -d ${i} ]; then + install -d -o %%USERS%% -g %%GROUPS%% ${i} + fi + done +} + +run_rc_command "$1" diff --git a/audio/murmur/files/patch-initialize-SSL b/audio/murmur/files/patch-initialize-SSL new file mode 100644 index 000000000000..aa959f47b2b9 --- /dev/null +++ b/audio/murmur/files/patch-initialize-SSL @@ -0,0 +1,34 @@ +Description: the SSL library must be initialized, otherwise mumble and + mumble-server both fail to find the available ciphers after a rebuild + with openssl_1.0.2d-3. The two calls used are based on: + https://wiki.openssl.org/index.php/SSL/TLS_Client#Initialization +Author: Colomban Wendling <lists.ban@herbesfolles.org> + Christohper Knadle <Chris.Knadle@coredump.us> +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804363 +Bug-Mumble: https://github.com/mumble-voip/mumble/issues/1876 +Last-Updated: 2015-11-10 + +--- src/mumble/main.cpp.orig 2015-07-09 13:23:46 UTC ++++ src/mumble/main.cpp +@@ -170,6 +170,9 @@ int main(int argc, char **argv) { + os_init(); + #endif + ++ SSL_library_init(); ++ SSL_load_error_strings(); ++ + bool bAllowMultiple = false; + QUrl url; + if (a.arguments().count() > 1) { +--- src/murmur/main.cpp.orig 2015-07-09 13:23:46 UTC ++++ src/murmur/main.cpp +@@ -203,6 +203,9 @@ int main(int argc, char **argv) { + qsrand(QDateTime::currentDateTime().toTime_t()); + qInstallMsgHandler(murmurMessageOutput); + ++ SSL_library_init(); ++ SSL_load_error_strings(); ++ + #ifdef Q_OS_WIN + Tray tray(NULL, &le); + #endif diff --git a/audio/murmur/pkg-descr b/audio/murmur/pkg-descr new file mode 100644 index 000000000000..51f161ef63ef --- /dev/null +++ b/audio/murmur/pkg-descr @@ -0,0 +1,4 @@ +Murmur is the server component of Mumble, a low-latency, high quality +VoIP application. + +WWW: http://mumble.sourceforge.net/ diff --git a/audio/murmur/pkg-plist b/audio/murmur/pkg-plist new file mode 100644 index 000000000000..b51a61c72389 --- /dev/null +++ b/audio/murmur/pkg-plist @@ -0,0 +1,7 @@ +@sample etc/murmur.ini.sample +man/man1/murmurd.1.gz +sbin/murmurd +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/README.Linux |