1 |
mgorny 13/10/02 12:07:56 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: systemd-208-r1.ebuild |
5 |
Removed: systemd-208.ebuild |
6 |
Log: |
7 |
Revbump the ebuild and update the checksums for the new -208 tarball. We love people who re-release the same version. |
8 |
|
9 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!) |
10 |
|
11 |
Revision Changes Path |
12 |
1.186 sys-apps/systemd/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.186&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.186&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?r1=1.185&r2=1.186 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v |
21 |
retrieving revision 1.185 |
22 |
retrieving revision 1.186 |
23 |
diff -u -r1.185 -r1.186 |
24 |
--- ChangeLog 2 Oct 2013 09:11:49 -0000 1.185 |
25 |
+++ ChangeLog 2 Oct 2013 12:07:56 -0000 1.186 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for sys-apps/systemd |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.185 2013/10/02 09:11:49 mgorny Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.186 2013/10/02 12:07:56 mgorny Exp $ |
31 |
+ |
32 |
+*systemd-208-r1 (02 Oct 2013) |
33 |
+ |
34 |
+ 02 Oct 2013; Michał Górny <mgorny@g.o> +systemd-208-r1.ebuild, |
35 |
+ -systemd-208.ebuild: |
36 |
+ Revbump the ebuild and update the checksums for the new -208 tarball. We love |
37 |
+ people who re-release the same version. |
38 |
|
39 |
*systemd-208 (02 Oct 2013) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 sys-apps/systemd/systemd-208-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-208-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-208-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: systemd-208-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2013 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-208-r1.ebuild,v 1.1 2013/10/02 12:07:56 mgorny Exp $ |
54 |
|
55 |
EAPI=5 |
56 |
|
57 |
AUTOTOOLS_PRUNE_LIBTOOL_FILES=all |
58 |
PYTHON_COMPAT=( python2_7 ) |
59 |
inherit autotools-utils bash-completion-r1 fcaps linux-info multilib \ |
60 |
multilib-minimal pam python-single-r1 systemd toolchain-funcs udev \ |
61 |
user |
62 |
|
63 |
DESCRIPTION="System and service manager for Linux" |
64 |
HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd" |
65 |
SRC_URI="http://www.freedesktop.org/software/systemd/${P}.tar.xz" |
66 |
|
67 |
LICENSE="GPL-2 LGPL-2.1 MIT public-domain" |
68 |
SLOT="0/1" |
69 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
70 |
IUSE="acl audit cryptsetup doc +firmware-loader gcrypt gudev http introspection |
71 |
+kmod lzma openrc pam policykit python qrcode selinux tcpd test |
72 |
vanilla xattr" |
73 |
|
74 |
MINKV="3.0" |
75 |
|
76 |
COMMON_DEPEND=">=sys-apps/dbus-1.6.8-r1 |
77 |
>=sys-apps/util-linux-2.20 |
78 |
sys-libs/libcap |
79 |
acl? ( sys-apps/acl ) |
80 |
audit? ( >=sys-process/audit-2 ) |
81 |
cryptsetup? ( >=sys-fs/cryptsetup-1.6 ) |
82 |
gcrypt? ( >=dev-libs/libgcrypt-1.4.5 ) |
83 |
gudev? ( >=dev-libs/glib-2[${MULTILIB_USEDEP}] ) |
84 |
http? ( net-libs/libmicrohttpd ) |
85 |
introspection? ( >=dev-libs/gobject-introspection-1.31.1 ) |
86 |
kmod? ( >=sys-apps/kmod-14-r1 ) |
87 |
lzma? ( app-arch/xz-utils[${MULTILIB_USEDEP}] ) |
88 |
pam? ( virtual/pam ) |
89 |
python? ( ${PYTHON_DEPS} ) |
90 |
qrcode? ( media-gfx/qrencode ) |
91 |
selinux? ( sys-libs/libselinux ) |
92 |
tcpd? ( sys-apps/tcp-wrappers ) |
93 |
xattr? ( sys-apps/attr ) |
94 |
abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r9 |
95 |
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )" |
96 |
|
97 |
# baselayout-2.2 has /run |
98 |
RDEPEND="${COMMON_DEPEND} |
99 |
>=sys-apps/baselayout-2.2 |
100 |
openrc? ( >=sys-fs/udev-init-scripts-25 ) |
101 |
|| ( |
102 |
>=sys-apps/util-linux-2.22 |
103 |
<sys-apps/sysvinit-2.88-r4 |
104 |
) |
105 |
!sys-auth/nss-myhostname |
106 |
!<sys-libs/glibc-2.10 |
107 |
!sys-fs/udev" |
108 |
|
109 |
PDEPEND=">=sys-apps/hwids-20130717-r1[udev] |
110 |
policykit? ( sys-auth/polkit ) |
111 |
!vanilla? ( sys-apps/gentoo-systemd-integration )" |
112 |
|
113 |
DEPEND="${COMMON_DEPEND} |
114 |
app-arch/xz-utils |
115 |
app-text/docbook-xml-dtd:4.2 |
116 |
app-text/docbook-xsl-stylesheets |
117 |
dev-libs/libxslt |
118 |
dev-util/gperf |
119 |
>=dev-util/intltool-0.50 |
120 |
>=sys-devel/binutils-2.23.1 |
121 |
>=sys-devel/gcc-4.6 |
122 |
>=sys-kernel/linux-headers-${MINKV} |
123 |
virtual/pkgconfig |
124 |
doc? ( >=dev-util/gtk-doc-1.18 )" |
125 |
|
126 |
pkg_pretend() { |
127 |
local CONFIG_CHECK="~AUTOFS4_FS ~BLK_DEV_BSG ~CGROUPS ~DEVTMPFS |
128 |
~EPOLL ~FANOTIFY ~FHANDLE ~INOTIFY_USER ~IPV6 ~NET ~PROC_FS |
129 |
~SECCOMP ~SIGNALFD ~SYSFS ~TIMERFD |
130 |
~!IDE ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2" |
131 |
|
132 |
use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL" |
133 |
use pam && CONFIG_CHECK+=" ~AUDITSYSCALL" |
134 |
kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG" |
135 |
use firmware-loader || CONFIG_CHECK+=" ~!FW_LOADER_USER_HELPER" |
136 |
|
137 |
if [[ ${MERGE_TYPE} != binary ]]; then |
138 |
if [[ $(gcc-major-version) -lt 4 |
139 |
|| ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ) ]] |
140 |
then |
141 |
eerror "systemd requires at least gcc 4.6 to build. Please switch the active" |
142 |
eerror "gcc version using gcc-config." |
143 |
die "systemd requires at least gcc 4.6" |
144 |
fi |
145 |
fi |
146 |
|
147 |
if [[ ${MERGE_TYPE} != buildonly ]]; then |
148 |
if kernel_is -lt ${MINKV//./ }; then |
149 |
ewarn "Kernel version at least ${MINKV} required" |
150 |
fi |
151 |
|
152 |
if ! use firmware-loader && kernel_is -lt 3 8; then |
153 |
ewarn "You seem to be using kernel older than 3.8. Those kernel versions" |
154 |
ewarn "require systemd with USE=firmware-loader to support loading" |
155 |
ewarn "firmware. Missing this flag may cause some hardware not to work." |
156 |
fi |
157 |
|
158 |
check_extra_config |
159 |
fi |
160 |
} |
161 |
|
162 |
pkg_setup() { |
163 |
use python && python-single-r1_pkg_setup |
164 |
} |
165 |
|
166 |
multilib_src_configure() { |
167 |
local myeconfargs=( |
168 |
--localstatedir=/var |
169 |
--with-pamlibdir=$(getpam_mod_dir) |
170 |
# avoid bash-completion dep |
171 |
--with-bashcompletiondir="$(get_bashcompdir)" |
172 |
# make sure we get /bin:/sbin in $PATH |
173 |
--enable-split-usr |
174 |
# disable sysv compatibility |
175 |
--with-sysvinit-path= |
176 |
--with-sysvrcnd-path= |
177 |
# no deps |
178 |
--enable-efi |
179 |
--enable-ima |
180 |
# optional components/dependencies |
181 |
$(use_enable acl) |
182 |
$(use_enable audit) |
183 |
$(use_enable cryptsetup libcryptsetup) |
184 |
$(use_enable doc gtk-doc) |
185 |
$(use_enable gcrypt) |
186 |
$(use_enable gudev) |
187 |
$(use_enable http microhttpd) |
188 |
$(use_enable introspection) |
189 |
$(use_enable kmod) |
190 |
$(use_enable lzma xz) |
191 |
$(use_enable pam) |
192 |
$(use_enable policykit polkit) |
193 |
$(use_enable python python-devel) |
194 |
$(use python && echo PYTHON_CONFIG=/usr/bin/python-config-${EPYTHON#python}) |
195 |
$(use_enable qrcode qrencode) |
196 |
$(use_enable selinux) |
197 |
$(use_enable tcpd tcpwrap) |
198 |
$(use_enable test tests) |
199 |
$(use_enable xattr) |
200 |
|
201 |
# not supported (avoid automagic deps in the future) |
202 |
--disable-chkconfig |
203 |
|
204 |
# hardcode a few paths to spare some deps |
205 |
QUOTAON=/usr/sbin/quotaon |
206 |
QUOTACHECK=/usr/sbin/quotacheck |
207 |
) |
208 |
|
209 |
# Keep using the one where the rules were installed. |
210 |
MY_UDEVDIR=$(get_udevdir) |
211 |
|
212 |
if use firmware-loader; then |
213 |
myeconfargs+=( |
214 |
--with-firmware-path="/lib/firmware/updates:/lib/firmware" |
215 |
) |
216 |
fi |
217 |
|
218 |
if ! multilib_is_native_abi; then |
219 |
myeconfargs+=( |
220 |
ac_cv_search_cap_init= |
221 |
ac_cv_header_sys_capability_h=yes |
222 |
DBUS_CFLAGS=' ' |
223 |
DBUS_LIBS=' ' |
224 |
|
225 |
--disable-acl |
226 |
--disable-audit |
227 |
--disable-gcrypt |
228 |
--disable-gtk-doc |
229 |
--disable-introspection |
230 |
--disable-kmod |
231 |
--disable-libcryptsetup |
232 |
--disable-microhttpd |
233 |
--disable-pam |
234 |
--disable-polkit |
235 |
--disable-qrencode |
236 |
--disable-selinux |
237 |
--disable-tcpwrap |
238 |
--disable-tests |
239 |
--disable-xattr |
240 |
--disable-xz |
241 |
--disable-python-devel |
242 |
) |
243 |
fi |
244 |
|
245 |
# Work around bug 463846. |
246 |
tc-export CC |
247 |
|
248 |
autotools-utils_src_configure |
249 |
} |
250 |
|
251 |
multilib_src_compile() { |
252 |
local mymakeopts=( |
253 |
udevlibexecdir="${MY_UDEVDIR}" |
254 |
) |
255 |
|
256 |
if multilib_is_native_abi; then |
257 |
emake "${mymakeopts[@]}" |
258 |
else |
259 |
# prerequisites for gudev |
260 |
use gudev && emake src/gudev/gudev{enumtypes,marshal}.{c,h} |
261 |
|
262 |
echo 'gentoo: $(lib_LTLIBRARIES) $(pkgconfiglib_DATA)' | \ |
263 |
emake "${mymakeopts[@]}" -f Makefile -f - gentoo |
264 |
fi |
265 |
} |
266 |
|
267 |
multilib_src_test() { |
268 |
multilib_is_native_abi || continue |
269 |
|
270 |
default |
271 |
} |
272 |
|
273 |
multilib_src_install() { |
274 |
local mymakeopts=( |
275 |
udevlibexecdir="${MY_UDEVDIR}" |
276 |
dist_udevhwdb_DATA= |
277 |
DESTDIR="${D}" |
278 |
) |
279 |
|
280 |
if multilib_is_native_abi; then |
281 |
emake "${mymakeopts[@]}" install |
282 |
else |
283 |
mymakeopts+=( |
284 |
install-libLTLIBRARIES |
285 |
install-pkgconfiglibDATA |
286 |
install-includeHEADERS |
287 |
# safe to call unconditionally, 'installs' empty list |
288 |
install-libgudev_includeHEADERS |
289 |
install-pkgincludeHEADERS |
290 |
) |
291 |
|
292 |
emake "${mymakeopts[@]}" |
293 |
fi |
294 |
} |
295 |
|
296 |
multilib_src_install_all() { |
297 |
prune_libtool_files --modules |
298 |
|
299 |
# we just keep sysvinit tools, so no need for the mans |
300 |
rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \ |
301 |
|| die |
302 |
rm "${D}"/usr/share/man/man1/init.1 || die |
303 |
|
304 |
# Disable storing coredumps in journald, bug #433457 |
305 |
mv "${D}"/usr/lib/sysctl.d/50-coredump.conf{,.disabled} || die |
306 |
|
307 |
# Preserve empty dirs in /etc & /var, bug #437008 |
308 |
keepdir /etc/binfmt.d /etc/modules-load.d /etc/tmpfiles.d \ |
309 |
/etc/systemd/ntp-units.d /etc/systemd/user /var/lib/systemd |
310 |
|
311 |
# Symlink /etc/sysctl.conf for easy migration. |
312 |
dosym ../sysctl.conf /etc/sysctl.d/99-sysctl.conf |
313 |
} |
314 |
|
315 |
migrate_locale() { |
316 |
local envd_locale_def="${EROOT%/}/etc/env.d/02locale" |
317 |
local envd_locale=( "${EROOT%/}"/etc/env.d/??locale ) |
318 |
local locale_conf="${EROOT%/}/etc/locale.conf" |
319 |
|
320 |
if [[ ! -L ${locale_conf} && ! -e ${locale_conf} ]]; then |
321 |
# if locale.conf does not exist... |
322 |
if [[ -e ${envd_locale} ]]; then |
323 |
# ...either copy env.d/??locale if there's one |
324 |
ebegin "Moving ${envd_locale} to ${locale_conf}" |
325 |
mv "${envd_locale}" "${locale_conf}" |
326 |
eend ${?} || FAIL=1 |
327 |
else |
328 |
# ...or create a dummy default |
329 |
ebegin "Creating ${locale_conf}" |
330 |
cat > "${locale_conf}" <<-EOF |
331 |
# This file has been created by the sys-apps/systemd ebuild. |
332 |
# See locale.conf(5) and localectl(1). |
333 |
|
334 |
# LANG=${LANG} |
335 |
EOF |
336 |
eend ${?} || FAIL=1 |
337 |
fi |
338 |
fi |
339 |
|
340 |
if [[ ! -L ${envd_locale} ]]; then |
341 |
# now, if env.d/??locale is not a symlink (to locale.conf)... |
342 |
if [[ -e ${envd_locale} ]]; then |
343 |
# ...warn the user that he has duplicate locale settings |
344 |
ewarn |
345 |
ewarn "To ensure consistent behavior, you should replace ${envd_locale}" |
346 |
ewarn "with a symlink to ${locale_conf}. Please migrate your settings" |
347 |
ewarn "and create the symlink with the following command:" |
348 |
ewarn "ln -s -n -f ../locale.conf ${envd_locale}" |
349 |
ewarn |
350 |
else |
351 |
# ...or just create the symlink if there's nothing here |
352 |
ebegin "Creating ${envd_locale_def} -> ../locale.conf symlink" |
353 |
ln -n -s ../locale.conf "${envd_locale_def}" |
354 |
eend ${?} || FAIL=1 |
355 |
fi |
356 |
fi |
357 |
} |
358 |
|
359 |
pkg_postinst() { |
360 |
# for udev rules |
361 |
enewgroup dialout |
362 |
|
363 |
enewgroup systemd-journal |
364 |
if use http; then |
365 |
enewgroup systemd-journal-gateway |
366 |
enewuser systemd-journal-gateway -1 -1 -1 systemd-journal-gateway |
367 |
fi |
368 |
systemd_update_catalog |
369 |
|
370 |
# Keep this here in case the database format changes so it gets updated |
371 |
# when required. Despite that this file is owned by sys-apps/hwids. |
372 |
if has_version "sys-apps/hwids[udev]"; then |
373 |
udevadm hwdb --update --root="${ROOT%/}" |
374 |
fi |
375 |
|
376 |
udev_reload || FAIL=1 |
377 |
|
378 |
# Bug 468876 |
379 |
fcaps cap_dac_override,cap_sys_ptrace=ep usr/bin/systemd-detect-virt |
380 |
|
381 |
# Bug 465468, make sure locales are respect, and ensure consistency |
382 |
# between OpenRC & systemd |
383 |
migrate_locale |
384 |
|
385 |
if [[ ${FAIL} ]]; then |
386 |
eerror "One of the postinst commands failed. Please check the postinst output" |
387 |
eerror "for errors. You may need to clean up your system and/or try installing" |
388 |
eerror "systemd again." |
389 |
eerror |
390 |
fi |
391 |
|
392 |
if [[ ! -L "${ROOT}"/etc/mtab ]]; then |
393 |
ewarn "Upstream mandates the /etc/mtab file should be a symlink to /proc/mounts." |
394 |
ewarn "Not having it is not supported by upstream and will cause tools like 'df'" |
395 |
ewarn "and 'mount' to not work properly. Please run:" |
396 |
ewarn " # ln -sf '${ROOT}proc/self/mounts' '${ROOT}etc/mtab'" |
397 |
ewarn |
398 |
fi |
399 |
|
400 |
if ! has_version sys-apps/systemd-ui; then |
401 |
elog "To get additional features, a number of optional runtime dependencies may" |
402 |
elog "be installed:" |
403 |
elog "- sys-apps/systemd-ui: for GTK+ systemadm UI and gnome-ask-password-agent" |
404 |
fi |
405 |
} |
406 |
|
407 |
pkg_prerm() { |
408 |
# If removing systemd completely, remove the catalog database. |
409 |
if [[ ! ${REPLACED_BY_VERSION} ]]; then |
410 |
rm -f -v "${EROOT}"/var/lib/systemd/catalog/database |
411 |
fi |
412 |
} |