summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD16
-rw-r--r--murmur-snapshot-minimal.install25
3 files changed, 43 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 624bf5fe41c..6b2ccace26b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,6 +3,7 @@ pkgbase = murmur-snapshot-noice
pkgver = 1.3.0_2389_gdde8173
pkgrel = 1
url = https://mumble.info
+ install = murmur-snapshot-minimal.install
arch = i686
arch = x86_64
arch = armv7h
@@ -11,6 +12,8 @@ pkgbase = murmur-snapshot-noice
makedepends = boost
depends = qt5-base
depends = protobuf
+ provides = murmur=1.3.0_2389_gdde8173
+ conflicts = murmur
source = https://mumble.info/snapshot/mumble-1.3.0~2389~gdde8173~snapshot.tar.gz
sha512sums = 18d0c2e8d0caeed1306429a367a2756260280a3bcc7ed8bac7c3a6e8b8938e6f13b65c83271f1411b948c50d20d7426aebaf14f271109df8c62209108157e374
diff --git a/PKGBUILD b/PKGBUILD
index f2c310e44eb..4d82566c50d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,7 @@
# Maintainer: Felix Singer
-pkgname=murmur-snapshot-noice
+_pkgname=murmur
+pkgname=${_pkgname}-snapshot-noice
pkgver=1.3.0_2389_gdde8173
pkgrel=1
pkgdesc="The voice chat application server for Mumble"
@@ -9,6 +10,9 @@ url="https://mumble.info"
license=('BSD')
depends=('qt5-base' 'protobuf')
makedepends=('python' 'boost')
+provides=("${_pkgname}=${pkgver}")
+conflicts=("${_pkgname}")
+install=murmur-snapshot-minimal.install
source=("https://mumble.info/snapshot/mumble-${pkgver//_/\~}~snapshot.tar.gz")
sha512sums=('18d0c2e8d0caeed1306429a367a2756260280a3bcc7ed8bac7c3a6e8b8938e6f13b65c83271f1411b948c50d20d7426aebaf14f271109df8c62209108157e374')
@@ -28,10 +32,20 @@ package() {
cat release/murmurd release/libmumble_proto.a > "release/murmurd_new"
+ install -m750 -d "${pkgdir}/etc/murmur"
+ install -m640 -D "./scripts/murmur.ini" "${pkgdir}/etc/murmur/murmur.ini"
+
install -m755 -D "./release/murmurd_new" "${pkgdir}/usr/bin/murmurd"
+
install -m755 -d "${pkgdir}/usr/share/man/man1"
install -m644 -D "./man/murmurd.1" "${pkgdir}/usr/share/man/man1/"
install -m644 -D "./LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ sed -e "s|database=|database=/var/lib/murmur/murmur.sqlite|" \
+ -e "s|;logfile=murmur.log|logfile=/var/log/murmur/murmur.log|" \
+ -e "s|;pidfile=|pidfile=/run/murmur/murmur.pid|" \
+ -e "s|;uname=|uname=murmur|" \
+ -i "${pkgdir}/etc/murmur/murmur.ini"
}
# vim: sw=2:ts=2 et:
diff --git a/murmur-snapshot-minimal.install b/murmur-snapshot-minimal.install
new file mode 100644
index 00000000000..fa1314e6706
--- /dev/null
+++ b/murmur-snapshot-minimal.install
@@ -0,0 +1,25 @@
+pre_install() {
+}
+
+post_install() {
+ getent group murmur > /dev/null || groupadd murmur
+ getent passwd murmur > /dev/null || useradd -g murmur -s /bin/false -d /nonexistent murmur
+
+ mkdir -p /var/lib/murmur /var/log/murmur /run/murmur
+ chown murmur:murmur /var/lib/murmur /var/log/murmur /run/murmur
+ chmod 750 /var/lib/murmur /var/log/murmur
+ chmod 755 /run/murmur
+}
+
+pre_upgrade() {
+}
+
+post_upgrade() {
+}
+
+pre_remove() {
+}
+
+post_remove() {
+}
+