diff --git a/srcpkgs/coturn/files/coturnserver/run b/srcpkgs/coturn/files/coturnserver/run new file mode 100755 index 0000000000..3ccf906ded --- /dev/null +++ b/srcpkgs/coturn/files/coturnserver/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec chpst -u _coturn:_coturn turnserver -c /etc/turnserver.conf diff --git a/srcpkgs/coturn/patches/Makefile.patch b/srcpkgs/coturn/patches/Makefile.patch new file mode 100644 index 0000000000..ede8c802b9 --- /dev/null +++ b/srcpkgs/coturn/patches/Makefile.patch @@ -0,0 +1,20 @@ +--- Makefile.in.bck 2017-10-24 23:56:45.227539877 -0400 ++++ Makefile.in 2017-10-24 23:57:02.000103162 -0400 +@@ -165,7 +165,7 @@ + ${INSTALL_DATA} turndb/schema.stats.redis ${DESTDIR}${DOCSDIR} + ${INSTALL_DATA} turndb/schema.stats.redis ${DESTDIR}${SCHEMADIR} + if [ -f sqlite/turndb ] ; then ${INSTALL_DATA} sqlite/turndb ${DESTDIR}${TURNDBDIR}/turndb; fi +- ${INSTALL_DATA} examples/etc/turnserver.conf ${DESTDIR}${CONFDIR}/turnserver.conf.default ++ ${INSTALL_DATA} examples/etc/turnserver.conf ${DESTDIR}${CONFDIR}/turnserver.conf + ${INSTALL_DIR} examples/etc ${DESTDIR}${EXAMPLESDIR} + ${INSTALL_DIR} examples/scripts ${DESTDIR}${EXAMPLESDIR} + ${RMCMD} ${DESTDIR}${EXAMPLESDIR}/scripts/rfc5769.sh +@@ -196,7 +196,7 @@ + ${RMCMD} ${DESTDIR}${MANPREFIX}/man/man1/coturn.1 + ${RMCMD} ${DESTDIR}${LIBDIR}/libturnclient.a + ${RMCMD} ${DESTDIR}${EXAMPLESDIR} +- ${RMCMD} ${DESTDIR}${CONFDIR}/turnserver.conf.default ++ ${RMCMD} ${DESTDIR}${CONFDIR}/turnserver.conf + ${RMCMD} ${DESTDIR}${TURNINCLUDEDIR} + + uninstall: deinstall diff --git a/srcpkgs/coturn/template b/srcpkgs/coturn/template index e8d2dcc326..9191cc45ca 100644 --- a/srcpkgs/coturn/template +++ b/srcpkgs/coturn/template @@ -1,9 +1,9 @@ # Template file for 'coturn' pkgname=coturn -version=4.5.0.6 +version=4.5.0.7 revision=1 build_style=gnu-configure -# no need for conf_files, /etc/turnserver.conf.default is an example +conf_files="/etc/turnserver.conf" makedepends="libressl-devel libevent-devel hiredis-devel sqlite-devel postgresql-libs-devel libmariadbclient-devel" short_desc="Server Implementation of TURN and STUN" @@ -11,11 +11,15 @@ maintainer="Toyam Cox " license="3-clause-BSD" homepage="https://github.com/coturn/coturn" distfiles="https://github.com/coturn/coturn/archive/${version}.tar.gz" -checksum=5ad976e142daf392351f86623b217be7ca91322105e0500c379a9dcdbbc466e8 +checksum=6a4e802e4e7a8b7aeb76f0c4a4153da64615eac9db7c320b599fae86c46183ae nocross="https://travis-ci.org/Vaelatern/void-packages/jobs/282547640" +system_accounts="_coturn" + post_install() { vlicense LICENSE + vsv coturnserver + vsconf examples/etc/turnserver.conf } coturn-devel_package() {