summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-adelie@skarnet.org>2024-04-15 17:23:54 +0000
committerZach van Rijn <me@zv.io>2024-04-25 02:48:27 +0000
commit9371e11f4f155fa4278d23d9690e7373d3964c43 (patch)
treec04a6c166a8fa7b8d45d29c95475b1ed845457ee
parent7730de23769b58eaa968bdf2421f279eef2e1120 (diff)
downloadpackages-9371e11f4f155fa4278d23d9690e7373d3964c43.tar.gz
packages-9371e11f4f155fa4278d23d9690e7373d3964c43.tar.bz2
packages-9371e11f4f155fa4278d23d9690e7373d3964c43.tar.xz
packages-9371e11f4f155fa4278d23d9690e7373d3964c43.zip
system/mdevd: simplify APKBUILD
-rw-r--r--system/mdevd/APKBUILD15
1 files changed, 3 insertions, 12 deletions
diff --git a/system/mdevd/APKBUILD b/system/mdevd/APKBUILD
index e9ea9cf21..94e05d5d0 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.6.3
-pkgrel=0
+pkgrel=1
pkgdesc="A small uevent manager daemon"
url="https://skarnet.org/software/mdevd/"
arch="all"
@@ -20,23 +20,14 @@ build() {
package() {
make DESTDIR="$pkgdir" install
- mkdir -p -m 0755 "$pkgdir/etc/init.d"
+ mkdir -p -m 0755 "$pkgdir/etc/init.d" "$pkgdir/usr/share/doc"
cp -f "$srcdir/mdev.conf" "$pkgdir/etc/"
chmod 0644 "$pkgdir/etc/mdev.conf"
cp -f "$srcdir/mdevd.initd" "$pkgdir/etc/init.d/mdevd"
chmod 0755 "$pkgdir/etc/init.d/mdevd"
+ cp -a "$builddir/doc" "$pkgdir/usr/share/doc/$pkgname"
}
-
-doc() {
- pkgdesc="$pkgdesc (documentation)"
- depends=
- install_if="docs $pkgname=$pkgver-r$pkgrel"
- mkdir -p "$subpkgdir/usr/share/doc"
- cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
-}
-
-
openrc() {
rldir="$subpkgdir"/etc/runlevels/sysinit
svcdir="$subpkgdir/etc/s6-linux-init/current/run-image/service/mdevd"