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: ChangeLog systemd-44.ebuild systemd-43.ebuild
Date: Thu, 05 Apr 2012 11:15:40
Message-Id: 20120405111527.8B8F92004C@flycatcher.gentoo.org
1 mgorny 12/04/05 11:15:27
2
3 Modified: ChangeLog
4 Added: systemd-44.ebuild
5 Removed: systemd-43.ebuild
6 Log:
7 Version bump wrt bug #376047.
8
9 (Portage version: 2.2.0_alpha99_p2/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.27 sys-apps/systemd/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.27&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.27&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?r1=1.26&r2=1.27
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v
21 retrieving revision 1.26
22 retrieving revision 1.27
23 diff -u -r1.26 -r1.27
24 --- ChangeLog 4 Apr 2012 04:09:02 -0000 1.26
25 +++ ChangeLog 5 Apr 2012 11:15:27 -0000 1.27
26 @@ -1,6 +1,13 @@
27 # ChangeLog for sys-apps/systemd
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.26 2012/04/04 04:09:02 mgorny Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.27 2012/04/05 11:15:27 mgorny Exp $
31 +
32 +*systemd-44 (05 Apr 2012)
33 +
34 + 05 Apr 2012; Michał Górny <mgorny@g.o> -systemd-43.ebuild,
35 + +systemd-44.ebuild,
36 + +files/0001-util-never-follow-symlinks-in-rm_rf_children.patch:
37 + Version bump wrt bug #376047.
38
39 04 Apr 2012; Michał Górny <mgorny@g.o> systemd-29-r3.ebuild,
40 systemd-29-r6.ebuild, systemd-39.ebuild, systemd-43.ebuild:
41
42
43
44 1.1 sys-apps/systemd/systemd-44.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-44.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-44.ebuild?rev=1.1&content-type=text/plain
48
49 Index: systemd-44.ebuild
50 ===================================================================
51 # Copyright 1999-2012 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-44.ebuild,v 1.1 2012/04/05 11:15:27 mgorny Exp $
54
55 EAPI=4
56
57 inherit autotools-utils bash-completion-r1 linux-info pam systemd
58
59 DESCRIPTION="System and service manager for Linux"
60 HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
61 SRC_URI="http://www.freedesktop.org/software/systemd/${P}.tar.xz"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86"
66 IUSE="acl audit cryptsetup lzma pam plymouth selinux tcpd"
67
68 # We need to depend on sysvinit for sulogin which is used in the rescue
69 # mode. Bug #399615.
70
71 # A little higher than upstream requires
72 # but I had real trouble with 2.6.37 and systemd.
73 MINKV="2.6.38"
74
75 # dbus version because of systemd units
76 # sysvinit for sulogin
77 RDEPEND=">=sys-apps/dbus-1.4.10
78 >=sys-apps/kmod-5
79 sys-apps/sysvinit
80 >=sys-apps/util-linux-2.19
81 >=sys-fs/udev-172
82 sys-libs/libcap
83 acl? ( sys-apps/acl )
84 audit? ( >=sys-process/audit-2 )
85 cryptsetup? ( sys-fs/cryptsetup )
86 lzma? ( app-arch/xz-utils )
87 pam? ( virtual/pam )
88 plymouth? ( sys-boot/plymouth )
89 selinux? ( sys-libs/libselinux )
90 tcpd? ( sys-apps/tcp-wrappers )"
91
92 DEPEND="${RDEPEND}
93 app-arch/xz-utils
94 app-text/docbook-xsl-stylesheets
95 dev-libs/libxslt
96 dev-util/gperf
97 dev-util/intltool
98 >=sys-kernel/linux-headers-${MINKV}"
99
100 PATCHES=(
101 # bug #408879: Session Logout File Deletion Weakness (CVE-2012-1174)
102 "${FILESDIR}"/0001-util-never-follow-symlinks-in-rm_rf_children.patch
103 )
104
105 pkg_setup() {
106 enewgroup lock # used by var-lock.mount
107 enewgroup tty 5 # used by mount-setup for /dev/pts
108 }
109
110 src_configure() {
111 local myeconfargs=(
112 --with-distro=gentoo
113 # install everything to /usr
114 --with-rootprefix=/usr
115 --with-rootlibdir=/usr/$(get_libdir)
116 # but pam modules have to lie in /lib*
117 --with-pamlibdir=/$(get_libdir)/security
118 --localstatedir=/var
119 # make sure we get /bin:/sbin in $PATH
120 --enable-split-usr
121 $(use_enable acl)
122 $(use_enable audit)
123 $(use_enable cryptsetup libcryptsetup)
124 $(use_enable lzma xz)
125 $(use_enable pam)
126 $(use_enable plymouth)
127 $(use_enable selinux)
128 $(use_enable tcpd tcpwrap)
129 # now in sys-apps/systemd-ui
130 --disable-gtk
131 )
132
133 autotools-utils_src_configure
134 }
135
136 src_install() {
137 autotools-utils_src_install \
138 bashcompletiondir=/tmp
139
140 # compat for init= use
141 dosym ../usr/lib/systemd/systemd /bin/systemd
142 dosym ../lib/systemd/systemd /usr/bin/systemd
143 # rsyslog.service depends on it...
144 dosym ../usr/bin/systemctl /bin/systemctl
145
146 # move files as necessary
147 newbashcomp "${D}"/tmp/systemd-bash-completion.sh ${PN}
148 rm -r "${D}"/tmp || die
149
150 # we just keep sysvinit tools, so no need for the mans
151 rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
152 || die
153 rm "${D}"/usr/share/man/man1/init.1 || die
154
155 # Create /run/lock as required by new baselay/OpenRC compat.
156 insinto /usr/lib/tmpfiles.d
157 doins "${FILESDIR}"/gentoo-run.conf
158
159 # Migration helpers.
160 exeinto /usr/libexec/systemd
161 doexe "${FILESDIR}"/update-etc-systemd-symlinks.sh
162 systemd_dounit "${FILESDIR}"/update-etc-systemd-symlinks.{service,path}
163 systemd_enable_service sysinit.target update-etc-systemd-symlinks.path
164 }
165
166 pkg_preinst() {
167 local CONFIG_CHECK="~AUTOFS4_FS ~CGROUPS ~DEVTMPFS ~FANOTIFY ~IPV6"
168 kernel_is -ge ${MINKV//./ } || ewarn "Kernel version at least ${MINKV} required"
169 check_extra_config
170 }
171
172 optfeature() {
173 elog " [\e[1m$(has_version ${1} && echo I || echo ' ')\e[0m] ${1} (${2})"
174 }
175
176 pkg_postinst() {
177 mkdir -p "${ROOT}"/run || ewarn "Unable to mkdir /run, this could mean trouble."
178 if [[ ! -L "${ROOT}"/etc/mtab ]]; then
179 ewarn "Upstream suggests that the /etc/mtab file should be a symlink to /proc/mounts."
180 ewarn "It is known to cause users being unable to unmount user mounts. If you don't"
181 ewarn "require that specific feature, please call:"
182 ewarn " $ ln -sf '${ROOT}proc/self/mounts' '${ROOT}etc/mtab'"
183 ewarn
184 fi
185
186 elog "You may need to perform some additional configuration for some programs"
187 elog "to work, see the systemd manpages for loading modules and handling tmpfiles:"
188 elog " $ man modules-load.d"
189 elog " $ man tmpfiles.d"
190 elog
191
192 elog "To get additional features, a number of optional runtime dependencies may"
193 elog "be installed:"
194 optfeature 'dev-python/dbus-python' 'for systemd-analyze'
195 optfeature 'dev-python/pycairo[svg]' 'for systemd-analyze plotting ability'
196 optfeature 'sys-apps/systemd-ui' 'for GTK+ systemadm UI and gnome-ask-password-agent'
197 elog
198
199 ewarn "Please note this is a work-in-progress and many packages in Gentoo"
200 ewarn "do not supply systemd unit files yet. You are testing it on your own"
201 ewarn "responsibility. Please remember than you can pass:"
202 ewarn " init=/sbin/init"
203 ewarn "to your kernel to boot using sysvinit / OpenRC."
204
205 # Don't run it if we're outta /
206 if [[ ! ${ROOT%/} ]]; then
207 # Update symlinks to moved units.
208 sh "${FILESDIR}"/update-etc-systemd-symlinks.sh
209
210 # Try to start migration unit.
211 ebegin "Trying to start migration helper path monitoring."
212 systemctl --system start update-etc-systemd-symlinks.path 2>/dev/null
213 eend ${?}
214 fi
215 }