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