mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-27 10:20:12 +00:00
gpm : install service files depending your init
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user