From ceac59723c05bc2b95afbbb95866e70b77053783 Mon Sep 17 00:00:00 2001 From: Victor Tebar Date: Fri, 3 Nov 2023 19:51:40 +0000 Subject: [PATCH] gpm : install service files depending your init --- main/gpm/.pkgfiles | 6 +----- main/gpm/spkgbuild | 7 ++++++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/main/gpm/.pkgfiles b/main/gpm/.pkgfiles index 6c22233d1..9eb012961 100644 --- a/main/gpm/.pkgfiles +++ b/main/gpm/.pkgfiles @@ -1,4 +1,4 @@ -gpm-1.20.7-5 +gpm-1.20.7-6 drwxr-xr-x root/root etc/ drwxr-xr-x root/root etc/conf.d/ -rw-r--r-- root/root etc/conf.d/gpm @@ -7,10 +7,6 @@ drwxr-xr-x root/root etc/profile.d/ -rw-r--r-- root/root etc/profile.d/gpm.sh drwxr-xr-x root/root etc/rc.d/ -rwxr-xr-x root/root etc/rc.d/gpm -drwxr-xr-x root/root etc/sv/ -drwxr-xr-x root/root etc/sv/gpm/ --rwxr-xr-x root/root etc/sv/gpm/run -lrwxrwxrwx root/root etc/sv/gpm/supervise -> /run/runit/supervise.gpm drwxr-xr-x root/root usr/ drwxr-xr-x root/root usr/bin/ -rwxr-xr-x root/root usr/bin/disable-paste diff --git a/main/gpm/spkgbuild b/main/gpm/spkgbuild index 81cbf825d..558f8f9bc 100755 --- a/main/gpm/spkgbuild +++ b/main/gpm/spkgbuild @@ -2,7 +2,7 @@ name=gpm version=1.20.7 -release=5 +release=6 source="https://www.nico.schottelius.org/software/gpm/archives/$name-$version.tar.bz2 gpm-1.20.7-consolidated-1.patch gpm.conf @@ -25,9 +25,14 @@ build() { install -Dm644 $SRC/gpm.sh $PKG/etc/profile.d/gpm.sh install -Dm644 $SRC/gpm.conf $PKG/etc/conf.d/gpm + _runit() { # runit service install -Dm755 $SRC/run.$name $PKG/etc/sv/$name/run ln -s /run/runit/supervise.$name $PKG/etc/sv/$name/supervise + } + _sysv() { # rc service install -Dm755 $SRC/rc.$name $PKG/etc/rc.d/$name + } + scratch isinstalled runit && _runit || _sysv }