summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2019-08-30 20:18:42 -0400
committerMike Gilbert <floppym@gentoo.org>2019-08-30 20:18:42 -0400
commit0c1ea876a19c8474bedd2a63e68508f74cebdafb (patch)
tree93ab880d51b009848a1e03c2a7423e138242d796 /sys-fs/udev-init-scripts
parentsys-apps/systemd: remove obsolete patches (diff)
downloadgentoo-0c1ea876a19c8474bedd2a63e68508f74cebdafb.tar.gz
gentoo-0c1ea876a19c8474bedd2a63e68508f74cebdafb.tar.bz2
gentoo-0c1ea876a19c8474bedd2a63e68508f74cebdafb.zip
sys-fs/udev-init-scripts: fix install on prefix
Closes: https://bugs.gentoo.org/682422 Package-Manager: Portage-2.3.73_p4, Repoman-2.3.17_p24 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-fs/udev-init-scripts')
-rw-r--r--sys-fs/udev-init-scripts/udev-init-scripts-33.ebuild13
-rw-r--r--sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild13
2 files changed, 18 insertions, 8 deletions
diff --git a/sys-fs/udev-init-scripts/udev-init-scripts-33.ebuild b/sys-fs/udev-init-scripts/udev-init-scripts-33.ebuild
index 2090016f2a50..1646e4a87e88 100644
--- a/sys-fs/udev-init-scripts/udev-init-scripts-33.ebuild
+++ b/sys-fs/udev-init-scripts/udev-init-scripts-33.ebuild
@@ -25,13 +25,18 @@ RESTRICT="test"
RDEPEND=">=virtual/udev-217
!<sys-apps/openrc-0.14"
+src_install() {
+ local -x SYSCONFDIR="${EPREFIX}/etc"
+ default
+}
+
pkg_postinst() {
# Add udev and udev-trigger to the sysinit runlevel automatically.
for f in udev udev-trigger; do
- if [[ -x ${ROOT%/}/etc/init.d/${f} &&
- -d ${ROOT%/}/etc/runlevels/sysinit &&
- ! -L "${ROOT%/}/etc/runlevels/sysinit/${f}" ]]; then
- ln -snf /etc/init.d/${f} "${ROOT%/}"/etc/runlevels/sysinit/${f}
+ if [[ -x "${EROOT}/etc/init.d/${f}" &&
+ -d "${EROOT}/etc/runlevels/sysinit" &&
+ ! -L "${EROOT}/etc/runlevels/sysinit/${f}" ]]; then
+ ln -snf "${EPREFIX}/etc/init.d/${f}" "${EROOT}/etc/runlevels/sysinit/${f}"
ewarn "Adding ${f} to the sysinit runlevel"
fi
done
diff --git a/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild b/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild
index b514fc5923dd..4ce4b403509b 100644
--- a/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild
+++ b/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild
@@ -25,13 +25,18 @@ RESTRICT="test"
RDEPEND=">=virtual/udev-217
!<sys-apps/openrc-0.14"
+src_install() {
+ local -x SYSCONFDIR="${EPREFIX}/etc"
+ default
+}
+
pkg_postinst() {
# Add udev and udev-trigger to the sysinit runlevel automatically.
for f in udev udev-trigger; do
- if [[ -x ${ROOT%/}/etc/init.d/${f} &&
- -d ${ROOT%/}/etc/runlevels/sysinit &&
- ! -L "${ROOT%/}/etc/runlevels/sysinit/${f}" ]]; then
- ln -snf /etc/init.d/${f} "${ROOT%/}"/etc/runlevels/sysinit/${f}
+ if [[ -x "${EROOT}/etc/init.d/${f}" &&
+ -d "${EROOT}/etc/runlevels/sysinit" &&
+ ! -L "${EROOT}/etc/runlevels/sysinit/${f}" ]]; then
+ ln -snf "${EPREFIX}/etc/init.d/${f}" "${EROOT}/etc/runlevels/sysinit/${f}"
ewarn "Adding ${f} to the sysinit runlevel"
fi
done