Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/systemd: systemd-37-r2.ebuild systemd-29-r3.ebuild systemd-37-r1.ebuild ChangeLog systemd-29-r4.ebuild
Date: Fri, 06 Jan 2012 10:19:54
Message-Id: 20120106101944.0DC912004B@flycatcher.gentoo.org
1 mgorny 12/01/06 10:19:44
2
3 Modified: systemd-29-r3.ebuild systemd-37-r1.ebuild ChangeLog
4 Added: systemd-37-r2.ebuild systemd-29-r4.ebuild
5 Log:
6 Migrate to /usr.
7
8 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.2 sys-apps/systemd/systemd-29-r3.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-29-r3.ebuild?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-29-r3.ebuild?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-29-r3.ebuild?r1=1.1&r2=1.2
16
17 Index: systemd-29-r3.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-29-r3.ebuild,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- systemd-29-r3.ebuild 12 Dec 2011 08:17:37 -0000 1.1
24 +++ systemd-29-r3.ebuild 6 Jan 2012 10:19:43 -0000 1.2
25 @@ -1,6 +1,6 @@
26 -# Copyright 1999-2011 Gentoo Foundation
27 +# Copyright 1999-2012 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-29-r3.ebuild,v 1.1 2011/12/12 08:17:37 mgorny Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-29-r3.ebuild,v 1.2 2012/01/06 10:19:43 mgorny Exp $
31
32 EAPI=4
33
34 @@ -40,8 +40,10 @@
35 # dbus, udev versions because of systemd units
36 # blocker on old packages to avoid collisions with above
37 # openrc blocker to avoid udev rules starting openrc scripts
38 +# systemd blocker due to /usr migration
39 RDEPEND="${COMMON_DEPEND}
40 - !<sys-apps/openrc-0.8.3"
41 + !<sys-apps/openrc-0.8.3
42 + !=sys-apps/systemd-29-r4"
43 DEPEND="${COMMON_DEPEND}
44 gtk? ( dev-lang/vala:${VALASLOT} )
45 >=sys-kernel/linux-headers-${MINKV}"
46
47
48
49 1.2 sys-apps/systemd/systemd-37-r1.ebuild
50
51 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-37-r1.ebuild?rev=1.2&view=markup
52 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-37-r1.ebuild?rev=1.2&content-type=text/plain
53 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-37-r1.ebuild?r1=1.1&r2=1.2
54
55 Index: systemd-37-r1.ebuild
56 ===================================================================
57 RCS file: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-37-r1.ebuild,v
58 retrieving revision 1.1
59 retrieving revision 1.2
60 diff -u -r1.1 -r1.2
61 --- systemd-37-r1.ebuild 12 Dec 2011 08:17:37 -0000 1.1
62 +++ systemd-37-r1.ebuild 6 Jan 2012 10:19:43 -0000 1.2
63 @@ -1,6 +1,6 @@
64 -# Copyright 1999-2011 Gentoo Foundation
65 +# Copyright 1999-2012 Gentoo Foundation
66 # Distributed under the terms of the GNU General Public License v2
67 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-37-r1.ebuild,v 1.1 2011/12/12 08:17:37 mgorny Exp $
68 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-37-r1.ebuild,v 1.2 2012/01/06 10:19:43 mgorny Exp $
69
70 EAPI=4
71
72 @@ -41,8 +41,10 @@
73 # dbus, udev versions because of systemd units
74 # blocker on old packages to avoid collisions with above
75 # openrc blocker to avoid udev rules starting openrc scripts
76 +# systemd blocker due to /usr migration
77 RDEPEND="${COMMON_DEPEND}
78 - !<sys-apps/openrc-0.8.3"
79 + !<sys-apps/openrc-0.8.3
80 + !=sys-apps/systemd-29-r4"
81 DEPEND="${COMMON_DEPEND}
82 dev-util/gperf
83 dev-util/intltool
84
85
86
87 1.17 sys-apps/systemd/ChangeLog
88
89 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.17&view=markup
90 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.17&content-type=text/plain
91 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?r1=1.16&r2=1.17
92
93 Index: ChangeLog
94 ===================================================================
95 RCS file: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v
96 retrieving revision 1.16
97 retrieving revision 1.17
98 diff -u -r1.16 -r1.17
99 --- ChangeLog 12 Dec 2011 08:17:37 -0000 1.16
100 +++ ChangeLog 6 Jan 2012 10:19:43 -0000 1.17
101 @@ -1,6 +1,16 @@
102 # ChangeLog for sys-apps/systemd
103 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
104 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.16 2011/12/12 08:17:37 mgorny Exp $
105 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
106 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.17 2012/01/06 10:19:43 mgorny Exp $
107 +
108 +*systemd-37-r2 (06 Jan 2012)
109 +*systemd-29-r4 (06 Jan 2012)
110 +
111 + 06 Jan 2012; Michał Górny <mgorny@g.o> systemd-29-r3.ebuild,
112 + +systemd-29-r4.ebuild, systemd-37-r1.ebuild, +systemd-37-r2.ebuild,
113 + +files/update-etc-systemd-symlinks.path,
114 + +files/update-etc-systemd-symlinks.service,
115 + +files/update-etc-systemd-symlinks.sh:
116 + Migrate to /usr.
117
118 *systemd-37-r1 (12 Dec 2011)
119 *systemd-29-r3 (12 Dec 2011)
120
121
122
123 1.1 sys-apps/systemd/systemd-37-r2.ebuild
124
125 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-37-r2.ebuild?rev=1.1&view=markup
126 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-37-r2.ebuild?rev=1.1&content-type=text/plain
127
128 Index: systemd-37-r2.ebuild
129 ===================================================================
130 # Copyright 1999-2012 Gentoo Foundation
131 # Distributed under the terms of the GNU General Public License v2
132 # $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-37-r2.ebuild,v 1.1 2012/01/06 10:19:43 mgorny Exp $
133
134 EAPI=4
135
136 inherit autotools-utils bash-completion-r1 linux-info pam systemd
137
138 DESCRIPTION="System and service manager for Linux"
139 HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
140 SRC_URI="http://www.freedesktop.org/software/systemd/${P}.tar.bz2"
141
142 LICENSE="GPL-2"
143 SLOT="0"
144 KEYWORDS="~amd64 ~x86"
145 IUSE="acl audit cryptsetup gtk pam plymouth selinux tcpd"
146
147 COMMON_DEPEND=">=sys-apps/dbus-1.4.10
148 >=sys-apps/util-linux-2.19
149 >=sys-fs/udev-172
150 sys-libs/libcap
151 acl? ( sys-apps/acl )
152 audit? ( >=sys-process/audit-2 )
153 cryptsetup? ( sys-fs/cryptsetup )
154 gtk? (
155 dev-libs/dbus-glib
156 >=dev-libs/glib-2.26
157 x11-libs/gtk+:2
158 >=x11-libs/libnotify-0.7 )
159 pam? ( virtual/pam )
160 plymouth? ( sys-boot/plymouth )
161 selinux? ( sys-libs/libselinux )
162 tcpd? ( sys-apps/tcp-wrappers )"
163
164 # Vala-0.10 doesn't work with libnotify 0.7.1
165 VALASLOT="0.12"
166 # A little higher than upstream requires
167 # but I had real trouble with 2.6.37 and systemd.
168 MINKV="2.6.38"
169
170 # dbus, udev versions because of systemd units
171 # blocker on old packages to avoid collisions with above
172 # openrc blocker to avoid udev rules starting openrc scripts
173 RDEPEND="${COMMON_DEPEND}
174 !<sys-apps/openrc-0.8.3"
175 DEPEND="${COMMON_DEPEND}
176 dev-util/gperf
177 dev-util/intltool
178 gtk? ( dev-lang/vala:${VALASLOT} )
179 >=sys-kernel/linux-headers-${MINKV}"
180
181 # Due to vala being broken.
182 AUTOTOOLS_IN_SOURCE_BUILD=1
183
184 pkg_setup() {
185 enewgroup lock # used by var-lock.mount
186 enewgroup tty 5 # used by mount-setup for /dev/pts
187 }
188
189 src_prepare() {
190 # Force the rebuild of .vala sources
191 touch src/*.vala || die
192
193 # Fix hardcoded path in .vala.
194 sed -i -e 's:/lib/systemd:/usr/lib/systemd:g' src/*.vala || die
195
196 autotools-utils_src_prepare
197 }
198
199 src_configure() {
200 local myeconfargs=(
201 --with-distro=gentoo
202 --with-rootdir=/usr
203 --with-rootlibdir=/usr/$(get_libdir)
204 --localstatedir=/var
205 --docdir=/tmp/docs
206 $(use_enable acl)
207 $(use_enable audit)
208 $(use_enable cryptsetup libcryptsetup)
209 $(use_enable gtk)
210 $(use_enable pam)
211 $(use_enable plymouth)
212 $(use_enable selinux)
213 $(use_enable tcpd tcpwrap)
214 )
215
216 if use gtk; then
217 export VALAC="$(type -p valac-${VALASLOT})"
218 fi
219
220 autotools-utils_src_configure
221 }
222
223 src_install() {
224 autotools-utils_src_install \
225 bashcompletiondir=/tmp
226
227 # compat for init= use
228 dosym ../usr/bin/systemd /bin/systemd
229
230 # move files as necessary
231 newbashcomp "${D}"/tmp/systemctl-bash-completion.sh ${PN}
232 dodoc "${D}"/tmp/docs/*
233 rm -r "${D}"/tmp || die
234
235 # we just keep sysvinit tools, so no need for the mans
236 rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
237 || die
238
239 keepdir /run
240
241 # Create /run/lock as required by new baselay/OpenRC compat.
242 insinto /usr/lib/tmpfiles.d
243 doins "${FILESDIR}"/gentoo-run.conf
244
245 # Migration helpers.
246 exeinto /usr/libexec/systemd
247 doexe "${FILESDIR}"/update-etc-systemd-symlinks.sh
248 systemd_dounit "${FILESDIR}"/update-etc-systemd-symlinks.{service,path}
249 systemd_enable_service sysinit.target update-etc-systemd-symlinks.path
250 }
251
252 pkg_preinst() {
253 local CONFIG_CHECK="~AUTOFS4_FS ~CGROUPS ~DEVTMPFS ~FANOTIFY ~IPV6"
254 kernel_is -ge ${MINKV//./ } || ewarn "Kernel version at least ${MINKV} required"
255 check_extra_config
256 }
257
258 optfeature() {
259 elog " [\e[1m$(has_version ${1} && echo I || echo ' ')\e[0m] ${1} (${2})"
260 }
261
262 pkg_postinst() {
263 if [[ ! -L "${ROOT}"etc/mtab ]]; then
264 ewarn "Upstream suggests that the /etc/mtab file should be a symlink to /proc/mounts."
265 ewarn "It is known to cause users being unable to unmount user mounts. If you don't"
266 ewarn "require that specific feature, please call:"
267 ewarn " $ ln -sf '${ROOT}proc/self/mounts' '${ROOT}etc/mtab'"
268 ewarn
269 fi
270
271 elog "You may need to perform some additional configuration for some programs"
272 elog "to work, see the systemd manpages for loading modules and handling tmpfiles:"
273 elog " $ man modules-load.d"
274 elog " $ man tmpfiles.d"
275 elog
276
277 elog "To get additional features, a number of optional runtime dependencies may"
278 elog "be installed:"
279 optfeature 'dev-python/dbus-python' 'for systemd-analyze'
280 optfeature 'dev-python/pycairo[svg]' 'for systemd-analyze plotting ability'
281 elog
282
283 ewarn "Please note this is a work-in-progress and many packages in Gentoo"
284 ewarn "do not supply systemd unit files yet. You are testing it on your own"
285 ewarn "responsibility. Please remember than you can pass:"
286 ewarn " init=/sbin/init"
287 ewarn "to your kernel to boot using sysvinit / OpenRC."
288
289 # Don't run it if we're outta /
290 if [[ ! ${ROOT%/} ]]; then
291 # Update symlinks to moved units.
292 sh "${FILESDIR}"/update-etc-systemd-symlinks.sh
293
294 # Try to start migration unit.
295 ebegin "Trying to start migration helper path monitoring."
296 systemctl --system start update-etc-systemd-symlinks.path 2>/dev/null
297 eend ${?}
298 fi
299 }
300
301
302
303 1.1 sys-apps/systemd/systemd-29-r4.ebuild
304
305 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-29-r4.ebuild?rev=1.1&view=markup
306 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-29-r4.ebuild?rev=1.1&content-type=text/plain
307
308 Index: systemd-29-r4.ebuild
309 ===================================================================
310 # Copyright 1999-2012 Gentoo Foundation
311 # Distributed under the terms of the GNU General Public License v2
312 # $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-29-r4.ebuild,v 1.1 2012/01/06 10:19:43 mgorny Exp $
313
314 EAPI=4
315
316 inherit autotools-utils bash-completion-r1 linux-info pam systemd
317
318 DESCRIPTION="System and service manager for Linux"
319 HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
320 SRC_URI="http://www.freedesktop.org/software/systemd/${P}.tar.bz2"
321
322 LICENSE="GPL-2"
323 SLOT="0"
324 KEYWORDS="~amd64 ~x86"
325 IUSE="audit cryptsetup gtk pam plymouth selinux tcpd"
326
327 COMMON_DEPEND=">=sys-apps/dbus-1.4.10
328 >=sys-apps/util-linux-2.19
329 >=sys-fs/udev-171
330 sys-libs/libcap
331 audit? ( >=sys-process/audit-2 )
332 cryptsetup? ( sys-fs/cryptsetup )
333 gtk? (
334 dev-libs/dbus-glib
335 >=dev-libs/glib-2.26
336 x11-libs/gtk+:2
337 >=x11-libs/libnotify-0.7 )
338 pam? ( virtual/pam )
339 plymouth? ( sys-boot/plymouth )
340 selinux? ( sys-libs/libselinux )
341 tcpd? ( sys-apps/tcp-wrappers )"
342
343 # Vala-0.10 doesn't work with libnotify 0.7.1
344 VALASLOT="0.14"
345 # A little higher than upstream requires
346 # but I had real trouble with 2.6.37 and systemd.
347 MINKV="2.6.38"
348
349 # dbus, udev versions because of systemd units
350 # blocker on old packages to avoid collisions with above
351 # openrc blocker to avoid udev rules starting openrc scripts
352 RDEPEND="${COMMON_DEPEND}
353 !<sys-apps/openrc-0.8.3"
354 DEPEND="${COMMON_DEPEND}
355 gtk? ( dev-lang/vala:${VALASLOT} )
356 >=sys-kernel/linux-headers-${MINKV}"
357
358 # Due to vala being broken.
359 AUTOTOOLS_IN_SOURCE_BUILD=1
360
361 pkg_setup() {
362 enewgroup lock # used by var-lock.mount
363 enewgroup tty 5 # used by mount-setup for /dev/pts
364 }
365
366 src_prepare() {
367 # Force the rebuild of .vala sources
368 touch src/*.vala || die
369
370 # Fix hardcoded path in .vala.
371 sed -i -e 's:/lib/systemd:/usr/lib/systemd:g' src/*.vala || die
372
373 autotools-utils_src_prepare
374 }
375
376 src_configure() {
377 local myeconfargs=(
378 --with-distro=gentoo
379 --with-rootdir=/usr
380 --localstatedir=/var
381 --docdir=/tmp/docs
382 $(use_enable audit)
383 $(use_enable cryptsetup libcryptsetup)
384 $(use_enable gtk)
385 $(use_enable pam)
386 $(use_enable selinux)
387 $(use_enable tcpd tcpwrap)
388
389 # right now it is enabled on per-distro basis
390 # let's just hack into the check
391 $(use plymouth && echo have_plymouth=true)
392 )
393
394 if use gtk; then
395 export VALAC="$(type -p valac-${VALASLOT})"
396 fi
397
398 autotools-utils_src_configure
399 }
400
401 src_install() {
402 autotools-utils_src_install \
403 bashcompletiondir=/tmp
404
405 # compat for init= use
406 dosym ../usr/bin/systemd /bin/systemd
407
408 # move files as necessary
409 newbashcomp "${D}"/tmp/systemctl-bash-completion.sh ${PN}
410 dodoc "${D}"/tmp/docs/*
411 rm -r "${D}"/tmp || die
412
413 # we just keep sysvinit tools, so no need for the mans
414 rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
415 || die
416
417 keepdir /run
418
419 # Create /run/lock as required by new baselay/OpenRC compat.
420 insinto /usr/lib/tmpfiles.d
421 doins "${FILESDIR}"/gentoo-run.conf
422
423 # Migration helpers.
424 exeinto /usr/libexec/systemd
425 doexe "${FILESDIR}"/update-etc-systemd-symlinks.sh
426 systemd_dounit "${FILESDIR}"/update-etc-systemd-symlinks.{service,path}
427 systemd_enable_service sysinit.target update-etc-systemd-symlinks.path
428 }
429
430 pkg_preinst() {
431 local CONFIG_CHECK="~AUTOFS4_FS ~CGROUPS ~DEVTMPFS ~FANOTIFY ~IPV6"
432 kernel_is -ge ${MINKV//./ } || ewarn "Kernel version at least ${MINKV} required"
433 check_extra_config
434 }
435
436 optfeature() {
437 elog " [\e[1m$(has_version ${1} && echo I || echo ' ')\e[0m] ${1} (${2})"
438 }
439
440 pkg_postinst() {
441 if [[ ! -L "${ROOT}"etc/mtab ]]; then
442 ewarn "Upstream suggests that the /etc/mtab file should be a symlink to /proc/mounts."
443 ewarn "It is known to cause users being unable to unmount user mounts. If you don't"
444 ewarn "require that specific feature, please call:"
445 ewarn " $ ln -sf '${ROOT}proc/self/mounts' '${ROOT}etc/mtab'"
446 ewarn
447 fi
448
449 elog "You may need to perform some additional configuration for some programs"
450 elog "to work, see the systemd manpages for loading modules and handling tmpfiles:"
451 elog " $ man modules-load.d"
452 elog " $ man tmpfiles.d"
453 elog
454
455 elog "To get additional features, a number of optional runtime dependencies may"
456 elog "be installed:"
457 optfeature 'dev-python/dbus-python' 'for systemd-analyze'
458 optfeature 'dev-python/pycairo[svg]' 'for systemd-analyze plotting ability'
459 elog
460
461 ewarn "Please note this is a work-in-progress and many packages in Gentoo"
462 ewarn "do not supply systemd unit files yet. You are testing it on your own"
463 ewarn "responsibility. Please remember than you can pass:"
464 ewarn " init=/sbin/init"
465 ewarn "to your kernel to boot using sysvinit / OpenRC."
466
467 # Don't run it if we're outta /
468 if [[ ! ${ROOT%/} ]]; then
469 # Update symlinks to moved units.
470 sh "${FILESDIR}"/update-etc-systemd-symlinks.sh
471
472 # Try to start migration unit.
473 ebegin "Trying to start migration helper path monitoring."
474 systemctl --system start update-etc-systemd-symlinks.path 2>/dev/null
475 eend ${?}
476 fi
477 }