diff options
Diffstat (limited to 'system/mdevd/APKBUILD')
-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 |