gpm : install service files depending your init

This commit is contained in:
Victor Tebar
2023-11-03 19:51:40 +00:00
parent 44fdf38cdd
commit ceac59723c
2 changed files with 7 additions and 6 deletions

View File

@@ -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

View File

@@ -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
}