From 49eadd11fdb27a80931944db5b3b55fe27424d8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Tue, 27 Sep 2016 13:17:17 +0200 Subject: community/mumble: move from main --- community/mumble/APKBUILD | 112 ++++++++++++++++++++++++++++++++++++ community/mumble/murmur.initd | 18 ++++++ community/mumble/murmur.pre-install | 6 ++ main/mumble/APKBUILD | 112 ------------------------------------ main/mumble/murmur.initd | 18 ------ main/mumble/murmur.pre-install | 6 -- 6 files changed, 136 insertions(+), 136 deletions(-) create mode 100644 community/mumble/APKBUILD create mode 100644 community/mumble/murmur.initd create mode 100755 community/mumble/murmur.pre-install delete mode 100644 main/mumble/APKBUILD delete mode 100644 main/mumble/murmur.initd delete mode 100755 main/mumble/murmur.pre-install diff --git a/community/mumble/APKBUILD b/community/mumble/APKBUILD new file mode 100644 index 0000000000..bcfa486752 --- /dev/null +++ b/community/mumble/APKBUILD @@ -0,0 +1,112 @@ +# Contributor: Sören Tempel +# Contributor: Johannes Matheis +# Maintainer: Johannes Matheis +pkgname=mumble +pkgver=1.2.17 +pkgrel=0 +pkgdesc="A low-latency, high quality voice chat software" +url="http://wiki.mumble.info" +arch="all" +license="BSD" +depends="qt-sqlite" +depends_dev="" +makedepends="qt-dev libsndfile-dev boost-dev avahi-dev protobuf-dev + libxi-dev speex-dev speexdsp-dev libcap-dev" +install="murmur.pre-install" +pkgusers="murmur" +pkggroups="murmur" +subpackages="$pkgname-doc murmur murmur-doc:murmur_doc" +source="https://github.com/mumble-voip/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz + murmur.initd" + +builddir="$srcdir"/$pkgname-$pkgver +build() { + cd "$builddir" + qmake -recursive main.pro \ + CONFIG+="no-speechd no-g15 no-update no-ice bundled-celt no-embed-qt-translations no-bundled-speex" \ + || return 1 + make release +} + +package() { + cd "$builddir" + + # Binaries. + install -Dm755 ./release/mumble \ + "$pkgdir"/usr/bin/mumble || return 1 + install -Dm755 ./scripts/mumble-overlay \ + "$pkgdir"/usr/bin/mumble-overlay || return 1 + + # Libraries. + install -Dm755 ./release/libmumble.so.$pkgver \ + "$pkgdir"/usr/lib/mumble/libmumble.so.$pkgver || retrn 1 + for lib in libmumble.so libmumble.so.1 libmumble.so.1.2; do + ln -s libmumble.so.$pkgver \ + "$pkgdir"/usr/lib/mumble/$lib || return 1 + done + install -Dm755 ./release/plugins/liblink.so \ + "$pkgdir"/usr/lib/mumble/liblink.so || return1 + install -Dm755 ./release/plugins/libmanual.so \ + "$pkgdir"/usr/lib/mumble/libmanual.so || return 1 + install -Dm755 ./release/libcelt* \ + "$pkgdir"/usr/lib/mumble/ || return 1 + + # Misc. + install -Dm644 ./LICENSE \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1 + install -Dm644 ./scripts/mumble.desktop \ + "$pkgdir"/usr/share/applications/mumble.desktop || return 1 + install -Dm644 ./icons/mumble.svg \ + "$pkgdir"/usr/share/icons/hicolor/scalable/apps/mumble.svg \ + || return 1 + + # Man pages. + mkdir -p "$pkgdir"/usr/share/man/man1/ + install -m644 ./man/mum* "$pkgdir"/usr/share/man/man1/ || return 1 +} + +murmur() { + pkgdesc="Murmur is the server component of Mumble" + cd "$builddir" + + install -o murmur -g murmur -dm755 \ + "$subpkgdir"/var/lib/murmur || return 1 + install -Dm755 ./release/murmurd \ + "$subpkgdir"/usr/bin/murmurd || return 1 + install -Dm644 ./scripts/murmur.ini \ + "$subpkgdir"/etc/murmur.ini || return 1 + + sed 's/^database=$/database=\/var\/lib\/murmur\/murmur.sqlite/;\ + s/^#uname=$/uname=murmur/;\ + s/^#logfile=murmur.log$/logfile=\/var\/log\/murmur.log/;\ + s/^#pidfile=$/pidfile=\/var\/run\/murmur\/murmur.pid/' \ + -i "$subpkgdir"/etc/murmur.ini || return 1 + + install -Dm644 ./scripts/murmur.conf \ + "$subpkgdir"/etc/dbus-1/system.d/murmurd.conf || return 1 + sed "s/mumble-server/murmur/" \ + -i "$subpkgdir"/etc/dbus-1/system.d/murmurd.conf || return 1 + + install -Dm755 "$srcdir"/murmur.initd \ + "$subpkgdir"/etc/init.d/murmur +} + +murmur_doc() { + pkgdesc="Murmur is the server component of Mumble" + arch="noarch" + + cd "$builddir" + install -Dm644 ./man/murmurd.1 \ + "$subpkgdir"/usr/share/man/man1/murmurd.1 || return 1 + install -Dm644 ./LICENSE \ + "$subpkgdir"/usr/share/licenses/murmur/LICENSE \ + || return 1 + default_doc +} + +md5sums="98a28c10cb607bb51f13e568db2b9570 mumble-1.2.17.tar.gz +a33eeda77b1a5d10fbebaefd9c54ec8f murmur.initd" +sha256sums="1c3601efdac611c8833d508054698ee9d8917b4e5fffb7fff8baec0bd6c8cb9c mumble-1.2.17.tar.gz +2fa2104cc57a53145b0e962e04d90c49e3a70b9dfc3c78202948f97157c961d8 murmur.initd" +sha512sums="03cb0a2048d42bd480741e0580cb4bf6961d607d6cf9b620434aea87ac0cd7cdbfae33863b71821ac8b931300df490ae5436f3c8098d6a5f37dd1eab0fb34dbe mumble-1.2.17.tar.gz +c74ade232146a180448cb0027503f59642000bee50613a1fb99162cdc4bc81089ab4e84e51b0bbdac5c176eb52b76e6bd2b3ec790a9148135a1fc050569921c3 murmur.initd" diff --git a/community/mumble/murmur.initd b/community/mumble/murmur.initd new file mode 100644 index 0000000000..3eb0fcf5af --- /dev/null +++ b/community/mumble/murmur.initd @@ -0,0 +1,18 @@ +#!/sbin/openrc-run + +depends() { + needs localmount +} + +description="Mumble VoIP Server" +command="/usr/bin/murmurd" +command_args="-ini /etc/murmur.ini" +pidfile="/var/run/murmur/murmur.pid" + +start_pre() { + checkpath --owner murmur:murmur --directory ${pidfile%/*} +} + +# uses the openrc templates for start()/stop() + + diff --git a/community/mumble/murmur.pre-install b/community/mumble/murmur.pre-install new file mode 100755 index 0000000000..d8be4a5a88 --- /dev/null +++ b/community/mumble/murmur.pre-install @@ -0,0 +1,6 @@ +#!/bin/sh + +addgroup -S murmur 2>/dev/null +adduser -S -D -H -h /var/lib/murmur -s /sbin/nologin -G murmur -g "Mumble daemon" murmur 2>/dev/null + +exit 0 diff --git a/main/mumble/APKBUILD b/main/mumble/APKBUILD deleted file mode 100644 index bcfa486752..0000000000 --- a/main/mumble/APKBUILD +++ /dev/null @@ -1,112 +0,0 @@ -# Contributor: Sören Tempel -# Contributor: Johannes Matheis -# Maintainer: Johannes Matheis -pkgname=mumble -pkgver=1.2.17 -pkgrel=0 -pkgdesc="A low-latency, high quality voice chat software" -url="http://wiki.mumble.info" -arch="all" -license="BSD" -depends="qt-sqlite" -depends_dev="" -makedepends="qt-dev libsndfile-dev boost-dev avahi-dev protobuf-dev - libxi-dev speex-dev speexdsp-dev libcap-dev" -install="murmur.pre-install" -pkgusers="murmur" -pkggroups="murmur" -subpackages="$pkgname-doc murmur murmur-doc:murmur_doc" -source="https://github.com/mumble-voip/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz - murmur.initd" - -builddir="$srcdir"/$pkgname-$pkgver -build() { - cd "$builddir" - qmake -recursive main.pro \ - CONFIG+="no-speechd no-g15 no-update no-ice bundled-celt no-embed-qt-translations no-bundled-speex" \ - || return 1 - make release -} - -package() { - cd "$builddir" - - # Binaries. - install -Dm755 ./release/mumble \ - "$pkgdir"/usr/bin/mumble || return 1 - install -Dm755 ./scripts/mumble-overlay \ - "$pkgdir"/usr/bin/mumble-overlay || return 1 - - # Libraries. - install -Dm755 ./release/libmumble.so.$pkgver \ - "$pkgdir"/usr/lib/mumble/libmumble.so.$pkgver || retrn 1 - for lib in libmumble.so libmumble.so.1 libmumble.so.1.2; do - ln -s libmumble.so.$pkgver \ - "$pkgdir"/usr/lib/mumble/$lib || return 1 - done - install -Dm755 ./release/plugins/liblink.so \ - "$pkgdir"/usr/lib/mumble/liblink.so || return1 - install -Dm755 ./release/plugins/libmanual.so \ - "$pkgdir"/usr/lib/mumble/libmanual.so || return 1 - install -Dm755 ./release/libcelt* \ - "$pkgdir"/usr/lib/mumble/ || return 1 - - # Misc. - install -Dm644 ./LICENSE \ - "$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1 - install -Dm644 ./scripts/mumble.desktop \ - "$pkgdir"/usr/share/applications/mumble.desktop || return 1 - install -Dm644 ./icons/mumble.svg \ - "$pkgdir"/usr/share/icons/hicolor/scalable/apps/mumble.svg \ - || return 1 - - # Man pages. - mkdir -p "$pkgdir"/usr/share/man/man1/ - install -m644 ./man/mum* "$pkgdir"/usr/share/man/man1/ || return 1 -} - -murmur() { - pkgdesc="Murmur is the server component of Mumble" - cd "$builddir" - - install -o murmur -g murmur -dm755 \ - "$subpkgdir"/var/lib/murmur || return 1 - install -Dm755 ./release/murmurd \ - "$subpkgdir"/usr/bin/murmurd || return 1 - install -Dm644 ./scripts/murmur.ini \ - "$subpkgdir"/etc/murmur.ini || return 1 - - sed 's/^database=$/database=\/var\/lib\/murmur\/murmur.sqlite/;\ - s/^#uname=$/uname=murmur/;\ - s/^#logfile=murmur.log$/logfile=\/var\/log\/murmur.log/;\ - s/^#pidfile=$/pidfile=\/var\/run\/murmur\/murmur.pid/' \ - -i "$subpkgdir"/etc/murmur.ini || return 1 - - install -Dm644 ./scripts/murmur.conf \ - "$subpkgdir"/etc/dbus-1/system.d/murmurd.conf || return 1 - sed "s/mumble-server/murmur/" \ - -i "$subpkgdir"/etc/dbus-1/system.d/murmurd.conf || return 1 - - install -Dm755 "$srcdir"/murmur.initd \ - "$subpkgdir"/etc/init.d/murmur -} - -murmur_doc() { - pkgdesc="Murmur is the server component of Mumble" - arch="noarch" - - cd "$builddir" - install -Dm644 ./man/murmurd.1 \ - "$subpkgdir"/usr/share/man/man1/murmurd.1 || return 1 - install -Dm644 ./LICENSE \ - "$subpkgdir"/usr/share/licenses/murmur/LICENSE \ - || return 1 - default_doc -} - -md5sums="98a28c10cb607bb51f13e568db2b9570 mumble-1.2.17.tar.gz -a33eeda77b1a5d10fbebaefd9c54ec8f murmur.initd" -sha256sums="1c3601efdac611c8833d508054698ee9d8917b4e5fffb7fff8baec0bd6c8cb9c mumble-1.2.17.tar.gz -2fa2104cc57a53145b0e962e04d90c49e3a70b9dfc3c78202948f97157c961d8 murmur.initd" -sha512sums="03cb0a2048d42bd480741e0580cb4bf6961d607d6cf9b620434aea87ac0cd7cdbfae33863b71821ac8b931300df490ae5436f3c8098d6a5f37dd1eab0fb34dbe mumble-1.2.17.tar.gz -c74ade232146a180448cb0027503f59642000bee50613a1fb99162cdc4bc81089ab4e84e51b0bbdac5c176eb52b76e6bd2b3ec790a9148135a1fc050569921c3 murmur.initd" diff --git a/main/mumble/murmur.initd b/main/mumble/murmur.initd deleted file mode 100644 index 3eb0fcf5af..0000000000 --- a/main/mumble/murmur.initd +++ /dev/null @@ -1,18 +0,0 @@ -#!/sbin/openrc-run - -depends() { - needs localmount -} - -description="Mumble VoIP Server" -command="/usr/bin/murmurd" -command_args="-ini /etc/murmur.ini" -pidfile="/var/run/murmur/murmur.pid" - -start_pre() { - checkpath --owner murmur:murmur --directory ${pidfile%/*} -} - -# uses the openrc templates for start()/stop() - - diff --git a/main/mumble/murmur.pre-install b/main/mumble/murmur.pre-install deleted file mode 100755 index d8be4a5a88..0000000000 --- a/main/mumble/murmur.pre-install +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -addgroup -S murmur 2>/dev/null -adduser -S -D -H -h /var/lib/murmur -s /sbin/nologin -G murmur -g "Mumble daemon" murmur 2>/dev/null - -exit 0 -- cgit v1.2.3