Browse Source

[testing] -> [extra] 'gdm-runit-20180226-3' move

master
M. Herdiansyah 1 year ago
parent
commit
5120400ab2
  1. 6
      x86_64/extra/PKGBUILD
  2. 1
      x86_64/extra/gdm.run
  3. 44
      x86_64/testing/PKGBUILD
  4. 5
      x86_64/testing/gdm.run

6
x86_64/extra/PKGBUILD

@ -4,18 +4,18 @@ _sed_args=(-e 's|/var/service|/run/runit/service|g' -e 's|/var/run|/run|g' -e 's
pkgname=gdm-runit
pkgver=20180226
pkgrel=2
pkgrel=3
pkgdesc="runit service scripts for gdm"
arch=('any')
url="https://github.com/artix-linux"
license=('BSD3')
license=('BSD')
# Note: While this PKGBUILD is licensed under BSD-3 terms, all of the
# included runscript should follow it's main package's licenses.
groups=('runit-world')
depends=('gdm' 'dbus-runit')
conflicts=('systemd-sysvcompat')
source=("gdm.run")
sha256sums=('475b0b66a2eec37d380cda4cca7dcac7e388a2d8f58b7151cca6e0745e17510d')
sha256sums=('76d1e7c7c02a77ba96ebc800af219c4ade86d2174eb1ddf43b10b49c0f8add22')
_inst_logsv() {
for file in run finish check; do

1
x86_64/extra/gdm.run

@ -1,4 +1,5 @@
#!/bin/sh
sv check dbus > /dev/null || exit 1
sv check elogind > /dev/null || exit 1
[ ! -d /run/gdm ] && mkdir -m0711 -p /run/gdm && chown root:gdm /run/gdm
exec gdm

44
x86_64/testing/PKGBUILD

@ -1,44 +0,0 @@
# Maintainer: Muhammad Herdiansyah <herdiansyah@netc.eu>
_sed_args=(-e 's|/var/service|/run/runit/service|g' -e 's|/var/run|/run|g' -e 's|/usr/sbin|/usr/bin|g' -e 's|/opt/bin|/usr/bin|g' -e 's|/usr/libexec|/usr/lib|g')
pkgname=gdm-runit
pkgver=20180226
pkgrel=3
pkgdesc="runit service scripts for gdm"
arch=('any')
url="https://github.com/artix-linux"
license=('BSD')
# Note: While this PKGBUILD is licensed under BSD-3 terms, all of the
# included runscript should follow it's main package's licenses.
groups=('runit-world')
depends=('gdm' 'dbus-runit')
conflicts=('systemd-sysvcompat')
source=("gdm.run")
sha256sums=('76d1e7c7c02a77ba96ebc800af219c4ade86d2174eb1ddf43b10b49c0f8add22')
_inst_logsv() {
for file in run finish check; do
if test -f "$srcdir/log$1.$file"; then
install -Dm755 "$srcdir/log$1.$file" "$pkgdir/etc/runit/sv/$1/log/$file"
sed "${_sed_args[@]}" -i "$pkgdir/etc/runit/sv/$1/log/$file"
fi
done
}
_inst_sv() {
if test -f "$srcdir/$1.conf"; then
install -Dm644 "$srcdir/$1.conf" "$pkgdir/etc/runit/sv/$1/conf"
fi
for file in run finish check; do
if test -f "$srcdir/$1.$file"; then
install -Dm755 "$srcdir/$1.$file" "$pkgdir/etc/runit/sv/$1/$file"
sed "${_sed_args[@]}" -i "$pkgdir/etc/runit/sv/$1/$file"
fi
done
}
package() {
_inst_sv 'gdm'
}

5
x86_64/testing/gdm.run

@ -1,5 +0,0 @@
#!/bin/sh
sv check dbus > /dev/null || exit 1
sv check elogind > /dev/null || exit 1
[ ! -d /run/gdm ] && mkdir -m0711 -p /run/gdm && chown root:gdm /run/gdm
exec gdm
Loading…
Cancel
Save