[arch-commits] Commit in gpm/trunk (PKGBUILD gpm.path gpm.service)

Christian Hesse eworm at archlinux.org
Fri Sep 25 13:58:12 UTC 2020


    Date: Friday, September 25, 2020 @ 13:58:12
  Author: eworm
Revision: 396556

upgpkg: gpm 1.20.7.r38.ge82d1a6-3: fix race condition with service

Added:
  gpm/trunk/gpm.path
Modified:
  gpm/trunk/PKGBUILD
  gpm/trunk/gpm.service

-------------+
 PKGBUILD    |    7 +++++--
 gpm.path    |    5 +++++
 gpm.service |    1 +
 3 files changed, 11 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-25 13:01:42 UTC (rev 396555)
+++ PKGBUILD	2020-09-25 13:58:12 UTC (rev 396556)
@@ -3,7 +3,7 @@
 pkgname=gpm
 pkgver=1.20.7.r38.ge82d1a6
 _commit='e82d1a653ca94aa4ed12441424da6ce780b1e530'
-pkgrel=2
+pkgrel=3
 pkgdesc='A mouse server for the console and xterm'
 arch=('x86_64')
 url='https://www.nico.schottelius.org/software/gpm/'
@@ -14,10 +14,12 @@
 options=('!makeflags')
 source=("git+https://github.com/telmich/gpm.git#commit=${_commit}"
         'gpm.sh'
+        'gpm.path'
         'gpm.service')
 sha256sums=('SKIP'
             'f41e90dcf6c0c6c4b8eff1c69039a20eb6b38ea851ffd1fa47ba311bf83d6ed8'
-            'dc7d2463f6670ff2c1646a571ffad51f7c603793c25c6f685efad13cbb444034')
+            '1b8712650c70fd139f844fa754e288bfe05a8ed8044d118fda75a47d66034d23'
+            'dbce5688b3ba1d5bc9c4f38bcc2d89a6d68d51b30fb5d6d29a02d0c011d3688e')
 
 pkgver() {
   cd "${srcdir}/${pkgname}"
@@ -50,6 +52,7 @@
 
   make DESTDIR="${pkgdir}" install
   install -D -m0755 ../gpm.sh "${pkgdir}/etc/profile.d/gpm.sh"
+  install -D -m0644 ../gpm.path "${pkgdir}/usr/lib/systemd/system/gpm.path"
   install -D -m0644 ../gpm.service "${pkgdir}/usr/lib/systemd/system/gpm.service"
 
 # library fixes

Added: gpm.path
===================================================================
--- gpm.path	                        (rev 0)
+++ gpm.path	2020-09-25 13:58:12 UTC (rev 396556)
@@ -0,0 +1,5 @@
+[Unit]
+Description=Virtual console mouse server
+
+[Path]
+PathExists=/dev/input/mice

Modified: gpm.service
===================================================================
--- gpm.service	2020-09-25 13:01:42 UTC (rev 396555)
+++ gpm.service	2020-09-25 13:58:12 UTC (rev 396556)
@@ -2,6 +2,7 @@
 Description=Virtual console mouse server
 Requires=systemd-udevd.service
 After=systemd-udevd.service
+Wants=gpm.path
 ConditionPathExists=/dev/input/mice
 
 [Service]



More information about the arch-commits mailing list