aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-11-12 04:28:36 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-11-12 12:16:07 +0000
commit951fec7203a8e828872057fd96755715ad1607bb (patch)
tree39276b74aa03fcb221ae0bb7db3dd58aa88bcdf2
parenta9c3be5da918dbeb6870ef5ae07658c1cf318816 (diff)
downloadaports-951fec7203a8e828872057fd96755715ad1607bb.tar.bz2
aports-951fec7203a8e828872057fd96755715ad1607bb.tar.xz
main/eudev: add trigger to reload rules when they are installed
-rw-r--r--main/eudev/APKBUILD7
-rw-r--r--main/eudev/eudev.trigger7
2 files changed, 9 insertions, 5 deletions
diff --git a/main/eudev/APKBUILD b/main/eudev/APKBUILD
index 4c27e0af2a..d48ebc4ab8 100644
--- a/main/eudev/APKBUILD
+++ b/main/eudev/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=eudev
pkgver=3.2.9
-pkgrel=0
+pkgrel=1
pkgdesc="OpenRC compatible fork of systemd-udev"
url="https://wiki.gentoo.org/wiki/Project:Eudev"
arch="all"
@@ -16,6 +16,7 @@ makedepends="gperf glib-dev linux-headers kmod-dev gobject-introspection-dev
checkdepends="tree xz perl"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-openrc
$pkgname-netifnames::noarch"
+triggers="eudev.trigger=/lib/udev/rules.d:/usr/lib/udev/rules.d"
source="https://dev.gentoo.org/~blueness/eudev/eudev-$pkgver.tar.gz
default-rules.patch
load-fbcon.patch
@@ -24,7 +25,6 @@ source="https://dev.gentoo.org/~blueness/eudev/eudev-$pkgver.tar.gz
"
build() {
- cd "$builddir"
# we need disable kmod til busybox depmod generates binary formats:
# modules.dep.bin modules.alias.bin modules.symbols.bin
# modules.builtin.bin
@@ -46,13 +46,10 @@ build() {
}
check() {
- cd "$builddir"
make check
}
package() {
- cd "$builddir"
-
make DESTDIR="$pkgdir" sharepkgconfigdir=/usr/lib/pkgconfig \
install
diff --git a/main/eudev/eudev.trigger b/main/eudev/eudev.trigger
new file mode 100644
index 0000000000..f200c38c56
--- /dev/null
+++ b/main/eudev/eudev.trigger
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ -S /run/udev/control ]; then
+ udevadm control --reload
+fi
+
+exit 0