[arch-commits] Commit in hyperion/trunk (4 files)

NicoHood nicohood at archlinux.org
Sun Jan 14 19:35:06 UTC 2018


    Date: Sunday, January 14, 2018 @ 19:35:01
  Author: nicohood
Revision: 282266

upgpkg: hyperion 1.03.2-14

Added:
  hyperion/trunk/hyperion.install
  hyperion/trunk/hyperion.sysusers
  hyperion/trunk/hyperiond.service
Modified:
  hyperion/trunk/PKGBUILD

-------------------+
 PKGBUILD          |   25 ++++++++++++++++++-------
 hyperion.install  |   20 ++++++++++++++++++++
 hyperion.sysusers |    2 ++
 hyperiond.service |   14 ++++++++++++++
 4 files changed, 54 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-14 18:46:23 UTC (rev 282265)
+++ PKGBUILD	2018-01-14 19:35:01 UTC (rev 282266)
@@ -4,7 +4,7 @@
 
 pkgname=hyperion
 pkgver=1.03.2
-pkgrel=13
+pkgrel=14
 pkgdesc="An opensource 'AmbiLight' implementation"
 arch=('x86_64')
 url="https://github.com/hyperion-project/hyperion"
@@ -13,9 +13,17 @@
 optdepends=('xorg-server: X11 grabbing')
 makedepends=('cmake')
 backup=('etc/hyperion/hyperion.config.json')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tvdzwan/${pkgname}/archive/${pkgver}.tar.gz" "0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch")
+install='hyperion.install'
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tvdzwan/${pkgname}/archive/${pkgver}.tar.gz"
+        "0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch"
+        "hyperion.sysusers"
+        "hyperiond.service"
+        "hyperion.install")
 sha512sums=('7406f5bdf323d2799fb375557603fefd1f077cda287b5aa9ff10251b22d8dd07590458515b0e01ef97fba80885aab1aa72bd8b5d26873ad8ebcc1ba53d6776ec'
-            '11c51f6085d78bb75a7d73372262eedc2dab84b9d37ee1850f6b8d8c9cfe85d72a69b7d755e169028c6f7150f09201ded7d32a4edf15130ca2a12a188fe5945c')
+            '11c51f6085d78bb75a7d73372262eedc2dab84b9d37ee1850f6b8d8c9cfe85d72a69b7d755e169028c6f7150f09201ded7d32a4edf15130ca2a12a188fe5945c'
+            '80764d3abdfb7e6e7f65913e9c89dd61b425ffb80e9ab4f9df7739abe32117441095ac7b45792acd5d2a516cf4aca3e21062b119f5790aae3b178036db74ce61'
+            'f8c23ba920ce683e731237c164f4f70f94d635398be5cc43ce1af48bb8ab672da47397979a825a5761dacb1ae18a1c5fc840b168c8f1e3ae411908e0e92a0c5b'
+            'ff5ed8ed647a621b73e922590616e4f5d63f0a7e243aa3de0f8382a835e83166a0e04944396a61a03645cc00853251690a514b3772f163f445240e4f55f18fb5')
 
 prepare() {
     cd "${srcdir}/${pkgname}-${pkgver}"
@@ -43,13 +51,16 @@
     cd ..
 
     install -Dm 644 config/hyperion.config.json.example \
-    "${pkgdir}/etc/hyperion/hyperion.config.json"
+        "${pkgdir}/etc/hyperion/hyperion.config.json"
 
-    install -Dm 644 bin/service/hyperion.systemd.sh \
-    "${pkgdir}/usr/lib/systemd/system/hyperiond.service"
+    install -Dm 644 "${srcdir}/hyperiond.service" \
+        "${pkgdir}/usr/lib/systemd/system/hyperiond.service"
 
     rm -rf "${pkgdir}/usr/share/hyperion/service"
 
+    install -Dm 644 "${srcdir}/hyperion.sysusers" \
+        "${pkgdir}"/usr/lib/sysusers.d/hyperion.conf
+
     install -Dm 644 LICENSE \
-    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+        "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }

Added: hyperion.install
===================================================================
--- hyperion.install	                        (rev 0)
+++ hyperion.install	2018-01-14 19:35:01 UTC (rev 282266)
@@ -0,0 +1,20 @@
+_1.03.2_14_changes() {
+  echo ":: The hyperiond.service now runs as independent user 'hyperion'."
+  echo "   Make sure you still have access rights to your ambilight devices."
+  echo "   The user 'hyperion' belongs to the 'uucp' group."
+  echo "   Also see: https://wiki.archlinux.org/index.php/users_and_groups"
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_upgrade() {
+    local v upgrades=(
+      1.03.2-14
+    )
+
+    for v in "${upgrades[@]}"; do
+      if [[ $(vercmp "$v" "$2") -eq 1 ]]; then
+        "_${v//-/_}_changes"
+      fi
+    done
+}

Added: hyperion.sysusers
===================================================================
--- hyperion.sysusers	                        (rev 0)
+++ hyperion.sysusers	2018-01-14 19:35:01 UTC (rev 282266)
@@ -0,0 +1,2 @@
+u hyperion - "Hyperion daemon user"
+m hyperion uucp

Added: hyperiond.service
===================================================================
--- hyperiond.service	                        (rev 0)
+++ hyperiond.service	2018-01-14 19:35:01 UTC (rev 282266)
@@ -0,0 +1,14 @@
+[Unit]
+Description=Hyperiond Systemd service
+
+[Service]
+Type=simple
+User=hyperion
+Group=hyperion
+ExecStart=/usr/bin/hyperiond /etc/hyperion/hyperion.config.json
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=on-failure
+TimeoutStopSec=10
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list