1 |
mgorny 12/08/24 17:21:06 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: systemd-189.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.0_alpha120_p33/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.11 sys-apps/systemd/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/metadata.xml?rev=1.11&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/metadata.xml?rev=1.11&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/metadata.xml?r1=1.10&r2=1.11 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/systemd/metadata.xml,v |
20 |
retrieving revision 1.10 |
21 |
retrieving revision 1.11 |
22 |
diff -u -r1.10 -r1.11 |
23 |
--- metadata.xml 11 Aug 2012 09:32:16 -0000 1.10 |
24 |
+++ metadata.xml 24 Aug 2012 17:21:06 -0000 1.11 |
25 |
@@ -9,5 +9,7 @@ |
26 |
<!-- XXX: describe those two better --> |
27 |
<flag name='audit'>Enable support for <pkg>sys-process/audit</pkg></flag> |
28 |
<flag name='cryptsetup'>Use libcryptsetup</flag> |
29 |
+ <flag name='gcrypt'>Enable sealing of journal files using gcrypt</flag> |
30 |
+ <flag name='qrcode'>Enable qrcode output support in journal</flag> |
31 |
</use> |
32 |
</pkgmetadata> |
33 |
|
34 |
|
35 |
|
36 |
1.42 sys-apps/systemd/ChangeLog |
37 |
|
38 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.42&view=markup |
39 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.42&content-type=text/plain |
40 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?r1=1.41&r2=1.42 |
41 |
|
42 |
Index: ChangeLog |
43 |
=================================================================== |
44 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v |
45 |
retrieving revision 1.41 |
46 |
retrieving revision 1.42 |
47 |
diff -u -r1.41 -r1.42 |
48 |
--- ChangeLog 15 Aug 2012 12:36:31 -0000 1.41 |
49 |
+++ ChangeLog 24 Aug 2012 17:21:06 -0000 1.42 |
50 |
@@ -1,6 +1,14 @@ |
51 |
# ChangeLog for sys-apps/systemd |
52 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
53 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.41 2012/08/15 12:36:31 mgorny Exp $ |
54 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.42 2012/08/24 17:21:06 mgorny Exp $ |
55 |
+ |
56 |
+*systemd-189 (24 Aug 2012) |
57 |
+ |
58 |
+ 24 Aug 2012; Michał Górny <mgorny@g.o> |
59 |
+ +files/0001-Disable-udev-targets-for-udev-189.patch, |
60 |
+ +files/0002-journald-add-missing-includes.patch, +systemd-189.ebuild, |
61 |
+ metadata.xml: |
62 |
+ Version bump. |
63 |
|
64 |
*systemd-188-r1 (15 Aug 2012) |
65 |
|
66 |
|
67 |
|
68 |
|
69 |
1.1 sys-apps/systemd/systemd-189.ebuild |
70 |
|
71 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-189.ebuild?rev=1.1&view=markup |
72 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-189.ebuild?rev=1.1&content-type=text/plain |
73 |
|
74 |
Index: systemd-189.ebuild |
75 |
=================================================================== |
76 |
# Copyright 1999-2012 Gentoo Foundation |
77 |
# Distributed under the terms of the GNU General Public License v2 |
78 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-189.ebuild,v 1.1 2012/08/24 17:21:06 mgorny Exp $ |
79 |
|
80 |
EAPI=4 |
81 |
|
82 |
inherit autotools-utils bash-completion-r1 linux-info pam systemd user |
83 |
|
84 |
DESCRIPTION="System and service manager for Linux" |
85 |
HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd" |
86 |
SRC_URI="http://www.freedesktop.org/software/systemd/${P}.tar.xz" |
87 |
|
88 |
LICENSE="GPL-2 LGPL-2.1 MIT" |
89 |
SLOT="0" |
90 |
KEYWORDS="~amd64 ~arm ~x86" |
91 |
IUSE="acl audit cryptsetup gcrypt lzma pam qrcode selinux tcpd" |
92 |
|
93 |
# We need to depend on sysvinit for sulogin which is used in the rescue |
94 |
# mode. Bug #399615. |
95 |
|
96 |
MINKV="2.6.39" |
97 |
|
98 |
COMMON_DEPEND=">=sys-apps/dbus-1.4.10 |
99 |
>=sys-apps/kmod-5 |
100 |
>=sys-apps/util-linux-2.20 |
101 |
~sys-fs/udev-189 |
102 |
sys-libs/libcap |
103 |
acl? ( sys-apps/acl ) |
104 |
audit? ( >=sys-process/audit-2 ) |
105 |
cryptsetup? ( >=sys-fs/cryptsetup-1.4.2 ) |
106 |
gcrypt? ( >=dev-libs/libgcrypt-1.4.5 ) |
107 |
lzma? ( app-arch/xz-utils ) |
108 |
pam? ( virtual/pam ) |
109 |
qrcode? ( media-gfx/qrencode ) |
110 |
selinux? ( sys-libs/libselinux ) |
111 |
tcpd? ( sys-apps/tcp-wrappers )" |
112 |
|
113 |
# sysvinit for sulogin |
114 |
RDEPEND="${COMMON_DEPEND} |
115 |
sys-apps/hwids |
116 |
sys-apps/sysvinit |
117 |
!<sys-libs/glibc-2.10 |
118 |
!~sys-fs/udev-187" |
119 |
DEPEND="${COMMON_RDEPEND} |
120 |
app-arch/xz-utils |
121 |
app-text/docbook-xsl-stylesheets |
122 |
dev-libs/libxslt |
123 |
dev-util/gperf |
124 |
dev-util/intltool |
125 |
>=sys-kernel/linux-headers-${MINKV}" |
126 |
|
127 |
AUTOTOOLS_IN_SOURCE_BUILD=1 |
128 |
|
129 |
pkg_setup() { |
130 |
enewgroup lock # used by var-lock.mount |
131 |
enewgroup tty 5 # used by mount-setup for /dev/pts |
132 |
} |
133 |
|
134 |
src_prepare() { |
135 |
# systemd-analyze is for python2.7 only nowadays. |
136 |
sed -i -e '1s/python/&2.7/' src/analyze/systemd-analyze |
137 |
|
138 |
# link against external udev. |
139 |
sed -i -e 's:libudev\.la:-ludev:' Makefile.am |
140 |
|
141 |
local PATCHES=( |
142 |
"${FILESDIR}"/0001-Disable-udev-targets-for-udev-189.patch |
143 |
"${FILESDIR}"/0002-journald-add-missing-includes.patch |
144 |
) |
145 |
|
146 |
autotools-utils_src_prepare |
147 |
|
148 |
# XXX: support it within eclass |
149 |
eautomake |
150 |
} |
151 |
|
152 |
src_configure() { |
153 |
local myeconfargs=( |
154 |
--localstatedir=/var |
155 |
--with-distro=gentoo |
156 |
# install everything to /usr |
157 |
--with-rootprefix=/usr |
158 |
--with-rootlibdir=/usr/$(get_libdir) |
159 |
# but pam modules have to lie in /lib* |
160 |
--with-pamlibdir=/$(get_libdir)/security |
161 |
# this avoids dep on pciutils & usbutils |
162 |
--with-pci-ids-path=/usr/share/misc/pci.ids |
163 |
--with-usb-ids-path=/usr/share/misc/usb.ids |
164 |
# make sure we get /bin:/sbin in $PATH |
165 |
--enable-split-usr |
166 |
# udev parts |
167 |
--disable-introspection |
168 |
--disable-gtk-doc |
169 |
--disable-gudev |
170 |
$(use_enable acl) |
171 |
$(use_enable audit) |
172 |
$(use_enable cryptsetup libcryptsetup) |
173 |
$(use_enable gcrypt) |
174 |
$(use_enable lzma xz) |
175 |
$(use_enable pam) |
176 |
$(use_enable qrcode qrencode) |
177 |
$(use_enable selinux) |
178 |
$(use_enable tcpd tcpwrap) |
179 |
) |
180 |
|
181 |
autotools-utils_src_configure |
182 |
} |
183 |
|
184 |
src_install() { |
185 |
autotools-utils_src_install \ |
186 |
bashcompletiondir=/tmp |
187 |
|
188 |
# compat for init= use |
189 |
dosym ../usr/lib/systemd/systemd /bin/systemd |
190 |
dosym ../lib/systemd/systemd /usr/bin/systemd |
191 |
# rsyslog.service depends on it... |
192 |
dosym ../usr/bin/systemctl /bin/systemctl |
193 |
|
194 |
# move files as necessary |
195 |
newbashcomp "${D}"/tmp/systemd-bash-completion.sh ${PN} |
196 |
rm -r "${D}"/tmp || die |
197 |
|
198 |
# we just keep sysvinit tools, so no need for the mans |
199 |
rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \ |
200 |
|| die |
201 |
rm "${D}"/usr/share/man/man1/init.1 || die |
202 |
|
203 |
# Create /run/lock as required by new baselay/OpenRC compat. |
204 |
insinto /usr/lib/tmpfiles.d |
205 |
doins "${FILESDIR}"/gentoo-run.conf |
206 |
|
207 |
# Check whether we won't break user's system. |
208 |
[[ -x "${D}"/bin/systemd ]] || die '/bin/systemd symlink broken, aborting.' |
209 |
[[ -x "${D}"/usr/bin/systemd ]] || die '/usr/bin/systemd symlink broken, aborting.' |
210 |
} |
211 |
|
212 |
pkg_preinst() { |
213 |
local CONFIG_CHECK="~AUTOFS4_FS ~BLK_DEV_BSG ~CGROUPS ~DEVTMPFS |
214 |
~FANOTIFY ~HOTPLUG ~INOTIFY_USER ~IPV6 ~NET ~PROC_FS ~SIGNALFD |
215 |
~SYSFS ~!IDE ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2" |
216 |
kernel_is -ge ${MINKV//./ } || ewarn "Kernel version at least ${MINKV} required" |
217 |
check_extra_config |
218 |
} |
219 |
|
220 |
optfeature() { |
221 |
local i desc=${1} text |
222 |
shift |
223 |
|
224 |
text=" [\e[1m$(has_version ${1} && echo I || echo ' ')\e[0m] ${1}" |
225 |
shift |
226 |
|
227 |
for i; do |
228 |
elog "${text}" |
229 |
text="& [\e[1m$(has_version ${1} && echo I || echo ' ')\e[0m] ${1}" |
230 |
done |
231 |
elog "${text} (${desc})" |
232 |
} |
233 |
|
234 |
pkg_postinst() { |
235 |
mkdir -p "${ROOT}"/run || ewarn "Unable to mkdir /run, this could mean trouble." |
236 |
if [[ ! -L "${ROOT}"/etc/mtab ]]; then |
237 |
ewarn "Upstream suggests that the /etc/mtab file should be a symlink to /proc/mounts." |
238 |
ewarn "It is known to cause users being unable to unmount user mounts. If you don't" |
239 |
ewarn "require that specific feature, please call:" |
240 |
ewarn " $ ln -sf '${ROOT}proc/self/mounts' '${ROOT}etc/mtab'" |
241 |
ewarn |
242 |
fi |
243 |
|
244 |
elog "To get additional features, a number of optional runtime dependencies may" |
245 |
elog "be installed:" |
246 |
optfeature 'for systemd-analyze' \ |
247 |
'dev-lang/python:2.7' 'dev-python/dbus-python' |
248 |
optfeature 'for systemd-analyze plotting ability' \ |
249 |
'dev-python/pycairo[svg]' |
250 |
optfeature 'for GTK+ systemadm UI and gnome-ask-password-agent' \ |
251 |
'sys-apps/systemd-ui' |
252 |
elog |
253 |
|
254 |
ewarn "Please note this is a work-in-progress and many packages in Gentoo" |
255 |
ewarn "do not supply systemd unit files yet. You are testing it on your own" |
256 |
ewarn "responsibility. Please remember than you can pass:" |
257 |
ewarn " init=/sbin/init" |
258 |
ewarn "to your kernel to boot using sysvinit / OpenRC." |
259 |
} |