feat(profiles): Add systemd profile from my Gentoo systemd-only overlay.

No need for me to maintain a similar profile in two entirely different
ways. This is also one tiny step towards cleaning up our profiles in
general. Original here: https://github.com/marineam/systemd-only-overlay

As part of this change the baselayout dependency on openrc is now
handled via a use flag instead of package.provided. We didn't previously
include a virtual/init package but Gentoo has one and I needed it for my
generic systemd-only overlay so might as well include it here if it is
needed in the future.
This commit is contained in:
Michael Marineau 2013-08-03 18:32:15 -04:00
parent 8aac92d989
commit a6e4651e25
9 changed files with 47 additions and 2 deletions

View File

@ -0,0 +1 @@
USE="systemd"

View File

@ -0,0 +1,9 @@
sys-apps/systemd ~amd64 ~x86
sys-apps/systemd-ui ~amd64 ~x86
sys-apps/systemd-sysv-utils ~amd64 ~x86
sys-apps/efunctions ~amd64 ~x86
# Various dependencies that also need to be up-to-date
sys-apps/hwids ~amd64 ~x86
sys-apps/kmod ~amd64 ~x86
virtual/udev ~amd64 ~x86

View File

@ -0,0 +1,4 @@
# Mask sysvinit+openrc and runit+openrc in favor of systemd
sys-apps/sysvinit
sys-apps/openrc
sys-process/runit

View File

@ -0,0 +1,3 @@
sys-apps/systemd
sys-apps/systemd-ui
sys-apps/systemd-sysv-utils

View File

@ -0,0 +1,2 @@
# Add systemd to the 'system' set
*sys-apps/systemd

View File

@ -0,0 +1,2 @@
sys-apps/dbus
sys-apps/efunctions

View File

@ -0,0 +1,2 @@
openrc
-systemd

View File

@ -2,6 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-2.2.ebuild,v 1.14 2013/05/20 17:56:20 ago Exp $
EAPI=1
inherit eutils multilib
DESCRIPTION="Filesystem baselayout and init scripts"
@ -12,9 +13,10 @@ SRC_URI="mirror://gentoo/${P}.tar.bz2
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
IUSE="build kernel_linux"
IUSE="build kernel_linux +openrc"
PDEPEND="sys-apps/openrc"
PDEPEND="openrc? ( sys-apps/openrc )
!openrc? ( sys-apps/efunctions )"
pkg_setup() {
multilib_layout

View File

@ -0,0 +1,20 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/virtual/init/init-0.ebuild,v 1.16 2012/05/16 07:40:58 heroxbd Exp $
DESCRIPTION="Virtual for various init implementations"
HOMEPAGE=""
SRC_URI=""
LICENSE=""
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
IUSE=""
RDEPEND="!prefix? (
kernel_linux? ( || ( >=sys-apps/sysvinit-2.86-r6
sys-apps/systemd-sysv-utils
sys-process/runit ) )
kernel_FreeBSD? ( sys-freebsd/freebsd-sbin )
)"
DEPEND=""