summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2021-08-29 14:19:22 -0500
committerWilliam Hubbs <williamh@gentoo.org>2021-08-29 14:21:31 -0500
commit50182cb7815184b30e648ee6bc18ddf70ffd116d (patch)
tree3532a2984a201907cb81b667f79aa1509a62ff94 /sys-fs/udev-init-scripts
parentdev-java/jansi: removed obsolete 1.11-r2 (diff)
downloadgentoo-50182cb7815184b30e648ee6bc18ddf70ffd116d.tar.gz
gentoo-50182cb7815184b30e648ee6bc18ddf70ffd116d.tar.bz2
gentoo-50182cb7815184b30e648ee6bc18ddf70ffd116d.zip
sys-fs/udev-init-scripts: 35 bump
Package-Manager: Portage-3.0.20, Repoman-3.0.3 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-35.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 2c8c7c596fde..19a7fdf14aa9 100644
--- a/sys-fs/udev-init-scripts/Manifest
+++ b/sys-fs/udev-init-scripts/Manifest
@@ -1,2 +1,3 @@
DIST udev-init-scripts-33.tar.gz 3698 BLAKE2B fc79b3f6984131180324919f7be4309715976309ee582147662634bb020b8162b293e7fd0e675a9cc7a3b1630ce0fc49b29c899e393c7748d47cf924b1ca2809 SHA512 2119aace937da02f47a5adc9af720587d25c2852cf70a9bcb04138e3ee511308c8f30cf0301fbec58cf0432b7fd6672ae6a02d1740c774703959197b3511fbcc
DIST udev-init-scripts-34.tar.gz 3660 BLAKE2B 954b003c78b31649fef69213a5424098f40e17e7ed11f4ec1443247950ea60db8536f37ca603caa06e5c9f8bab07b5ac3cb8c9435144532a97ff04836c24da49 SHA512 ed48bcd0815e235b2b3fa38f857cd97f164aac7c6ea805be87890eb06a0d52064bd733da240c6e2a34c8c73e10fd047b5e53096de06f17bc81d8266d70c0cc9d
+DIST udev-init-scripts-35.tar.gz 3666 BLAKE2B fddae466428605ea930519e8a47e0ea91f89f9eacc1fd97c137d175142125b12c3d045aec68db35a463de444ac6d8c037cca55f9628f10576c968259d566a9e4 SHA512 da9d2093149967e2e1b9bc7190ddfd55a87c9ae2177e3216f7cb2694fc9b64037eb6f2599ad8a4b7594ef32ced88fbb319c92904bc72a81ea5404945f8a8378a
diff --git a/sys-fs/udev-init-scripts/udev-init-scripts-35.ebuild b/sys-fs/udev-init-scripts/udev-init-scripts-35.ebuild
new file mode 100644
index 000000000000..19363b6da4ad
--- /dev/null
+++ b/sys-fs/udev-init-scripts/udev-init-scripts-35.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+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
+}