mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
uMurmur is a minimalistic Mumble server primarily targeted to run on
routers with an open OS like OpenWRT. The server part of Mumble is called Murmur, hence the name uMurmur. WWW: http://http://code.google.com/p/umurmur/ PR: ports/154995 Submitted by: Ayumi Mitsui <ayu at commun.jp>
This commit is contained in:
parent
f08fea78f0
commit
05e8725e13
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276425
@ -778,6 +778,7 @@
|
||||
SUBDIR += ufmcontrol-i18n
|
||||
SUBDIR += umix
|
||||
SUBDIR += umodplayer
|
||||
SUBDIR += umurmur
|
||||
SUBDIR += vagalume
|
||||
SUBDIR += vat
|
||||
SUBDIR += ventrilo-server
|
||||
|
44
audio/umurmur/Makefile
Normal file
44
audio/umurmur/Makefile
Normal file
@ -0,0 +1,44 @@
|
||||
# New ports collection makefile for: umurmur
|
||||
# Date created: 2011-02-24
|
||||
# Whom: Ayumi Mitsui <ayu@commun.jp>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= umurmur
|
||||
PORTVERSION= 0.2.6
|
||||
CATEGORIES= audio net
|
||||
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
||||
|
||||
MAINTAINER= ayu@commun.jp
|
||||
COMMENT= Minimalistic Murmur (Mumble server)
|
||||
|
||||
LIB_DEPENDS= config.9:${PORTSDIR}/devel/libconfig
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_OPENSSL= yes
|
||||
|
||||
USE_RC_SUBR= umurmur
|
||||
|
||||
MAKE_ENV+= TARGET_ARCH=
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
do-build:
|
||||
@(cd ${WRKSRC}/src; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} all)
|
||||
|
||||
pre-su-install:
|
||||
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
||||
|
||||
pre-install:
|
||||
@${SED} -i '' -e 's|"/etc/|"${PREFIX}/etc/|' ${WRKSRC}/umurmur.conf.example
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/umurmurd ${PREFIX}/sbin
|
||||
@${MKDIR} ${PREFIX}/etc/umurmur
|
||||
@${INSTALL_DATA} ${WRKSRC}/umurmur.conf.example ${PREFIX}/etc/umurmur/umurmur.conf.sample
|
||||
@if [ ! -f ${PREFIX}/etc/umurmur/umurmur.conf ]; then \
|
||||
${CP} -p ${PREFIX}/etc/umurmur/umurmur.conf.sample ${PREFIX}/etc/umurmur/umurmur.conf; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
audio/umurmur/distinfo
Normal file
2
audio/umurmur/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (umurmur-0.2.6.tar.gz) = b1f237191ea1db7890be86bc3ebe562570901d8bd58bc53d9ecee0a3f4be38cb
|
||||
SIZE (umurmur-0.2.6.tar.gz) = 86014
|
15
audio/umurmur/files/patch-Makefile
Normal file
15
audio/umurmur/files/patch-Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
--- src/Makefile.orig 2011-02-24 13:06:56.000000000 +0900
|
||||
+++ src/Makefile 2011-02-24 13:07:54.000000000 +0900
|
||||
@@ -25,9 +25,10 @@
|
||||
# OpenSSL - usually installed at a standard place
|
||||
# EXTRA_CFLAGS:=
|
||||
# EXTRA_LDFLAGS:=-lcrypto -lssl
|
||||
+EXTRA_LDFLAGS:=-lcrypto -lssl
|
||||
|
||||
-CFLAGS:=$(CFLAGS) -I. -Wall $(EXTRA_CFLAGS)
|
||||
-LDFLAGS:=$(EXTRA_LDFLAGS) $(LDFLAGS) -lconfig
|
||||
+CFLAGS:=$(CFLAGS) -I. -I/usr/local/include -Wall $(EXTRA_CFLAGS)
|
||||
+LDFLAGS:=$(EXTRA_LDFLAGS) $(LDFLAGS) -L/usr/local/lib -lconfig
|
||||
|
||||
umurmurd:google/protobuf-c/libprotobuf_c.a $(OBJS)
|
||||
$(CC) $(LDFLAGS) $(OBJS) $(SSL_LIB) google/protobuf-c/libprotobuf_c.a -o umurmurd
|
39
audio/umurmur/files/patch-conf.c
Normal file
39
audio/umurmur/files/patch-conf.c
Normal file
@ -0,0 +1,39 @@
|
||||
--- src/conf.c.orig 2011-02-24 13:16:42.000000000 +0900
|
||||
+++ src/conf.c 2011-02-24 13:17:50.000000000 +0900
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
static config_t configuration;
|
||||
|
||||
-#define DEFAULT_CONFIG "/etc/umurmur.conf"
|
||||
+#define DEFAULT_CONFIG "/usr/local/etc/umurmur/umurmur.conf"
|
||||
#define DEFAULT_WELCOME "Welcome to uMurmur!"
|
||||
#define DEFAULT_MAX_CLIENTS 10
|
||||
#define DEFAULT_MAX_BANDWIDTH 48000
|
||||
@@ -73,23 +73,23 @@
|
||||
case CERTIFICATE:
|
||||
setting = config_lookup(&configuration, "certificate");
|
||||
if (!setting)
|
||||
- return "/etc/umurmur/certificate.crt";
|
||||
+ return "/usr/local/etc/umurmur/certificate.crt";
|
||||
else {
|
||||
if ((strsetting = config_setting_get_string(setting)) != NULL)
|
||||
return strsetting;
|
||||
else
|
||||
- return "/etc/umurmur/certificate.crt";
|
||||
+ return "/usr/local/etc/umurmur/certificate.crt";
|
||||
}
|
||||
break;
|
||||
case KEY:
|
||||
setting = config_lookup(&configuration, "private_key");
|
||||
if (!setting)
|
||||
- return "/etc/umurmur/private_key.key";
|
||||
+ return "/usr/local/etc/umurmur/private_key.key";
|
||||
else {
|
||||
if ((strsetting = config_setting_get_string(setting)) != NULL)
|
||||
return strsetting;
|
||||
else
|
||||
- return "/etc/umurmur/private_key.key";
|
||||
+ return "/usr/local/etc/umurmur/private_key.key";
|
||||
}
|
||||
break;
|
||||
case PASSPHRASE:
|
36
audio/umurmur/files/umurmur.in
Normal file
36
audio/umurmur/files/umurmur.in
Normal file
@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: umurmur
|
||||
# REQUIRE: DAEMON
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
#
|
||||
# umurmur_enable (bool): Set to NO by default.
|
||||
# Set it to YES to enable umurmur.
|
||||
# umurmur_flags (str): Set to "" by default.
|
||||
# Extra flags passed to start command.
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
# Set some defaults
|
||||
: ${umurmur_enable="NO"}
|
||||
: ${umurmur_user="umurmur"}
|
||||
: ${umurmur_flags=""}
|
||||
|
||||
name=umurmur
|
||||
rcvar=${name}_enable
|
||||
|
||||
# pidfile
|
||||
pidfile="/var/run/umurmur/umurmur.pid"
|
||||
|
||||
command="%%PREFIX%%/sbin/umurmurd"
|
||||
command_args="-p ${pidfile}"
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
run_rc_command "$1"
|
21
audio/umurmur/pkg-deinstall
Normal file
21
audio/umurmur/pkg-deinstall
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
PATH=/bin:/usr/sbin
|
||||
USER=umurmur
|
||||
GROUP=umurmur
|
||||
RUNDIR=/var/run/umurmur
|
||||
|
||||
case $2 in
|
||||
POST-DEINSTALL)
|
||||
if pw group show ${GROUP} 2>&1 > /dev/null; then
|
||||
echo "You should manually remove the \"${GROUP}\" group."
|
||||
fi
|
||||
|
||||
if pw user show ${USER} 2>&1 > /dev/null; then
|
||||
echo "You should manually remove the \"${USER}\" user."
|
||||
fi
|
||||
|
||||
rm -Rf ${RUNDIR}
|
||||
;;
|
||||
esac
|
5
audio/umurmur/pkg-descr
Normal file
5
audio/umurmur/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
uMurmur is a minimalistic Mumble server primarily targeted to run on
|
||||
routers with an open OS like OpenWRT.
|
||||
The server part of Mumble is called Murmur, hence the name uMurmur.
|
||||
|
||||
WWW: http://http://code.google.com/p/umurmur/
|
38
audio/umurmur/pkg-install
Normal file
38
audio/umurmur/pkg-install
Normal file
@ -0,0 +1,38 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
PATH=/bin:/usr/sbin
|
||||
USER=umurmur
|
||||
GROUP=umurmur
|
||||
HOME=/nonexistent
|
||||
RUNDIR=/var/run/umurmur
|
||||
|
||||
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 "uMurmur"
|
||||
then
|
||||
echo "Added user \"${USER}\"."
|
||||
else
|
||||
echo "Adding user \"${USER}\" failed..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
mkdir -m 750 ${RUNDIR} 2> /dev/null
|
||||
chown -R ${USER}:${GROUP} ${RUNDIR}
|
||||
|
||||
;;
|
||||
esac
|
7
audio/umurmur/pkg-plist
Normal file
7
audio/umurmur/pkg-plist
Normal file
@ -0,0 +1,7 @@
|
||||
@comment $FreeBSD$
|
||||
@stopdaemon umurmur
|
||||
@unexec if cmp -s %D/etc/umurmur/umurmur.conf.sample %D/etc/umurmur/umurmur.conf; then rm -f %D/etc/umurmur/umurmur.conf; fi
|
||||
etc/umurmur/umurmur.conf.sample
|
||||
@exec if [ ! -f %D/etc/umurmur/umurmur.conf ] ; then cp -p %D/%F %B/umurmur/umurmur.conf; fi
|
||||
sbin/umurmurd
|
||||
@dirrmtry etc/umurmur
|
Loading…
Reference in New Issue
Block a user