mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-16 06:41:38 +01:00
chore(sys-apps/systemd): sync/cleanup systemd ebuilds.
Pull in some updates from upstream Gentoo. As a follow up to the gentoo-systemd-integration removal prune the now unused vanilla use flag and our custom openrc use flag along with it.
This commit is contained in:
parent
c6e7ff3d55
commit
09f3152319
@ -1,6 +1,6 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v 1.108 2014/05/03 17:35:41 mgorny Exp $
|
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v 1.114 2014/06/11 15:13:06 floppym Exp $
|
||||||
|
|
||||||
EAPI=5
|
EAPI=5
|
||||||
|
|
||||||
@ -35,9 +35,9 @@ SLOT="0/2"
|
|||||||
KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||||
IUSE="acl audit cryptsetup doc +firmware-loader gcrypt gudev http introspection
|
IUSE="acl audit cryptsetup doc +firmware-loader gcrypt gudev http introspection
|
||||||
kdbus +kmod lzma pam policykit python qrcode +seccomp selinux ssl
|
kdbus +kmod lzma pam policykit python qrcode +seccomp selinux ssl
|
||||||
test vanilla xattr openrc"
|
test xattr"
|
||||||
|
|
||||||
MINKV="3.0"
|
MINKV="3.10"
|
||||||
|
|
||||||
COMMON_DEPEND=">=sys-apps/util-linux-2.20:0=
|
COMMON_DEPEND=">=sys-apps/util-linux-2.20:0=
|
||||||
sys-libs/libcap:0=
|
sys-libs/libcap:0=
|
||||||
@ -76,7 +76,6 @@ RDEPEND="${COMMON_DEPEND}
|
|||||||
# sys-apps/daemon: the daemon only (+ build-time lib dep for tests)
|
# sys-apps/daemon: the daemon only (+ build-time lib dep for tests)
|
||||||
PDEPEND=">=sys-apps/dbus-1.6.8-r1:0
|
PDEPEND=">=sys-apps/dbus-1.6.8-r1:0
|
||||||
>=sys-apps/hwids-20130717-r1[udev]
|
>=sys-apps/hwids-20130717-r1[udev]
|
||||||
openrc? ( >=sys-fs/udev-init-scripts-25 )
|
|
||||||
policykit? ( sys-auth/polkit )"
|
policykit? ( sys-auth/polkit )"
|
||||||
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
DEPEND="${COMMON_DEPEND}
|
||||||
@ -85,7 +84,7 @@ DEPEND="${COMMON_DEPEND}
|
|||||||
>=dev-util/intltool-0.50
|
>=dev-util/intltool-0.50
|
||||||
>=sys-devel/binutils-2.23.1
|
>=sys-devel/binutils-2.23.1
|
||||||
>=sys-devel/gcc-4.6
|
>=sys-devel/gcc-4.6
|
||||||
>=sys-kernel/linux-headers-3.13
|
>=sys-kernel/linux-headers-${MINKV}
|
||||||
virtual/pkgconfig
|
virtual/pkgconfig
|
||||||
doc? ( >=dev-util/gtk-doc-1.18 )
|
doc? ( >=dev-util/gtk-doc-1.18 )
|
||||||
python? ( dev-python/lxml[${PYTHON_USEDEP}] )
|
python? ( dev-python/lxml[${PYTHON_USEDEP}] )
|
||||||
@ -132,7 +131,6 @@ pkg_pretend() {
|
|||||||
~!GRKERNSEC_PROC"
|
~!GRKERNSEC_PROC"
|
||||||
|
|
||||||
use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL"
|
use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL"
|
||||||
use pam && CONFIG_CHECK+=" ~AUDITSYSCALL"
|
|
||||||
use xattr && CONFIG_CHECK+=" ~TMPFS_XATTR"
|
use xattr && CONFIG_CHECK+=" ~TMPFS_XATTR"
|
||||||
kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG"
|
kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG"
|
||||||
use firmware-loader || CONFIG_CHECK+=" ~!FW_LOADER_USER_HELPER"
|
use firmware-loader || CONFIG_CHECK+=" ~!FW_LOADER_USER_HELPER"
|
||||||
@ -238,6 +236,8 @@ multilib_src_configure() {
|
|||||||
--with-dbussessionservicedir="${EPREFIX}/usr/share/dbus-1/services"
|
--with-dbussessionservicedir="${EPREFIX}/usr/share/dbus-1/services"
|
||||||
--with-dbussystemservicedir="${EPREFIX}/usr/share/dbus-1/system-services"
|
--with-dbussystemservicedir="${EPREFIX}/usr/share/dbus-1/system-services"
|
||||||
--with-dbusinterfacedir="${EPREFIX}/usr/share/dbus-1/interfaces"
|
--with-dbusinterfacedir="${EPREFIX}/usr/share/dbus-1/interfaces"
|
||||||
|
|
||||||
|
--with-ntp-servers="0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org"
|
||||||
)
|
)
|
||||||
|
|
||||||
if use firmware-loader; then
|
if use firmware-loader; then
|
||||||
@ -276,6 +276,7 @@ multilib_src_configure() {
|
|||||||
--disable-qrencode
|
--disable-qrencode
|
||||||
--disable-seccomp
|
--disable-seccomp
|
||||||
--disable-selinux
|
--disable-selinux
|
||||||
|
--disable-timesyncd
|
||||||
--disable-tests
|
--disable-tests
|
||||||
--disable-xattr
|
--disable-xattr
|
||||||
--disable-xz
|
--disable-xz
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v 1.108 2014/05/03 17:35:41 mgorny Exp $
|
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v 1.114 2014/06/11 15:13:06 floppym Exp $
|
||||||
|
|
||||||
EAPI=5
|
EAPI=5
|
||||||
|
|
||||||
@ -35,9 +35,9 @@ SLOT="0/2"
|
|||||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||||
IUSE="acl audit cryptsetup doc +firmware-loader gcrypt gudev http introspection
|
IUSE="acl audit cryptsetup doc +firmware-loader gcrypt gudev http introspection
|
||||||
kdbus +kmod lzma pam policykit python qrcode +seccomp selinux ssl
|
kdbus +kmod lzma pam policykit python qrcode +seccomp selinux ssl
|
||||||
test vanilla xattr openrc"
|
test xattr"
|
||||||
|
|
||||||
MINKV="3.0"
|
MINKV="3.10"
|
||||||
|
|
||||||
COMMON_DEPEND=">=sys-apps/util-linux-2.20:0=
|
COMMON_DEPEND=">=sys-apps/util-linux-2.20:0=
|
||||||
sys-libs/libcap:0=
|
sys-libs/libcap:0=
|
||||||
@ -76,7 +76,6 @@ RDEPEND="${COMMON_DEPEND}
|
|||||||
# sys-apps/daemon: the daemon only (+ build-time lib dep for tests)
|
# sys-apps/daemon: the daemon only (+ build-time lib dep for tests)
|
||||||
PDEPEND=">=sys-apps/dbus-1.6.8-r1:0
|
PDEPEND=">=sys-apps/dbus-1.6.8-r1:0
|
||||||
>=sys-apps/hwids-20130717-r1[udev]
|
>=sys-apps/hwids-20130717-r1[udev]
|
||||||
openrc? ( >=sys-fs/udev-init-scripts-25 )
|
|
||||||
policykit? ( sys-auth/polkit )"
|
policykit? ( sys-auth/polkit )"
|
||||||
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
DEPEND="${COMMON_DEPEND}
|
||||||
@ -85,7 +84,7 @@ DEPEND="${COMMON_DEPEND}
|
|||||||
>=dev-util/intltool-0.50
|
>=dev-util/intltool-0.50
|
||||||
>=sys-devel/binutils-2.23.1
|
>=sys-devel/binutils-2.23.1
|
||||||
>=sys-devel/gcc-4.6
|
>=sys-devel/gcc-4.6
|
||||||
>=sys-kernel/linux-headers-3.13
|
>=sys-kernel/linux-headers-${MINKV}
|
||||||
virtual/pkgconfig
|
virtual/pkgconfig
|
||||||
doc? ( >=dev-util/gtk-doc-1.18 )
|
doc? ( >=dev-util/gtk-doc-1.18 )
|
||||||
python? ( dev-python/lxml[${PYTHON_USEDEP}] )
|
python? ( dev-python/lxml[${PYTHON_USEDEP}] )
|
||||||
@ -127,7 +126,6 @@ pkg_pretend() {
|
|||||||
~!GRKERNSEC_PROC"
|
~!GRKERNSEC_PROC"
|
||||||
|
|
||||||
use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL"
|
use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL"
|
||||||
use pam && CONFIG_CHECK+=" ~AUDITSYSCALL"
|
|
||||||
use xattr && CONFIG_CHECK+=" ~TMPFS_XATTR"
|
use xattr && CONFIG_CHECK+=" ~TMPFS_XATTR"
|
||||||
kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG"
|
kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG"
|
||||||
use firmware-loader || CONFIG_CHECK+=" ~!FW_LOADER_USER_HELPER"
|
use firmware-loader || CONFIG_CHECK+=" ~!FW_LOADER_USER_HELPER"
|
||||||
@ -233,6 +231,8 @@ multilib_src_configure() {
|
|||||||
--with-dbussessionservicedir="${EPREFIX}/usr/share/dbus-1/services"
|
--with-dbussessionservicedir="${EPREFIX}/usr/share/dbus-1/services"
|
||||||
--with-dbussystemservicedir="${EPREFIX}/usr/share/dbus-1/system-services"
|
--with-dbussystemservicedir="${EPREFIX}/usr/share/dbus-1/system-services"
|
||||||
--with-dbusinterfacedir="${EPREFIX}/usr/share/dbus-1/interfaces"
|
--with-dbusinterfacedir="${EPREFIX}/usr/share/dbus-1/interfaces"
|
||||||
|
|
||||||
|
--with-ntp-servers="0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org"
|
||||||
)
|
)
|
||||||
|
|
||||||
if use firmware-loader; then
|
if use firmware-loader; then
|
||||||
@ -271,6 +271,7 @@ multilib_src_configure() {
|
|||||||
--disable-qrencode
|
--disable-qrencode
|
||||||
--disable-seccomp
|
--disable-seccomp
|
||||||
--disable-selinux
|
--disable-selinux
|
||||||
|
--disable-timesyncd
|
||||||
--disable-tests
|
--disable-tests
|
||||||
--disable-xattr
|
--disable-xattr
|
||||||
--disable-xz
|
--disable-xz
|
||||||
@ -451,6 +452,10 @@ migrate_net_name_slot() {
|
|||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
enewgroup systemd-journal
|
enewgroup systemd-journal
|
||||||
|
enewgroup systemd-network
|
||||||
|
enewuser systemd-network -1 -1 -1 systemd-network
|
||||||
|
enewgroup systemd-timesync
|
||||||
|
enewuser systemd-timesync -1 -1 -1 systemd-timesync
|
||||||
if use http; then
|
if use http; then
|
||||||
enewgroup systemd-journal-gateway
|
enewgroup systemd-journal-gateway
|
||||||
enewuser systemd-journal-gateway -1 -1 -1 systemd-journal-gateway
|
enewuser systemd-journal-gateway -1 -1 -1 systemd-journal-gateway
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user