1 |
commit: 0e5d1c23810cc4716ebafd7b2f2ecee276b424c3 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 28 03:32:32 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 28 03:32:32 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e5d1c23 |
7 |
|
8 |
net-misc/dahdi-tools: use udev.eclass; call udev_reload |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
net-misc/dahdi-tools/dahdi-tools-3.1.0-r2.ebuild | 10 +++++++--- |
13 |
1 file changed, 7 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/net-misc/dahdi-tools/dahdi-tools-3.1.0-r2.ebuild b/net-misc/dahdi-tools/dahdi-tools-3.1.0-r2.ebuild |
16 |
index 33e37114b885..49903c27e61a 100644 |
17 |
--- a/net-misc/dahdi-tools/dahdi-tools-3.1.0-r2.ebuild |
18 |
+++ b/net-misc/dahdi-tools/dahdi-tools-3.1.0-r2.ebuild |
19 |
@@ -1,9 +1,9 @@ |
20 |
-# Copyright 1999-2021 Gentoo Authors |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
EAPI=7 |
25 |
|
26 |
-inherit autotools bash-completion-r1 perl-functions |
27 |
+inherit autotools bash-completion-r1 perl-functions udev |
28 |
|
29 |
DESCRIPTION="Userspace tools to configure the kernel modules from net-misc/dahdi" |
30 |
HOMEPAGE="https://www.asterisk.org" |
31 |
@@ -47,7 +47,7 @@ src_install() { |
32 |
local bashcompdir="$(get_bashcompdir)" |
33 |
local bashcmd bashcmdtarget |
34 |
|
35 |
- emake DESTDIR="${ED}" bashcompdir="${bashcompdir}" udevrulesdir=/lib/udev/rules.d install |
36 |
+ emake DESTDIR="${ED}" bashcompdir="${bashcompdir}" udevrulesdir="$(get_udevdir)/rules.d" install |
37 |
emake DESTDIR="${ED}" install-config |
38 |
|
39 |
dosbin patgen pattest patlooptest hdlcstress hdlctest hdlcgen hdlcverify timertest |
40 |
@@ -64,3 +64,7 @@ src_install() { |
41 |
# Delete *if* the libtool file exists, bug #778380 |
42 |
find "${ED}" -name '*.la' -delete || die |
43 |
} |
44 |
+ |
45 |
+pkg_postinst() { |
46 |
+ udev_reload |
47 |
+} |