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, 29 Aug 2015 13:34:01
Message-Id: 1440855190.fc0175eb10a9015250ce6ad6262176bcbfd1ee7d.floppym@gentoo
1 commit: fc0175eb10a9015250ce6ad6262176bcbfd1ee7d
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 29 13:33:10 2015 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 29 13:33:10 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc0175eb
7
8 sys-apps/systemd: Bump to 225
9
10 Package-Manager: portage-2.2.20
11
12 sys-apps/systemd/Manifest | 1 +
13 sys-apps/systemd/systemd-225.ebuild | 476 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 477 insertions(+)
15
16 diff --git a/sys-apps/systemd/Manifest b/sys-apps/systemd/Manifest
17 index d0ae4b4..063c12c 100644
18 --- a/sys-apps/systemd/Manifest
19 +++ b/sys-apps/systemd/Manifest
20 @@ -1,4 +1,5 @@
21 DIST systemd-218.tar.xz 3782276 SHA256 1b0768b53b6c6d813a93a4b8fe1f80cf53561b09075010a97c7aa08eee3fd59b SHA512 c183cce8532ccb4716b84587c96a626eea390202a5469b9d89c8cee7f703e40d7c584e05f29501d375b8cd2a1409d011de564df16f54e27f66b3c3007a6e5bd4 WHIRLPOOL 4d0bcf3ddfecd3354d9f4ab13851f8da6baf31e89e64d3b1ac671159f16f23597d88cc2525aece2f867c140fc97e80bce086a5af91f84b8095e2503c13995e6d
22 DIST systemd-219_p112.tar.xz 3944604 SHA256 8394ca0d55b05cb07c2187da8b614f3cb4eacc297c501dd09a31dad18acf28ea SHA512 480526ff45a8588b3a572ccc455d6357208093f5dae858947182f6e9e4595c1f612d1b661eff41f39f5df6ad0dcb6b0a08b08c15125baf1cf07402ac18a5130b WHIRLPOOL cf1ea60dc59a2a3f54cb66d24a529b742bd403f996a9e8f132fd9f9dc551308ee233fec4fec3e8feb7a657ccdd25e56a6e0756633a1c76a9c427588b262558d9
23 DIST systemd-224.tar.gz 3868075 SHA256 0d7ac1532a57639fbc828f8a5051a090883c6ad2908618a7a13ab386db831bfc SHA512 7717d340c6de11afd589234b7ec8952fe2ffcd05829622bd7ea8e008870c0e3b83eb1eaf20e85ffffa7adafc9c0c0b94fd93784510792109240e22e6b963f198 WHIRLPOOL 645b08ff0c20994b17b8ed585fb0eef682336961d7fedf25031fa4dc89a4d9a2b58c254e0f9baeedcb228435316fdfb562f9fefd21e5a63f94499d2f1040e093
24 +DIST systemd-225.tar.gz 3878442 SHA256 b2f576bb3688e9315f2f49b98e141ac6f964567370e98ebd8fd7332a0a6f9701 SHA512 35b3946509c7b01660da4370d3c51ff0e6a537dadd9dbb0a039c4f7ed552fd4e02ebac6eb8a788f61f1e3ba99444238d959051dd004c174b027729a80368ac19 WHIRLPOOL 47cd3b5690dafdf3c0ef6a9767e947666b1853541f8aefd17eb5c07eee1477daf32f3b249b04327b1c56d8ec430745725383750b97755bb6cf594d354a7ffdf8
25 DIST systemd.conf.m4-v219 1493 SHA256 90ee489b6e34945e5cda27a269e1247644382084f5a145a2df691282007c6768 SHA512 a117c40229af3ba2a0cec4c3db01728c3cab49bb6403fc84cb34f8a09979d98f7a200cd28bf2bbc7a71cbad856edf31190fba30a9d5810c55911746457bbf31a WHIRLPOOL a1604a4fdf5e2d4a4505252859c64d0a3c131b4bb371cff8c75331438f291f138d2732d939947988ab95b040e377412db84fbf6c45866fee028a2aac70e8eb9f
26
27 diff --git a/sys-apps/systemd/systemd-225.ebuild b/sys-apps/systemd/systemd-225.ebuild
28 new file mode 100644
29 index 0000000..a7df264
30 --- /dev/null
31 +++ b/sys-apps/systemd/systemd-225.ebuild
32 @@ -0,0 +1,476 @@
33 +# Copyright 1999-2015 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=5
38 +
39 +AUTOTOOLS_AUTORECONF=yes
40 +AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
41 +
42 +if [[ ${PV} == 9999 ]]; then
43 + EGIT_REPO_URI="https://github.com/systemd/systemd.git"
44 + inherit git-r3
45 +else
46 + SRC_URI="https://github.com/systemd/systemd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 + KEYWORDS="~amd64 ~arm ~ia64 ~x86"
48 +fi
49 +
50 +inherit autotools-utils bash-completion-r1 linux-info multilib \
51 + multilib-minimal pam systemd toolchain-funcs udev user
52 +
53 +DESCRIPTION="System and service manager for Linux"
54 +HOMEPAGE="http://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 cryptsetup curl elfutils gcrypt gnuefi http
59 + idn importd +kdbus +kmod +lz4 lzma nat pam policykit
60 + qrcode +seccomp selinux ssl sysv-utils test vanilla xkb"
61 +
62 +REQUIRED_USE="importd? ( curl gcrypt lzma )"
63 +
64 +MINKV="3.8"
65 +
66 +COMMON_DEPEND=">=sys-apps/util-linux-2.26:0=[${MULTILIB_USEDEP}]
67 + sys-libs/libcap:0=[${MULTILIB_USEDEP}]
68 + !<sys-libs/glibc-2.16
69 + acl? ( sys-apps/acl:0= )
70 + apparmor? ( sys-libs/libapparmor:0= )
71 + audit? ( >=sys-process/audit-2:0= )
72 + cryptsetup? ( >=sys-fs/cryptsetup-1.6:0= )
73 + curl? ( net-misc/curl:0= )
74 + elfutils? ( >=dev-libs/elfutils-0.158:0= )
75 + gcrypt? ( >=dev-libs/libgcrypt-1.4.5:0=[${MULTILIB_USEDEP}] )
76 + http? (
77 + >=net-libs/libmicrohttpd-0.9.33:0=
78 + ssl? ( >=net-libs/gnutls-3.1.4:0= )
79 + )
80 + idn? ( net-dns/libidn:0= )
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_p119: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:= )
90 + qrcode? ( media-gfx/qrencode:0= )
91 + seccomp? ( sys-libs/libseccomp:0= )
92 + selinux? ( sys-libs/libselinux:0= )
93 + sysv-utils? (
94 + !sys-apps/systemd-sysv-utils
95 + !sys-apps/sysvinit )
96 + xkb? ( >=x11-libs/libxkbcommon-0.4.1:0= )
97 + abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r9
98 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
99 +
100 +# baselayout-2.2 has /run
101 +RDEPEND="${COMMON_DEPEND}
102 + >=sys-apps/baselayout-2.2
103 + !sys-auth/nss-myhostname
104 + !sys-fs/eudev
105 + !sys-fs/udev"
106 +
107 +# sys-apps/dbus: the daemon only (+ build-time lib dep for tests)
108 +PDEPEND=">=sys-apps/dbus-1.6.8-r1:0[systemd]
109 + >=sys-apps/hwids-20150417[udev]
110 + >=sys-fs/udev-init-scripts-25
111 + policykit? ( sys-auth/polkit )
112 + !vanilla? ( sys-apps/gentoo-systemd-integration )"
113 +
114 +# Newer linux-headers needed by ia64, bug #480218
115 +DEPEND="${COMMON_DEPEND}
116 + app-arch/xz-utils:0
117 + dev-util/gperf
118 + >=dev-util/intltool-0.50
119 + >=sys-apps/coreutils-8.16
120 + >=sys-devel/binutils-2.23.1
121 + >=sys-devel/gcc-4.6
122 + >=sys-kernel/linux-headers-${MINKV}
123 + ia64? ( >=sys-kernel/linux-headers-3.9 )
124 + virtual/pkgconfig
125 + gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
126 + test? ( >=sys-apps/dbus-1.6.8-r1:0 )"
127 +
128 +if [[ -n ${AUTOTOOLS_AUTORECONF} ]]; then
129 + DEPEND+="
130 + app-text/docbook-xml-dtd:4.2
131 + app-text/docbook-xml-dtd:4.5
132 + app-text/docbook-xsl-stylesheets
133 + dev-libs/libxslt:0
134 + >=dev-libs/libgcrypt-1.4.5:0"
135 +fi
136 +
137 +PATCHES=( "${FILESDIR}/218-Dont-enable-audit-by-default.patch" )
138 +
139 +pkg_pretend() {
140 + local CONFIG_CHECK="~AUTOFS4_FS ~BLK_DEV_BSG ~CGROUPS
141 + ~DEVPTS_MULTIPLE_INSTANCES ~DEVTMPFS ~DMIID ~EPOLL ~FANOTIFY ~FHANDLE
142 + ~INOTIFY_USER ~IPV6 ~NET ~NET_NS ~PROC_FS ~SECCOMP ~SIGNALFD ~SYSFS
143 + ~TIMERFD ~TMPFS_XATTR
144 + ~!FW_LOADER_USER_HELPER ~!GRKERNSEC_PROC ~!IDE ~!SYSFS_DEPRECATED
145 + ~!SYSFS_DEPRECATED_V2"
146 +
147 + use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL"
148 + kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG"
149 +
150 + if linux_config_exists; then
151 + local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH)
152 + if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then
153 + ewarn "It's recommended to set an empty value to the following kernel config option:"
154 + ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}"
155 + fi
156 + fi
157 +
158 + if [[ ${MERGE_TYPE} != binary ]]; then
159 + if [[ $(gcc-major-version) -lt 4
160 + || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ) ]]
161 + then
162 + eerror "systemd requires at least gcc 4.6 to build. Please switch the active"
163 + eerror "gcc version using gcc-config."
164 + die "systemd requires at least gcc 4.6"
165 + fi
166 + fi
167 +
168 + if [[ ${MERGE_TYPE} != buildonly ]]; then
169 + if kernel_is -lt ${MINKV//./ }; then
170 + ewarn "Kernel version at least ${MINKV} required"
171 + fi
172 +
173 + check_extra_config
174 + fi
175 +}
176 +
177 +pkg_setup() {
178 + :
179 +}
180 +
181 +src_unpack() {
182 + default
183 + [[ ${PV} != 9999 ]] || git-r3_src_unpack
184 +}
185 +
186 +src_prepare() {
187 + # Bug 463376
188 + sed -i -e 's/GROUP="dialout"/GROUP="uucp"/' rules/*.rules || die
189 +
190 + autotools-utils_src_prepare
191 +}
192 +
193 +src_configure() {
194 + # Keep using the one where the rules were installed.
195 + MY_UDEVDIR=$(get_udevdir)
196 + # Fix systems broken by bug #509454.
197 + [[ ${MY_UDEVDIR} ]] || MY_UDEVDIR=/lib/udev
198 +
199 + multilib-minimal_src_configure
200 +}
201 +
202 +multilib_src_configure() {
203 + local myeconfargs=(
204 + # disable -flto since it is an optimization flag
205 + # and makes distcc less effective
206 + cc_cv_CFLAGS__flto=no
207 +
208 + # Workaround for gcc-4.7, bug 554454.
209 + cc_cv_CFLAGS__Werror_shadow=no
210 +
211 + # Workaround for bug 516346
212 + --enable-dependency-tracking
213 +
214 + --disable-maintainer-mode
215 + --localstatedir=/var
216 + --with-pamlibdir=$(getpam_mod_dir)
217 + # avoid bash-completion dep
218 + --with-bashcompletiondir="$(get_bashcompdir)"
219 + # make sure we get /bin:/sbin in $PATH
220 + --enable-split-usr
221 + # For testing.
222 + --with-rootprefix="${ROOTPREFIX-/usr}"
223 + --with-rootlibdir="${ROOTPREFIX-/usr}/$(get_libdir)"
224 + # disable sysv compatibility
225 + --with-sysvinit-path=
226 + --with-sysvrcnd-path=
227 + # no deps
228 + --enable-efi
229 + --enable-ima
230 + --without-python
231 +
232 + # Optional components/dependencies
233 + $(multilib_native_use_enable acl)
234 + $(multilib_native_use_enable apparmor)
235 + $(multilib_native_use_enable audit)
236 + $(multilib_native_use_enable cryptsetup libcryptsetup)
237 + $(multilib_native_use_enable curl libcurl)
238 + $(multilib_native_use_enable elfutils)
239 + $(use_enable gcrypt)
240 + $(multilib_native_use_enable gnuefi)
241 + $(multilib_native_use_enable http microhttpd)
242 + $(usex http $(multilib_native_use_enable ssl gnutls) --disable-gnutls)
243 + $(multilib_native_use_enable idn libidn)
244 + $(multilib_native_use_enable importd)
245 + $(multilib_native_use_enable importd bzip2)
246 + $(multilib_native_use_enable importd zlib)
247 + $(use_enable kdbus)
248 + $(multilib_native_use_enable kmod)
249 + $(use_enable lz4)
250 + $(use_enable lzma xz)
251 + $(multilib_native_use_enable nat libiptc)
252 + $(multilib_native_use_enable pam)
253 + $(multilib_native_use_enable policykit polkit)
254 + $(multilib_native_use_enable qrcode qrencode)
255 + $(multilib_native_use_enable seccomp)
256 + $(multilib_native_use_enable selinux)
257 + $(multilib_native_use_enable test tests)
258 + $(multilib_native_use_enable test dbus)
259 + $(multilib_native_use_enable xkb xkbcommon)
260 +
261 + # hardcode a few paths to spare some deps
262 + QUOTAON=/usr/sbin/quotaon
263 + QUOTACHECK=/usr/sbin/quotacheck
264 +
265 + # TODO: we may need to restrict this to gcc
266 + EFI_CC="$(tc-getCC)"
267 +
268 + # dbus paths
269 + --with-dbuspolicydir="${EPREFIX}/etc/dbus-1/system.d"
270 + --with-dbussessionservicedir="${EPREFIX}/usr/share/dbus-1/services"
271 + --with-dbussystemservicedir="${EPREFIX}/usr/share/dbus-1/system-services"
272 +
273 + --with-ntp-servers="0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"
274 + )
275 +
276 + # Work around bug 463846.
277 + tc-export CC
278 +
279 + autotools-utils_src_configure
280 +}
281 +
282 +multilib_src_compile() {
283 + local mymakeopts=(
284 + udevlibexecdir="${MY_UDEVDIR}"
285 + )
286 +
287 + if multilib_is_native_abi; then
288 + emake "${mymakeopts[@]}"
289 + else
290 + echo 'gentoo: $(BUILT_SOURCES)' | \
291 + emake "${mymakeopts[@]}" -f Makefile -f - gentoo
292 + echo 'gentoo: $(lib_LTLIBRARIES) $(pkgconfiglib_DATA)' | \
293 + emake "${mymakeopts[@]}" -f Makefile -f - gentoo
294 + fi
295 +}
296 +
297 +multilib_src_test() {
298 + multilib_is_native_abi || continue
299 +
300 + default
301 +}
302 +
303 +multilib_src_install() {
304 + local mymakeopts=(
305 + # automake fails with parallel libtool relinking
306 + # https://bugs.gentoo.org/show_bug.cgi?id=491398
307 + -j1
308 +
309 + udevlibexecdir="${MY_UDEVDIR}"
310 + dist_udevhwdb_DATA=
311 + DESTDIR="${D}"
312 + )
313 +
314 + if multilib_is_native_abi; then
315 + emake "${mymakeopts[@]}" install
316 + else
317 + mymakeopts+=(
318 + install-libLTLIBRARIES
319 + install-pkgconfiglibDATA
320 + install-includeHEADERS
321 + # safe to call unconditionally, 'installs' empty list
322 + install-pkgincludeHEADERS
323 + )
324 +
325 + emake "${mymakeopts[@]}"
326 + fi
327 +
328 + # install compat pkg-config files
329 + # Change dbus to >=sys-apps/dbus-1.8.8 if/when this is dropped.
330 + local pcfiles=( src/compat-libs/libsystemd-{daemon,id128,journal,login}.pc )
331 + emake "${mymakeopts[@]}" install-pkgconfiglibDATA \
332 + pkgconfiglib_DATA="${pcfiles[*]}"
333 +}
334 +
335 +multilib_src_install_all() {
336 + prune_libtool_files --modules
337 + einstalldocs
338 +
339 + if use sysv-utils; then
340 + for app in halt poweroff reboot runlevel shutdown telinit; do
341 + dosym "..${ROOTPREFIX-/usr}/bin/systemctl" /sbin/${app}
342 + done
343 + dosym "..${ROOTPREFIX-/usr}/lib/systemd/systemd" /sbin/init
344 + else
345 + # we just keep sysvinit tools, so no need for the mans
346 + rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
347 + || die
348 + rm "${D}"/usr/share/man/man1/init.1 || die
349 + fi
350 +
351 + # Disable storing coredumps in journald, bug #433457
352 + mv "${D}"/usr/lib/sysctl.d/50-coredump.conf{,.disabled} || die
353 +
354 + # Preserve empty dirs in /etc & /var, bug #437008
355 + keepdir /etc/binfmt.d /etc/modules-load.d /etc/tmpfiles.d \
356 + /etc/systemd/ntp-units.d /etc/systemd/user /var/lib/systemd \
357 + /var/log/journal/remote
358 +
359 + # Symlink /etc/sysctl.conf for easy migration.
360 + dosym ../sysctl.conf /etc/sysctl.d/99-sysctl.conf
361 +
362 + # If we install these symlinks, there is no way for the sysadmin to remove them
363 + # permanently.
364 + rm "${D}"/etc/systemd/system/multi-user.target.wants/systemd-networkd.service || die
365 + rm "${D}"/etc/systemd/system/multi-user.target.wants/systemd-resolved.service || die
366 + rm -r "${D}"/etc/systemd/system/network-online.target.wants || die
367 + rm -r "${D}"/etc/systemd/system/sockets.target.wants || die
368 + rm -r "${D}"/etc/systemd/system/sysinit.target.wants || die
369 +}
370 +
371 +migrate_locale() {
372 + local envd_locale_def="${EROOT%/}/etc/env.d/02locale"
373 + local envd_locale=( "${EROOT%/}"/etc/env.d/??locale )
374 + local locale_conf="${EROOT%/}/etc/locale.conf"
375 +
376 + if [[ ! -L ${locale_conf} && ! -e ${locale_conf} ]]; then
377 + # If locale.conf does not exist...
378 + if [[ -e ${envd_locale} ]]; then
379 + # ...either copy env.d/??locale if there's one
380 + ebegin "Moving ${envd_locale} to ${locale_conf}"
381 + mv "${envd_locale}" "${locale_conf}"
382 + eend ${?} || FAIL=1
383 + else
384 + # ...or create a dummy default
385 + ebegin "Creating ${locale_conf}"
386 + cat > "${locale_conf}" <<-EOF
387 + # This file has been created by the sys-apps/systemd ebuild.
388 + # See locale.conf(5) and localectl(1).
389 +
390 + # LANG=${LANG}
391 + EOF
392 + eend ${?} || FAIL=1
393 + fi
394 + fi
395 +
396 + if [[ ! -L ${envd_locale} ]]; then
397 + # now, if env.d/??locale is not a symlink (to locale.conf)...
398 + if [[ -e ${envd_locale} ]]; then
399 + # ...warn the user that he has duplicate locale settings
400 + ewarn
401 + ewarn "To ensure consistent behavior, you should replace ${envd_locale}"
402 + ewarn "with a symlink to ${locale_conf}. Please migrate your settings"
403 + ewarn "and create the symlink with the following command:"
404 + ewarn "ln -s -n -f ../locale.conf ${envd_locale}"
405 + ewarn
406 + else
407 + # ...or just create the symlink if there's nothing here
408 + ebegin "Creating ${envd_locale_def} -> ../locale.conf symlink"
409 + ln -n -s ../locale.conf "${envd_locale_def}"
410 + eend ${?} || FAIL=1
411 + fi
412 + fi
413 +}
414 +
415 +migrate_net_name_slot() {
416 + # If user has disabled 80-net-name-slot.rules using a empty file or a symlink to /dev/null,
417 + # do the same for 80-net-setup-link.rules to keep the old behavior
418 + local net_move=no
419 + local net_name_slot_sym=no
420 + local net_rules_path="${EROOT%/}"/etc/udev/rules.d
421 + local net_name_slot="${net_rules_path}"/80-net-name-slot.rules
422 + local net_setup_link="${net_rules_path}"/80-net-setup-link.rules
423 + if [[ -e ${net_setup_link} ]]; then
424 + net_move=no
425 + elif [[ -f ${net_name_slot} && $(sed -e "/^#/d" -e "/^\W*$/d" ${net_name_slot} | wc -l) == 0 ]]; then
426 + net_move=yes
427 + elif [[ -L ${net_name_slot} && $(readlink ${net_name_slot}) == /dev/null ]]; then
428 + net_move=yes
429 + net_name_slot_sym=yes
430 + fi
431 + if [[ ${net_move} == yes ]]; then
432 + ebegin "Copying ${net_name_slot} to ${net_setup_link}"
433 +
434 + if [[ ${net_name_slot_sym} == yes ]]; then
435 + ln -nfs /dev/null "${net_setup_link}"
436 + else
437 + cp "${net_name_slot}" "${net_setup_link}"
438 + fi
439 + eend $? || FAIL=1
440 + fi
441 +}
442 +
443 +reenable_unit() {
444 + if systemctl is-enabled --root="${ROOT}" "$1" &> /dev/null; then
445 + ebegin "Re-enabling $1"
446 + systemctl reenable --root="${ROOT}" "$1"
447 + eend $? || FAIL=1
448 + fi
449 +}
450 +
451 +pkg_postinst() {
452 + newusergroup() {
453 + enewgroup "$1"
454 + enewuser "$1" -1 -1 -1 "$1"
455 + }
456 +
457 + enewgroup input
458 + enewgroup systemd-journal
459 + newusergroup systemd-bus-proxy
460 + newusergroup systemd-journal-gateway
461 + newusergroup systemd-journal-remote
462 + newusergroup systemd-journal-upload
463 + newusergroup systemd-network
464 + newusergroup systemd-resolve
465 + newusergroup systemd-timesync
466 + use http && newusergroup systemd-journal-gateway
467 +
468 + systemd_update_catalog
469 +
470 + # Keep this here in case the database format changes so it gets updated
471 + # when required. Despite that this file is owned by sys-apps/hwids.
472 + if has_version "sys-apps/hwids[udev]"; then
473 + udevadm hwdb --update --root="${ROOT%/}"
474 + fi
475 +
476 + udev_reload || FAIL=1
477 +
478 + # Bug 465468, make sure locales are respect, and ensure consistency
479 + # between OpenRC & systemd
480 + migrate_locale
481 +
482 + # Migrate 80-net-name-slot.rules -> 80-net-setup-link.rules
483 + migrate_net_name_slot
484 +
485 + # Re-enable systemd-networkd for socket activation
486 + reenable_unit systemd-networkd.service
487 +
488 + if [[ ${FAIL} ]]; then
489 + eerror "One of the postinst commands failed. Please check the postinst output"
490 + eerror "for errors. You may need to clean up your system and/or try installing"
491 + eerror "systemd again."
492 + eerror
493 + fi
494 +
495 + if [[ $(readlink "${ROOT}"/etc/resolv.conf) == */run/systemd/network/resolv.conf ]]; then
496 + ewarn "resolv.conf is now generated by systemd-resolved. To use it, enable"
497 + ewarn "systemd-resolved.service, and create a symlink from /etc/resolv.conf"
498 + ewarn "to /run/systemd/resolve/resolv.conf"
499 + ewarn
500 + fi
501 +}
502 +
503 +pkg_prerm() {
504 + # If removing systemd completely, remove the catalog database.
505 + if [[ ! ${REPLACED_BY_VERSION} ]]; then
506 + rm -f -v "${EROOT}"/var/lib/systemd/catalog/database
507 + fi
508 +}