mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 05:51:18 +02:00
systemd: sync with upstream, adds sysv-utils use flag
This commit is contained in:
parent
985324b486
commit
73f8d84c9a
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v 1.149 2014/12/14 15:58:27 floppym Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v 1.153 2014/12/26 19:58:55 floppym Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
@ -36,7 +36,10 @@ SLOT="0/2"
|
||||
KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="acl apparmor audit cryptsetup curl doc elfutils gcrypt gudev http
|
||||
idn introspection kdbus +kmod lz4 lzma pam policykit python qrcode +seccomp
|
||||
selinux ssl terminal nls test vanilla xkb"
|
||||
selinux ssl sysv-utils terminal test vanilla xkb"
|
||||
|
||||
# Gentoo removed this use flag, we'll keep it for now
|
||||
IUSE+=" nls"
|
||||
|
||||
MINKV="3.8"
|
||||
|
||||
@ -64,6 +67,9 @@ COMMON_DEPEND=">=sys-apps/util-linux-2.25:0=
|
||||
qrcode? ( media-gfx/qrencode:0= )
|
||||
seccomp? ( sys-libs/libseccomp:0= )
|
||||
selinux? ( sys-libs/libselinux:0= )
|
||||
sysv-utils? (
|
||||
!sys-apps/systemd-sysv-utils
|
||||
!sys-apps/sysvinit )
|
||||
terminal? ( >=dev-libs/libevdev-1.2:0=
|
||||
>=x11-libs/libxkbcommon-0.5:0=
|
||||
>=x11-libs/libdrm-2.4:0= )
|
||||
@ -291,6 +297,8 @@ multilib_src_configure() {
|
||||
|
||||
if ! multilib_is_native_abi; then
|
||||
myeconfargs+=(
|
||||
MOUNT_{CFLAGS,LIBS}=' '
|
||||
|
||||
ac_cv_search_cap_init=
|
||||
ac_cv_header_sys_capability_h=yes
|
||||
)
|
||||
@ -363,10 +371,17 @@ multilib_src_install_all() {
|
||||
prune_libtool_files --modules
|
||||
einstalldocs
|
||||
|
||||
# we just keep sysvinit tools, so no need for the mans
|
||||
rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
|
||||
|| die
|
||||
rm "${D}"/usr/share/man/man1/init.1 || die
|
||||
if use sysv-utils; then
|
||||
for app in halt poweroff reboot runlevel shutdown telinit; do
|
||||
dosym "..${ROOTPREFIX-/usr}/bin/systemctl" /sbin/${app}
|
||||
done
|
||||
dosym "..${ROOTPREFIX-/usr}/lib/systemd/systemd" /sbin/init
|
||||
else
|
||||
# we just keep sysvinit tools, so no need for the mans
|
||||
rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
|
||||
|| die
|
||||
rm "${D}"/usr/share/man/man1/init.1 || die
|
||||
fi
|
||||
|
||||
systemd_dotmpfilesd "${FILESDIR}"/systemd-coreos.conf
|
||||
systemd_dotmpfilesd "${FILESDIR}"/systemd-resolv.conf
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v 1.149 2014/12/14 15:58:27 floppym Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v 1.153 2014/12/26 19:58:55 floppym Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
@ -36,7 +36,10 @@ SLOT="0/2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="acl apparmor audit cryptsetup curl doc elfutils gcrypt gudev http
|
||||
idn introspection kdbus +kmod lz4 lzma pam policykit python qrcode +seccomp
|
||||
selinux ssl terminal nls test vanilla xkb"
|
||||
selinux ssl sysv-utils terminal test vanilla xkb"
|
||||
|
||||
# Gentoo removed this use flag, we'll keep it for now
|
||||
IUSE+=" nls"
|
||||
|
||||
MINKV="3.8"
|
||||
|
||||
@ -64,6 +67,9 @@ COMMON_DEPEND=">=sys-apps/util-linux-2.25:0=
|
||||
qrcode? ( media-gfx/qrencode:0= )
|
||||
seccomp? ( sys-libs/libseccomp:0= )
|
||||
selinux? ( sys-libs/libselinux:0= )
|
||||
sysv-utils? (
|
||||
!sys-apps/systemd-sysv-utils
|
||||
!sys-apps/sysvinit )
|
||||
terminal? ( >=dev-libs/libevdev-1.2:0=
|
||||
>=x11-libs/libxkbcommon-0.5:0=
|
||||
>=x11-libs/libdrm-2.4:0= )
|
||||
@ -287,6 +293,8 @@ multilib_src_configure() {
|
||||
|
||||
if ! multilib_is_native_abi; then
|
||||
myeconfargs+=(
|
||||
MOUNT_{CFLAGS,LIBS}=' '
|
||||
|
||||
ac_cv_search_cap_init=
|
||||
ac_cv_header_sys_capability_h=yes
|
||||
)
|
||||
@ -359,10 +367,17 @@ multilib_src_install_all() {
|
||||
prune_libtool_files --modules
|
||||
einstalldocs
|
||||
|
||||
# we just keep sysvinit tools, so no need for the mans
|
||||
rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
|
||||
|| die
|
||||
rm "${D}"/usr/share/man/man1/init.1 || die
|
||||
if use sysv-utils; then
|
||||
for app in halt poweroff reboot runlevel shutdown telinit; do
|
||||
dosym "..${ROOTPREFIX-/usr}/bin/systemctl" /sbin/${app}
|
||||
done
|
||||
dosym "..${ROOTPREFIX-/usr}/lib/systemd/systemd" /sbin/init
|
||||
else
|
||||
# we just keep sysvinit tools, so no need for the mans
|
||||
rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
|
||||
|| die
|
||||
rm "${D}"/usr/share/man/man1/init.1 || die
|
||||
fi
|
||||
|
||||
systemd_dotmpfilesd "${FILESDIR}"/systemd-coreos.conf
|
||||
systemd_dotmpfilesd "${FILESDIR}"/systemd-resolv.conf
|
||||
|
Loading…
x
Reference in New Issue
Block a user