[arch-commits] Commit in umurmur/repos (4 files)

Antonio Rojas arojas at archlinux.org
Fri Dec 15 23:53:37 UTC 2017


    Date: Friday, December 15, 2017 @ 23:53:36
  Author: arojas
Revision: 274550

archrelease: copy trunk to community-staging-x86_64

Added:
  umurmur/repos/community-staging-x86_64/
  umurmur/repos/community-staging-x86_64/PKGBUILD
    (from rev 274549, umurmur/trunk/PKGBUILD)
  umurmur/repos/community-staging-x86_64/umurmur.install
    (from rev 274549, umurmur/trunk/umurmur.install)
  umurmur/repos/community-staging-x86_64/umurmur.service
    (from rev 274549, umurmur/trunk/umurmur.service)

-----------------+
 PKGBUILD        |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 umurmur.install |   13 +++++++++++++
 umurmur.service |   15 +++++++++++++++
 3 files changed, 74 insertions(+)

Copied: umurmur/repos/community-staging-x86_64/PKGBUILD (from rev 274549, umurmur/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-12-15 23:53:36 UTC (rev 274550)
@@ -0,0 +1,46 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Robert Knauer <robert at privatdemail.net>
+# Contributor: xav <xav at ethertricks dot net>
+
+pkgname=umurmur
+pkgver=0.2.17
+pkgrel=6
+pkgdesc='Minimalistic Mumble server'
+url='https://github.com/umurmur/umurmur'
+arch=('x86_64')
+license=('custom')
+depends=('mbedtls' 'libconfig' 'protobuf-c')
+makedepends=('cmake')
+backup=('etc/umurmur/umurmur.conf')
+install=${pkgname}.install
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/umurmur/umurmur/archive/${pkgver}.tar.gz
+        umurmur.service)
+sha256sums=('e77b7b6616768f4a1c07442afe49a772692f667b00c23cc85909d4dd0ce206d2'
+            '3575e69da5ad1fc8541ef37af90cdd245e3202980589ffd26d124fd9e785b738')
+sha512sums=('a496a51fd7815ad117f5aee17bb78cbd319c584ad60ab8aebbfd8ddf7b1760f443f2337bc74be1e0d5af17d3c3df2ae6c9060eca576cf1e6ed4c6cb0825e9c15'
+            'ceb42e7ed4385d16c9d9f30312cc5a57b0ee0ba0ec423e7e2f3e9abc1956506e8817e9a3cb2257112434d568594f4e495f1661af0f89451f802f924790df8ffa')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  mkdir build
+}
+
+build() {
+  cd ${pkgname}-${pkgver}/build
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DSSL=mbedtls
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make -C build DESTDIR="${pkgdir}" install
+  install -Dm 644 "${pkgdir}/usr/etc/umurmur.conf" -t "${pkgdir}/etc/umurmur"
+  rm -r "${pkgdir}/usr/etc"
+  install -Dm 644 "${srcdir}/umurmur.service" -t "${pkgdir}/usr/lib/systemd/system"
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:

Copied: umurmur/repos/community-staging-x86_64/umurmur.install (from rev 274549, umurmur/trunk/umurmur.install)
===================================================================
--- community-staging-x86_64/umurmur.install	                        (rev 0)
+++ community-staging-x86_64/umurmur.install	2017-12-15 23:53:36 UTC (rev 274550)
@@ -0,0 +1,13 @@
+post_install() {
+  getent group umurmur > /dev/null || groupadd -r umurmur 1>/dev/null
+  getent passwd umurmur > /dev/null || useradd -r -M -g umurmur -s /bin/false umurmur 1>/dev/null
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  getent passwd umurmur > /dev/null && userdel umurmur 1>/dev/null
+  getent group umurmur > /dev/null && groupdel umurmur 1>/dev/null
+}

Copied: umurmur/repos/community-staging-x86_64/umurmur.service (from rev 274549, umurmur/trunk/umurmur.service)
===================================================================
--- community-staging-x86_64/umurmur.service	                        (rev 0)
+++ community-staging-x86_64/umurmur.service	2017-12-15 23:53:36 UTC (rev 274550)
@@ -0,0 +1,15 @@
+[Unit]
+Description=Minimalistic Mumble server
+After=network.target
+
+[Service]
+Type=simple
+User=umurmur
+Group=umurmur
+PIDFile=/run/umurmurd.pid
+ExecStartPre=/usr/bin/umurmurd -t -c /etc/umurmur/umurmur.conf
+ExecStart=/usr/bin/umurmurd -d -r -p /run/umurmurd.pid -c /etc/umurmur/umurmur.conf
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list