diff options
author | William Hubbs <williamh@gentoo.org> | 2012-02-03 19:14:55 +0000 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2012-02-03 19:14:55 +0000 |
commit | 53bb9cbc9ca4a843925bfdad4f4cbd88a25f1cfa (patch) | |
tree | 31e2de654d683cfa06305a2280780a31a4a1e26d /sys-fs | |
parent | Remove old. (diff) | |
download | historical-53bb9cbc9ca4a843925bfdad4f4cbd88a25f1cfa.tar.gz historical-53bb9cbc9ca4a843925bfdad4f4cbd88a25f1cfa.tar.bz2 historical-53bb9cbc9ca4a843925bfdad4f4cbd88a25f1cfa.zip |
initial commit of udev-init-scripts package. This package contains the openrc init scripts and helpers for udev.
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/udev-init-scripts/ChangeLog | 12 | ||||
-rw-r--r-- | sys-fs/udev-init-scripts/Manifest | 15 | ||||
-rw-r--r-- | sys-fs/udev-init-scripts/metadata.xml | 7 | ||||
-rw-r--r-- | sys-fs/udev-init-scripts/udev-init-scripts-8.ebuild | 89 | ||||
-rw-r--r-- | sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild | 89 |
5 files changed, 212 insertions, 0 deletions
diff --git a/sys-fs/udev-init-scripts/ChangeLog b/sys-fs/udev-init-scripts/ChangeLog new file mode 100644 index 000000000000..af8236ba5360 --- /dev/null +++ b/sys-fs/udev-init-scripts/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for sys-fs/udev-init-scripts +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev-init-scripts/ChangeLog,v 1.1 2012/02/03 19:14:55 williamh Exp $ + +*udev-init-scripts-9999 (02 Feb 2012) +*udev-init-scripts-8 (02 Feb 2012) + + 02 Feb 2012; William Hubbs <williamh@gentoo.org> +udev-init-scripts-8.ebuild, + +udev-init-scripts-9999.ebuild, +metadata.xml: + Initial commit of udev-init-scripts. This package contains the openrc init + scripts and helpers for udev. + diff --git a/sys-fs/udev-init-scripts/Manifest b/sys-fs/udev-init-scripts/Manifest new file mode 100644 index 000000000000..e5878c1b1855 --- /dev/null +++ b/sys-fs/udev-init-scripts/Manifest @@ -0,0 +1,15 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +DIST udev-init-scripts-8.tar.bz2 16428 RMD160 6af56bb2e17ee86c3c3d522a78c1a6508e1a11fb SHA1 296060b39c752955819a4b04080a7a05441da342 SHA256 296c216da551340453d856d465ce22e7ff0dab0f7e4983d1132645299a057b9c +EBUILD udev-init-scripts-8.ebuild 2382 RMD160 888528dc91bc814f522d588cad41aead6a05ec7e SHA1 a3c1eefe4811c41132cc9493f51e712971877b48 SHA256 695b228da0b08b4e277f3be3058b5cc4e0c36c0fff4a712f4fe92e5b68dfe4dc +EBUILD udev-init-scripts-9999.ebuild 2427 RMD160 97115914a14b0c1562a064610ca95ef7bd259454 SHA1 7c0406c130046ee9ebb9f020aea352a72a29b065 SHA256 bc4c43e236cd1caf924b9d0e30a05468c7f51c938ccdda2b270040094ad0bafa +MISC ChangeLog 536 RMD160 65cf4fe194274cb5309ff6221ee93e4f127e8218 SHA1 bd4cdc4f04ceb5a9e4683d73980313bf1c4f58ac SHA256 91014b7dd86cd91132708fe712491a4247d180b5d4837e8af027017d7004a0ef +MISC metadata.xml 206 RMD160 d508cb902c5f340f6aeadcc6071d8a6b54ae4690 SHA1 d8213c670ef37b1a7fe69cc84c15f5a31903023d SHA256 e8bae0ea2f16b0ad92858b68718c01ab85b5e6995a35b88c74e4ad9772b9f813 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iEYEARECAAYFAk8sMj0ACgkQblQW9DDEZTiX4QCgnE68BOLOjYxc3efsXjdvReE3 +m88AnjEXZ064xyO+9YFSrV/li+ing1yD +=o2Un +-----END PGP SIGNATURE----- diff --git a/sys-fs/udev-init-scripts/metadata.xml b/sys-fs/udev-init-scripts/metadata.xml new file mode 100644 index 000000000000..f9cc3c3cbd9c --- /dev/null +++ b/sys-fs/udev-init-scripts/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>udev-bugs@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/sys-fs/udev-init-scripts/udev-init-scripts-8.ebuild b/sys-fs/udev-init-scripts/udev-init-scripts-8.ebuild new file mode 100644 index 000000000000..a419882c2b0b --- /dev/null +++ b/sys-fs/udev-init-scripts/udev-init-scripts-8.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev-init-scripts/udev-init-scripts-8.ebuild,v 1.1 2012/02/03 19:14:55 williamh Exp $ + +EAPI=4 + +EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/udev-gentoo-scripts.git" + +[ "${PV}" = "9999" ] && vcs=git-2 +inherit $vcs +unset vcs + +DESCRIPTION="udev startup scripts for openrc" +HOMEPAGE="http://www.gentoo.org" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +if [ "${PV}" != "9999" ]; then + SRC_URI="mirror://gentoo/${P}.tar.bz2" + KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" +fi + +DEPEND="" +RDEPEND=">=sys-fs/udev-180" + + src_compile() +{ + return 0 +} + +pkg_postinst() +{ + local enable_postmount=false + + # FIXME: inconsistent handling of init-scripts here + # * udev is added to sysinit in openrc-ebuild + # * we add udev-postmount to default in here + # + + # If we are building stages, add udev to the sysinit runlevel automatically. + if use build + then + if [[ -x "${ROOT}"/etc/init.d/udev \ + && -d "${ROOT}"/etc/runlevels/sysinit ]] + then + ln -s /etc/init.d/udev "${ROOT}"/etc/runlevels/sysinit/udev + fi + enable_postmount=true + fi + + # migration to >=openrc-0.4 + if [[ -e "${ROOT}"/etc/runlevels/sysinit && ! -e "${ROOT}"/etc/runlevels/sysinit/udev ]] + then + ewarn + ewarn "You need to add the udev init script to the runlevel sysinit," + ewarn "else your system will not be able to boot" + ewarn "after updating to >=openrc-0.4.0" + ewarn "Run this to enable udev for >=openrc-0.4.0:" + ewarn "\trc-update add udev sysinit" + ewarn + fi + + # add udev-postmount to default runlevel instead of that ugly injecting + # like a hotplug event, 2009/10/15 + + # already enabled? + [[ -e "${ROOT}"/etc/runlevels/default/udev-postmount ]] && return + + [[ -e "${ROOT}"/etc/runlevels/sysinit/udev ]] && enable_postmount=true + [[ "${ROOT}" = "/" && -d /dev/.udev/ ]] && enable_postmount=true + + if $enable_postmount + then + local initd=udev-postmount + + if [[ -e ${ROOT}/etc/init.d/${initd} ]] && \ + [[ ! -e ${ROOT}/etc/runlevels/default/${initd} ]] + then + ln -snf /etc/init.d/${initd} "${ROOT}"/etc/runlevels/default/${initd} + elog "Auto-adding '${initd}' service to your default runlevel" + fi + else + elog "You should add the udev-postmount service to default runlevel." + elog "Run this to add it:" + elog "\trc-update add udev-postmount default" + fi +} diff --git a/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild b/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild new file mode 100644 index 000000000000..0bdb29638747 --- /dev/null +++ b/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild,v 1.1 2012/02/03 19:14:55 williamh Exp $ + +EAPI=4 + +EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/udev-gentoo-scripts.git" + +[ "${PV}" = "9999" ] && vcs=git-2 +inherit $vcs +unset vcs + +DESCRIPTION="udev startup scripts for openrc" +HOMEPAGE="http://www.gentoo.org" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +if [ "${PV}" != "9999" ]; then + SRC_URI="mirror://gentoo/${P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +fi + +DEPEND="" +RDEPEND=">=sys-fs/udev-180" + + src_compile() +{ + return 0 +} + +pkg_postinst() +{ + local enable_postmount=false + + # FIXME: inconsistent handling of init-scripts here + # * udev is added to sysinit in openrc-ebuild + # * we add udev-postmount to default in here + # + + # If we are building stages, add udev to the sysinit runlevel automatically. + if use build + then + if [[ -x "${ROOT}"/etc/init.d/udev \ + && -d "${ROOT}"/etc/runlevels/sysinit ]] + then + ln -s /etc/init.d/udev "${ROOT}"/etc/runlevels/sysinit/udev + fi + enable_postmount=true + fi + + # migration to >=openrc-0.4 + if [[ -e "${ROOT}"/etc/runlevels/sysinit && ! -e "${ROOT}"/etc/runlevels/sysinit/udev ]] + then + ewarn + ewarn "You need to add the udev init script to the runlevel sysinit," + ewarn "else your system will not be able to boot" + ewarn "after updating to >=openrc-0.4.0" + ewarn "Run this to enable udev for >=openrc-0.4.0:" + ewarn "\trc-update add udev sysinit" + ewarn + fi + + # add udev-postmount to default runlevel instead of that ugly injecting + # like a hotplug event, 2009/10/15 + + # already enabled? + [[ -e "${ROOT}"/etc/runlevels/default/udev-postmount ]] && return + + [[ -e "${ROOT}"/etc/runlevels/sysinit/udev ]] && enable_postmount=true + [[ "${ROOT}" = "/" && -d /dev/.udev/ ]] && enable_postmount=true + + if $enable_postmount + then + local initd=udev-postmount + + if [[ -e ${ROOT}/etc/init.d/${initd} ]] && \ + [[ ! -e ${ROOT}/etc/runlevels/default/${initd} ]] + then + ln -snf /etc/init.d/${initd} "${ROOT}"/etc/runlevels/default/${initd} + elog "Auto-adding '${initd}' service to your default runlevel" + fi + else + elog "You should add the udev-postmount service to default runlevel." + elog "Run this to add it:" + elog "\trc-update add udev-postmount default" + fi +} |