Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/systemd/
Date: Mon, 29 Jan 2018 00:22:16
Message-Id: 1517185328.74d9b472b71b77df7d96c9effbe4f169451c8627.floppym@gentoo
1 commit: 74d9b472b71b77df7d96c9effbe4f169451c8627
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 29 00:22:08 2018 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 29 00:22:08 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74d9b472
7
8 sys-apps/systemd: remove old
9
10 Package-Manager: Portage-2.3.19_p11, Repoman-2.3.6_p45
11
12 sys-apps/systemd/Manifest | 2 -
13 sys-apps/systemd/systemd-235-r1.ebuild | 448 ---------------------------------
14 sys-apps/systemd/systemd-236-r4.ebuild | 437 --------------------------------
15 3 files changed, 887 deletions(-)
16
17 diff --git a/sys-apps/systemd/Manifest b/sys-apps/systemd/Manifest
18 index ef084cc869a..1c99439b959 100644
19 --- a/sys-apps/systemd/Manifest
20 +++ b/sys-apps/systemd/Manifest
21 @@ -1,7 +1,5 @@
22 DIST systemd-233-man.tar.gz 31386 BLAKE2B e4947e658db3efeec6b5a6adf340d2cc8e8aff2a14db4932720f90c3dc898b1e78595db983948373a2e28191fb3b0aad234f80feb91ee8ae4b607a44038a9cae SHA512 cc5215d3590ffc3c9203a64c14d6adeb0148c421c1396b8c1e43dcb58763b687ce99bdee327dd8a00abab7198171e73b22109a3f2032e4cec6adf2dcc85acf40
23 DIST systemd-233-patches.tar.gz 12553 BLAKE2B 5d19f2dc82cc6cbd9b2e9393f932dfa3c88a981358b282fe56d43cd432d0ee0c0245e9c13d5460b94d83908b84a382dad3348b999f2356ab3ef2ae2c542a867d SHA512 3081f4cf64542ba64a28fe2eff11d8040af42255eb99b5210db9d583fc4b4360a4a4bb8769a1e43d38474d69ead681974cb98d4605968b38f98fd3d9b40bf211
24 DIST systemd-233.tar.gz 4660737 BLAKE2B 38cdd74543447b3c02391b328428fed169fe2cf2df6e9341dcaf2f7d3d977612ec102301e144c1cada90d61e9e9bda3b2faaef708c8ff4bd0b52b143760a83b2 SHA512 5ad5329ea116d973cf67096f7e7ad28e9ea0905696e9451291f1d25e5064f4a9bfcfae87e912996c6a38397e9f4a148d4ccecfa9b70f7ecdf04deadb61784c8e
25 -DIST systemd-235.tar.gz 6586406 BLAKE2B f2e46a6c51fc9445800c4b7eee66f23ae83b42c2fedf2304acf612e6cb99122afe67f1b93cf72ed022b52384975afb92ab38cfb4efc6026384602c973d2eb98e SHA512 243f2eb5340fa37dd1286eaa63e83387bda9e03953af266cd6196a37535a13491482caf14c6ab10608bba4ed23b6c41923608e52017e0c26988ed72ddd2b9993
26 -DIST systemd-236-patches-1.tar.gz 3331 BLAKE2B c4ef8881252e79f920572eb73210b205f36ee2a45aaba4bea5e5e8b2f89b92b79deb8e30a62c9163fd0bb2fbc2215e0dda6ca3388b71e4349a8659591c23064e SHA512 d4c93968d03b5f2f2279b030e65399a7d1971eab4d9be8f2122eab67b1fb7b24eef46993beab8400fc782954dc78f400778c3fff5ba4f6c51a14eeb1931c3862
27 DIST systemd-236-patches-2.tar.gz 54737 BLAKE2B bce5f9e234c975a2b6e474ca2a0c2c82e704f02cf19885134dddc5edbd0b7bfb3773d737f88f78ba2ab81093dfceeb44d76ecda99cf2b916072dcdfa84720c19 SHA512 b74ab6944135c938b2d0d2a1dd40ac4cc4ff26d072603d6bfbe4529d808b2e481eb910155895bce14607842ad6d30751aded51654a53f76278becbb5e317b875
28 DIST systemd-236.tar.gz 6759035 BLAKE2B 0fc26bd67fb6cc3b0565c763fc26e38186c4b05c3d38652b73a2189dfbfb46382dba239f7f6f889eec57ad1d8f69d4098745c8f4ca16a707aa23b7771f2328f3 SHA512 1a9672960e03e05c09e41fb8cfe9b0f25e867fd43f37f8371515ddddfdbd4270afd746a6da733f6d1d3b2cc43db1ecc7a9f2245f2dac2ec233db74e9e70e4f6d
29
30 diff --git a/sys-apps/systemd/systemd-235-r1.ebuild b/sys-apps/systemd/systemd-235-r1.ebuild
31 deleted file mode 100644
32 index 2727ae07b8b..00000000000
33 --- a/sys-apps/systemd/systemd-235-r1.ebuild
34 +++ /dev/null
35 @@ -1,448 +0,0 @@
36 -# Copyright 1999-2018 Gentoo Foundation
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=6
40 -
41 -if [[ ${PV} == 9999 ]]; then
42 - EGIT_REPO_URI="https://github.com/systemd/systemd.git"
43 - inherit git-r3
44 -else
45 - SRC_URI="https://github.com/systemd/systemd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
47 -fi
48 -
49 -PYTHON_COMPAT=( python{3_4,3_5,3_6} )
50 -
51 -inherit bash-completion-r1 linux-info meson multilib-minimal ninja-utils pam python-any-r1 systemd toolchain-funcs udev user
52 -
53 -DESCRIPTION="System and service manager for Linux"
54 -HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd"
55 -
56 -LICENSE="GPL-2 LGPL-2.1 MIT public-domain"
57 -SLOT="0/2"
58 -IUSE="acl apparmor audit build cryptsetup curl elfutils +gcrypt gnuefi http
59 - idn importd +kmod libidn2 +lz4 lzma nat pam policykit
60 - qrcode +seccomp selinux ssl sysv-utils test vanilla xkb"
61 -
62 -REQUIRED_USE="importd? ( curl gcrypt lzma )"
63 -RESTRICT="!test? ( test )"
64 -
65 -MINKV="3.11"
66 -
67 -COMMON_DEPEND=">=sys-apps/util-linux-2.30:0=[${MULTILIB_USEDEP}]
68 - sys-libs/libcap:0=[${MULTILIB_USEDEP}]
69 - !<sys-libs/glibc-2.16
70 - acl? ( sys-apps/acl:0= )
71 - apparmor? ( sys-libs/libapparmor:0= )
72 - audit? ( >=sys-process/audit-2:0= )
73 - cryptsetup? ( >=sys-fs/cryptsetup-1.6:0= )
74 - curl? ( net-misc/curl:0= )
75 - elfutils? ( >=dev-libs/elfutils-0.158:0= )
76 - gcrypt? ( >=dev-libs/libgcrypt-1.4.5:0=[${MULTILIB_USEDEP}] )
77 - http? (
78 - >=net-libs/libmicrohttpd-0.9.33:0=
79 - ssl? ( >=net-libs/gnutls-3.1.4:0= )
80 - )
81 - idn? (
82 - libidn2? ( net-dns/libidn2 )
83 - !libidn2? ( net-dns/libidn )
84 - )
85 - importd? (
86 - app-arch/bzip2:0=
87 - sys-libs/zlib:0=
88 - )
89 - kmod? ( >=sys-apps/kmod-15:0= )
90 - lz4? ( >=app-arch/lz4-0_p131:0=[${MULTILIB_USEDEP}] )
91 - lzma? ( >=app-arch/xz-utils-5.0.5-r1:0=[${MULTILIB_USEDEP}] )
92 - nat? ( net-firewall/iptables:0= )
93 - pam? ( virtual/pam:=[${MULTILIB_USEDEP}] )
94 - qrcode? ( media-gfx/qrencode:0= )
95 - seccomp? ( >=sys-libs/libseccomp-2.3.1:0= )
96 - selinux? ( sys-libs/libselinux:0= )
97 - sysv-utils? ( !sys-apps/sysvinit )
98 - !sysv-utils? ( sys-apps/sysvinit )
99 - xkb? ( >=x11-libs/libxkbcommon-0.4.1:0= )
100 - abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r9
101 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
102 -
103 -# baselayout-2.2 has /run
104 -RDEPEND="${COMMON_DEPEND}
105 - >=sys-apps/baselayout-2.2
106 - selinux? ( sec-policy/selinux-base-policy[systemd] )
107 - !build? ( || (
108 - sys-apps/util-linux[kill(-)]
109 - sys-process/procps[kill(+)]
110 - sys-apps/coreutils[kill(-)]
111 - ) )
112 - !sys-auth/nss-myhostname
113 - !<sys-kernel/dracut-044
114 - !sys-fs/eudev
115 - !sys-fs/udev"
116 -
117 -# sys-apps/dbus: the daemon only (+ build-time lib dep for tests)
118 -PDEPEND=">=sys-apps/dbus-1.9.8[systemd]
119 - >=sys-apps/hwids-20150417[udev]
120 - >=sys-fs/udev-init-scripts-25
121 - policykit? ( sys-auth/polkit )
122 - !vanilla? ( sys-apps/gentoo-systemd-integration )"
123 -
124 -# Newer linux-headers needed by ia64, bug #480218
125 -DEPEND="${COMMON_DEPEND}
126 - app-arch/xz-utils:0
127 - dev-util/gperf
128 - >=dev-util/intltool-0.50
129 - >=sys-apps/coreutils-8.16
130 - >=sys-kernel/linux-headers-${MINKV}
131 - virtual/pkgconfig
132 - gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
133 - test? ( sys-apps/dbus )
134 - app-text/docbook-xml-dtd:4.2
135 - app-text/docbook-xml-dtd:4.5
136 - app-text/docbook-xsl-stylesheets
137 - dev-libs/libxslt:0
138 - $(python_gen_any_dep 'dev-python/lxml[${PYTHON_USEDEP}]')
139 -"
140 -
141 -pkg_pretend() {
142 - if [[ ${MERGE_TYPE} != buildonly ]]; then
143 - local CONFIG_CHECK="~AUTOFS4_FS ~BLK_DEV_BSG ~CGROUPS
144 - ~CHECKPOINT_RESTORE ~DEVTMPFS ~EPOLL ~FANOTIFY ~FHANDLE
145 - ~INOTIFY_USER ~IPV6 ~NET ~NET_NS ~PROC_FS ~SIGNALFD ~SYSFS
146 - ~TIMERFD ~TMPFS_XATTR ~UNIX
147 - ~CRYPTO_HMAC ~CRYPTO_SHA256 ~CRYPTO_USER_API_HASH
148 - ~!FW_LOADER_USER_HELPER_FALLBACK ~!GRKERNSEC_PROC ~!IDE ~!SYSFS_DEPRECATED
149 - ~!SYSFS_DEPRECATED_V2"
150 -
151 - use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL"
152 - use seccomp && CONFIG_CHECK+=" ~SECCOMP ~SECCOMP_FILTER"
153 - kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG"
154 - kernel_is -lt 4 7 && CONFIG_CHECK+=" ~DEVPTS_MULTIPLE_INSTANCES"
155 - kernel_is -ge 4 10 && CONFIG_CHECK+=" ~CGROUP_BPF"
156 -
157 - if linux_config_exists; then
158 - local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH)
159 - if [[ -n ${uevent_helper_path} ]] && [[ ${uevent_helper_path} != '""' ]]; then
160 - ewarn "It's recommended to set an empty value to the following kernel config option:"
161 - ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}"
162 - fi
163 - if linux_chkconfig_present X86; then
164 - CONFIG_CHECK+=" ~DMIID"
165 - fi
166 - fi
167 -
168 - if kernel_is -lt ${MINKV//./ }; then
169 - ewarn "Kernel version at least ${MINKV} required"
170 - fi
171 -
172 - check_extra_config
173 - fi
174 -}
175 -
176 -pkg_setup() {
177 - :
178 -}
179 -
180 -src_unpack() {
181 - default
182 - [[ ${PV} != 9999 ]] || git-r3_src_unpack
183 -}
184 -
185 -src_prepare() {
186 - local PATCHES=(
187 - "${FILESDIR}"/235-0001-test-skip-hwdb-and-sysv-generator-if-the-features-ar.patch
188 - "${FILESDIR}"/235-0002-networkd-Don-t-stop-networkd-if-CONFIG_FIB_RULES-n-i.patch
189 - "${FILESDIR}/CVE-2017-15908.patch"
190 - )
191 -
192 - if ! use vanilla; then
193 - PATCHES+=(
194 - "${FILESDIR}/gentoo-Dont-enable-audit-by-default.patch"
195 - "${FILESDIR}/gentoo-noclean-tmp.patch"
196 - "${FILESDIR}/gentoo-systemd-user-pam.patch"
197 - "${FILESDIR}/gentoo-uucp-group-r0.patch"
198 - "${FILESDIR}/gentoo-generator-path.patch"
199 - )
200 - fi
201 -
202 - [[ -d "${WORKDIR}"/patches ]] && PATCHES+=( "${WORKDIR}"/patches )
203 -
204 - default
205 -}
206 -
207 -src_configure() {
208 - # Prevent conflicts with i686 cross toolchain, bug 559726
209 - tc-export AR CC NM OBJCOPY RANLIB
210 -
211 - python_setup
212 -
213 - multilib-minimal_src_configure
214 -}
215 -
216 -meson_use() {
217 - usex "$1" true false
218 -}
219 -
220 -meson_multilib() {
221 - if multilib_is_native_abi; then
222 - echo true
223 - else
224 - echo false
225 - fi
226 -}
227 -
228 -meson_multilib_native_use() {
229 - if multilib_is_native_abi && use "$1"; then
230 - echo true
231 - else
232 - echo false
233 - fi
234 -}
235 -
236 -multilib_src_configure() {
237 - local myconf=(
238 - --localstatedir="${EPREFIX}/var"
239 - -Dpamlibdir="$(getpam_mod_dir)"
240 - # avoid bash-completion dep
241 - -Dbashcompletiondir="$(get_bashcompdir)"
242 - # make sure we get /bin:/sbin in $PATH
243 - -Dsplit-usr=true
244 - -Drootprefix="${EPREFIX}${ROOTPREFIX}"
245 - -Dsysvinit-path=
246 - -Dsysvrcnd-path=
247 - # no deps
248 - -Defi=$(meson_multilib)
249 - -Dima=true
250 - # Optional components/dependencies
251 - -Dacl=$(meson_multilib_native_use acl)
252 - -Dapparmor=$(meson_multilib_native_use apparmor)
253 - -Daudit=$(meson_multilib_native_use audit)
254 - -Dlibcryptsetup=$(meson_multilib_native_use cryptsetup)
255 - -Dlibcurl=$(meson_multilib_native_use curl)
256 - -Delfutils=$(meson_multilib_native_use elfutils)
257 - -Dgcrypt=$(meson_use gcrypt)
258 - -Dgnu-efi=$(meson_multilib_native_use gnuefi)
259 - -Defi-libdir="/usr/$(get_libdir)"
260 - -Dmicrohttpd=$(meson_multilib_native_use http)
261 - $(usex http -Dgnutls=$(meson_multilib_native_use ssl) -Dgnutls=false)
262 - -Dimportd=$(meson_multilib_native_use importd)
263 - -Dbzip2=$(meson_multilib_native_use importd)
264 - -Dzlib=$(meson_multilib_native_use importd)
265 - -Dkmod=$(meson_multilib_native_use kmod)
266 - -Dlz4=$(meson_use lz4)
267 - -Dxz=$(meson_use lzma)
268 - -Dlibiptc=$(meson_multilib_native_use nat)
269 - -Dpam=$(meson_use pam)
270 - -Dpolkit=$(meson_multilib_native_use policykit)
271 - -Dqrencode=$(meson_multilib_native_use qrcode)
272 - -Dseccomp=$(meson_multilib_native_use seccomp)
273 - -Dselinux=$(meson_multilib_native_use selinux)
274 - #-Dtests=$(meson_multilib_native_use test)
275 - -Ddbus=$(meson_multilib_native_use test)
276 - -Dxkbcommon=$(meson_multilib_native_use xkb)
277 - # hardcode a few paths to spare some deps
278 - -Dpath-kill=/bin/kill
279 - -Dntp-servers="0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"
280 - # Breaks screen, tmux, etc.
281 - -Ddefault-kill-user-processes=false
282 -
283 - # multilib options
284 - -Dbacklight=$(meson_multilib)
285 - -Dbinfmt=$(meson_multilib)
286 - -Dcoredump=$(meson_multilib)
287 - -Denvironment-d=$(meson_multilib)
288 - -Dfirstboot=$(meson_multilib)
289 - -Dhibernate=$(meson_multilib)
290 - -Dhostnamed=$(meson_multilib)
291 - -Dhwdb=$(meson_multilib)
292 - -Dldconfig=$(meson_multilib)
293 - -Dlocaled=$(meson_multilib)
294 - -Dman=$(meson_multilib)
295 - -Dnetworkd=$(meson_multilib)
296 - -Dquotacheck=$(meson_multilib)
297 - -Drandomseed=$(meson_multilib)
298 - -Drfkill=$(meson_multilib)
299 - -Dsysusers=$(meson_multilib)
300 - -Dtimedated=$(meson_multilib)
301 - -Dtimesyncd=$(meson_multilib)
302 - -Dtmpfiles=$(meson_multilib)
303 - -Dvconsole=$(meson_multilib)
304 - )
305 -
306 - if multilib_is_native_abi && use idn; then
307 - myconf+=(
308 - -Dlibidn2=$(usex libidn2 true false)
309 - -Dlibidn=$(usex libidn2 false true)
310 - )
311 - else
312 - myconf+=(
313 - -Dlibidn2=false
314 - -Dlibidn=false
315 - )
316 - fi
317 -
318 - meson_src_configure "${myconf[@]}"
319 -}
320 -
321 -multilib_src_compile() {
322 - eninja
323 -}
324 -
325 -multilib_src_test() {
326 - eninja test
327 -}
328 -
329 -multilib_src_install() {
330 - DESTDIR="${D}" eninja install
331 -}
332 -
333 -multilib_src_install_all() {
334 - # meson doesn't know about docdir
335 - mv "${ED%/}"/usr/share/doc/{systemd,${PF}} || die
336 -
337 - einstalldocs
338 - dodoc "${FILESDIR}"/nsswitch.conf
339 -
340 - if use sysv-utils; then
341 - for app in halt poweroff reboot runlevel shutdown telinit; do
342 - dosym "${EPREFIX}${ROOTPREFIX%/}/bin/systemctl" /sbin/${app}
343 - done
344 - dosym "${EPREFIX}${ROOTPREFIX%/}/lib/systemd/systemd" /sbin/init
345 - else
346 - # we just keep sysvinit tools, so no need for the mans
347 - rm "${ED%/}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
348 - || die
349 - rm "${ED%/}"/usr/share/man/man1/init.1 || die
350 - fi
351 -
352 - # Preserve empty dirs in /etc & /var, bug #437008
353 - keepdir /etc/binfmt.d /etc/modules-load.d /etc/tmpfiles.d \
354 - /etc/systemd/ntp-units.d /etc/systemd/user /var/lib/systemd \
355 - /var/log/journal/remote
356 -
357 - # Symlink /etc/sysctl.conf for easy migration.
358 - dosym ../sysctl.conf /etc/sysctl.d/99-sysctl.conf
359 -
360 - # If we install these symlinks, there is no way for the sysadmin to remove them
361 - # permanently.
362 - rm -f "${ED%/}"/etc/systemd/system/multi-user.target.wants/systemd-networkd.service || die
363 - rm -f "${ED%/}"/etc/systemd/system/dbus-org.freedesktop.network1.service || die
364 - rm -f "${ED%/}"/etc/systemd/system/multi-user.target.wants/systemd-resolved.service || die
365 - rm -f "${ED%/}"/etc/systemd/system/dbus-org.freedesktop.resolve1.service || die
366 - rm -fr "${ED%/}"/etc/systemd/system/network-online.target.wants || die
367 - rm -fr "${ED%/}"/etc/systemd/system/sockets.target.wants || die
368 - rm -fr "${ED%/}"/etc/systemd/system/sysinit.target.wants || die
369 -
370 - rm -r "${ED%/}${ROOTPREFIX%/}/lib/udev/hwdb.d" || die
371 -
372 - if [[ ! -e "${ED%/}"/usr/lib/systemd/systemd ]]; then
373 - # Avoid breaking boot/reboot
374 - dosym "../../..${ROOTPREFIX%/}/lib/systemd/systemd" /usr/lib/systemd/systemd
375 - dosym "../../..${ROOTPREFIX%/}/lib/systemd/systemd-shutdown" /usr/lib/systemd/systemd-shutdown
376 - fi
377 -}
378 -
379 -migrate_locale() {
380 - local envd_locale_def="${EROOT%/}/etc/env.d/02locale"
381 - local envd_locale=( "${EROOT%/}"/etc/env.d/??locale )
382 - local locale_conf="${EROOT%/}/etc/locale.conf"
383 -
384 - if [[ ! -L ${locale_conf} && ! -e ${locale_conf} ]]; then
385 - # If locale.conf does not exist...
386 - if [[ -e ${envd_locale} ]]; then
387 - # ...either copy env.d/??locale if there's one
388 - ebegin "Moving ${envd_locale} to ${locale_conf}"
389 - mv "${envd_locale}" "${locale_conf}"
390 - eend ${?} || FAIL=1
391 - else
392 - # ...or create a dummy default
393 - ebegin "Creating ${locale_conf}"
394 - cat > "${locale_conf}" <<-EOF
395 - # This file has been created by the sys-apps/systemd ebuild.
396 - # See locale.conf(5) and localectl(1).
397 -
398 - # LANG=${LANG}
399 - EOF
400 - eend ${?} || FAIL=1
401 - fi
402 - fi
403 -
404 - if [[ ! -L ${envd_locale} ]]; then
405 - # now, if env.d/??locale is not a symlink (to locale.conf)...
406 - if [[ -e ${envd_locale} ]]; then
407 - # ...warn the user that he has duplicate locale settings
408 - ewarn
409 - ewarn "To ensure consistent behavior, you should replace ${envd_locale}"
410 - ewarn "with a symlink to ${locale_conf}. Please migrate your settings"
411 - ewarn "and create the symlink with the following command:"
412 - ewarn "ln -s -n -f ../locale.conf ${envd_locale}"
413 - ewarn
414 - else
415 - # ...or just create the symlink if there's nothing here
416 - ebegin "Creating ${envd_locale_def} -> ../locale.conf symlink"
417 - ln -n -s ../locale.conf "${envd_locale_def}"
418 - eend ${?} || FAIL=1
419 - fi
420 - fi
421 -}
422 -
423 -pkg_preinst() {
424 - # If /lib/systemd and /usr/lib/systemd are the same directory, remove the
425 - # symlinks we created in src_install.
426 - if [[ $(realpath "${EROOT%/}${ROOTPREFIX}/lib/systemd") == $(realpath "${EROOT%/}/usr/lib/systemd") ]]; then
427 - if [[ -L ${ED%/}/usr/lib/systemd/systemd ]]; then
428 - rm "${ED%/}/usr/lib/systemd/systemd" || die
429 - fi
430 - if [[ -L ${ED%/}/usr/lib/systemd/systemd-shutdown ]]; then
431 - rm "${ED%/}/usr/lib/systemd/systemd-shutdown" || die
432 - fi
433 - fi
434 -}
435 -
436 -pkg_postinst() {
437 - newusergroup() {
438 - enewgroup "$1"
439 - enewuser "$1" -1 -1 -1 "$1"
440 - }
441 -
442 - enewgroup input
443 - enewgroup kvm 78
444 - enewgroup systemd-journal
445 - newusergroup systemd-bus-proxy
446 - newusergroup systemd-coredump
447 - newusergroup systemd-journal-gateway
448 - newusergroup systemd-journal-remote
449 - newusergroup systemd-journal-upload
450 - newusergroup systemd-network
451 - newusergroup systemd-resolve
452 - newusergroup systemd-timesync
453 -
454 - systemd_update_catalog
455 -
456 - # Keep this here in case the database format changes so it gets updated
457 - # when required. Despite that this file is owned by sys-apps/hwids.
458 - if has_version "sys-apps/hwids[udev]"; then
459 - udevadm hwdb --update --root="${EROOT%/}"
460 - fi
461 -
462 - udev_reload || FAIL=1
463 -
464 - # Bug 465468, make sure locales are respect, and ensure consistency
465 - # between OpenRC & systemd
466 - migrate_locale
467 -
468 - systemd_reenable systemd-networkd.service systemd-resolved.service
469 -
470 - if [[ ${FAIL} ]]; then
471 - eerror "One of the postinst commands failed. Please check the postinst output"
472 - eerror "for errors. You may need to clean up your system and/or try installing"
473 - eerror "systemd again."
474 - eerror
475 - fi
476 -}
477 -
478 -pkg_prerm() {
479 - # If removing systemd completely, remove the catalog database.
480 - if [[ ! ${REPLACED_BY_VERSION} ]]; then
481 - rm -f -v "${EROOT}"/var/lib/systemd/catalog/database
482 - fi
483 -}
484
485 diff --git a/sys-apps/systemd/systemd-236-r4.ebuild b/sys-apps/systemd/systemd-236-r4.ebuild
486 deleted file mode 100644
487 index be31a53ad51..00000000000
488 --- a/sys-apps/systemd/systemd-236-r4.ebuild
489 +++ /dev/null
490 @@ -1,437 +0,0 @@
491 -# Copyright 1999-2018 Gentoo Foundation
492 -# Distributed under the terms of the GNU General Public License v2
493 -
494 -EAPI=6
495 -
496 -if [[ ${PV} == 9999 ]]; then
497 - EGIT_REPO_URI="https://github.com/systemd/systemd.git"
498 - inherit git-r3
499 -else
500 - SRC_URI="https://github.com/systemd/systemd/archive/v${PV}.tar.gz -> ${P}.tar.gz
501 - https://dev.gentoo.org/~floppym/dist/${P}-patches-1.tar.gz"
502 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
503 -fi
504 -
505 -PYTHON_COMPAT=( python{3_4,3_5,3_6} )
506 -
507 -inherit bash-completion-r1 linux-info meson multilib-minimal ninja-utils pam python-any-r1 systemd toolchain-funcs udev user
508 -
509 -DESCRIPTION="System and service manager for Linux"
510 -HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd"
511 -
512 -LICENSE="GPL-2 LGPL-2.1 MIT public-domain"
513 -SLOT="0/2"
514 -IUSE="acl apparmor audit build cryptsetup curl elfutils +gcrypt gnuefi http idn importd +kmod libidn2 +lz4 lzma nat pam policykit qrcode +seccomp selinux ssl +sysv-utils test usrmerge vanilla xkb"
515 -
516 -REQUIRED_USE="importd? ( curl gcrypt lzma )"
517 -RESTRICT="!test? ( test )"
518 -
519 -MINKV="3.11"
520 -
521 -COMMON_DEPEND=">=sys-apps/util-linux-2.30:0=[${MULTILIB_USEDEP}]
522 - sys-libs/libcap:0=[${MULTILIB_USEDEP}]
523 - !<sys-libs/glibc-2.16
524 - acl? ( sys-apps/acl:0= )
525 - apparmor? ( sys-libs/libapparmor:0= )
526 - audit? ( >=sys-process/audit-2:0= )
527 - cryptsetup? ( >=sys-fs/cryptsetup-1.6:0= )
528 - curl? ( net-misc/curl:0= )
529 - elfutils? ( >=dev-libs/elfutils-0.158:0= )
530 - gcrypt? ( >=dev-libs/libgcrypt-1.4.5:0=[${MULTILIB_USEDEP}] )
531 - http? (
532 - >=net-libs/libmicrohttpd-0.9.33:0=
533 - ssl? ( >=net-libs/gnutls-3.1.4:0= )
534 - )
535 - idn? (
536 - libidn2? ( net-dns/libidn2 )
537 - !libidn2? ( net-dns/libidn )
538 - )
539 - importd? (
540 - app-arch/bzip2:0=
541 - sys-libs/zlib:0=
542 - )
543 - kmod? ( >=sys-apps/kmod-15:0= )
544 - lz4? ( >=app-arch/lz4-0_p131:0=[${MULTILIB_USEDEP}] )
545 - lzma? ( >=app-arch/xz-utils-5.0.5-r1:0=[${MULTILIB_USEDEP}] )
546 - nat? ( net-firewall/iptables:0= )
547 - pam? ( virtual/pam:=[${MULTILIB_USEDEP}] )
548 - qrcode? ( media-gfx/qrencode:0= )
549 - seccomp? ( >=sys-libs/libseccomp-2.3.1:0= )
550 - selinux? ( sys-libs/libselinux:0= )
551 - sysv-utils? ( !sys-apps/sysvinit )
552 - !sysv-utils? ( sys-apps/sysvinit )
553 - xkb? ( >=x11-libs/libxkbcommon-0.4.1:0= )
554 - abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r9
555 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
556 -
557 -# baselayout-2.2 has /run
558 -RDEPEND="${COMMON_DEPEND}
559 - >=sys-apps/baselayout-2.2
560 - selinux? ( sec-policy/selinux-base-policy[systemd] )
561 - !build? ( || (
562 - sys-apps/util-linux[kill(-)]
563 - sys-process/procps[kill(+)]
564 - sys-apps/coreutils[kill(-)]
565 - ) )
566 - !sys-auth/nss-myhostname
567 - !<sys-kernel/dracut-044
568 - !sys-fs/eudev
569 - !sys-fs/udev"
570 -
571 -# sys-apps/dbus: the daemon only (+ build-time lib dep for tests)
572 -PDEPEND=">=sys-apps/dbus-1.9.8[systemd]
573 - >=sys-apps/hwids-20150417[udev]
574 - >=sys-fs/udev-init-scripts-25
575 - policykit? ( sys-auth/polkit )
576 - !vanilla? ( sys-apps/gentoo-systemd-integration )"
577 -
578 -# Newer linux-headers needed by ia64, bug #480218
579 -DEPEND="${COMMON_DEPEND}
580 - app-arch/xz-utils:0
581 - dev-util/gperf
582 - >=dev-util/intltool-0.50
583 - >=sys-apps/coreutils-8.16
584 - >=sys-kernel/linux-headers-${MINKV}
585 - virtual/pkgconfig
586 - gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
587 - test? ( sys-apps/dbus )
588 - app-text/docbook-xml-dtd:4.2
589 - app-text/docbook-xml-dtd:4.5
590 - app-text/docbook-xsl-stylesheets
591 - dev-libs/libxslt:0
592 - $(python_gen_any_dep 'dev-python/lxml[${PYTHON_USEDEP}]')
593 -"
594 -
595 -pkg_pretend() {
596 - if [[ ${MERGE_TYPE} != buildonly ]]; then
597 - local CONFIG_CHECK="~AUTOFS4_FS ~BLK_DEV_BSG ~CGROUPS
598 - ~CHECKPOINT_RESTORE ~DEVTMPFS ~EPOLL ~FANOTIFY ~FHANDLE
599 - ~INOTIFY_USER ~IPV6 ~NET ~NET_NS ~PROC_FS ~SIGNALFD ~SYSFS
600 - ~TIMERFD ~TMPFS_XATTR ~UNIX
601 - ~CRYPTO_HMAC ~CRYPTO_SHA256 ~CRYPTO_USER_API_HASH
602 - ~!FW_LOADER_USER_HELPER_FALLBACK ~!GRKERNSEC_PROC ~!IDE ~!SYSFS_DEPRECATED
603 - ~!SYSFS_DEPRECATED_V2"
604 -
605 - use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL"
606 - use seccomp && CONFIG_CHECK+=" ~SECCOMP ~SECCOMP_FILTER"
607 - kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG"
608 - kernel_is -lt 4 7 && CONFIG_CHECK+=" ~DEVPTS_MULTIPLE_INSTANCES"
609 - kernel_is -ge 4 10 && CONFIG_CHECK+=" ~CGROUP_BPF"
610 -
611 - if linux_config_exists; then
612 - local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH)
613 - if [[ -n ${uevent_helper_path} ]] && [[ ${uevent_helper_path} != '""' ]]; then
614 - ewarn "It's recommended to set an empty value to the following kernel config option:"
615 - ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}"
616 - fi
617 - if linux_chkconfig_present X86; then
618 - CONFIG_CHECK+=" ~DMIID"
619 - fi
620 - fi
621 -
622 - if kernel_is -lt ${MINKV//./ }; then
623 - ewarn "Kernel version at least ${MINKV} required"
624 - fi
625 -
626 - check_extra_config
627 - fi
628 -}
629 -
630 -pkg_setup() {
631 - :
632 -}
633 -
634 -src_unpack() {
635 - default
636 - [[ ${PV} != 9999 ]] || git-r3_src_unpack
637 -}
638 -
639 -src_prepare() {
640 - local PATCHES=(
641 - )
642 -
643 - [[ -d "${WORKDIR}"/patches ]] && PATCHES+=( "${WORKDIR}"/patches )
644 -
645 - if ! use vanilla; then
646 - PATCHES+=(
647 - "${FILESDIR}/gentoo-Dont-enable-audit-by-default.patch"
648 - "${FILESDIR}/gentoo-systemd-user-pam.patch"
649 - "${FILESDIR}/gentoo-uucp-group-r1.patch"
650 - "${FILESDIR}/gentoo-generator-path.patch"
651 - )
652 - fi
653 -
654 - default
655 -}
656 -
657 -src_configure() {
658 - # Prevent conflicts with i686 cross toolchain, bug 559726
659 - tc-export AR CC NM OBJCOPY RANLIB
660 -
661 - python_setup
662 -
663 - multilib-minimal_src_configure
664 -}
665 -
666 -meson_use() {
667 - usex "$1" true false
668 -}
669 -
670 -meson_multilib() {
671 - if multilib_is_native_abi; then
672 - echo true
673 - else
674 - echo false
675 - fi
676 -}
677 -
678 -meson_multilib_native_use() {
679 - if multilib_is_native_abi && use "$1"; then
680 - echo true
681 - else
682 - echo false
683 - fi
684 -}
685 -
686 -multilib_src_configure() {
687 - local myconf=(
688 - --localstatedir="${EPREFIX}/var"
689 - -Dpamlibdir="$(getpam_mod_dir)"
690 - # avoid bash-completion dep
691 - -Dbashcompletiondir="$(get_bashcompdir)"
692 - # make sure we get /bin:/sbin in PATH
693 - -Dsplit-usr=$(usex usrmerge false true)
694 - -Drootprefix="$(usex usrmerge "${EPREFIX}/usr" "${EPREFIX:-/}")"
695 - -Dsysvinit-path=
696 - -Dsysvrcnd-path=
697 - # Avoid infinite exec recursion, bug 642724
698 - -Dtelinit-path="${EPREFIX}/lib/sysvinit/telinit"
699 - # no deps
700 - -Defi=$(meson_multilib)
701 - -Dima=true
702 - # Optional components/dependencies
703 - -Dacl=$(meson_multilib_native_use acl)
704 - -Dapparmor=$(meson_multilib_native_use apparmor)
705 - -Daudit=$(meson_multilib_native_use audit)
706 - -Dlibcryptsetup=$(meson_multilib_native_use cryptsetup)
707 - -Dlibcurl=$(meson_multilib_native_use curl)
708 - -Delfutils=$(meson_multilib_native_use elfutils)
709 - -Dgcrypt=$(meson_use gcrypt)
710 - -Dgnu-efi=$(meson_multilib_native_use gnuefi)
711 - -Defi-libdir="${EPREFIX}/usr/$(get_libdir)"
712 - -Dmicrohttpd=$(meson_multilib_native_use http)
713 - $(usex http -Dgnutls=$(meson_multilib_native_use ssl) -Dgnutls=false)
714 - -Dimportd=$(meson_multilib_native_use importd)
715 - -Dbzip2=$(meson_multilib_native_use importd)
716 - -Dzlib=$(meson_multilib_native_use importd)
717 - -Dkmod=$(meson_multilib_native_use kmod)
718 - -Dlz4=$(meson_use lz4)
719 - -Dxz=$(meson_use lzma)
720 - -Dlibiptc=$(meson_multilib_native_use nat)
721 - -Dpam=$(meson_use pam)
722 - -Dpolkit=$(meson_multilib_native_use policykit)
723 - -Dqrencode=$(meson_multilib_native_use qrcode)
724 - -Dseccomp=$(meson_multilib_native_use seccomp)
725 - -Dselinux=$(meson_multilib_native_use selinux)
726 - #-Dtests=$(meson_multilib_native_use test)
727 - -Ddbus=$(meson_multilib_native_use test)
728 - -Dxkbcommon=$(meson_multilib_native_use xkb)
729 - # hardcode a few paths to spare some deps
730 - -Dpath-kill=/bin/kill
731 - -Dntp-servers="0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"
732 - # Breaks screen, tmux, etc.
733 - -Ddefault-kill-user-processes=false
734 -
735 - # multilib options
736 - -Dbacklight=$(meson_multilib)
737 - -Dbinfmt=$(meson_multilib)
738 - -Dcoredump=$(meson_multilib)
739 - -Denvironment-d=$(meson_multilib)
740 - -Dfirstboot=$(meson_multilib)
741 - -Dhibernate=$(meson_multilib)
742 - -Dhostnamed=$(meson_multilib)
743 - -Dhwdb=$(meson_multilib)
744 - -Dldconfig=$(meson_multilib)
745 - -Dlocaled=$(meson_multilib)
746 - -Dman=$(meson_multilib)
747 - -Dnetworkd=$(meson_multilib)
748 - -Dquotacheck=$(meson_multilib)
749 - -Drandomseed=$(meson_multilib)
750 - -Drfkill=$(meson_multilib)
751 - -Dsysusers=$(meson_multilib)
752 - -Dtimedated=$(meson_multilib)
753 - -Dtimesyncd=$(meson_multilib)
754 - -Dtmpfiles=$(meson_multilib)
755 - -Dvconsole=$(meson_multilib)
756 - )
757 -
758 - if multilib_is_native_abi && use idn; then
759 - myconf+=(
760 - -Dlibidn2=$(usex libidn2 true false)
761 - -Dlibidn=$(usex libidn2 false true)
762 - )
763 - else
764 - myconf+=(
765 - -Dlibidn2=false
766 - -Dlibidn=false
767 - )
768 - fi
769 -
770 - meson_src_configure "${myconf[@]}"
771 -}
772 -
773 -multilib_src_compile() {
774 - eninja
775 -}
776 -
777 -multilib_src_test() {
778 - eninja test
779 -}
780 -
781 -multilib_src_install() {
782 - DESTDIR="${D}" eninja install
783 -}
784 -
785 -multilib_src_install_all() {
786 - # meson doesn't know about docdir
787 - mv "${ED%/}"/usr/share/doc/{systemd,${PF}} || die
788 -
789 - einstalldocs
790 - dodoc "${FILESDIR}"/nsswitch.conf
791 -
792 - if use sysv-utils; then
793 - local app
794 - for app in halt poweroff reboot runlevel shutdown telinit; do
795 - dosym ../bin/systemctl /sbin/${app}
796 - done
797 - dosym ../lib/systemd/systemd /sbin/init
798 - else
799 - # we just keep sysvinit tools, so no need for the mans
800 - rm "${ED%/}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
801 - || die
802 - rm "${ED%/}"/usr/share/man/man1/init.1 || die
803 - fi
804 -
805 - # Preserve empty dirs in /etc & /var, bug #437008
806 - keepdir /etc/binfmt.d /etc/modules-load.d /etc/tmpfiles.d \
807 - /etc/systemd/ntp-units.d /etc/systemd/user /var/lib/systemd \
808 - /var/log/journal/remote
809 -
810 - # Symlink /etc/sysctl.conf for easy migration.
811 - dosym ../sysctl.conf /etc/sysctl.d/99-sysctl.conf
812 -
813 - # If we install these symlinks, there is no way for the sysadmin to remove them
814 - # permanently.
815 - rm -f "${ED%/}"/etc/systemd/system/multi-user.target.wants/systemd-networkd.service || die
816 - rm -f "${ED%/}"/etc/systemd/system/dbus-org.freedesktop.network1.service || die
817 - rm -f "${ED%/}"/etc/systemd/system/multi-user.target.wants/systemd-resolved.service || die
818 - rm -f "${ED%/}"/etc/systemd/system/dbus-org.freedesktop.resolve1.service || die
819 - rm -fr "${ED%/}"/etc/systemd/system/network-online.target.wants || die
820 - rm -fr "${ED%/}"/etc/systemd/system/sockets.target.wants || die
821 - rm -fr "${ED%/}"/etc/systemd/system/sysinit.target.wants || die
822 -
823 - local udevdir=/lib/udev
824 - use usrmerge && udevdir=/usr/lib/udev
825 -
826 - rm -r "${ED%/}${udevdir}/hwdb.d" || die
827 -
828 - if ! use usrmerge; then
829 - # Avoid breaking boot/reboot
830 - dosym ../../../lib/systemd/systemd /usr/lib/systemd/systemd
831 - dosym ../../../lib/systemd/systemd-shutdown /usr/lib/systemd/systemd-shutdown
832 - fi
833 -}
834 -
835 -migrate_locale() {
836 - local envd_locale_def="${EROOT%/}/etc/env.d/02locale"
837 - local envd_locale=( "${EROOT%/}"/etc/env.d/??locale )
838 - local locale_conf="${EROOT%/}/etc/locale.conf"
839 -
840 - if [[ ! -L ${locale_conf} && ! -e ${locale_conf} ]]; then
841 - # If locale.conf does not exist...
842 - if [[ -e ${envd_locale} ]]; then
843 - # ...either copy env.d/??locale if there's one
844 - ebegin "Moving ${envd_locale} to ${locale_conf}"
845 - mv "${envd_locale}" "${locale_conf}"
846 - eend ${?} || FAIL=1
847 - else
848 - # ...or create a dummy default
849 - ebegin "Creating ${locale_conf}"
850 - cat > "${locale_conf}" <<-EOF
851 - # This file has been created by the sys-apps/systemd ebuild.
852 - # See locale.conf(5) and localectl(1).
853 -
854 - # LANG=${LANG}
855 - EOF
856 - eend ${?} || FAIL=1
857 - fi
858 - fi
859 -
860 - if [[ ! -L ${envd_locale} ]]; then
861 - # now, if env.d/??locale is not a symlink (to locale.conf)...
862 - if [[ -e ${envd_locale} ]]; then
863 - # ...warn the user that he has duplicate locale settings
864 - ewarn
865 - ewarn "To ensure consistent behavior, you should replace ${envd_locale}"
866 - ewarn "with a symlink to ${locale_conf}. Please migrate your settings"
867 - ewarn "and create the symlink with the following command:"
868 - ewarn "ln -s -n -f ../locale.conf ${envd_locale}"
869 - ewarn
870 - else
871 - # ...or just create the symlink if there's nothing here
872 - ebegin "Creating ${envd_locale_def} -> ../locale.conf symlink"
873 - ln -n -s ../locale.conf "${envd_locale_def}"
874 - eend ${?} || FAIL=1
875 - fi
876 - fi
877 -}
878 -
879 -pkg_postinst() {
880 - newusergroup() {
881 - enewgroup "$1"
882 - enewuser "$1" -1 -1 -1 "$1"
883 - }
884 -
885 - enewgroup input
886 - enewgroup kvm 78
887 - enewgroup render
888 - enewgroup systemd-journal
889 - newusergroup systemd-bus-proxy
890 - newusergroup systemd-coredump
891 - newusergroup systemd-journal-gateway
892 - newusergroup systemd-journal-remote
893 - newusergroup systemd-journal-upload
894 - newusergroup systemd-network
895 - newusergroup systemd-resolve
896 - newusergroup systemd-timesync
897 -
898 - systemd_update_catalog
899 -
900 - # Keep this here in case the database format changes so it gets updated
901 - # when required. Despite that this file is owned by sys-apps/hwids.
902 - if has_version "sys-apps/hwids[udev]"; then
903 - udevadm hwdb --update --root="${EROOT%/}"
904 - fi
905 -
906 - udev_reload || FAIL=1
907 -
908 - # Bug 465468, make sure locales are respect, and ensure consistency
909 - # between OpenRC & systemd
910 - migrate_locale
911 -
912 - systemd_reenable systemd-networkd.service systemd-resolved.service
913 -
914 - if [[ ${FAIL} ]]; then
915 - eerror "One of the postinst commands failed. Please check the postinst output"
916 - eerror "for errors. You may need to clean up your system and/or try installing"
917 - eerror "systemd again."
918 - eerror
919 - fi
920 -}
921 -
922 -pkg_prerm() {
923 - # If removing systemd completely, remove the catalog database.
924 - if [[ ! ${REPLACED_BY_VERSION} ]]; then
925 - rm -f -v "${EROOT}"/var/lib/systemd/catalog/database
926 - fi
927 -}