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, 28 Dec 2020 15:59:22
Message-Id: 1609171138.d998ab7875ebb284dca92a0bd1db00ff8f014107.floppym@gentoo
1 commit: d998ab7875ebb284dca92a0bd1db00ff8f014107
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 28 15:58:58 2020 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 28 15:58:58 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d998ab78
7
8 sys-apps/systemd: remove old
9
10 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
11
12 sys-apps/systemd/systemd-247.2-r3.ebuild | 539 -------------------------------
13 1 file changed, 539 deletions(-)
14
15 diff --git a/sys-apps/systemd/systemd-247.2-r3.ebuild b/sys-apps/systemd/systemd-247.2-r3.ebuild
16 deleted file mode 100644
17 index 471b98dc73c..00000000000
18 --- a/sys-apps/systemd/systemd-247.2-r3.ebuild
19 +++ /dev/null
20 @@ -1,539 +0,0 @@
21 -# Copyright 2011-2020 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=7
25 -
26 -if [[ ${PV} == 9999 ]]; then
27 - EGIT_REPO_URI="https://github.com/systemd/systemd.git"
28 - inherit git-r3
29 -else
30 - if [[ ${PV} == *.* ]]; then
31 - MY_PN=systemd-stable
32 - else
33 - MY_PN=systemd
34 - fi
35 - MY_PV=${PV/_/-}
36 - MY_P=${MY_PN}-${MY_PV}
37 - S=${WORKDIR}/${MY_P}
38 - SRC_URI="https://github.com/systemd/${MY_PN}/archive/v${MY_PV}/${MY_P}.tar.gz"
39 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
40 -fi
41 -
42 -PYTHON_COMPAT=( python3_{6..9} )
43 -
44 -inherit bash-completion-r1 linux-info meson multilib-minimal ninja-utils pam python-any-r1 systemd toolchain-funcs udev usr-ldscript
45 -
46 -DESCRIPTION="System and service manager for Linux"
47 -HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd"
48 -
49 -LICENSE="GPL-2 LGPL-2.1 MIT public-domain"
50 -SLOT="0/2"
51 -IUSE="acl apparmor audit build cgroup-hybrid cryptsetup curl dns-over-tls elfutils +gcrypt gnuefi homed http +hwdb idn importd +kmod +lz4 lzma nat pam pcre pkcs11 policykit pwquality qrcode repart +resolvconf +seccomp selinux split-usr static-libs +sysv-utils test vanilla xkb +zstd"
52 -
53 -REQUIRED_USE="
54 - homed? ( cryptsetup )
55 - importd? ( curl gcrypt lzma )
56 -"
57 -RESTRICT="!test? ( test )"
58 -
59 -MINKV="3.11"
60 -
61 -OPENSSL_DEP=">=dev-libs/openssl-1.1.0:0="
62 -
63 -COMMON_DEPEND=">=sys-apps/util-linux-2.30:0=[${MULTILIB_USEDEP}]
64 - sys-libs/libcap:0=[${MULTILIB_USEDEP}]
65 - acl? ( sys-apps/acl:0= )
66 - apparmor? ( sys-libs/libapparmor:0= )
67 - audit? ( >=sys-process/audit-2:0= )
68 - cryptsetup? ( >=sys-fs/cryptsetup-2.0.1:0= )
69 - curl? ( net-misc/curl:0= )
70 - dns-over-tls? ( >=net-libs/gnutls-3.6.0:0= )
71 - elfutils? ( >=dev-libs/elfutils-0.158:0= )
72 - gcrypt? ( >=dev-libs/libgcrypt-1.4.5:0=[${MULTILIB_USEDEP}] )
73 - homed? ( ${OPENSSL_DEP} )
74 - http? (
75 - >=net-libs/libmicrohttpd-0.9.33:0=[epoll(+)]
76 - >=net-libs/gnutls-3.1.4:0=
77 - )
78 - idn? ( net-dns/libidn2:= )
79 - importd? (
80 - app-arch/bzip2:0=
81 - sys-libs/zlib:0=
82 - )
83 - kmod? ( >=sys-apps/kmod-15:0= )
84 - lz4? ( >=app-arch/lz4-0_p131:0=[${MULTILIB_USEDEP}] )
85 - lzma? ( >=app-arch/xz-utils-5.0.5-r1:0=[${MULTILIB_USEDEP}] )
86 - nat? ( net-firewall/iptables:0= )
87 - pam? ( sys-libs/pam:=[${MULTILIB_USEDEP}] )
88 - pkcs11? ( app-crypt/p11-kit:0= )
89 - pcre? ( dev-libs/libpcre2 )
90 - pwquality? ( dev-libs/libpwquality:0= )
91 - qrcode? ( media-gfx/qrencode:0= )
92 - repart? ( ${OPENSSL_DEP} )
93 - seccomp? ( >=sys-libs/libseccomp-2.3.3:0= )
94 - selinux? ( sys-libs/libselinux:0= )
95 - xkb? ( >=x11-libs/libxkbcommon-0.4.1:0= )
96 - zstd? ( >=app-arch/zstd-1.4.0:0=[${MULTILIB_USEDEP}] )
97 -"
98 -
99 -# Newer linux-headers needed by ia64, bug #480218
100 -DEPEND="${COMMON_DEPEND}
101 - >=sys-kernel/linux-headers-${MINKV}
102 - gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
103 -"
104 -
105 -# baselayout-2.2 has /run
106 -RDEPEND="${COMMON_DEPEND}
107 - acct-group/adm
108 - acct-group/wheel
109 - acct-group/kmem
110 - acct-group/tty
111 - acct-group/utmp
112 - acct-group/audio
113 - acct-group/cdrom
114 - acct-group/dialout
115 - acct-group/disk
116 - acct-group/input
117 - acct-group/kvm
118 - acct-group/lp
119 - acct-group/render
120 - acct-group/tape
121 - acct-group/users
122 - acct-group/video
123 - acct-group/systemd-journal
124 - acct-user/root
125 - acct-user/nobody
126 - acct-user/systemd-journal-remote
127 - acct-user/systemd-coredump
128 - acct-user/systemd-network
129 - acct-user/systemd-oom
130 - acct-user/systemd-resolve
131 - acct-user/systemd-timesync
132 - >=sys-apps/baselayout-2.2
133 - selinux? ( sec-policy/selinux-base-policy[systemd] )
134 - sysv-utils? ( !sys-apps/sysvinit )
135 - !sysv-utils? ( sys-apps/sysvinit )
136 - resolvconf? ( !net-dns/openresolv )
137 - !build? ( || (
138 - sys-apps/util-linux[kill(-)]
139 - sys-process/procps[kill(+)]
140 - sys-apps/coreutils[kill(-)]
141 - ) )
142 - !sys-auth/nss-myhostname
143 - !sys-fs/eudev
144 - !sys-fs/udev
145 -"
146 -
147 -# sys-apps/dbus: the daemon only (+ build-time lib dep for tests)
148 -PDEPEND=">=sys-apps/dbus-1.9.8[systemd]
149 - hwdb? ( >=sys-apps/hwids-20150417[udev] )
150 - >=sys-fs/udev-init-scripts-34
151 - policykit? ( sys-auth/polkit )
152 - !vanilla? ( sys-apps/gentoo-systemd-integration )"
153 -
154 -BDEPEND="
155 - app-arch/xz-utils:0
156 - dev-util/gperf
157 - >=dev-util/meson-0.46
158 - >=dev-util/intltool-0.50
159 - >=sys-apps/coreutils-8.16
160 - sys-devel/m4
161 - virtual/pkgconfig
162 - test? ( sys-apps/dbus )
163 - app-text/docbook-xml-dtd:4.2
164 - app-text/docbook-xml-dtd:4.5
165 - app-text/docbook-xsl-stylesheets
166 - dev-libs/libxslt:0
167 - $(python_gen_any_dep 'dev-python/lxml[${PYTHON_USEDEP}]')
168 -"
169 -
170 -python_check_deps() {
171 - has_version -b "dev-python/lxml[${PYTHON_USEDEP}]"
172 -}
173 -
174 -pkg_pretend() {
175 - if [[ ${MERGE_TYPE} != buildonly ]]; then
176 - if use test && has pid-sandbox ${FEATURES}; then
177 - ewarn "Tests are known to fail with PID sandboxing enabled."
178 - ewarn "See https://bugs.gentoo.org/674458."
179 - fi
180 -
181 - local CONFIG_CHECK="~AUTOFS4_FS ~BLK_DEV_BSG ~CGROUPS
182 - ~CHECKPOINT_RESTORE ~DEVTMPFS ~EPOLL ~FANOTIFY ~FHANDLE
183 - ~INOTIFY_USER ~IPV6 ~NET ~NET_NS ~PROC_FS ~SIGNALFD ~SYSFS
184 - ~TIMERFD ~TMPFS_XATTR ~UNIX ~USER_NS
185 - ~CRYPTO_HMAC ~CRYPTO_SHA256 ~CRYPTO_USER_API_HASH
186 - ~!GRKERNSEC_PROC ~!IDE ~!SYSFS_DEPRECATED
187 - ~!SYSFS_DEPRECATED_V2"
188 -
189 - use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL"
190 - use seccomp && CONFIG_CHECK+=" ~SECCOMP ~SECCOMP_FILTER"
191 - kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG"
192 - kernel_is -lt 4 7 && CONFIG_CHECK+=" ~DEVPTS_MULTIPLE_INSTANCES"
193 - kernel_is -ge 4 10 && CONFIG_CHECK+=" ~CGROUP_BPF"
194 -
195 - if linux_config_exists; then
196 - local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH)
197 - if [[ -n ${uevent_helper_path} ]] && [[ ${uevent_helper_path} != '""' ]]; then
198 - ewarn "It's recommended to set an empty value to the following kernel config option:"
199 - ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}"
200 - fi
201 - if linux_chkconfig_present X86; then
202 - CONFIG_CHECK+=" ~DMIID"
203 - fi
204 - fi
205 -
206 - if kernel_is -lt ${MINKV//./ }; then
207 - ewarn "Kernel version at least ${MINKV} required"
208 - fi
209 -
210 - check_extra_config
211 - fi
212 -}
213 -
214 -pkg_setup() {
215 - :
216 -}
217 -
218 -src_unpack() {
219 - default
220 - [[ ${PV} != 9999 ]] || git-r3_src_unpack
221 -}
222 -
223 -src_prepare() {
224 - # Do NOT add patches here
225 - local PATCHES=()
226 -
227 - [[ -d "${WORKDIR}"/patches ]] && PATCHES+=( "${WORKDIR}"/patches )
228 -
229 - # Add local patches here
230 - PATCHES+=(
231 - )
232 -
233 - if ! use vanilla; then
234 - PATCHES+=(
235 - "${FILESDIR}/gentoo-generator-path-r2.patch"
236 - "${FILESDIR}/gentoo-systemctl-disable-sysv-sync-r1.patch"
237 - "${FILESDIR}/gentoo-journald-audit.patch"
238 - "${FILESDIR}/gentoo-pam.patch"
239 - )
240 - fi
241 -
242 - default
243 -}
244 -
245 -src_configure() {
246 - # Prevent conflicts with i686 cross toolchain, bug 559726
247 - tc-export AR CC NM OBJCOPY RANLIB
248 -
249 - python_setup
250 -
251 - multilib-minimal_src_configure
252 -}
253 -
254 -meson_use() {
255 - usex "$1" true false
256 -}
257 -
258 -meson_multilib() {
259 - if multilib_is_native_abi; then
260 - echo true
261 - else
262 - echo false
263 - fi
264 -}
265 -
266 -meson_multilib_native_use() {
267 - if multilib_is_native_abi && use "$1"; then
268 - echo true
269 - else
270 - echo false
271 - fi
272 -}
273 -
274 -multilib_src_configure() {
275 - local myconf=(
276 - --localstatedir="${EPREFIX}/var"
277 - -Dsupport-url="https://gentoo.org/support/"
278 - -Dpamlibdir="$(getpam_mod_dir)"
279 - # avoid bash-completion dep
280 - -Dbashcompletiondir="$(get_bashcompdir)"
281 - # make sure we get /bin:/sbin in PATH
282 - -Dsplit-usr=$(usex split-usr true false)
283 - -Dsplit-bin=true
284 - -Drootprefix="$(usex split-usr "${EPREFIX:-/}" "${EPREFIX}/usr")"
285 - -Drootlibdir="${EPREFIX}/usr/$(get_libdir)"
286 - # Avoid infinite exec recursion, bug 642724
287 - -Dtelinit-path="${EPREFIX}/lib/sysvinit/telinit"
288 - # no deps
289 - -Dima=true
290 - -Ddefault-hierarchy=$(usex cgroup-hybrid hybrid unified)
291 - # Optional components/dependencies
292 - -Dacl=$(meson_multilib_native_use acl)
293 - -Dapparmor=$(meson_multilib_native_use apparmor)
294 - -Daudit=$(meson_multilib_native_use audit)
295 - -Dlibcryptsetup=$(meson_multilib_native_use cryptsetup)
296 - -Dlibcurl=$(meson_multilib_native_use curl)
297 - -Ddns-over-tls=$(meson_multilib_native_use dns-over-tls)
298 - -Delfutils=$(meson_multilib_native_use elfutils)
299 - -Dgcrypt=$(meson_use gcrypt)
300 - -Dgnu-efi=$(meson_multilib_native_use gnuefi)
301 - -Defi-libdir="${ESYSROOT}/usr/$(get_libdir)"
302 - -Dhomed=$(meson_multilib_native_use homed)
303 - -Dhwdb=$(meson_multilib_native_use hwdb)
304 - -Dmicrohttpd=$(meson_multilib_native_use http)
305 - -Didn=$(meson_multilib_native_use idn)
306 - -Dimportd=$(meson_multilib_native_use importd)
307 - -Dbzip2=$(meson_multilib_native_use importd)
308 - -Dzlib=$(meson_multilib_native_use importd)
309 - -Dkmod=$(meson_multilib_native_use kmod)
310 - -Dlz4=$(meson_use lz4)
311 - -Dxz=$(meson_use lzma)
312 - -Dzstd=$(meson_use zstd)
313 - -Dlibiptc=$(meson_multilib_native_use nat)
314 - -Dpam=$(meson_use pam)
315 - -Dp11kit=$(meson_multilib_native_use pkcs11)
316 - -Dpcre2=$(meson_multilib_native_use pcre)
317 - -Dpolkit=$(meson_multilib_native_use policykit)
318 - -Dpwquality=$(meson_multilib_native_use pwquality)
319 - -Dqrencode=$(meson_multilib_native_use qrcode)
320 - -Drepart=$(meson_multilib_native_use repart)
321 - -Dseccomp=$(meson_multilib_native_use seccomp)
322 - -Dselinux=$(meson_multilib_native_use selinux)
323 - -Ddbus=$(meson_multilib_native_use test)
324 - -Dxkbcommon=$(meson_multilib_native_use xkb)
325 - -Dntp-servers="0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"
326 - # Breaks screen, tmux, etc.
327 - -Ddefault-kill-user-processes=false
328 - -Dcreate-log-dirs=false
329 -
330 - # multilib options
331 - -Dbacklight=$(meson_multilib)
332 - -Dbinfmt=$(meson_multilib)
333 - -Dcoredump=$(meson_multilib)
334 - -Denvironment-d=$(meson_multilib)
335 - -Dfirstboot=$(meson_multilib)
336 - -Dhibernate=$(meson_multilib)
337 - -Dhostnamed=$(meson_multilib)
338 - -Dldconfig=$(meson_multilib)
339 - -Dlocaled=$(meson_multilib)
340 - -Dman=$(meson_multilib)
341 - -Dnetworkd=$(meson_multilib)
342 - -Dquotacheck=$(meson_multilib)
343 - -Drandomseed=$(meson_multilib)
344 - -Drfkill=$(meson_multilib)
345 - -Dsysusers=$(meson_multilib)
346 - -Dtimedated=$(meson_multilib)
347 - -Dtimesyncd=$(meson_multilib)
348 - -Dtmpfiles=$(meson_multilib)
349 - -Dvconsole=$(meson_multilib)
350 -
351 - # static-libs
352 - -Dstatic-libsystemd=$(usex static-libs true false)
353 - -Dstatic-libudev=$(usex static-libs true false)
354 - )
355 -
356 - meson_src_configure "${myconf[@]}"
357 -}
358 -
359 -multilib_src_compile() {
360 - eninja
361 -}
362 -
363 -multilib_src_test() {
364 - unset DBUS_SESSION_BUS_ADDRESS XDG_RUNTIME_DIR
365 - meson_src_test
366 -}
367 -
368 -multilib_src_install() {
369 - DESTDIR="${D}" eninja install
370 -}
371 -
372 -multilib_src_install_all() {
373 - local rootprefix=$(usex split-usr '' /usr)
374 -
375 - # meson doesn't know about docdir
376 - mv "${ED}"/usr/share/doc/{systemd,${PF}} || die
377 -
378 - einstalldocs
379 - dodoc "${FILESDIR}"/nsswitch.conf
380 -
381 - if ! use resolvconf; then
382 - rm -f "${ED}${rootprefix}"/sbin/resolvconf || die
383 - fi
384 -
385 - rm "${ED}"/etc/init.d/README || die
386 - rm "${ED}${rootprefix}"/lib/systemd/system-generators/systemd-sysv-generator || die
387 -
388 - if ! use sysv-utils; then
389 - rm "${ED}${rootprefix}"/sbin/{halt,init,poweroff,reboot,runlevel,shutdown,telinit} || die
390 - rm "${ED}"/usr/share/man/man1/init.1 || die
391 - rm "${ED}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 || die
392 - fi
393 -
394 - if ! use resolvconf && ! use sysv-utils; then
395 - rmdir "${ED}${rootprefix}"/sbin || die
396 - fi
397 -
398 - # https://bugs.gentoo.org/761763
399 - rm -r "${ED}"/usr/lib/sysusers.d || die
400 -
401 - # Preserve empty dirs in /etc & /var, bug #437008
402 - keepdir /etc/{binfmt.d,modules-load.d,tmpfiles.d}
403 - keepdir /etc/kernel/install.d
404 - keepdir /etc/systemd/{network,system,user}
405 - keepdir /etc/udev/rules.d
406 -
407 - if use hwdb; then
408 - keepdir /etc/udev/hwdb.d
409 - fi
410 -
411 - keepdir "${rootprefix}"/lib/systemd/{system-sleep,system-shutdown}
412 - keepdir /usr/lib/{binfmt.d,modules-load.d}
413 - keepdir /usr/lib/systemd/user-generators
414 - keepdir /var/lib/systemd
415 - keepdir /var/log/journal
416 -
417 - # Symlink /etc/sysctl.conf for easy migration.
418 - dosym ../sysctl.conf /etc/sysctl.d/99-sysctl.conf
419 -
420 - if use hwdb; then
421 - rm -r "${ED}${rootprefix}"/lib/udev/hwdb.d || die
422 - fi
423 -
424 - if use split-usr; then
425 - # Avoid breaking boot/reboot
426 - dosym ../../../lib/systemd/systemd /usr/lib/systemd/systemd
427 - dosym ../../../lib/systemd/systemd-shutdown /usr/lib/systemd/systemd-shutdown
428 - fi
429 -
430 - gen_usr_ldscript -a systemd udev
431 -}
432 -
433 -migrate_locale() {
434 - local envd_locale_def="${EROOT}/etc/env.d/02locale"
435 - local envd_locale=( "${EROOT}"/etc/env.d/??locale )
436 - local locale_conf="${EROOT}/etc/locale.conf"
437 -
438 - if [[ ! -L ${locale_conf} && ! -e ${locale_conf} ]]; then
439 - # If locale.conf does not exist...
440 - if [[ -e ${envd_locale} ]]; then
441 - # ...either copy env.d/??locale if there's one
442 - ebegin "Moving ${envd_locale} to ${locale_conf}"
443 - mv "${envd_locale}" "${locale_conf}"
444 - eend ${?} || FAIL=1
445 - else
446 - # ...or create a dummy default
447 - ebegin "Creating ${locale_conf}"
448 - cat > "${locale_conf}" <<-EOF
449 - # This file has been created by the sys-apps/systemd ebuild.
450 - # See locale.conf(5) and localectl(1).
451 -
452 - # LANG=${LANG}
453 - EOF
454 - eend ${?} || FAIL=1
455 - fi
456 - fi
457 -
458 - if [[ ! -L ${envd_locale} ]]; then
459 - # now, if env.d/??locale is not a symlink (to locale.conf)...
460 - if [[ -e ${envd_locale} ]]; then
461 - # ...warn the user that he has duplicate locale settings
462 - ewarn
463 - ewarn "To ensure consistent behavior, you should replace ${envd_locale}"
464 - ewarn "with a symlink to ${locale_conf}. Please migrate your settings"
465 - ewarn "and create the symlink with the following command:"
466 - ewarn "ln -s -n -f ../locale.conf ${envd_locale}"
467 - ewarn
468 - else
469 - # ...or just create the symlink if there's nothing here
470 - ebegin "Creating ${envd_locale_def} -> ../locale.conf symlink"
471 - ln -n -s ../locale.conf "${envd_locale_def}"
472 - eend ${?} || FAIL=1
473 - fi
474 - fi
475 -}
476 -
477 -save_enabled_units() {
478 - ENABLED_UNITS=()
479 - type systemctl &>/dev/null || return
480 - for x; do
481 - if systemctl --quiet --root="${ROOT:-/}" is-enabled "${x}"; then
482 - ENABLED_UNITS+=( "${x}" )
483 - fi
484 - done
485 -}
486 -
487 -pkg_preinst() {
488 - save_enabled_units {machines,remote-{cryptsetup,fs}}.target getty@××××.service
489 -
490 - if ! use split-usr; then
491 - local dir
492 - for dir in bin sbin lib; do
493 - if [[ ! ${EROOT}/${dir} -ef ${EROOT}/usr/${dir} ]]; then
494 - eerror "\"${EROOT}/${dir}\" and \"${EROOT}/usr/${dir}\" are not merged."
495 - eerror "One of them should be a symbolic link to the other one."
496 - FAIL=1
497 - fi
498 - done
499 - if [[ ${FAIL} ]]; then
500 - eerror "Migration to system layout with merged directories must be performed before"
501 - eerror "rebuilding ${CATEGORY}/${PN} with USE=\"-split-usr\" to avoid run-time breakage."
502 - die "System layout with split directories still used"
503 - fi
504 - fi
505 -}
506 -
507 -pkg_postinst() {
508 - systemd_update_catalog
509 -
510 - # Keep this here in case the database format changes so it gets updated
511 - # when required. Despite that this file is owned by sys-apps/hwids.
512 - if has_version "sys-apps/hwids[udev]"; then
513 - udevadm hwdb --update --root="${EROOT}"
514 - fi
515 -
516 - udev_reload || FAIL=1
517 -
518 - # Bug 465468, make sure locales are respect, and ensure consistency
519 - # between OpenRC & systemd
520 - migrate_locale
521 -
522 - systemd_reenable systemd-networkd.service systemd-resolved.service
523 -
524 - if [[ ${ENABLED_UNITS[@]} ]]; then
525 - systemctl --root="${ROOT:-/}" enable "${ENABLED_UNITS[@]}"
526 - fi
527 -
528 - if [[ -z ${REPLACING_VERSIONS} ]]; then
529 - if type systemctl &>/dev/null; then
530 - systemctl --root="${ROOT:-/}" enable getty@.service remote-fs.target || FAIL=1
531 - fi
532 - elog "To enable a useful set of services, run the following:"
533 - elog " systemctl preset-all --preset-mode=enable-only"
534 - fi
535 -
536 - if [[ -L ${EROOT}/var/lib/systemd/timesync ]]; then
537 - rm "${EROOT}/var/lib/systemd/timesync"
538 - fi
539 -
540 - if [[ -z ${ROOT} && -d /run/systemd/system ]]; then
541 - ebegin "Reexecuting system manager"
542 - systemctl daemon-reexec
543 - eend $?
544 - fi
545 -
546 - if [[ ${FAIL} ]]; then
547 - eerror "One of the postinst commands failed. Please check the postinst output"
548 - eerror "for errors. You may need to clean up your system and/or try installing"
549 - eerror "systemd again."
550 - eerror
551 - fi
552 -}
553 -
554 -pkg_prerm() {
555 - # If removing systemd completely, remove the catalog database.
556 - if [[ ! ${REPLACED_BY_VERSION} ]]; then
557 - rm -f -v "${EROOT}"/var/lib/systemd/catalog/database
558 - fi
559 -}