diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2009-08-27 20:22:13 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2009-08-27 20:22:13 +0000 |
commit | cd76421cc4b6155b0f2b2d59110a6162bfda5a8d (patch) | |
tree | 39ea90487289b99e3fe932a1e9ac5102f0e195dd /audio/murmur | |
parent | 92f30b29f0f255af1bf2e70cb87d169d9c2dbf1d (diff) | |
download | ports-cd76421cc4b6155b0f2b2d59110a6162bfda5a8d.tar.gz ports-cd76421cc4b6155b0f2b2d59110a6162bfda5a8d.zip |
Notes
Diffstat (limited to 'audio/murmur')
-rw-r--r-- | audio/murmur/Makefile | 70 | ||||
-rw-r--r-- | audio/murmur/distinfo | 3 | ||||
-rw-r--r-- | audio/murmur/files/murmur.in | 32 | ||||
-rw-r--r-- | audio/murmur/files/patch-comipler.pri | 13 | ||||
-rw-r--r-- | audio/murmur/files/patch-src__murmur__murmur_pch.h | 10 | ||||
-rw-r--r-- | audio/murmur/pkg-descr | 4 | ||||
-rw-r--r-- | audio/murmur/pkg-install | 62 | ||||
-rw-r--r-- | audio/murmur/pkg-plist | 8 |
8 files changed, 202 insertions, 0 deletions
diff --git a/audio/murmur/Makefile b/audio/murmur/Makefile new file mode 100644 index 000000000000..a0640d143546 --- /dev/null +++ b/audio/murmur/Makefile @@ -0,0 +1,70 @@ +# New ports collection makefile for: murmur +# Date created: 2009-08-03 +# Whom: Ayumi M <ayu@commun.jp> +# +# $FreeBSD$ +# + +PORTNAME= murmur +PORTVERSION= 1.1.8 +CATEGORIES= audio net +MASTER_SITES= SF +MASTER_SITE_SUBDIR= mumble +DISTNAME= mumble-${PORTVERSION} + +MAINTAINER= ayu@commun.jp +COMMENT= Murmur is the server component of Mumble + +BUILD_DEPENDS= ${LOCALBASE}/include/boost/function.hpp:${PORTSDIR}/devel/boost-libs +RUN_DEPENDS= ${LOCALBASE}/lib/qt4/plugins/sqldrivers/libqsqlite.so:${PORTSDIR}/databases/qt4-sqlite3-plugin + +USE_QT_VER= 4 +QT_COMPONENTS= qmake_build moc_build corelib network xml sql +HAS_CONFIGURE= yes + +CONFIG= no-client + +MAN1= murmurd.1 +USE_RC_SUBR= murmur + +OPTIONS= ICE "Ice Support" on \ + DBUS "D-Bus Support" off + +.include <bsd.port.pre.mk> + +.if defined(WITH_ICE) +LIB_DEPENDS+= Ice.33:${PORTSDIR}/devel/ice +.else +CONFIG+= no-ice +.endif + +.if defined(WITH_DBUS) +QT_COMPONENTS+= dbus +.else +CONFIG+= no-dbus +.endif + +do-configure: + @cd ${WRKSRC} && ${SETENV} QMAKESPEC=${QMAKESPEC} \ + ${QMAKE} -unix PREFIX=${PREFIX} main.pro "CONFIG+=${CONFIG}" + +pre-su-install: + @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL + +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 + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/release/murmurd ${PREFIX}/bin + @${INSTALL_DATA} ${WRKSRC}/scripts/murmur.ini ${PREFIX}/etc + ${INSTALL_MAN} ${WRKSRC}/man/murmurd.1 ${MANPREFIX}/man/man1 +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for f in CHANGES INSTALL LICENSE README README.Linux + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.post.mk> diff --git a/audio/murmur/distinfo b/audio/murmur/distinfo new file mode 100644 index 000000000000..ec1b8c8c3638 --- /dev/null +++ b/audio/murmur/distinfo @@ -0,0 +1,3 @@ +MD5 (mumble-1.1.8.tar.gz) = a7da012922d39b87c45d9f481d4b5efb +SHA256 (mumble-1.1.8.tar.gz) = 4cef76457e3178f9d854327f4a02c3521b19ddf64c03947b3ba182f871a81856 +SIZE (mumble-1.1.8.tar.gz) = 1241365 diff --git a/audio/murmur/files/murmur.in b/audio/murmur/files/murmur.in new file mode 100644 index 000000000000..31b8e39f8e30 --- /dev/null +++ b/audio/murmur/files/murmur.in @@ -0,0 +1,32 @@ +#!/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. +# + +. %%RC_SUBR%% + +# Set some defaults +murmur_user=${murmur_user:-"murmur"} + +name=murmur +rcvar=${name}_enable + +command="%%PREFIX%%/bin/murmurd" +command_args="-ini %%PREFIX%%/etc/murmur.ini" +pidfile="/var/run/murmur/murmur.pid" + +load_rc_config $name + +: ${murmur_enable="NO"} + +run_rc_command "$1" diff --git a/audio/murmur/files/patch-comipler.pri b/audio/murmur/files/patch-comipler.pri new file mode 100644 index 000000000000..9466c7528826 --- /dev/null +++ b/audio/murmur/files/patch-comipler.pri @@ -0,0 +1,13 @@ +--- compiler.pri.orig 2009-08-21 10:24:26.000000000 +0900 ++++ compiler.pri 2009-08-21 10:25:03.000000000 +0900 +@@ -46,8 +46,8 @@ + QMAKE_LINK = /opt/gcc/bin/g++
+ }
+
+- QMAKE_CFLAGS *= -Wshadow -Wconversion -Wsign-compare -fvisibility=hidden
+- QMAKE_CXXFLAGS *= -Wshadow -Woverloaded-virtual -Wold-style-cast -Wconversion -Wsign-compare -fvisibility=hidden
++ QMAKE_CFLAGS *= -Wshadow -Wconversion -Wsign-compare
++ QMAKE_CXXFLAGS *= -Wshadow -Woverloaded-virtual -Wold-style-cast -Wconversion -Wsign-compare
+ !macx {
+ QMAKE_LFLAGS *= -Wl,--as-needed
+ }
diff --git a/audio/murmur/files/patch-src__murmur__murmur_pch.h b/audio/murmur/files/patch-src__murmur__murmur_pch.h new file mode 100644 index 000000000000..828b207d9a3b --- /dev/null +++ b/audio/murmur/files/patch-src__murmur__murmur_pch.h @@ -0,0 +1,10 @@ +--- src/murmur/murmur_pch.h.orig 2009-08-04 21:37:28.000000000 +0900 ++++ src/murmur/murmur_pch.h 2009-08-04 21:38:17.000000000 +0900 +@@ -74,7 +74,6 @@ + #define ALLOCA(x) _alloca(x) + #define snprintf ::_snprintf + #else +-#include <alloca.h> + #define ALLOCA(x) alloca(x) + #endif + #if defined (Q_CC_GNU) || (defined (Q_CC_INTEL) && !defined (Q_OS_WIN)) diff --git a/audio/murmur/pkg-descr b/audio/murmur/pkg-descr new file mode 100644 index 000000000000..ee225ff90bca --- /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-install b/audio/murmur/pkg-install new file mode 100644 index 000000000000..badc0af8471c --- /dev/null +++ b/audio/murmur/pkg-install @@ -0,0 +1,62 @@ +#!/bin/sh +# $FreeBSD$ + +PATH=/bin:/usr/sbin +USER=murmur +GROUP=murmur +HOME=/nonexistent +LOGDIR=/var/log/murmur +RUNDIR=/var/run/murmur +DBDIR=/var/db/murmur + +case $2 in + PRE-INSTALL) + if pw group show ${GROUP} 2> /dev/null; then + else + if pw groupadd ${GROUP}; then + echo "Added group \"${GROUP}\"." + else + echo "Adding group \"${GROUP}\" failed..." + exit 1 + fi + fi + + if pw user show ${USER} 2> /dev/null; then + else + if pw useradd ${USER} -g ${GROUP} -h - \ + -d ${HOME} -c "Murmur" + then + echo "Added user \"${USER}\"." + else + echo "Adding user \"${USER}\" failed..." + exit 1 + fi + fi + + mkdir -m 750 ${LOGDIR} ${DBDIR} ${RUNDIR} 2> /dev/null + chown -R ${USER}:${GROUP} ${LOGDIR} ${DBDIR} ${RUNDIR} + + ;; + + POST-DEINSTALL) + if pw group show ${GROUP} 2> /dev/null; then + if pw group del ${GROUP}; then + echo "Removed group \"${GROUP}\"." + else + echo "Removing group \"${GROUP}\" failed..." + exit 1 + fi + fi + + if pw user show ${USER} 2> /dev/null; then + if pw userdel ${USER}; then + echo "Removed user \"${USER}\"." + else + echo "Removing user \"${USER}\" failed..." + exit 1 + fi + fi + + rm -Rf ${PIDDIR} + ;; +esac diff --git a/audio/murmur/pkg-plist b/audio/murmur/pkg-plist new file mode 100644 index 000000000000..d6ab51fe66df --- /dev/null +++ b/audio/murmur/pkg-plist @@ -0,0 +1,8 @@ +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/README.Linux +bin/murmurd +etc/murmur.ini +%%PORTDOCS%%@dirrm %%DOCSDIR%% |