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-199.ebuild ChangeLog
Date: Wed, 27 Mar 2013 07:54:21
Message-Id: 20130327075417.5D5CA2171D@flycatcher.gentoo.org
1 mgorny 13/03/27 07:54:17
2
3 Modified: ChangeLog
4 Added: systemd-199.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha169/cvs/Linux x86_64, signed Manifest commit with key 9627F456F9DA7643!)
9
10 Revision Changes Path
11 1.101 sys-apps/systemd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.101&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.101&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?r1=1.100&r2=1.101
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v
20 retrieving revision 1.100
21 retrieving revision 1.101
22 diff -u -r1.100 -r1.101
23 --- ChangeLog 26 Mar 2013 22:02:45 -0000 1.100
24 +++ ChangeLog 27 Mar 2013 07:54:17 -0000 1.101
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-apps/systemd
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.100 2013/03/26 22:02:45 mgorny Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.101 2013/03/27 07:54:17 mgorny Exp $
30 +
31 +*systemd-199 (27 Mar 2013)
32 +
33 + 27 Mar 2013; Michał Górny <mgorny@g.o> +systemd-199.ebuild:
34 + Version bump.
35
36 26 Mar 2013; Michał Górny <mgorny@g.o> systemd-9999.ebuild:
37 Move nss_myhostname back to /usr -- it seems that nss handles this well.
38
39
40
41 1.1 sys-apps/systemd/systemd-199.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-199.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-199.ebuild?rev=1.1&content-type=text/plain
45
46 Index: systemd-199.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-199.ebuild,v 1.1 2013/03/27 07:54:17 mgorny Exp $
51
52 EAPI=5
53
54 PYTHON_COMPAT=( python2_7 )
55 inherit autotools-utils linux-info multilib pam python-single-r1 systemd udev user
56
57 DESCRIPTION="System and service manager for Linux"
58 HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
59 SRC_URI="http://www.freedesktop.org/software/systemd/${P}.tar.xz"
60
61 LICENSE="GPL-2 LGPL-2.1 MIT"
62 SLOT="0"
63 KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
64 IUSE="acl audit cryptsetup doc gcrypt gudev http
65 introspection +kmod lzma pam python qrcode selinux static-libs
66 tcpd vanilla xattr"
67
68 MINKV="2.6.39"
69
70 COMMON_DEPEND=">=sys-apps/dbus-1.6.8-r1
71 >=sys-apps/util-linux-2.20
72 sys-libs/libcap
73 acl? ( sys-apps/acl )
74 audit? ( >=sys-process/audit-2 )
75 cryptsetup? ( >=sys-fs/cryptsetup-1.4.2 )
76 gcrypt? ( >=dev-libs/libgcrypt-1.4.5 )
77 gudev? ( >=dev-libs/glib-2 )
78 http? ( net-libs/libmicrohttpd )
79 introspection? ( >=dev-libs/gobject-introspection-1.31.1 )
80 kmod? ( >=sys-apps/kmod-12 )
81 lzma? ( app-arch/xz-utils )
82 pam? ( virtual/pam )
83 python? ( ${PYTHON_DEPS} )
84 qrcode? ( media-gfx/qrencode )
85 selinux? ( sys-libs/libselinux )
86 tcpd? ( sys-apps/tcp-wrappers )
87 xattr? ( sys-apps/attr )"
88
89 # baselayout-2.2 has /run
90 RDEPEND="${COMMON_DEPEND}
91 >=sys-apps/baselayout-2.2
92 >=sys-apps/hwids-20130309-r1[udev]
93 || (
94 >=sys-apps/util-linux-2.22
95 <sys-apps/sysvinit-2.88-r4
96 )
97 !sys-auth/nss-myhostname
98 !<sys-libs/glibc-2.10
99 !sys-fs/udev"
100
101 # sys-fs/quota is necessary to store correct paths in unit files
102 DEPEND="${COMMON_DEPEND}
103 app-arch/xz-utils
104 app-text/docbook-xsl-stylesheets
105 dev-libs/libxslt
106 dev-util/gperf
107 >=dev-util/intltool-0.50
108 sys-fs/quota
109 >=sys-kernel/linux-headers-${MINKV}
110 virtual/pkgconfig
111 doc? ( >=dev-util/gtk-doc-1.18 )"
112
113 src_prepare() {
114
115 autotools-utils_src_prepare
116 }
117
118 src_configure() {
119 local myeconfargs=(
120 --localstatedir=/var
121 --with-firmware-path="/lib/firmware/updates:/lib/firmware"
122 # install everything to /usr
123 --with-rootprefix=/usr
124 --with-rootlibdir=/usr/$(get_libdir)
125 # but pam modules have to lie in /lib*
126 --with-pamlibdir=/$(get_libdir)/security
127 # make sure we get /bin:/sbin in $PATH
128 --enable-split-usr
129 # disable sysv compatibility
130 --with-sysvinit-path=
131 --with-sysvrcnd-path=
132 # just text files
133 --enable-polkit
134 # no deps
135 --enable-keymap
136 --enable-efi
137 # optional components/dependencies
138 $(use_enable acl)
139 $(use_enable audit)
140 $(use_enable cryptsetup libcryptsetup)
141 $(use_enable doc gtk-doc)
142 $(use_enable gcrypt)
143 $(use_enable gudev)
144 $(use_enable http microhttpd)
145 $(use_enable introspection)
146 $(use_enable kmod)
147 $(use_enable lzma xz)
148 $(use_enable pam)
149 $(use_with python)
150 $(use python && echo PYTHON_CONFIG=/usr/bin/python-config-${EPYTHON#python})
151 $(use_enable qrcode qrencode)
152 $(use_enable selinux)
153 $(use_enable tcpd tcpwrap)
154 $(use_enable xattr)
155 )
156
157 # Keep using the one where the rules were installed.
158 MY_UDEVDIR=$(get_udevdir)
159
160 autotools-utils_src_configure
161 }
162
163 src_compile() {
164 autotools-utils_src_compile \
165 udevlibexecdir="${MY_UDEVDIR}"
166 }
167
168 src_install() {
169 autotools-utils_src_install -j1 \
170 udevlibexecdir="${MY_UDEVDIR}" \
171 dist_udevhwdb_DATA=
172
173 # zsh completion
174 insinto /usr/share/zsh/site-functions
175 newins shell-completion/systemd-zsh-completion.zsh "_${PN}"
176
177 # remove pam.d plugin .la-file
178 prune_libtool_files --modules
179
180 # compat for init= use
181 dosym ../usr/lib/systemd/systemd /bin/systemd
182 dosym ../lib/systemd/systemd /usr/bin/systemd
183 # rsyslog.service depends on it...
184 dosym ../usr/bin/systemctl /bin/systemctl
185
186 # we just keep sysvinit tools, so no need for the mans
187 rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
188 || die
189 rm "${D}"/usr/share/man/man1/init.1 || die
190
191 if ! use vanilla; then
192 # Create /run/lock as required by new baselay/OpenRC compat.
193 systemd_dotmpfilesd "${FILESDIR}"/gentoo-run.conf
194
195 # Add mount-rules for /var/lock and /var/run, bug #433607
196 systemd_dounit "${FILESDIR}"/var-{lock,run}.mount
197 systemd_enable_service sysinit.target var-lock.mount
198 systemd_enable_service sysinit.target var-run.mount
199 fi
200
201 # Disable storing coredumps in journald, bug #433457
202 mv "${D}"/usr/lib/sysctl.d/50-coredump.conf{,.disabled} || die
203
204 # Preserve empty dirs in /etc & /var, bug #437008
205 keepdir /etc/binfmt.d /etc/modules-load.d /etc/tmpfiles.d \
206 /etc/systemd/ntp-units.d /etc/systemd/user /var/lib/systemd
207
208 # Check whether we won't break user's system.
209 [[ -x "${D}"/bin/systemd ]] || die '/bin/systemd symlink broken, aborting.'
210 [[ -x "${D}"/usr/bin/systemd ]] || die '/usr/bin/systemd symlink broken, aborting.'
211 }
212
213 pkg_preinst() {
214 local CONFIG_CHECK="~AUTOFS4_FS ~BLK_DEV_BSG ~CGROUPS ~DEVTMPFS
215 ~FANOTIFY ~HOTPLUG ~INOTIFY_USER ~IPV6 ~NET ~PROC_FS ~SIGNALFD
216 ~SYSFS ~!IDE ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2"
217 kernel_is -ge ${MINKV//./ } || ewarn "Kernel version at least ${MINKV} required"
218 check_extra_config
219 }
220
221 optfeature() {
222 local i desc=${1} text
223 shift
224
225 text=" [\e[1m$(has_version ${1} && echo I || echo ' ')\e[0m] ${1}"
226 shift
227
228 for i; do
229 elog "${text}"
230 text="& [\e[1m$(has_version ${1} && echo I || echo ' ')\e[0m] ${1}"
231 done
232 elog "${text} (${desc})"
233 }
234
235 pkg_postinst() {
236 # for udev rules
237 enewgroup dialout
238
239 enewgroup systemd-journal
240 if use http; then
241 enewgroup systemd-journal-gateway
242 enewuser systemd-journal-gateway -1 -1 -1 systemd-journal-gateway
243 fi
244 systemd_update_catalog
245
246 if [[ ! -L "${ROOT}"/etc/mtab ]]; then
247 ewarn "Upstream suggests that the /etc/mtab file should be a symlink to /proc/mounts."
248 ewarn "It is known to cause users being unable to unmount user mounts. If you don't"
249 ewarn "require that specific feature, please call:"
250 ewarn " $ ln -sf '${ROOT}proc/self/mounts' '${ROOT}etc/mtab'"
251 ewarn
252 fi
253
254 elog "To get additional features, a number of optional runtime dependencies may"
255 elog "be installed:"
256 optfeature 'for GTK+ systemadm UI and gnome-ask-password-agent' \
257 'sys-apps/systemd-ui'
258
259 # read null-terminated argv[0] from PID 1
260 # and see which path to systemd was used (if any)
261 local init_path
262 IFS= read -r -d '' init_path < /proc/1/cmdline
263 if [[ ${init_path} == */bin/systemd ]]; then
264 ewarn
265 ewarn "You are using a compatibility symlink to run systemd. The symlink"
266 ewarn "will be removed in near future. Please update your bootloader"
267 ewarn "to use:"
268 ewarn
269 ewarn " init=/usr/lib/systemd/systemd"
270 fi
271 }
272
273 pkg_prerm() {
274 # If removing systemd completely, remove the catalog database.
275 if [[ ! ${REPLACED_BY_VERSION} ]]; then
276 rm -f -v "${EROOT}"/var/lib/systemd/catalog/database
277 fi
278 }