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-36.ebuild systemd-35.ebuild systemd-32.ebuild
Date: Sun, 25 Sep 2011 17:16:11
Message-Id: 20110925171601.31B4620036@flycatcher.gentoo.org
1 mgorny 11/09/25 17:16:01
2
3 Modified: ChangeLog
4 Added: systemd-36.ebuild
5 Removed: systemd-35.ebuild systemd-32.ebuild
6 Log:
7 Version bump. Still masked due to udev dep.
8
9 (Portage version: 2.2.0_alpha59_p8/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.13 sys-apps/systemd/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.13&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.13&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?r1=1.12&r2=1.13
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v
21 retrieving revision 1.12
22 retrieving revision 1.13
23 diff -u -r1.12 -r1.13
24 --- ChangeLog 5 Sep 2011 21:34:24 -0000 1.12
25 +++ ChangeLog 25 Sep 2011 17:16:00 -0000 1.13
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sys-apps/systemd
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.12 2011/09/05 21:34:24 mgorny Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.13 2011/09/25 17:16:00 mgorny Exp $
31 +
32 +*systemd-36 (25 Sep 2011)
33 +
34 + 25 Sep 2011; Michał Górny <mgorny@g.o> -systemd-32.ebuild,
35 + -systemd-35.ebuild, +systemd-36.ebuild:
36 + Version bump. Still masked due to udev dep.
37
38 *systemd-35 (05 Sep 2011)
39
40
41
42
43 1.1 sys-apps/systemd/systemd-36.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-36.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-36.ebuild?rev=1.1&content-type=text/plain
47
48 Index: systemd-36.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-36.ebuild,v 1.1 2011/09/25 17:16:00 mgorny Exp $
53
54 EAPI=4
55
56 inherit autotools-utils bash-completion-r1 linux-info pam systemd
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.bz2"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS=""
65 IUSE="acl audit cryptsetup gtk pam plymouth selinux tcpd"
66
67 COMMON_DEPEND=">=sys-apps/dbus-1.4.10
68 >=sys-apps/util-linux-2.19
69 >=sys-fs/udev-172
70 sys-libs/libcap
71 acl? ( sys-apps/acl )
72 audit? ( >=sys-process/audit-2 )
73 cryptsetup? ( sys-fs/cryptsetup )
74 gtk? (
75 dev-libs/dbus-glib
76 >=dev-libs/glib-2.26
77 x11-libs/gtk+:2
78 >=x11-libs/libnotify-0.7 )
79 pam? ( virtual/pam )
80 plymouth? ( sys-boot/plymouth )
81 selinux? ( sys-libs/libselinux )
82 tcpd? ( sys-apps/tcp-wrappers )"
83
84 # Vala-0.10 doesn't work with libnotify 0.7.1
85 VALASLOT="0.12"
86 # A little higher than upstream requires
87 # but I had real trouble with 2.6.37 and systemd.
88 MINKV="2.6.38"
89
90 # dbus, udev versions because of systemd units
91 # blocker on old packages to avoid collisions with above
92 # openrc blocker to avoid udev rules starting openrc scripts
93 RDEPEND="${COMMON_DEPEND}
94 !<sys-apps/openrc-0.8.3"
95 DEPEND="${COMMON_DEPEND}
96 dev-util/gperf
97 dev-util/intltool
98 gtk? ( dev-lang/vala:${VALASLOT} )
99 >=sys-kernel/linux-headers-${MINKV}"
100
101 pkg_setup() {
102 enewgroup lock # used by var-lock.mount
103 enewgroup tty 5 # used by mount-setup for /dev/pts
104 }
105
106 src_prepare() {
107 # Force the rebuild of .vala sources
108 touch src/*.vala || die
109 autotools-utils_src_prepare
110 }
111
112 src_configure() {
113 local myeconfargs=(
114 --with-distro=gentoo
115 --with-rootdir=
116 --with-rootlibdir=/$(get_libdir)
117 --localstatedir=/var
118 --docdir=/tmp/docs
119 $(use_enable acl)
120 $(use_enable audit)
121 $(use_enable cryptsetup libcryptsetup)
122 $(use_enable gtk)
123 $(use_enable pam)
124 $(use_enable plymouth)
125 $(use_enable selinux)
126 $(use_enable tcpd tcpwrap)
127 )
128
129 if use gtk; then
130 export VALAC="$(type -p valac-${VALASLOT})"
131 fi
132
133 autotools-utils_src_configure
134 }
135
136 src_install() {
137 autotools-utils_src_install \
138 bashcompletiondir=/tmp
139
140 # move files as necessary
141 newbashcomp "${D}"/tmp/systemctl-bash-completion.sh ${PN}
142 dodoc "${D}"/tmp/docs/*
143 rm -rf "${D}"/tmp || die
144
145 cd "${D}"/usr/share/man/man8/
146 for i in halt poweroff reboot runlevel shutdown telinit; do
147 mv ${i}.8 systemd.${i}.8 || die
148 done
149
150 keepdir /run
151 }
152
153 pkg_preinst() {
154 local CONFIG_CHECK="~AUTOFS4_FS ~CGROUPS ~DEVTMPFS ~FANOTIFY ~IPV6"
155 kernel_is -ge ${MINKV//./ } || ewarn "Kernel version at least ${MINKV} required"
156 check_extra_config
157 }
158
159 optfeature() {
160 elog " [$(has_version ${1} && echo I || echo ' ')] ${1} (${2})"
161 }
162
163 pkg_postinst() {
164 if [[ ! -L "${ROOT}"etc/mtab ]]; then
165 ewarn "Upstream suggests that the /etc/mtab file should be a symlink to /proc/mounts."
166 ewarn "It is known to cause users being unable to unmount user mounts. If you don't"
167 ewarn "require that specific feature, please call:"
168 ewarn " $ ln -sf '${ROOT}proc/self/mounts' '${ROOT}etc/mtab'"
169 ewarn
170 fi
171
172 elog "You may need to perform some additional configuration for some programs"
173 elog "to work, see the systemd manpages for loading modules and handling tmpfiles:"
174 elog " $ man modules-load.d"
175 elog " $ man tmpfiles.d"
176 elog
177
178 elog "To get additional features, a number of optional runtime dependencies may"
179 elog "be installed:"
180 optfeature 'dev-python/dbus-python' 'for systemd-analyze'
181 optfeature 'dev-python/pycairo[svg]' 'for systemd-analyze plotting ability'
182 elog
183
184 ewarn "Please note this is a work-in-progress and many packages in Gentoo"
185 ewarn "do not supply systemd unit files yet. You are testing it on your own"
186 ewarn "responsibility. Please remember than you can pass:"
187 ewarn " init=/sbin/init"
188 ewarn "to your kernel to boot using sysvinit / OpenRC."
189 }