From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 84D7615808B for ; Sat, 16 Apr 2022 23:13:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 54860E0948; Sat, 16 Apr 2022 23:13:54 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 83062E0948 for ; Sat, 16 Apr 2022 23:13:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 819BF341441 for ; Sat, 16 Apr 2022 23:13:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BFF78303 for ; Sat, 16 Apr 2022 23:13:49 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1650150608.c640ffc50506ebdc83e654169ba0ef0a512e31b3.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/systemd-utils/files/, sys-apps/systemd-utils/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/systemd-utils/Manifest sys-apps/systemd-utils/files/40-gentoo.rules sys-apps/systemd-utils/files/systemd-tmpfiles-setup sys-apps/systemd-utils/files/systemd-tmpfiles-setup-dev sys-apps/systemd-utils/metadata.xml sys-apps/systemd-utils/systemd-utils-250.4.ebuild X-VCS-Directories: sys-apps/systemd-utils/ sys-apps/systemd-utils/files/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: c640ffc50506ebdc83e654169ba0ef0a512e31b3 X-VCS-Branch: master Date: Sat, 16 Apr 2022 23:13:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9931cdfd-96fd-49d4-8c77-0daf4513b0a3 X-Archives-Hash: ccde0ef9dfa916f55578a17f1ddf51f0 commit: c640ffc50506ebdc83e654169ba0ef0a512e31b3 Author: Mike Gilbert gentoo org> AuthorDate: Tue Apr 12 15:13:46 2022 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Sat Apr 16 23:10:08 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c640ffc5 sys-apps/systemd-utils: new package Signed-off-by: Mike Gilbert gentoo.org> sys-apps/systemd-utils/Manifest | 2 + sys-apps/systemd-utils/files/40-gentoo.rules | 3 + .../systemd-utils/files/systemd-tmpfiles-setup | 18 + .../systemd-utils/files/systemd-tmpfiles-setup-dev | 20 + sys-apps/systemd-utils/metadata.xml | 13 + sys-apps/systemd-utils/systemd-utils-250.4.ebuild | 460 +++++++++++++++++++++ 6 files changed, 516 insertions(+) diff --git a/sys-apps/systemd-utils/Manifest b/sys-apps/systemd-utils/Manifest new file mode 100644 index 000000000000..36c4e1be52e1 --- /dev/null +++ b/sys-apps/systemd-utils/Manifest @@ -0,0 +1,2 @@ +DIST systemd-musl-patches-250.4.tar.gz 28065 BLAKE2B b8366c4bb29705e3f41f07d0105c4d252d543aaac178e968663660eeb573da034813aa50a96c74ac78ae5efeea379e00df33c5a039ec828cf93450ed23786252 SHA512 66e41fab1873021913c32e3f43300ea7babd18a36e6543838ab7fab4c44f5590c6a7414dd50c7ee81e5513b0e5aa01cb6df4231e8e06c609d63011a32b524213 +DIST systemd-stable-250.4.tar.gz 11132786 BLAKE2B 8fdfe1bad76e572dc1be0955f3d1c4080f2beb81a2f9670f80827899f5406ab8ed8675400c2f5e8ccef44cf1bceff42ceae12a42e1b67d46c0deb523e6495f25 SHA512 307ed0920da660b6c45d909fea66864fb98db8b2f6905d629fb2012fc4bf64dd25fd61168c22bf4098200be541be9b0e815fbde98806a99c85cb33d49d8b63d0 diff --git a/sys-apps/systemd-utils/files/40-gentoo.rules b/sys-apps/systemd-utils/files/40-gentoo.rules new file mode 100644 index 000000000000..6b96bd07051e --- /dev/null +++ b/sys-apps/systemd-utils/files/40-gentoo.rules @@ -0,0 +1,3 @@ +# Gentoo specific groups +ACTION=="add", SUBSYSTEM=="block", KERNEL=="fd[0-9]", GROUP="floppy" +ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usb" diff --git a/sys-apps/systemd-utils/files/systemd-tmpfiles-setup b/sys-apps/systemd-utils/files/systemd-tmpfiles-setup new file mode 100644 index 000000000000..a36c1020e0db --- /dev/null +++ b/sys-apps/systemd-utils/files/systemd-tmpfiles-setup @@ -0,0 +1,18 @@ +#!/sbin/openrc-run +# Copyright 2022 Gentoo Authors +# Released under the 2-clause BSD license. + +description="Create Volatile Files and Directories" + +depend() +{ + provide tmpfiles-setup tmpfiles.setup + need localmount +} + +start() +{ + ebegin "${description}" + systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev + eend $? +} diff --git a/sys-apps/systemd-utils/files/systemd-tmpfiles-setup-dev b/sys-apps/systemd-utils/files/systemd-tmpfiles-setup-dev new file mode 100644 index 000000000000..496de522d08d --- /dev/null +++ b/sys-apps/systemd-utils/files/systemd-tmpfiles-setup-dev @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 2022 Gentoo Authors +# Released under the 2-clause BSD license. + +description="Create Static Devices Nodes in /dev" + +depend() +{ + provide tmpfiles-dev tmpfiles.dev + use dev-mount + before dev + keyword -prefix -vserver +} + +start() +{ + ebegin "${description}" + systemd-tmpfiles --prefix=/dev --create --boot + eend $? +} diff --git a/sys-apps/systemd-utils/metadata.xml b/sys-apps/systemd-utils/metadata.xml new file mode 100644 index 000000000000..efdb151f4069 --- /dev/null +++ b/sys-apps/systemd-utils/metadata.xml @@ -0,0 +1,13 @@ + + + + + systemd@gentoo.org + + + Enable systemd-boot (UEFI boot manager) + Enable systemd-sysusers + Enable systemd-tmpfiles + Enable systemd-udev (userspace device manager) + + diff --git a/sys-apps/systemd-utils/systemd-utils-250.4.ebuild b/sys-apps/systemd-utils/systemd-utils-250.4.ebuild new file mode 100644 index 000000000000..a31cb2e5308a --- /dev/null +++ b/sys-apps/systemd-utils/systemd-utils-250.4.ebuild @@ -0,0 +1,460 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{8..10} ) + +inherit bash-completion-r1 flag-o-matic meson-multilib python-any-r1 toolchain-funcs usr-ldscript + +DESCRIPTION="Utilities taken from systemd" +HOMEPAGE="https://systemd.io/" + +if [[ ${PV} == *.* ]]; then + MY_P="systemd-stable-${PV}" + S="${WORKDIR}/${MY_P}" + SRC_URI="https://github.com/systemd/systemd-stable/archive/refs/tags/v${PV}.tar.gz -> ${MY_P}.tar.gz" +else + MY_P="systemd-${PV}" + S="${WORKDIR}/${MY_P}" + SRC_URI="https://github.com/systemd/systemd/archive/refs/tags/v${PV}.tar.gz -> ${MY_P}.tar.gz" +fi + +MUSL_PATCHSET="systemd-musl-patches-250.4" +SRC_URI+=" elibc_musl? ( https://dev.gentoo.org/~floppym/dist/${MUSL_PATCHSET}.tar.gz )" + +LICENSE="GPL-2 LGPL-2.1 MIT public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="+boot selinux +sysusers +tmpfiles test +udev" +REQUIRED_USE="|| ( boot tmpfiles sysusers udev )" +RESTRICT="!test? ( test )" + +COMMON_DEPEND=" + sys-apps/acl:0= + >=sys-apps/kmod-15:0= + selinux? ( sys-libs/libselinux:0= ) + udev? ( + >=sys-apps/util-linux-2.30:0=[${MULTILIB_USEDEP}] + sys-libs/libcap:0=[${MULTILIB_USEDEP}] + virtual/libcrypt:=[${MULTILIB_USEDEP}] + ) + !udev? ( + >=sys-apps/util-linux-2.30:0= + sys-libs/libcap:0= + virtual/libcrypt:= + ) +" +DEPEND="${COMMON_DEPEND} + boot? ( + >=sys-boot/gnu-efi-3.0.2 + ) + >=sys-kernel/linux-headers-3.11 +" +RDEPEND="${COMMON_DEPEND} + boot? ( !