diff options
author | Laurent Bercot <ska-adelie@skarnet.org> | 2019-10-10 05:20:47 -0500 |
---|---|---|
committer | Laurent Bercot <ska-adelie@skarnet.org> | 2019-10-10 05:20:47 -0500 |
commit | faee6973baa1a4be70090803e3fbac0641751cc4 (patch) | |
tree | b0ddaf4cf29f68f1994a06dae6847a740d9481e9 /system | |
parent | ed15072fecef34e6c3e8f9abca93e07d05667b5a (diff) | |
download | packages-faee6973baa1a4be70090803e3fbac0641751cc4.tar.gz packages-faee6973baa1a4be70090803e3fbac0641751cc4.tar.bz2 packages-faee6973baa1a4be70090803e3fbac0641751cc4.tar.xz packages-faee6973baa1a4be70090803e3fbac0641751cc4.zip |
system/mdevd: move servicedir definition to mdevd-openrc
Diffstat (limited to 'system')
-rw-r--r-- | system/mdevd/APKBUILD | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/system/mdevd/APKBUILD b/system/mdevd/APKBUILD index b21a0be09..d41559e46 100644 --- a/system/mdevd/APKBUILD +++ b/system/mdevd/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Laurent Bercot <ska-adelie@skarnet.org> pkgname=mdevd pkgver=0.1.1.0 -pkgrel=2 +pkgrel=3 pkgdesc="A small uevent manager daemon" url="https://skarnet.org/software/$pkgname/" arch="all" @@ -20,15 +20,11 @@ build() { } package() { - svcdir="$pkgdir/etc/s6-linux-init/current/run-image/service/mdevd" cd "$builddir" make DESTDIR="$pkgdir" install - mkdir -p -m 0755 "$svcdir" + mkdir -p -m 0755 "$pkgdir/etc" cp -f "$srcdir/mdev.conf" "$pkgdir/etc/" chmod 0644 "$pkgdir/etc/mdev.conf" - cp -f "$srcdir/mdevd.run" "$svcdir/run" - echo 3 > "$svcdir/notification-fd" - touch "$svcdir/down" } @@ -43,10 +39,14 @@ doc() { openrc() { rldir="$subpkgdir"/etc/runlevels/sysinit + svcdir="$subpkgdir/etc/s6-linux-init/current/run-image/service/mdevd" default_openrc - mkdir -p "$rldir" + mkdir -p "$rldir" "$svcdir" + cp -f "$srcdir/mdevd.run" "$svcdir/run" + chmod 0755 "$svcdir/run" + echo 3 > "$svcdir/notification-fd" + touch "$svcdir/down" ln -s ../../init.d/mdevd "$rldir/mdevd" - ln -s ../../init.d/mdevd-coldplug "$rldir/mdevd-coldplug" } sha512sums="94bbcaf0c39511da392c932c5d38ced7029727a46997877d03bba41fc7302df3d4400d3957be9361055e954f3a22b785db40d56bb2f031bc49bb2f398179efe0 mdevd-0.1.1.0.tar.gz |