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