summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2020-08-05 13:26:06 -0500
committerWilliam Hubbs <williamh@gentoo.org>2020-08-05 13:26:36 -0500
commitdd4b8555bf6473a7337afd4e40621e78bbd32334 (patch)
treeafed823d5e6acef48e17a7c320e427331ac274e9 /sys-fs/udev-init-scripts
parentmedia-sound/aqualung: Revision bump to aqualung-1.0-r5. (diff)
downloadgentoo-dd4b8555bf6473a7337afd4e40621e78bbd32334.tar.gz
gentoo-dd4b8555bf6473a7337afd4e40621e78bbd32334.tar.bz2
gentoo-dd4b8555bf6473a7337afd4e40621e78bbd32334.zip
sys-fs/udev-init-scripts: bump to version 34
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'sys-fs/udev-init-scripts')
-rw-r--r--sys-fs/udev-init-scripts/Manifest1
-rw-r--r--sys-fs/udev-init-scripts/udev-init-scripts-34.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/sys-fs/udev-init-scripts/Manifest b/sys-fs/udev-init-scripts/Manifest
index 8fd0114ec702..2c8c7c596fde 100644
--- a/sys-fs/udev-init-scripts/Manifest
+++ b/sys-fs/udev-init-scripts/Manifest
@@ -1 +1,2 @@
DIST udev-init-scripts-33.tar.gz 3698 BLAKE2B fc79b3f6984131180324919f7be4309715976309ee582147662634bb020b8162b293e7fd0e675a9cc7a3b1630ce0fc49b29c899e393c7748d47cf924b1ca2809 SHA512 2119aace937da02f47a5adc9af720587d25c2852cf70a9bcb04138e3ee511308c8f30cf0301fbec58cf0432b7fd6672ae6a02d1740c774703959197b3511fbcc
+DIST udev-init-scripts-34.tar.gz 3660 BLAKE2B 954b003c78b31649fef69213a5424098f40e17e7ed11f4ec1443247950ea60db8536f37ca603caa06e5c9f8bab07b5ac3cb8c9435144532a97ff04836c24da49 SHA512 ed48bcd0815e235b2b3fa38f857cd97f164aac7c6ea805be87890eb06a0d52064bd733da240c6e2a34c8c73e10fd047b5e53096de06f17bc81d8266d70c0cc9d
diff --git a/sys-fs/udev-init-scripts/udev-init-scripts-34.ebuild b/sys-fs/udev-init-scripts/udev-init-scripts-34.ebuild
new file mode 100644
index 000000000000..0fa826de5d68
--- /dev/null
+++ b/sys-fs/udev-init-scripts/udev-init-scripts-34.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+OLD_PN=udev-gentoo-scripts
+OLD_P=${OLD_PN}-${PV}
+
+if [ "${PV}" = "9999" ]; then
+ EGIT_REPO_URI="git://anongit.gentoo.org/proj/${OLD_PN}.git"
+ inherit git-r3
+else
+ SRC_URI="https://gitweb.gentoo.org/proj/${OLD_PN}.git/snapshot/${OLD_P}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/${OLD_P}"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+fi
+
+DESCRIPTION="udev startup scripts for openrc"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+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 "${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
+
+ if ! has_version "sys-fs/eudev[rule-generator]" && \
+ [[ -x $(type -P rc-update) ]] && rc-update show | grep udev-postmount | grep -qs 'boot\|default\|sysinit'; then
+ ewarn "The udev-postmount service has been removed because the reasons for"
+ ewarn "its existance have been removed upstream."
+ ewarn "Please remove it from your runlevels."
+ fi
+}