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: Sat, 30 Jul 2016 15:46:48
Message-Id: 1469893594.5b82ee07eed3fa56010a44080f1cc2036f38e3f5.floppym@gentoo
1 commit: 5b82ee07eed3fa56010a44080f1cc2036f38e3f5
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 30 15:45:29 2016 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 30 15:46:34 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b82ee07
7
8 sys-apps/systemd: bump to 231
9
10 Package-Manager: portage-2.3.0_p16
11
12 sys-apps/systemd/Manifest | 2 +
13 sys-apps/systemd/systemd-231.ebuild | 446 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 448 insertions(+)
15
16 diff --git a/sys-apps/systemd/Manifest b/sys-apps/systemd/Manifest
17 index d8d00ba..3f5ac9f 100644
18 --- a/sys-apps/systemd/Manifest
19 +++ b/sys-apps/systemd/Manifest
20 @@ -6,3 +6,5 @@ DIST systemd-229.tar.gz 4319173 SHA256 b51b0a48d1beb388d95bd6a98d62be05490335d4b
21 DIST systemd-230-man.tar.gz 29191 SHA256 e09ddd909d7aedbf2c1fac7a8f487fd6d0fab0745867c4b948bf8d2cc18fb7a0 SHA512 0ba2f5b0f17ee824df0f6a07d1cbd6fcf7b29d0532a79e2f4cd7cce9e723b14910743badf534cb602729adfc0203e7e8e119bc59beec9fe0f293d5afcfb7cf0c WHIRLPOOL d71fb97e53c08aa4e5d28ca186a417a725d26c287d60372075fa70da9e2ec2796767af55fe4f312e6153566b042b06c02b2e2950eb7188561815a6a3d0b79f9b
22 DIST systemd-230-patches.tar.gz 11858 SHA256 7a40071ffa2e43dda5ac2dfc91a263b0599b32dd5590d968e1077bebfce5654b SHA512 302420aabedd07b5a0b00b1f2e7500913586e867e548bde4ef6ee81cb3bd1682bdeac061111f9d8e120f4111cde2c709ed02922d56b0940d5603daff18003215 WHIRLPOOL 44f5ecaa5655e8eba3832b662fd30c7c6ca22f5d34f5d538587aa90b437457e149cd8f99bd83aec863991ec9fb5aef867218ad73a333580fe22f322ab4e3746f
23 DIST systemd-230.tar.gz 4288027 SHA256 46b07568142adcd017c62e6230d39eb10d219ed3b2f13ffc12d9a3a6b1c840cd SHA512 a0057c5258055a6b4000eb762ab2ec3c5329361711540f7124ba5c4b1119a1b531ad336ddef3bbe5d08218c8d7f1fd175c86d61357ac72935a932921cff28a96 WHIRLPOOL 95404535eb85d3b8c20dc13b12427a9da1f92729eb9e66a58d7e990f09fee28762be00088897bf1bf485d9a34619799ff0171a161824cc8f135ac2438e978d1e
24 +DIST systemd-231-man.tar.gz 29466 SHA256 aecf91c13333e1791d026b82360d55b4783f8d281c6e80bfe9d6bbf0bac633e4 SHA512 6c359f88da3e5dc01745f7255c021aafe495d9ca16c74277cbcfa05a6903093ec2c4746a34504d04f2aff464eeaa5518519577c831a08f4336552c6b6e05fdfd WHIRLPOOL 55371b404bfc945abc38d4cef5c555223abbee0993d56b506c896a851ba9ce283f0a020fe24ea273d3674f8a9dbe79b843d32eed93a59b2597b7bad113fbc3e1
25 +DIST systemd-231.tar.gz 4381464 SHA256 899733ad6c157cedbb89aec4efe3bc824dcfd65a1d6f6bebc7b043f7924e39b4 SHA512 199fa33a0494d1d15f7fe3c796fe14913ad386766571d4d3fbb1cb1c446e04f6d06a965213be4c594a7183e810fc2fd4804fe14f64f21b0a1278b717889811c6 WHIRLPOOL 7779291e9fb9873cb1773b8583cf6d4b7dec837363ea89c4a73c1e397a76752b66f8b57d8fc4d9cef768cc1855b5e325ad88a8a69eb5380aa924e0a6dead41b1
26
27 diff --git a/sys-apps/systemd/systemd-231.ebuild b/sys-apps/systemd/systemd-231.ebuild
28 new file mode 100644
29 index 0000000..3516936
30 --- /dev/null
31 +++ b/sys-apps/systemd/systemd-231.ebuild
32 @@ -0,0 +1,446 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=6
38 +
39 +if [[ ${PV} == 9999 ]]; then
40 + EGIT_REPO_URI="https://github.com/systemd/systemd.git"
41 + inherit git-r3
42 +else
43 + SRC_URI="https://github.com/systemd/systemd/archive/v${PV}.tar.gz -> ${P}.tar.gz
44 + !doc? ( https://dev.gentoo.org/~floppym/dist/${P}-man.tar.gz )"
45 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
46 +fi
47 +
48 +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
49 +
50 +inherit autotools bash-completion-r1 linux-info multilib-minimal pam python-any-r1 systemd toolchain-funcs udev user
51 +
52 +DESCRIPTION="System and service manager for Linux"
53 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd"
54 +
55 +LICENSE="GPL-2 LGPL-2.1 MIT public-domain"
56 +SLOT="0/2"
57 +IUSE="acl apparmor audit cryptsetup curl doc elfutils +gcrypt gnuefi http
58 + idn importd +kmod +lz4 lzma nat pam policykit
59 + qrcode +seccomp selinux ssl sysv-utils test vanilla xkb"
60 +
61 +REQUIRED_USE="importd? ( curl gcrypt lzma )"
62 +
63 +MINKV="3.11"
64 +
65 +COMMON_DEPEND=">=sys-apps/util-linux-2.27.1:0=[${MULTILIB_USEDEP}]
66 + sys-libs/libcap:0=[${MULTILIB_USEDEP}]
67 + !<sys-libs/glibc-2.16
68 + acl? ( sys-apps/acl:0= )
69 + apparmor? ( sys-libs/libapparmor:0= )
70 + audit? ( >=sys-process/audit-2:0= )
71 + cryptsetup? ( >=sys-fs/cryptsetup-1.6:0= )
72 + curl? ( net-misc/curl:0= )
73 + elfutils? ( >=dev-libs/elfutils-0.158:0= )
74 + gcrypt? ( >=dev-libs/libgcrypt-1.4.5:0=[${MULTILIB_USEDEP}] )
75 + http? (
76 + >=net-libs/libmicrohttpd-0.9.33:0=
77 + ssl? ( >=net-libs/gnutls-3.1.4:0= )
78 + )
79 + idn? ( net-dns/libidn:0= )
80 + importd? (
81 + app-arch/bzip2:0=
82 + sys-libs/zlib:0=
83 + )
84 + kmod? ( >=sys-apps/kmod-15:0= )
85 + lz4? ( >=app-arch/lz4-0_p131:0=[${MULTILIB_USEDEP}] )
86 + lzma? ( >=app-arch/xz-utils-5.0.5-r1:0=[${MULTILIB_USEDEP}] )
87 + nat? ( net-firewall/iptables:0= )
88 + pam? ( virtual/pam:= )
89 + qrcode? ( media-gfx/qrencode:0= )
90 + seccomp? ( sys-libs/libseccomp:0= )
91 + selinux? ( sys-libs/libselinux:0= )
92 + sysv-utils? (
93 + !sys-apps/systemd-sysv-utils
94 + !sys-apps/sysvinit )
95 + xkb? ( >=x11-libs/libxkbcommon-0.4.1:0= )
96 + abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r9
97 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
98 +
99 +# baselayout-2.2 has /run
100 +RDEPEND="${COMMON_DEPEND}
101 + >=sys-apps/baselayout-2.2
102 + selinux? ( sec-policy/selinux-base-policy[systemd] )
103 + !sys-auth/nss-myhostname
104 + !<sys-kernel/dracut-044
105 + !sys-fs/eudev
106 + !sys-fs/udev"
107 +
108 +# sys-apps/dbus: the daemon only (+ build-time lib dep for tests)
109 +PDEPEND=">=sys-apps/dbus-1.8.8:0[systemd]
110 + >=sys-apps/hwids-20150417[udev]
111 + >=sys-fs/udev-init-scripts-25
112 + policykit? ( sys-auth/polkit )
113 + !vanilla? ( sys-apps/gentoo-systemd-integration )"
114 +
115 +# Newer linux-headers needed by ia64, bug #480218
116 +DEPEND="${COMMON_DEPEND}
117 + app-arch/xz-utils:0
118 + dev-util/gperf
119 + >=dev-util/intltool-0.50
120 + >=sys-apps/coreutils-8.16
121 + >=sys-devel/binutils-2.23.1
122 + >=sys-devel/gcc-4.6
123 + >=sys-kernel/linux-headers-${MINKV}
124 + virtual/pkgconfig
125 + gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
126 + test? ( >=sys-apps/dbus-1.6.8-r1:0 )
127 + app-text/docbook-xml-dtd:4.2
128 + app-text/docbook-xml-dtd:4.5
129 + app-text/docbook-xsl-stylesheets
130 + dev-libs/libxslt:0
131 + doc? ( $(python_gen_any_dep 'dev-python/lxml[${PYTHON_USEDEP}]') )
132 +"
133 +
134 +python_check_deps() {
135 + has_version --host-root "dev-python/lxml[${PYTHON_USEDEP}]"
136 +}
137 +
138 +pkg_pretend() {
139 + local CONFIG_CHECK="~AUTOFS4_FS ~BLK_DEV_BSG ~CGROUPS
140 + ~DEVPTS_MULTIPLE_INSTANCES ~DEVTMPFS ~DMIID ~EPOLL ~FANOTIFY ~FHANDLE
141 + ~INOTIFY_USER ~IPV6 ~NET ~NET_NS ~PROC_FS ~SECCOMP ~SIGNALFD ~SYSFS
142 + ~TIMERFD ~TMPFS_XATTR ~UNIX
143 + ~!FW_LOADER_USER_HELPER ~!GRKERNSEC_PROC ~!IDE ~!SYSFS_DEPRECATED
144 + ~!SYSFS_DEPRECATED_V2"
145 +
146 + use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL"
147 + kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG"
148 +
149 + if linux_config_exists; then
150 + local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH)
151 + if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then
152 + ewarn "It's recommended to set an empty value to the following kernel config option:"
153 + ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}"
154 + fi
155 + fi
156 +
157 + if [[ ${MERGE_TYPE} != binary ]]; then
158 + if [[ $(gcc-major-version) -lt 4
159 + || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ) ]]
160 + then
161 + eerror "systemd requires at least gcc 4.6 to build. Please switch the active"
162 + eerror "gcc version using gcc-config."
163 + die "systemd requires at least gcc 4.6"
164 + fi
165 + fi
166 +
167 + if [[ ${MERGE_TYPE} != buildonly ]]; then
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 + # Bug 463376
187 + sed -i -e 's/GROUP="dialout"/GROUP="uucp"/' rules/*.rules || die
188 +
189 + local PATCHES=(
190 + "${FILESDIR}/218-Dont-enable-audit-by-default.patch"
191 + "${FILESDIR}/228-noclean-tmp.patch"
192 + )
193 + [[ -d "${WORKDIR}"/patches ]] && PATCHES+=( "${WORKDIR}"/patches )
194 +
195 + default
196 +
197 + eautoreconf
198 +}
199 +
200 +src_configure() {
201 + # Keep using the one where the rules were installed.
202 + MY_UDEVDIR=$(get_udevdir)
203 + # Fix systems broken by bug #509454.
204 + [[ ${MY_UDEVDIR} ]] || MY_UDEVDIR=/lib/udev
205 +
206 + # Prevent conflicts with i686 cross toolchain, bug 559726
207 + tc-export AR CC NM OBJCOPY RANLIB
208 +
209 + use doc && python_setup
210 +
211 + multilib-minimal_src_configure
212 +}
213 +
214 +multilib_src_configure() {
215 + local myeconfargs=(
216 + # disable -flto since it is an optimization flag
217 + # and makes distcc less effective
218 + cc_cv_CFLAGS__flto=no
219 + # disable -fuse-ld=gold since Gentoo supports explicit linker
220 + # choice and forcing gold is undesired, #539998
221 + # ld.gold may collide with user's LDFLAGS, #545168
222 + # ld.gold breaks sparc, #573874
223 + cc_cv_LDFLAGS__Wl__fuse_ld_gold=no
224 +
225 + # Workaround for gcc-4.7, bug 554454.
226 + cc_cv_CFLAGS__Werror_shadow=no
227 +
228 + # Workaround for bug 516346
229 + --enable-dependency-tracking
230 +
231 + --disable-maintainer-mode
232 + --localstatedir=/var
233 + --with-pamlibdir=$(getpam_mod_dir)
234 + # avoid bash-completion dep
235 + --with-bashcompletiondir="$(get_bashcompdir)"
236 + # make sure we get /bin:/sbin in $PATH
237 + --enable-split-usr
238 + # For testing.
239 + --with-rootprefix="${ROOTPREFIX-/usr}"
240 + --with-rootlibdir="${ROOTPREFIX-/usr}/$(get_libdir)"
241 + # disable sysv compatibility
242 + --with-sysvinit-path=
243 + --with-sysvrcnd-path=
244 + # no deps
245 + --enable-efi
246 + --enable-ima
247 +
248 + # Optional components/dependencies
249 + $(multilib_native_use_enable acl)
250 + $(multilib_native_use_enable apparmor)
251 + $(multilib_native_use_enable audit)
252 + $(multilib_native_use_enable cryptsetup libcryptsetup)
253 + $(multilib_native_use_enable curl libcurl)
254 + $(multilib_native_use_enable elfutils)
255 + $(use_enable gcrypt)
256 + $(multilib_native_use_enable gnuefi)
257 + $(multilib_native_use_enable http microhttpd)
258 + $(usex http $(multilib_native_use_enable ssl gnutls) --disable-gnutls)
259 + $(multilib_native_use_enable idn libidn)
260 + $(multilib_native_use_enable importd)
261 + $(multilib_native_use_enable importd bzip2)
262 + $(multilib_native_use_enable importd zlib)
263 + $(multilib_native_use_enable kmod)
264 + $(use_enable lz4)
265 + $(use_enable lzma xz)
266 + $(multilib_native_use_enable nat libiptc)
267 + $(multilib_native_use_enable pam)
268 + $(multilib_native_use_enable policykit polkit)
269 + $(multilib_native_use_enable qrcode qrencode)
270 + $(multilib_native_use_enable seccomp)
271 + $(multilib_native_use_enable selinux)
272 + $(multilib_native_use_enable test tests)
273 + $(multilib_native_use_enable test dbus)
274 + $(multilib_native_use_enable xkb xkbcommon)
275 + $(multilib_native_use_with doc python)
276 +
277 + # hardcode a few paths to spare some deps
278 + KILL=/bin/kill
279 + QUOTAON=/usr/sbin/quotaon
280 + QUOTACHECK=/usr/sbin/quotacheck
281 +
282 + # TODO: we may need to restrict this to gcc
283 + EFI_CC="$(tc-getCC)"
284 +
285 + # dbus paths
286 + --with-dbuspolicydir="${EPREFIX}/etc/dbus-1/system.d"
287 + --with-dbussessionservicedir="${EPREFIX}/usr/share/dbus-1/services"
288 + --with-dbussystemservicedir="${EPREFIX}/usr/share/dbus-1/system-services"
289 +
290 + --with-ntp-servers="0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"
291 +
292 + # Breaks screen, tmux, etc.
293 + --without-kill-user-processes
294 + )
295 +
296 + # Work around bug 463846.
297 + tc-export CC
298 +
299 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
300 +}
301 +
302 +multilib_src_compile() {
303 + local mymakeopts=(
304 + udevlibexecdir="${MY_UDEVDIR}"
305 + )
306 +
307 + if multilib_is_native_abi; then
308 + emake "${mymakeopts[@]}"
309 + else
310 + echo 'gentoo: $(BUILT_SOURCES)' | \
311 + emake "${mymakeopts[@]}" -f Makefile -f - gentoo
312 + echo 'gentoo: $(lib_LTLIBRARIES) $(pkgconfiglib_DATA)' | \
313 + emake "${mymakeopts[@]}" -f Makefile -f - gentoo
314 + fi
315 +}
316 +
317 +multilib_src_test() {
318 + multilib_is_native_abi || return 0
319 + default
320 +}
321 +
322 +multilib_src_install() {
323 + local mymakeopts=(
324 + # automake fails with parallel libtool relinking
325 + # https://bugs.gentoo.org/show_bug.cgi?id=491398
326 + -j1
327 +
328 + udevlibexecdir="${MY_UDEVDIR}"
329 + dist_udevhwdb_DATA=
330 + DESTDIR="${D}"
331 + )
332 +
333 + if multilib_is_native_abi; then
334 + emake "${mymakeopts[@]}" install
335 + else
336 + mymakeopts+=(
337 + install-libLTLIBRARIES
338 + install-pkgconfiglibDATA
339 + install-includeHEADERS
340 + # safe to call unconditionally, 'installs' empty list
341 + install-pkgincludeHEADERS
342 + )
343 +
344 + emake "${mymakeopts[@]}"
345 + fi
346 +}
347 +
348 +multilib_src_install_all() {
349 + prune_libtool_files --modules
350 + einstalldocs
351 +
352 + if [[ ${PV} != 9999 ]]; then
353 + use doc || doman "${WORKDIR}"/man/systemd.{directives,index}.7
354 + fi
355 +
356 + if use sysv-utils; then
357 + for app in halt poweroff reboot runlevel shutdown telinit; do
358 + dosym "..${ROOTPREFIX-/usr}/bin/systemctl" /sbin/${app}
359 + done
360 + dosym "..${ROOTPREFIX-/usr}/lib/systemd/systemd" /sbin/init
361 + else
362 + # we just keep sysvinit tools, so no need for the mans
363 + rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
364 + || die
365 + rm "${D}"/usr/share/man/man1/init.1 || die
366 + fi
367 +
368 + # Preserve empty dirs in /etc & /var, bug #437008
369 + keepdir /etc/binfmt.d /etc/modules-load.d /etc/tmpfiles.d \
370 + /etc/systemd/ntp-units.d /etc/systemd/user /var/lib/systemd \
371 + /var/log/journal/remote
372 +
373 + # Symlink /etc/sysctl.conf for easy migration.
374 + dosym ../sysctl.conf /etc/sysctl.d/99-sysctl.conf
375 +
376 + # If we install these symlinks, there is no way for the sysadmin to remove them
377 + # permanently.
378 + rm "${D}"/etc/systemd/system/multi-user.target.wants/systemd-networkd.service || die
379 + rm -f "${D}"/etc/systemd/system/multi-user.target.wants/systemd-resolved.service || die
380 + rm -r "${D}"/etc/systemd/system/network-online.target.wants || die
381 + rm -r "${D}"/etc/systemd/system/sockets.target.wants || die
382 + rm -r "${D}"/etc/systemd/system/sysinit.target.wants || die
383 +}
384 +
385 +migrate_locale() {
386 + local envd_locale_def="${EROOT%/}/etc/env.d/02locale"
387 + local envd_locale=( "${EROOT%/}"/etc/env.d/??locale )
388 + local locale_conf="${EROOT%/}/etc/locale.conf"
389 +
390 + if [[ ! -L ${locale_conf} && ! -e ${locale_conf} ]]; then
391 + # If locale.conf does not exist...
392 + if [[ -e ${envd_locale} ]]; then
393 + # ...either copy env.d/??locale if there's one
394 + ebegin "Moving ${envd_locale} to ${locale_conf}"
395 + mv "${envd_locale}" "${locale_conf}"
396 + eend ${?} || FAIL=1
397 + else
398 + # ...or create a dummy default
399 + ebegin "Creating ${locale_conf}"
400 + cat > "${locale_conf}" <<-EOF
401 + # This file has been created by the sys-apps/systemd ebuild.
402 + # See locale.conf(5) and localectl(1).
403 +
404 + # LANG=${LANG}
405 + EOF
406 + eend ${?} || FAIL=1
407 + fi
408 + fi
409 +
410 + if [[ ! -L ${envd_locale} ]]; then
411 + # now, if env.d/??locale is not a symlink (to locale.conf)...
412 + if [[ -e ${envd_locale} ]]; then
413 + # ...warn the user that he has duplicate locale settings
414 + ewarn
415 + ewarn "To ensure consistent behavior, you should replace ${envd_locale}"
416 + ewarn "with a symlink to ${locale_conf}. Please migrate your settings"
417 + ewarn "and create the symlink with the following command:"
418 + ewarn "ln -s -n -f ../locale.conf ${envd_locale}"
419 + ewarn
420 + else
421 + # ...or just create the symlink if there's nothing here
422 + ebegin "Creating ${envd_locale_def} -> ../locale.conf symlink"
423 + ln -n -s ../locale.conf "${envd_locale_def}"
424 + eend ${?} || FAIL=1
425 + fi
426 + fi
427 +}
428 +
429 +pkg_postinst() {
430 + newusergroup() {
431 + enewgroup "$1"
432 + enewuser "$1" -1 -1 -1 "$1"
433 + }
434 +
435 + enewgroup input
436 + enewgroup systemd-journal
437 + newusergroup systemd-bus-proxy
438 + newusergroup systemd-coredump
439 + newusergroup systemd-journal-gateway
440 + newusergroup systemd-journal-remote
441 + newusergroup systemd-journal-upload
442 + newusergroup systemd-network
443 + newusergroup systemd-resolve
444 + newusergroup systemd-timesync
445 +
446 + systemd_update_catalog
447 +
448 + # Keep this here in case the database format changes so it gets updated
449 + # when required. Despite that this file is owned by sys-apps/hwids.
450 + if has_version "sys-apps/hwids[udev]"; then
451 + udevadm hwdb --update --root="${ROOT%/}"
452 + fi
453 +
454 + udev_reload || FAIL=1
455 +
456 + # Bug 465468, make sure locales are respect, and ensure consistency
457 + # between OpenRC & systemd
458 + migrate_locale
459 +
460 + if [[ ${FAIL} ]]; then
461 + eerror "One of the postinst commands failed. Please check the postinst output"
462 + eerror "for errors. You may need to clean up your system and/or try installing"
463 + eerror "systemd again."
464 + eerror
465 + fi
466 +
467 + if [[ $(readlink "${ROOT}"etc/resolv.conf) == */run/systemd/* ]]; then
468 + ewarn "You should replace the resolv.conf symlink:"
469 + ewarn "ln -snf ${ROOTPREFIX}/lib/systemd ${ROOT}etc/resolv.conf"
470 + fi
471 +}
472 +
473 +pkg_prerm() {
474 + # If removing systemd completely, remove the catalog database.
475 + if [[ ! ${REPLACED_BY_VERSION} ]]; then
476 + rm -f -v "${EROOT}"/var/lib/systemd/catalog/database
477 + fi
478 +}