aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bercot <ska-devel@skarnet.org>2022-08-18 10:39:26 +0200
committerAriadne Conill <ariadne@treehouse.systems>2022-09-04 05:49:07 +0000
commit7501172a312403cb494042f8aa8f9faf7b354790 (patch)
treeb5349711774af5139ff16e9c815440f4910b6915
parentb3c03c7c0aec0a8412ce2cf49be8a78c1a18f7a7 (diff)
downloadaports-7501172a312403cb494042f8aa8f9faf7b354790.tar.gz
aports-7501172a312403cb494042f8aa8f9faf7b354790.tar.bz2
aports-7501172a312403cb494042f8aa8f9faf7b354790.tar.xz
main/udev-init-scripts: make udev-init-scripts-openrc provide virtual dev-openrc
Also delete obsolete post-install/upgrade scripts: the functionality is now provided by setup-devd. Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--main/udev-init-scripts/APKBUILD9
-rw-r--r--main/udev-init-scripts/udev-init-scripts.post-install10
l---------main/udev-init-scripts/udev-init-scripts.post-upgrade1
3 files changed, 7 insertions, 13 deletions
diff --git a/main/udev-init-scripts/APKBUILD b/main/udev-init-scripts/APKBUILD
index fe45f52264..5aa1cc1634 100644
--- a/main/udev-init-scripts/APKBUILD
+++ b/main/udev-init-scripts/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=udev-init-scripts
pkgver=35
-pkgrel=0
+pkgrel=1
pkgdesc="udev startup scripts for openrc"
url="https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-fs/udev-init-scripts"
arch="noarch"
@@ -10,7 +10,6 @@ options="!check" # They are only scripts
license="GPL-2.0-only"
replaces="udev"
subpackages="$pkgname-openrc"
-install="$pkgname.post-install $pkgname.post-upgrade"
source="https://gitweb.gentoo.org/proj/udev-gentoo-scripts.git/snapshot/udev-gentoo-scripts-$pkgver.tar.gz
modloop.patch
"
@@ -24,6 +23,12 @@ package() {
make DESTDIR="$pkgdir" install
}
+openrc() {
+ provides="dev-openrc"
+ provider_priority=10
+ default_openrc
+}
+
sha512sums="
da9d2093149967e2e1b9bc7190ddfd55a87c9ae2177e3216f7cb2694fc9b64037eb6f2599ad8a4b7594ef32ced88fbb319c92904bc72a81ea5404945f8a8378a udev-gentoo-scripts-35.tar.gz
d68def2429e68dadae1c8f2c4f76207a5b21ef98f755792f2033695af9d28ae555588d02033179340edd4ce0de0436dbaf30f0e7ccd59ea0444ddb7c2a5495d0 modloop.patch
diff --git a/main/udev-init-scripts/udev-init-scripts.post-install b/main/udev-init-scripts/udev-init-scripts.post-install
deleted file mode 100644
index 0cc44989f8..0000000000
--- a/main/udev-init-scripts/udev-init-scripts.post-install
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-if ! [ -e /etc/runlevels/sysinit/udev ]; then
- exit 0
-fi
-
-if ! [ /etc/runlevels/sysinit/udev-trigger ]; then
- ln -s /etc/init.d/udev-trigger /etc/runlevels/sysinit/udev-trigger
-fi
-
diff --git a/main/udev-init-scripts/udev-init-scripts.post-upgrade b/main/udev-init-scripts/udev-init-scripts.post-upgrade
deleted file mode 120000
index 0b54cffe15..0000000000
--- a/main/udev-init-scripts/udev-init-scripts.post-upgrade
+++ /dev/null
@@ -1 +0,0 @@
-udev-init-scripts.post-install \ No newline at end of file