Merge lp:~stgraber/ubuntu/trusty/systemd/logind-cgmanager into lp:ubuntu/trusty/systemd
- Trusty (14.04)
- logind-cgmanager
- Merge into trusty
Status: | Merged |
---|---|
Approved by: | Martin Pitt |
Approved revision: | 66 |
Merged at revision: | 67 |
Proposed branch: | lp:~stgraber/ubuntu/trusty/systemd/logind-cgmanager |
Merge into: | lp:ubuntu/trusty/systemd |
Diff against target: |
10725 lines (+10419/-2) 19 files modified
.pc/add-cgmanager-support/Makefile.am (+4218/-0) .pc/add-cgmanager-support/configure.ac (+978/-0) .pc/add-cgmanager-support/src/login/logind.c (+1775/-0) .pc/add-cgmanager-support/src/shared/cgroup-label.c (+77/-0) .pc/add-cgmanager-support/src/shared/cgroup-util.c (+1603/-0) .pc/add-cgmanager-support/src/shared/cgroup-util.h (+115/-0) .pc/applied-patches (+1/-0) Makefile.am (+19/-0) configure.ac (+19/-0) debian/changelog (+10/-0) debian/control (+2/-0) debian/patches/add-cgmanager-support (+931/-0) debian/patches/series (+2/-0) src/login/logind.c (+104/-0) src/shared/cgmanager.c (+241/-0) src/shared/cgmanager.h (+45/-0) src/shared/cgroup-label.c (+17/-0) src/shared/cgroup-util.c (+260/-2) src/shared/cgroup-util.h (+2/-0) |
To merge this branch: | bzr merge lp:~stgraber/ubuntu/trusty/systemd/logind-cgmanager |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pitt | Approve | ||
Ubuntu branches | Pending | ||
Review via email: mp+211649@code.launchpad.net |
Commit message
Description of the change
Add cgmanager support.
Stéphane Graber (stgraber) wrote : | # |
cgmanager.h and cgmanager.c both start with an ifdef on HAVE_CGMANAGER, so including them in the Makefile and in other source files shouldn't be a problem and saves us some ifdefing.
I'll fix the template leak.
Indeed this isn't planned to go upstream (it's really just a quick and dirty hack...) but I liked having the ability to force cgmanager off to compare behaviour with what we have currently.
We are currently blocked on the cgmanager MIR but once it's processed, it should get installed in both the host and the containers for logind to work properly. The host will run the cgmanager part of it and the container will run cgproxy, that's required so we get proper namespace translation without needing to implement our scm hacks directly in logind.
cgmanager.h and cgmanager.c aren't verbatim copy of upstream, they are just a thin wrapper around what's coming from libcgmanager-dev (and maybe will get in there at some point, who knows), I based those on the files of the same name from the LXC project but restricted them to only the functions we needed and updated them to use systemd's logging methods.
- 66. By Stéphane Graber
-
Add cgmanager support
Stéphane Graber (stgraber) wrote : | # |
Branch updated to add the missing free().
Martin Pitt (pitti) wrote : | # |
> Branch updated to add the missing free().
Thanks. As I said, using _cleanup_free is much simpler and less error prone for cases like this, but it looks correct to me now.
LGTM now.
> Is there a bug report for this? I suppose this needs an FFE and proper testing at this point of the release cycle.
This is still an open question. When you upload it would be nice to refer to that bug.
Thanks!
Preview Diff
1 | === added directory '.pc/add-cgmanager-support' |
2 | === added file '.pc/add-cgmanager-support/Makefile.am' |
3 | --- .pc/add-cgmanager-support/Makefile.am 1970-01-01 00:00:00 +0000 |
4 | +++ .pc/add-cgmanager-support/Makefile.am 2014-03-19 21:34:41 +0000 |
5 | @@ -0,0 +1,4218 @@ |
6 | +# -*- Mode: makefile; indent-tabs-mode: t -*- |
7 | +# |
8 | +# This file is part of systemd. |
9 | +# |
10 | +# Copyright 2010-2012 Lennart Poettering |
11 | +# Copyright 2010-2012 Kay Sievers |
12 | +# Copyright 2013 Zbigniew Jędrzejewski-Szmek |
13 | +# |
14 | +# systemd is free software; you can redistribute it and/or modify it |
15 | +# under the terms of the GNU Lesser General Public License as published by |
16 | +# the Free Software Foundation; either version 2.1 of the License, or |
17 | +# (at your option) any later version. |
18 | +# |
19 | +# systemd is distributed in the hope that it will be useful, but |
20 | +# WITHOUT ANY WARRANTY; without even the implied warranty of |
21 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
22 | +# Lesser General Public License for more details. |
23 | +# |
24 | +# You should have received a copy of the GNU Lesser General Public License |
25 | +# along with systemd; If not, see <http://www.gnu.org/licenses/>. |
26 | + |
27 | +ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} |
28 | +AM_MAKEFLAGS = --no-print-directory |
29 | +AUTOMAKE_OPTIONS = color-tests parallel-tests |
30 | + |
31 | +SUBDIRS = . po |
32 | + |
33 | +# remove targets if the command fails |
34 | +.DELETE_ON_ERROR: |
35 | + |
36 | +# keep intermediate files |
37 | +.SECONDARY: |
38 | + |
39 | +LIBUDEV_CURRENT=4 |
40 | +LIBUDEV_REVISION=5 |
41 | +LIBUDEV_AGE=3 |
42 | + |
43 | +LIBGUDEV_CURRENT=1 |
44 | +LIBGUDEV_REVISION=3 |
45 | +LIBGUDEV_AGE=1 |
46 | + |
47 | +LIBSYSTEMD_LOGIN_CURRENT=7 |
48 | +LIBSYSTEMD_LOGIN_REVISION=1 |
49 | +LIBSYSTEMD_LOGIN_AGE=7 |
50 | + |
51 | +LIBSYSTEMD_DAEMON_CURRENT=0 |
52 | +LIBSYSTEMD_DAEMON_REVISION=10 |
53 | +LIBSYSTEMD_DAEMON_AGE=0 |
54 | + |
55 | +LIBSYSTEMD_ID128_CURRENT=0 |
56 | +LIBSYSTEMD_ID128_REVISION=23 |
57 | +LIBSYSTEMD_ID128_AGE=0 |
58 | + |
59 | +LIBSYSTEMD_JOURNAL_CURRENT=10 |
60 | +LIBSYSTEMD_JOURNAL_REVISION=2 |
61 | +LIBSYSTEMD_JOURNAL_AGE=10 |
62 | + |
63 | +# Dirs of external packages |
64 | +dbuspolicydir=@dbuspolicydir@ |
65 | +dbussessionservicedir=@dbussessionservicedir@ |
66 | +dbussystemservicedir=@dbussystemservicedir@ |
67 | +dbusinterfacedir=@dbusinterfacedir@ |
68 | +pamlibdir=@pamlibdir@ |
69 | +pkgconfigdatadir=$(datadir)/pkgconfig |
70 | +pkgconfiglibdir=$(libdir)/pkgconfig |
71 | +polkitpolicydir=$(datadir)/polkit-1/actions |
72 | +bashcompletiondir=@bashcompletiondir@ |
73 | +rpmmacrosdir=$(sysconfdir)/rpm |
74 | +sysvinitdir=$(SYSTEM_SYSVINIT_PATH) |
75 | +sysvrcnddir=$(SYSTEM_SYSVRCND_PATH) |
76 | +varlogdir=$(localstatedir)/log |
77 | +systemdstatedir=$(localstatedir)/lib/systemd |
78 | +catalogstatedir=$(systemdstatedir)/catalog |
79 | + |
80 | +# Our own, non-special dirs |
81 | +pkgsysconfdir=$(sysconfdir)/systemd |
82 | +userunitdir=$(prefix)/lib/systemd/user |
83 | +userpresetdir=$(prefix)/lib/systemd/user-preset |
84 | +tmpfilesdir=$(prefix)/lib/tmpfiles.d |
85 | +sysctldir=$(prefix)/lib/sysctl.d |
86 | +usergeneratordir=$(prefix)/lib/systemd/user-generators |
87 | +pkgincludedir=$(includedir)/systemd |
88 | +systemgeneratordir=$(rootlibexecdir)/system-generators |
89 | +systemshutdowndir=$(rootlibexecdir)/system-shutdown |
90 | +systemsleepdir=$(rootlibexecdir)/system-sleep |
91 | +systemunitdir=$(rootprefix)/lib/systemd/system |
92 | +systempresetdir=$(rootprefix)/lib/systemd/system-preset |
93 | +udevlibexecdir=$(rootprefix)/lib/udev |
94 | +udevhomedir=$(udevlibexecdir) |
95 | +udevrulesdir=$(udevlibexecdir)/rules.d |
96 | +udevhwdbdir=$(udevlibexecdir)/hwdb.d |
97 | +catalogdir=$(prefix)/lib/systemd/catalog |
98 | +kernelinstalldir = $(prefix)/lib/kernel/install.d |
99 | + |
100 | +# And these are the special ones for / |
101 | +rootprefix=@rootprefix@ |
102 | +rootbindir=$(rootprefix)/bin |
103 | +rootlibexecdir=$(rootprefix)/lib/systemd |
104 | + |
105 | +CLEANFILES = $(BUILT_SOURCES) |
106 | +DISTCLEANFILES = |
107 | +EXTRA_DIST = |
108 | +BUILT_SOURCES = |
109 | +INSTALL_EXEC_HOOKS = |
110 | +UNINSTALL_EXEC_HOOKS = |
111 | +INSTALL_DATA_HOOKS = |
112 | +UNINSTALL_DATA_HOOKS = |
113 | +DISTCLEAN_LOCAL_HOOKS = |
114 | +CLEAN_LOCAL_HOOKS = |
115 | +pkginclude_HEADERS = |
116 | +noinst_LTLIBRARIES = |
117 | +lib_LTLIBRARIES = |
118 | +include_HEADERS = |
119 | +noinst_DATA = |
120 | +pkgconfiglib_DATA = |
121 | +polkitpolicy_in_in_files = |
122 | +polkitpolicy_in_files = |
123 | +polkitpolicy_files = |
124 | +dist_udevrules_DATA = |
125 | +nodist_udevrules_DATA = |
126 | +dist_pkgsysconf_DATA = |
127 | +dist_pkgdata_DATA = |
128 | +dist_dbuspolicy_DATA = |
129 | +dbusinterface_DATA = |
130 | +dist_dbussystemservice_DATA = |
131 | +check_PROGRAMS = |
132 | +check_DATA = |
133 | +tests= |
134 | +manual_tests = |
135 | +if ENABLE_TESTS |
136 | +noinst_PROGRAMS = $(manual_tests) $(tests) |
137 | +TESTS = $(tests) |
138 | +else |
139 | +noinst_PROGRAMS = |
140 | +TESTS = |
141 | +endif |
142 | +udevlibexec_PROGRAMS = |
143 | + |
144 | +AM_CPPFLAGS = \ |
145 | + -include $(top_builddir)/config.h \ |
146 | + -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \ |
147 | + -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \ |
148 | + -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \ |
149 | + -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \ |
150 | + -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \ |
151 | + -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \ |
152 | + -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \ |
153 | + -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \ |
154 | + -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \ |
155 | + -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \ |
156 | + -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \ |
157 | + -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \ |
158 | + -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \ |
159 | + -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \ |
160 | + -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \ |
161 | + -DROOTPREFIX=\"$(rootprefix)\" \ |
162 | + -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \ |
163 | + -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \ |
164 | + -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \ |
165 | + -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \ |
166 | + -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \ |
167 | + -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \ |
168 | + -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \ |
169 | + -DX_SERVER=\"$(bindir)/X\" \ |
170 | + -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \ |
171 | + -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \ |
172 | + -DQUOTACHECK=\"$(QUOTACHECK)\" \ |
173 | + -I $(top_srcdir)/src \ |
174 | + -I $(top_srcdir)/src/shared \ |
175 | + -I $(top_srcdir)/src/login \ |
176 | + -I $(top_srcdir)/src/journal \ |
177 | + -I $(top_srcdir)/src/systemd \ |
178 | + -I $(top_builddir)/src/core \ |
179 | + -I $(top_srcdir)/src/core \ |
180 | + -I $(top_srcdir)/src/libudev \ |
181 | + -I $(top_srcdir)/src/udev \ |
182 | + -I $(top_builddir)/src/udev \ |
183 | + -I $(top_srcdir)/src/libsystemd-bus \ |
184 | + $(OUR_CPPFLAGS) |
185 | + |
186 | +AM_CFLAGS = $(OUR_CFLAGS) |
187 | +AM_LDFLAGS = $(OUR_LDFLAGS) |
188 | + |
189 | +# ------------------------------------------------------------------------------ |
190 | +define move-to-rootlibdir |
191 | + if test "$(libdir)" != "$(rootlibdir)"; then \ |
192 | + $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \ |
193 | + so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \ |
194 | + so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \ |
195 | + $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \ |
196 | + mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \ |
197 | + fi |
198 | +endef |
199 | + |
200 | +INSTALL_DIRS = |
201 | + |
202 | +RUNLEVEL1_TARGET_WANTS = |
203 | +RUNLEVEL2_TARGET_WANTS = |
204 | +RUNLEVEL3_TARGET_WANTS = |
205 | +RUNLEVEL4_TARGET_WANTS = |
206 | +RUNLEVEL5_TARGET_WANTS = |
207 | +SHUTDOWN_TARGET_WANTS = |
208 | +LOCAL_FS_TARGET_WANTS = |
209 | +MULTI_USER_TARGET_WANTS = |
210 | +SYSINIT_TARGET_WANTS = |
211 | +SOCKETS_TARGET_WANTS = |
212 | +TIMERS_TARGET_WANTS = |
213 | + |
214 | +SYSTEM_UNIT_ALIASES = |
215 | +USER_UNIT_ALIASES = |
216 | + |
217 | +GENERAL_ALIASES = |
218 | + |
219 | +install-target-wants-hook: |
220 | + what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && $(add-wants) |
221 | + what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && $(add-wants) |
222 | + what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && $(add-wants) |
223 | + what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && $(add-wants) |
224 | + what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && $(add-wants) |
225 | + what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && $(add-wants) |
226 | + what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && $(add-wants) |
227 | + what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && $(add-wants) |
228 | + what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && $(add-wants) |
229 | + what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && $(add-wants) |
230 | + what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && $(add-wants) |
231 | + |
232 | +define add-wants |
233 | + [ -z "$$what" ] || ( \ |
234 | + dir=$(DESTDIR)$(systemunitdir)/$$wants.wants && \ |
235 | + $(MKDIR_P) -m 0755 $$dir && \ |
236 | + cd $$dir && \ |
237 | + rm -f $$what && \ |
238 | + for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done ) |
239 | +endef |
240 | + |
241 | +install-directories-hook: |
242 | + $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS)) |
243 | + |
244 | +install-aliases-hook: |
245 | + set -- $(SYSTEM_UNIT_ALIASES) && \ |
246 | + dir=$(systemunitdir) && $(install-aliases) |
247 | + set -- $(USER_UNIT_ALIASES) && \ |
248 | + dir=$(userunitdir) && $(install-aliases) |
249 | + set -- $(GENERAL_ALIASES) && \ |
250 | + dir= && $(install-aliases) |
251 | + |
252 | +define install-aliases |
253 | + while [ -n "$$1" ]; do \ |
254 | + $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \ |
255 | + rm -f $(DESTDIR)$$dir/$$2 && \ |
256 | + $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \ |
257 | + shift 2 || exit $$?; \ |
258 | + done |
259 | +endef |
260 | + |
261 | +INSTALL_EXEC_HOOKS += \ |
262 | + install-target-wants-hook \ |
263 | + install-directories-hook \ |
264 | + install-aliases-hook |
265 | + |
266 | +# ------------------------------------------------------------------------------ |
267 | +AM_V_M4 = $(AM_V_M4_$(V)) |
268 | +AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY)) |
269 | +AM_V_M4_0 = @echo " M4 " $@; |
270 | + |
271 | +AM_V_XSLT = $(AM_V_XSLT_$(V)) |
272 | +AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY)) |
273 | +AM_V_XSLT_0 = @echo " XSLT " $@; |
274 | + |
275 | +AM_V_GPERF = $(AM_V_GPERF_$(V)) |
276 | +AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY)) |
277 | +AM_V_GPERF_0 = @echo " GPERF " $@; |
278 | + |
279 | +AM_V_LN = $(AM_V_LN_$(V)) |
280 | +AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY)) |
281 | +AM_V_LN_0 = @echo " LN " $@; |
282 | + |
283 | +# ------------------------------------------------------------------------------ |
284 | +rootbin_PROGRAMS = \ |
285 | + systemctl \ |
286 | + systemd-notify \ |
287 | + systemd-ask-password \ |
288 | + systemd-tty-ask-password-agent \ |
289 | + systemd-tmpfiles \ |
290 | + systemd-machine-id-setup |
291 | + |
292 | +bin_PROGRAMS = \ |
293 | + systemd-cgls \ |
294 | + systemd-cgtop \ |
295 | + systemd-stdio-bridge \ |
296 | + systemd-nspawn \ |
297 | + systemd-detect-virt \ |
298 | + systemd-delta \ |
299 | + systemd-analyze |
300 | + |
301 | +dist_bin_SCRIPTS = \ |
302 | + src/kernel-install/kernel-install |
303 | + |
304 | +dist_kernelinstall_SCRIPTS = \ |
305 | + src/kernel-install/50-depmod.install \ |
306 | + src/kernel-install/90-loaderentry.install |
307 | + |
308 | +rootlibexec_PROGRAMS = \ |
309 | + systemd \ |
310 | + systemd-cgroups-agent \ |
311 | + systemd-initctl \ |
312 | + systemd-update-utmp \ |
313 | + systemd-shutdownd \ |
314 | + systemd-shutdown \ |
315 | + systemd-remount-fs \ |
316 | + systemd-reply-password \ |
317 | + systemd-fsck \ |
318 | + systemd-timestamp \ |
319 | + systemd-ac-power \ |
320 | + systemd-sysctl \ |
321 | + systemd-sleep |
322 | + |
323 | +systemgenerator_PROGRAMS = \ |
324 | + systemd-getty-generator \ |
325 | + systemd-fstab-generator \ |
326 | + systemd-system-update-generator |
327 | + |
328 | +systemd_analyze_SOURCES = \ |
329 | + src/analyze/systemd-analyze.c |
330 | + |
331 | +systemd_analyze_CFLAGS = \ |
332 | + $(AM_CFLAGS) \ |
333 | + $(DBUS_CFLAGS) |
334 | + |
335 | +systemd_analyze_LDADD = \ |
336 | + libsystemd-shared.la \ |
337 | + libsystemd-dbus.la |
338 | + |
339 | +dist_bashcompletion_DATA = \ |
340 | + shell-completion/bash/journalctl \ |
341 | + shell-completion/bash/systemctl \ |
342 | + shell-completion/bash/systemd-analyze \ |
343 | + shell-completion/bash/udevadm |
344 | + |
345 | +dist_tmpfiles_DATA = \ |
346 | + tmpfiles.d/systemd.conf \ |
347 | + tmpfiles.d/tmp.conf \ |
348 | + tmpfiles.d/x11.conf |
349 | + |
350 | +dist_sysctl_DATA = \ |
351 | + sysctl.d/50-default.conf |
352 | + |
353 | +if HAVE_SYSV_COMPAT |
354 | +dist_tmpfiles_DATA += \ |
355 | + tmpfiles.d/legacy.conf |
356 | +endif |
357 | + |
358 | +dist_systemunit_DATA = \ |
359 | + units/graphical.target \ |
360 | + units/multi-user.target \ |
361 | + units/emergency.service \ |
362 | + units/emergency.target \ |
363 | + units/sysinit.target \ |
364 | + units/basic.target \ |
365 | + units/getty.target \ |
366 | + units/halt.target \ |
367 | + units/kexec.target \ |
368 | + units/local-fs.target \ |
369 | + units/local-fs-pre.target \ |
370 | + units/initrd.target \ |
371 | + units/initrd-fs.target \ |
372 | + units/initrd-root-fs.target \ |
373 | + units/remote-fs.target \ |
374 | + units/remote-fs-pre.target \ |
375 | + units/network.target \ |
376 | + units/network-online.target \ |
377 | + units/nss-lookup.target \ |
378 | + units/nss-user-lookup.target \ |
379 | + units/hibernate.target \ |
380 | + units/hybrid-sleep.target \ |
381 | + units/poweroff.target \ |
382 | + units/reboot.target \ |
383 | + units/rescue.target \ |
384 | + units/rpcbind.target \ |
385 | + units/time-sync.target \ |
386 | + units/shutdown.target \ |
387 | + units/final.target \ |
388 | + units/umount.target \ |
389 | + units/sigpwr.target \ |
390 | + units/sleep.target \ |
391 | + units/sockets.target \ |
392 | + units/timers.target \ |
393 | + units/paths.target \ |
394 | + units/suspend.target \ |
395 | + units/swap.target \ |
396 | + units/systemd-initctl.socket \ |
397 | + units/systemd-shutdownd.socket \ |
398 | + units/syslog.socket \ |
399 | + units/dev-hugepages.mount \ |
400 | + units/dev-mqueue.mount \ |
401 | + units/sys-kernel-config.mount \ |
402 | + units/sys-kernel-debug.mount \ |
403 | + units/sys-fs-fuse-connections.mount \ |
404 | + units/tmp.mount \ |
405 | + units/printer.target \ |
406 | + units/sound.target \ |
407 | + units/bluetooth.target \ |
408 | + units/smartcard.target \ |
409 | + units/systemd-tmpfiles-clean.timer \ |
410 | + units/quotaon.service \ |
411 | + units/systemd-ask-password-wall.path \ |
412 | + units/systemd-ask-password-console.path \ |
413 | + units/syslog.target \ |
414 | + units/systemd-udevd-control.socket \ |
415 | + units/systemd-udevd-kernel.socket \ |
416 | + units/system-update.target \ |
417 | + units/initrd-switch-root.target |
418 | + |
419 | +nodist_systemunit_DATA = \ |
420 | + units/getty@.service \ |
421 | + units/serial-getty@.service \ |
422 | + units/console-shell.service \ |
423 | + units/console-getty.service \ |
424 | + units/systemd-initctl.service \ |
425 | + units/systemd-shutdownd.service \ |
426 | + units/systemd-remount-fs.service \ |
427 | + units/systemd-update-utmp-runlevel.service \ |
428 | + units/systemd-update-utmp-shutdown.service \ |
429 | + units/systemd-tmpfiles-setup-dev.service \ |
430 | + units/systemd-tmpfiles-setup.service \ |
431 | + units/systemd-tmpfiles-clean.service \ |
432 | + units/systemd-ask-password-wall.service \ |
433 | + units/systemd-ask-password-console.service \ |
434 | + units/systemd-sysctl.service \ |
435 | + units/emergency.service \ |
436 | + units/rescue.service \ |
437 | + units/user@.service \ |
438 | + units/systemd-hibernate.service \ |
439 | + units/systemd-hybrid-sleep.service \ |
440 | + units/systemd-suspend.service \ |
441 | + units/systemd-halt.service \ |
442 | + units/systemd-poweroff.service \ |
443 | + units/systemd-reboot.service \ |
444 | + units/systemd-kexec.service \ |
445 | + units/systemd-fsck@.service \ |
446 | + units/systemd-fsck-root.service \ |
447 | + units/systemd-udevd.service \ |
448 | + units/systemd-udev-trigger.service \ |
449 | + units/systemd-udev-settle.service \ |
450 | + units/debug-shell.service \ |
451 | + units/initrd-parse-etc.service \ |
452 | + units/initrd-cleanup.service \ |
453 | + units/initrd-udevadm-cleanup-db.service \ |
454 | + units/initrd-switch-root.service \ |
455 | + units/systemd-nspawn@.service |
456 | + |
457 | +dist_userunit_DATA = \ |
458 | + units/user/default.target \ |
459 | + units/user/exit.target |
460 | + |
461 | +nodist_userunit_DATA = \ |
462 | + units/user/systemd-exit.service |
463 | + |
464 | +EXTRA_DIST += \ |
465 | + units/getty@.service.m4 \ |
466 | + units/serial-getty@.service.m4 \ |
467 | + units/console-shell.service.m4.in \ |
468 | + units/console-getty.service.m4.in \ |
469 | + units/rescue.service.m4.in \ |
470 | + units/systemd-initctl.service.in \ |
471 | + units/systemd-shutdownd.service.in \ |
472 | + units/systemd-remount-fs.service.in \ |
473 | + units/systemd-update-utmp-runlevel.service.in \ |
474 | + units/systemd-update-utmp-shutdown.service.in \ |
475 | + units/systemd-tmpfiles-setup-dev.service.in \ |
476 | + units/systemd-tmpfiles-setup.service.in \ |
477 | + units/systemd-tmpfiles-clean.service.in \ |
478 | + units/systemd-ask-password-wall.service.in \ |
479 | + units/systemd-ask-password-console.service.in \ |
480 | + units/systemd-sysctl.service.in \ |
481 | + units/emergency.service.in \ |
482 | + units/systemd-halt.service.in \ |
483 | + units/systemd-poweroff.service.in \ |
484 | + units/systemd-reboot.service.in \ |
485 | + units/systemd-kexec.service.in \ |
486 | + units/user/systemd-exit.service.in \ |
487 | + units/systemd-fsck@.service.in \ |
488 | + units/systemd-fsck-root.service.in \ |
489 | + units/user@.service.in \ |
490 | + units/systemd-udevd.service \ |
491 | + units/systemd-udev-trigger.service \ |
492 | + units/systemd-udev-settle.service \ |
493 | + units/debug-shell.service.in \ |
494 | + units/systemd-hibernate.service.in \ |
495 | + units/systemd-hybrid-sleep.service.in \ |
496 | + units/systemd-suspend.service.in \ |
497 | + units/quotaon.service.in \ |
498 | + units/initrd-parse-etc.service.in \ |
499 | + units/initrd-cleanup.service.in \ |
500 | + units/initrd-udevadm-cleanup-db.service.in \ |
501 | + units/initrd-switch-root.service.in \ |
502 | + units/systemd-nspawn@.service.in \ |
503 | + introspect.awk |
504 | + |
505 | +CLEANFILES += \ |
506 | + units/console-shell.service.m4 \ |
507 | + units/console-getty.service.m4 \ |
508 | + units/rescue.service.m4 |
509 | + |
510 | +if HAVE_SYSV_COMPAT |
511 | +nodist_systemunit_DATA += \ |
512 | + units/rc-local.service \ |
513 | + units/halt-local.service |
514 | + |
515 | +systemgenerator_PROGRAMS += \ |
516 | + systemd-rc-local-generator |
517 | +endif |
518 | + |
519 | +EXTRA_DIST += \ |
520 | + units/rc-local.service.in \ |
521 | + units/halt-local.service.in |
522 | + |
523 | +dist_doc_DATA = \ |
524 | + README \ |
525 | + NEWS \ |
526 | + LICENSE.LGPL2.1 \ |
527 | + LICENSE.GPL2 \ |
528 | + LICENSE.MIT \ |
529 | + DISTRO_PORTING |
530 | + |
531 | +@INTLTOOL_POLICY_RULE@ |
532 | + |
533 | +# ------------------------------------------------------------------------------ |
534 | + |
535 | +MANPAGES = |
536 | +MANPAGES_ALIAS = |
537 | + |
538 | +include Makefile-man.am |
539 | + |
540 | +XML_FILES = \ |
541 | + ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}} |
542 | +HTML_FILES = \ |
543 | + ${XML_FILES:.xml=.html} |
544 | +HTML_ALIAS = \ |
545 | + ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}} |
546 | + |
547 | +if ENABLE_MANPAGES |
548 | +man_MANS = \ |
549 | + $(MANPAGES) \ |
550 | + $(MANPAGES_ALIAS) |
551 | + |
552 | +noinst_DATA += \ |
553 | + $(HTML_FILES) \ |
554 | + $(HTML_ALIAS) |
555 | + |
556 | +CLEANFILES += \ |
557 | + $(man_MANS) \ |
558 | + $(HTML_FILES) \ |
559 | + $(HTML_ALIAS) |
560 | + |
561 | +docs/html/man: |
562 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
563 | + $(AM_V_LN)$(LN_S) -f ../../man $@ |
564 | + |
565 | +noinst_DATA += \ |
566 | + docs/html/man |
567 | + |
568 | +CLEANFILES += \ |
569 | + docs/html/man |
570 | + |
571 | +if HAVE_PYTHON |
572 | +man/index.html: man/systemd.index.html |
573 | + $(AM_V_LN)$(LN_S) -f systemd.index.html $@ |
574 | + |
575 | +noinst_DATA += \ |
576 | + man/index.html |
577 | + |
578 | +CLEANFILES += \ |
579 | + man/index.html |
580 | + |
581 | +XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml) |
582 | +NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES)) |
583 | +SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES)) |
584 | + |
585 | +update-man-list: make-man-rules.py $(XML_GLOB) |
586 | + $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp |
587 | + $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am |
588 | + @echo "Makefile-man.am has been regenerated" |
589 | + |
590 | +man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES) |
591 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
592 | + $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^) |
593 | + |
594 | +man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES) |
595 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
596 | + $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^) |
597 | + |
598 | +EXTRA_DIST += \ |
599 | + man/systemd.index.xml \ |
600 | + man/index.html \ |
601 | + man/systemd.directives.xml |
602 | + |
603 | +CLEANFILES += \ |
604 | + man/systemd.index.xml \ |
605 | + man/systemd.directives.xml |
606 | + |
607 | +endif |
608 | + |
609 | +endif |
610 | + |
611 | +EXTRA_DIST += \ |
612 | + $(XML_FILES) \ |
613 | + $(HTML_FILES) \ |
614 | + $(HTML_ALIAS) \ |
615 | + $(dist_MANS) \ |
616 | + make-man-index.py \ |
617 | + make-directive-index.py \ |
618 | + xml_helper.py |
619 | + |
620 | +# ------------------------------------------------------------------------------ |
621 | +noinst_LTLIBRARIES += \ |
622 | + libsystemd-shared.la |
623 | + |
624 | +libsystemd_shared_la_SOURCES = \ |
625 | + src/shared/linux/auto_dev-ioctl.h \ |
626 | + src/shared/linux/fanotify.h \ |
627 | + src/shared/linux/seccomp.h \ |
628 | + src/shared/linux/seccomp-bpf.h \ |
629 | + src/shared/missing.h \ |
630 | + src/shared/list.h \ |
631 | + src/shared/macro.h \ |
632 | + src/shared/def.h \ |
633 | + src/shared/sparse-endian.h \ |
634 | + src/shared/util.c \ |
635 | + src/shared/util.h \ |
636 | + src/shared/virt.c \ |
637 | + src/shared/virt.h \ |
638 | + src/shared/efivars.c \ |
639 | + src/shared/efivars.h \ |
640 | + src/shared/path-util.c \ |
641 | + src/shared/path-util.h \ |
642 | + src/shared/time-util.c \ |
643 | + src/shared/time-util.h \ |
644 | + src/shared/hashmap.c \ |
645 | + src/shared/hashmap.h \ |
646 | + src/shared/set.c \ |
647 | + src/shared/set.h \ |
648 | + src/shared/fdset.c \ |
649 | + src/shared/fdset.h \ |
650 | + src/shared/prioq.c \ |
651 | + src/shared/prioq.h \ |
652 | + src/shared/sleep-config.c \ |
653 | + src/shared/sleep-config.h \ |
654 | + src/shared/strv.c \ |
655 | + src/shared/strv.h \ |
656 | + src/shared/env-util.c \ |
657 | + src/shared/env-util.h \ |
658 | + src/shared/strbuf.c \ |
659 | + src/shared/strbuf.h \ |
660 | + src/shared/strxcpyx.c \ |
661 | + src/shared/strxcpyx.h \ |
662 | + src/shared/conf-parser.c \ |
663 | + src/shared/conf-parser.h \ |
664 | + src/shared/log.c \ |
665 | + src/shared/log.h \ |
666 | + src/shared/ratelimit.h \ |
667 | + src/shared/ratelimit.c \ |
668 | + src/shared/exit-status.c \ |
669 | + src/shared/exit-status.h \ |
670 | + src/shared/utf8.c \ |
671 | + src/shared/utf8.h \ |
672 | + src/shared/pager.c \ |
673 | + src/shared/pager.h \ |
674 | + src/shared/ioprio.h \ |
675 | + src/shared/socket-util.c \ |
676 | + src/shared/socket-util.h \ |
677 | + src/shared/conf-files.c \ |
678 | + src/shared/conf-files.h \ |
679 | + src/shared/cgroup-util.c \ |
680 | + src/shared/cgroup-util.h \ |
681 | + src/shared/cgroup-show.c \ |
682 | + src/shared/cgroup-show.h \ |
683 | + src/shared/unit-name.c \ |
684 | + src/shared/unit-name.h \ |
685 | + src/shared/utmp-wtmp.c \ |
686 | + src/shared/utmp-wtmp.h \ |
687 | + src/shared/watchdog.c \ |
688 | + src/shared/watchdog.h \ |
689 | + src/shared/spawn-ask-password-agent.c \ |
690 | + src/shared/spawn-ask-password-agent.h \ |
691 | + src/shared/replace-var.c \ |
692 | + src/shared/replace-var.h \ |
693 | + src/shared/spawn-polkit-agent.c \ |
694 | + src/shared/spawn-polkit-agent.h \ |
695 | + src/shared/hwclock.c \ |
696 | + src/shared/hwclock.h \ |
697 | + src/shared/time-dst.c \ |
698 | + src/shared/time-dst.h \ |
699 | + src/shared/calendarspec.c \ |
700 | + src/shared/calendarspec.h \ |
701 | + src/shared/fileio.c \ |
702 | + src/shared/fileio.h \ |
703 | + src/shared/output-mode.h \ |
704 | + src/shared/MurmurHash3.c \ |
705 | + src/shared/MurmurHash3.h |
706 | + |
707 | +#------------------------------------------------------------------------------- |
708 | +noinst_LTLIBRARIES += \ |
709 | + libsystemd-dbus.la |
710 | + |
711 | +libsystemd_dbus_la_SOURCES = \ |
712 | + src/shared/dbus-common.c \ |
713 | + src/shared/dbus-common.h \ |
714 | + src/shared/dbus-loop.c \ |
715 | + src/shared/dbus-loop.h \ |
716 | + src/shared/polkit.c \ |
717 | + src/shared/polkit.h |
718 | + |
719 | +libsystemd_dbus_la_CFLAGS = \ |
720 | + $(AM_CFLAGS) \ |
721 | + $(DBUS_CFLAGS) |
722 | + |
723 | +libsystemd_dbus_la_LIBADD = \ |
724 | + $(DBUS_LIBS) |
725 | + |
726 | +# ------------------------------------------------------------------------------ |
727 | +noinst_LTLIBRARIES += \ |
728 | + libsystemd-units.la |
729 | + |
730 | +libsystemd_units_la_SOURCES = \ |
731 | + src/shared/install.c \ |
732 | + src/shared/install.h \ |
733 | + src/shared/install-printf.c \ |
734 | + src/shared/install-printf.h \ |
735 | + src/shared/path-lookup.c \ |
736 | + src/shared/path-lookup.h \ |
737 | + src/shared/specifier.c \ |
738 | + src/shared/specifier.h |
739 | + |
740 | +libsystemd_units_la_CFLAGS = \ |
741 | + $(AM_CFLAGS) \ |
742 | + $(DBUS_CFLAGS) |
743 | + |
744 | +# ------------------------------------------------------------------------------ |
745 | +noinst_LTLIBRARIES += \ |
746 | + libsystemd-label.la |
747 | + |
748 | +libsystemd_label_la_SOURCES = \ |
749 | + src/shared/cgroup-label.c \ |
750 | + src/shared/socket-label.c \ |
751 | + src/shared/label.c \ |
752 | + src/shared/label.h \ |
753 | + src/shared/selinux-util.c \ |
754 | + src/shared/selinux-util.h \ |
755 | + src/shared/mkdir.c \ |
756 | + src/shared/mkdir.h \ |
757 | + src/shared/ask-password-api.c \ |
758 | + src/shared/ask-password-api.h \ |
759 | + src/shared/fileio-label.c \ |
760 | + src/shared/fileio-label.h \ |
761 | + src/shared/dev-setup.c \ |
762 | + src/shared/dev-setup.h |
763 | + |
764 | +libsystemd_label_la_CFLAGS = \ |
765 | + $(AM_CFLAGS) \ |
766 | + $(SELINUX_CFLAGS) |
767 | + |
768 | +libsystemd_label_la_LIBADD = \ |
769 | + $(SELINUX_LIBS) |
770 | + |
771 | +# ------------------------------------------------------------------------------ |
772 | +noinst_LTLIBRARIES += \ |
773 | + libsystemd-logs.la |
774 | + |
775 | +libsystemd_logs_la_SOURCES = \ |
776 | + src/shared/logs-show.c \ |
777 | + src/shared/logs-show.h |
778 | + |
779 | +libsystemd_logs_la_CFLAGS = \ |
780 | + $(AM_CFLAGS) |
781 | + |
782 | +libsystemd_logs_la_LIBADD = \ |
783 | + libsystemd-journal-internal.la \ |
784 | + libsystemd-id128-internal.la \ |
785 | + libsystemd-shared.la |
786 | + |
787 | +# ------------------------------------------------------------------------------ |
788 | +noinst_LTLIBRARIES += \ |
789 | + libsystemd-capability.la |
790 | + |
791 | +libsystemd_capability_la_SOURCES = \ |
792 | + src/shared/capability.c \ |
793 | + src/shared/capability.h |
794 | + |
795 | +libsystemd_capability_la_CFLAGS = \ |
796 | + $(AM_CFLAGS) \ |
797 | + $(CAP_CFLAGS) |
798 | + |
799 | +libsystemd_capability_la_LIBADD = \ |
800 | + $(CAP_LIBS) |
801 | + |
802 | +# ------------------------------------------------------------------------------ |
803 | +noinst_LTLIBRARIES += \ |
804 | + libsystemd-audit.la |
805 | + |
806 | +libsystemd_audit_la_SOURCES = \ |
807 | + src/shared/audit.c \ |
808 | + src/shared/audit.h |
809 | + |
810 | +libsystemd_audit_la_LIBADD = \ |
811 | + libsystemd-capability.la |
812 | + |
813 | +# ------------------------------------------------------------------------------ |
814 | +if HAVE_ACL |
815 | +noinst_LTLIBRARIES += \ |
816 | + libsystemd-acl.la |
817 | + |
818 | +libsystemd_acl_la_SOURCES = \ |
819 | + src/shared/acl-util.c \ |
820 | + src/shared/acl-util.h |
821 | + |
822 | +libsystemd_acl_la_CFLAGS = \ |
823 | + $(AM_CFLAGS) \ |
824 | + $(ACL_CFLAGS) |
825 | + |
826 | +libsystemd_acl_la_LIBADD = \ |
827 | + $(ACL_LIBS) \ |
828 | + libsystemd-shared.la |
829 | +endif |
830 | + |
831 | +# ------------------------------------------------------------------------------ |
832 | +noinst_LTLIBRARIES += \ |
833 | + libsystemd-core.la |
834 | + |
835 | +libsystemd_core_la_SOURCES = \ |
836 | + src/core/unit.c \ |
837 | + src/core/unit.h \ |
838 | + src/core/unit-printf.c \ |
839 | + src/core/unit-printf.h \ |
840 | + src/core/job.c \ |
841 | + src/core/job.h \ |
842 | + src/core/manager.c \ |
843 | + src/core/manager.h \ |
844 | + src/core/transaction.c \ |
845 | + src/core/transaction.h \ |
846 | + src/core/load-fragment.c \ |
847 | + src/core/load-fragment.h \ |
848 | + src/core/service.c \ |
849 | + src/core/service.h \ |
850 | + src/core/automount.c \ |
851 | + src/core/automount.h \ |
852 | + src/core/mount.c \ |
853 | + src/core/mount.h \ |
854 | + src/core/swap.c \ |
855 | + src/core/swap.h \ |
856 | + src/core/device.c \ |
857 | + src/core/device.h \ |
858 | + src/core/target.c \ |
859 | + src/core/target.h \ |
860 | + src/core/snapshot.c \ |
861 | + src/core/snapshot.h \ |
862 | + src/core/socket.c \ |
863 | + src/core/socket.h \ |
864 | + src/core/timer.c \ |
865 | + src/core/timer.h \ |
866 | + src/core/path.c \ |
867 | + src/core/path.h \ |
868 | + src/core/load-dropin.c \ |
869 | + src/core/load-dropin.h \ |
870 | + src/core/execute.c \ |
871 | + src/core/execute.h \ |
872 | + src/core/kill.c \ |
873 | + src/core/kill.h \ |
874 | + src/core/dbus.c \ |
875 | + src/core/dbus.h \ |
876 | + src/core/dbus-manager.c \ |
877 | + src/core/dbus-manager.h \ |
878 | + src/core/dbus-unit.c \ |
879 | + src/core/dbus-unit.h \ |
880 | + src/core/dbus-job.c \ |
881 | + src/core/dbus-job.h \ |
882 | + src/core/dbus-service.c \ |
883 | + src/core/dbus-service.h \ |
884 | + src/core/dbus-socket.c \ |
885 | + src/core/dbus-socket.h \ |
886 | + src/core/dbus-timer.c \ |
887 | + src/core/dbus-timer.h \ |
888 | + src/core/dbus-target.c \ |
889 | + src/core/dbus-target.h \ |
890 | + src/core/dbus-mount.c \ |
891 | + src/core/dbus-mount.h \ |
892 | + src/core/dbus-automount.c \ |
893 | + src/core/dbus-automount.h \ |
894 | + src/core/dbus-swap.c \ |
895 | + src/core/dbus-swap.h \ |
896 | + src/core/dbus-snapshot.c \ |
897 | + src/core/dbus-snapshot.h \ |
898 | + src/core/dbus-device.c \ |
899 | + src/core/dbus-device.h \ |
900 | + src/core/dbus-execute.c \ |
901 | + src/core/dbus-execute.h \ |
902 | + src/core/dbus-kill.c \ |
903 | + src/core/dbus-kill.h \ |
904 | + src/core/dbus-path.c \ |
905 | + src/core/dbus-path.h \ |
906 | + src/core/cgroup.c \ |
907 | + src/core/cgroup.h \ |
908 | + src/core/selinux-access.c \ |
909 | + src/core/selinux-access.h \ |
910 | + src/core/selinux-setup.c \ |
911 | + src/core/selinux-setup.h \ |
912 | + src/core/smack-setup.c \ |
913 | + src/core/smack-setup.h \ |
914 | + src/core/ima-setup.c \ |
915 | + src/core/ima-setup.h \ |
916 | + src/core/locale-setup.h \ |
917 | + src/core/locale-setup.c \ |
918 | + src/core/hostname-setup.c \ |
919 | + src/core/hostname-setup.h \ |
920 | + src/core/machine-id-setup.c \ |
921 | + src/core/machine-id-setup.h \ |
922 | + src/core/mount-setup.c \ |
923 | + src/core/mount-setup.h \ |
924 | + src/core/loopback-setup.h \ |
925 | + src/core/loopback-setup.c \ |
926 | + src/core/condition.c \ |
927 | + src/core/condition.h \ |
928 | + src/core/namespace.c \ |
929 | + src/core/namespace.h \ |
930 | + src/core/tcpwrap.c \ |
931 | + src/core/tcpwrap.h \ |
932 | + src/core/cgroup-attr.c \ |
933 | + src/core/cgroup-attr.h \ |
934 | + src/core/cgroup-semantics.c \ |
935 | + src/core/cgroup-semantics.h \ |
936 | + src/core/securebits.h \ |
937 | + src/core/initreq.h \ |
938 | + src/core/special.h \ |
939 | + src/core/bus-errors.h \ |
940 | + src/core/build.h \ |
941 | + src/core/sysfs-show.h \ |
942 | + src/core/switch-root.h \ |
943 | + src/core/switch-root.c \ |
944 | + src/core/killall.h \ |
945 | + src/core/killall.c \ |
946 | + src/core/syscall-list.c \ |
947 | + src/core/syscall-list.h \ |
948 | + src/core/audit-fd.c \ |
949 | + src/core/audit-fd.h \ |
950 | + src/core/sync.c \ |
951 | + src/core/sync.h |
952 | + |
953 | +if HAVE_KMOD |
954 | +libsystemd_core_la_SOURCES += \ |
955 | + src/core/kmod-setup.c \ |
956 | + src/core/kmod-setup.h |
957 | +endif |
958 | + |
959 | +nodist_libsystemd_core_la_SOURCES = \ |
960 | + src/core/load-fragment-gperf.c \ |
961 | + src/core/load-fragment-gperf-nulstr.c \ |
962 | + src/core/syscall-from-name.h \ |
963 | + src/core/syscall-to-name.h |
964 | + |
965 | +libsystemd_core_la_CFLAGS = \ |
966 | + $(AM_CFLAGS) \ |
967 | + $(DBUS_CFLAGS) \ |
968 | + $(LIBWRAP_CFLAGS) \ |
969 | + $(PAM_CFLAGS) \ |
970 | + $(AUDIT_CFLAGS) \ |
971 | + $(KMOD_CFLAGS) \ |
972 | + -pthread |
973 | + |
974 | +libsystemd_core_la_LIBADD = \ |
975 | + libsystemd-capability.la \ |
976 | + libsystemd-units.la \ |
977 | + libsystemd-label.la \ |
978 | + libsystemd-shared.la \ |
979 | + libsystemd-dbus.la \ |
980 | + libsystemd-audit.la \ |
981 | + libsystemd-id128-internal.la \ |
982 | + libsystemd-daemon.la \ |
983 | + libudev.la \ |
984 | + $(LIBWRAP_LIBS) \ |
985 | + $(PAM_LIBS) \ |
986 | + $(AUDIT_LIBS) \ |
987 | + $(CAP_LIBS) \ |
988 | + $(KMOD_LIBS) |
989 | + |
990 | +src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf |
991 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
992 | + $(AM_V_GEN)$(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@ |
993 | + |
994 | +EXTRA_DIST += \ |
995 | + src/core/load-fragment-gperf.gperf.m4 |
996 | + |
997 | +CLEANFILES += \ |
998 | + src/core/load-fragment-gperf.gperf \ |
999 | + src/core/load-fragment-gperf.c \ |
1000 | + src/core/load-fragment-gperf-nulstr.c \ |
1001 | + src/core/syscall-list.txt \ |
1002 | + src/core/syscall-from-name.gperf |
1003 | + |
1004 | +BUILT_SOURCES += \ |
1005 | + src/core/syscall-from-name.h \ |
1006 | + src/core/syscall-to-name.h |
1007 | + |
1008 | +src/core/syscall-list.txt: Makefile |
1009 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
1010 | + $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/syscall.h - < /dev/null | $(AWK) '/^#define[ \t]+__NR_[^ ]+[ \t]+[0-9(]/ { sub(/__NR_/, "", $$2); print $$2; }' > $@ |
1011 | + |
1012 | +src/core/syscall-from-name.gperf: src/core/syscall-list.txt Makefile |
1013 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
1014 | + $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct syscall_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, __NR_%s\n", $$1, $$1 }' < $< > $@ |
1015 | + |
1016 | +src/core/syscall-from-name.h: src/core/syscall-from-name.gperf Makefile |
1017 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
1018 | + $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@ |
1019 | + |
1020 | +src/core/syscall-to-name.h: src/core/syscall-list.txt Makefile |
1021 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
1022 | + $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@ |
1023 | + |
1024 | +# ------------------------------------------------------------------------------ |
1025 | +systemd_SOURCES = \ |
1026 | + src/core/main.c |
1027 | + |
1028 | +systemd_CFLAGS = \ |
1029 | + $(AM_CFLAGS) \ |
1030 | + $(DBUS_CFLAGS) |
1031 | + |
1032 | +systemd_LDADD = \ |
1033 | + libsystemd-core.la \ |
1034 | + libsystemd-daemon.la \ |
1035 | + libsystemd-id128-internal.la \ |
1036 | + libsystemd-dbus.la |
1037 | + |
1038 | +dist_pkgsysconf_DATA += \ |
1039 | + src/core/system.conf \ |
1040 | + src/core/user.conf |
1041 | + |
1042 | +dist_dbuspolicy_DATA += \ |
1043 | + src/core/org.freedesktop.systemd1.conf |
1044 | + |
1045 | +dist_dbussystemservice_DATA += \ |
1046 | + src/core/org.freedesktop.systemd1.service |
1047 | + |
1048 | +dbusinterface_DATA += \ |
1049 | + org.freedesktop.systemd1.Manager.xml \ |
1050 | + org.freedesktop.systemd1.Job.xml \ |
1051 | + org.freedesktop.systemd1.Unit.xml \ |
1052 | + org.freedesktop.systemd1.Service.xml \ |
1053 | + org.freedesktop.systemd1.Socket.xml \ |
1054 | + org.freedesktop.systemd1.Timer.xml \ |
1055 | + org.freedesktop.systemd1.Target.xml \ |
1056 | + org.freedesktop.systemd1.Device.xml \ |
1057 | + org.freedesktop.systemd1.Mount.xml \ |
1058 | + org.freedesktop.systemd1.Automount.xml \ |
1059 | + org.freedesktop.systemd1.Snapshot.xml \ |
1060 | + org.freedesktop.systemd1.Swap.xml \ |
1061 | + org.freedesktop.systemd1.Path.xml |
1062 | + |
1063 | +polkitpolicy_in_in_files += \ |
1064 | + src/core/org.freedesktop.systemd1.policy.in.in |
1065 | + |
1066 | +org.freedesktop.systemd1.%.xml: systemd |
1067 | + $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \ |
1068 | + $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \ |
1069 | + $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp |
1070 | + |
1071 | +pkgconfigdata_DATA = \ |
1072 | + src/core/systemd.pc |
1073 | + |
1074 | +nodist_rpmmacros_DATA = \ |
1075 | + src/core/macros.systemd |
1076 | + |
1077 | +EXTRA_DIST += \ |
1078 | + src/core/systemd.pc.in \ |
1079 | + src/core/macros.systemd.in |
1080 | + |
1081 | +CLEANFILES += \ |
1082 | + src/core/macros.systemd \ |
1083 | + src/core/org.freedesktop.systemd1.policy.in |
1084 | + |
1085 | +# ------------------------------------------------------------------------------ |
1086 | +manual_tests += \ |
1087 | + test-engine \ |
1088 | + test-ns \ |
1089 | + test-loopback \ |
1090 | + test-hostname \ |
1091 | + test-daemon \ |
1092 | + test-cgroup \ |
1093 | + test-install \ |
1094 | + test-watchdog \ |
1095 | + test-log |
1096 | + |
1097 | +tests += \ |
1098 | + test-job-type \ |
1099 | + test-env-replace \ |
1100 | + test-strbuf \ |
1101 | + test-strv \ |
1102 | + test-path-util \ |
1103 | + test-strxcpyx \ |
1104 | + test-unit-file \ |
1105 | + test-date \ |
1106 | + test-sleep \ |
1107 | + test-replace-var \ |
1108 | + test-calendarspec \ |
1109 | + test-strip-tab-ansi \ |
1110 | + test-prioq \ |
1111 | + test-fileio \ |
1112 | + test-time \ |
1113 | + test-hashmap |
1114 | + |
1115 | +EXTRA_DIST += \ |
1116 | + test/sched_idle_bad.service \ |
1117 | + test/sched_idle_ok.service \ |
1118 | + test/sched_rr_bad.service \ |
1119 | + test/sched_rr_ok.service \ |
1120 | + test/sched_rr_change.service |
1121 | + |
1122 | +test_engine_SOURCES = \ |
1123 | + src/test/test-engine.c |
1124 | + |
1125 | +test_engine_CFLAGS = \ |
1126 | + $(AM_CFLAGS) \ |
1127 | + $(DBUS_CFLAGS) |
1128 | + |
1129 | +test_engine_LDADD = \ |
1130 | + libsystemd-core.la \ |
1131 | + libsystemd-daemon.la \ |
1132 | + libsystemd-dbus.la |
1133 | + |
1134 | +test_job_type_SOURCES = \ |
1135 | + src/test/test-job-type.c |
1136 | + |
1137 | +test_job_type_CFLAGS = \ |
1138 | + $(AM_CFLAGS) \ |
1139 | + $(DBUS_CFLAGS) |
1140 | + |
1141 | +test_job_type_LDADD = \ |
1142 | + libsystemd-core.la \ |
1143 | + libsystemd-daemon.la |
1144 | + |
1145 | +test_ns_SOURCES = \ |
1146 | + src/test/test-ns.c |
1147 | + |
1148 | +test_ns_LDADD = \ |
1149 | + libsystemd-core.la |
1150 | + |
1151 | +test_loopback_SOURCES = \ |
1152 | + src/test/test-loopback.c |
1153 | + |
1154 | +test_loopback_LDADD = \ |
1155 | + libsystemd-shared.la \ |
1156 | + libsystemd-core.la |
1157 | + |
1158 | +test_hostname_SOURCES = \ |
1159 | + src/test/test-hostname.c |
1160 | + |
1161 | +test_hostname_LDADD = \ |
1162 | + libsystemd-core.la |
1163 | + |
1164 | +if ENABLE_EFI |
1165 | +manual_tests += \ |
1166 | + test-efivars |
1167 | + |
1168 | +test_efivars_SOURCES = \ |
1169 | + src/test/test-efivars.c |
1170 | + |
1171 | +test_efivars_LDADD = \ |
1172 | + libsystemd-shared.la |
1173 | +endif |
1174 | + |
1175 | +test_unit_name_SOURCES = \ |
1176 | + src/test/test-unit-name.c |
1177 | + |
1178 | +test_unit_name_CFLAGS = \ |
1179 | + $(AM_CFLAGS) \ |
1180 | + $(DBUS_CFLAGS) |
1181 | + |
1182 | +test_unit_name_LDADD = \ |
1183 | + libsystemd-core.la |
1184 | + |
1185 | +test_unit_file_SOURCES = \ |
1186 | + src/test/test-unit-file.c |
1187 | + |
1188 | +test_unit_file_CFLAGS = \ |
1189 | + $(AM_CFLAGS) \ |
1190 | + $(DBUS_CFLAGS) |
1191 | + |
1192 | +test_unit_file_LDADD = \ |
1193 | + libsystemd-core.la |
1194 | + |
1195 | +test_util_SOURCES = \ |
1196 | + src/test/test-util.c |
1197 | + |
1198 | +test_util_CFLAGS = \ |
1199 | + $(AM_CFLAGS) |
1200 | + |
1201 | +test_util_LDADD = \ |
1202 | + libsystemd-core.la |
1203 | + |
1204 | +test_hashmap_SOURCES = \ |
1205 | + src/test/test-hashmap.c |
1206 | + |
1207 | +test_hashmap_CFLAGS = \ |
1208 | + $(AM_CFLAGS) |
1209 | + |
1210 | +test_hashmap_LDADD = \ |
1211 | + libsystemd-core.la |
1212 | + |
1213 | +test_prioq_SOURCES = \ |
1214 | + src/test/test-prioq.c |
1215 | + |
1216 | +test_prioq_CFLAGS = \ |
1217 | + $(AM_CFLAGS) |
1218 | + |
1219 | +test_prioq_LDADD = \ |
1220 | + libsystemd-core.la |
1221 | + |
1222 | +test_fileio_SOURCES = \ |
1223 | + src/test/test-fileio.c |
1224 | + |
1225 | +test_fileio_CFLAGS = \ |
1226 | + $(AM_CFLAGS) |
1227 | + |
1228 | +test_fileio_LDADD = \ |
1229 | + libsystemd-core.la |
1230 | + |
1231 | +test_time_SOURCES = \ |
1232 | + src/test/test-time.c |
1233 | + |
1234 | +test_time_CFLAGS = \ |
1235 | + $(AM_CFLAGS) |
1236 | + |
1237 | +test_time_LDADD = \ |
1238 | + libsystemd-core.la |
1239 | + |
1240 | +test_log_SOURCES = \ |
1241 | + src/test/test-log.c |
1242 | + |
1243 | +test_log_LDADD = \ |
1244 | + libsystemd-core.la |
1245 | + |
1246 | +test_date_SOURCES = \ |
1247 | + src/test/test-date.c |
1248 | + |
1249 | +test_date_LDADD = \ |
1250 | + libsystemd-core.la |
1251 | + |
1252 | +test_sleep_SOURCES = \ |
1253 | + src/test/test-sleep.c |
1254 | + |
1255 | +test_sleep_LDADD = \ |
1256 | + libsystemd-core.la |
1257 | + |
1258 | +test_replace_var_SOURCES = \ |
1259 | + src/test/test-replace-var.c |
1260 | + |
1261 | +test_replace_var_LDADD = \ |
1262 | + libsystemd-shared.la |
1263 | + |
1264 | +test_calendarspec_SOURCES = \ |
1265 | + src/test/test-calendarspec.c |
1266 | + |
1267 | +test_calendarspec_LDADD = \ |
1268 | + libsystemd-shared.la |
1269 | + |
1270 | +test_strip_tab_ansi_SOURCES = \ |
1271 | + src/test/test-strip-tab-ansi.c |
1272 | + |
1273 | +test_strip_tab_ansi_LDADD = \ |
1274 | + libsystemd-shared.la |
1275 | + |
1276 | +test_daemon_SOURCES = \ |
1277 | + src/test/test-daemon.c |
1278 | + |
1279 | +test_daemon_LDADD = \ |
1280 | + libsystemd-shared.la \ |
1281 | + libsystemd-daemon.la |
1282 | + |
1283 | +test_cgroup_SOURCES = \ |
1284 | + src/test/test-cgroup.c |
1285 | + |
1286 | +test_cgroup_LDADD = \ |
1287 | + libsystemd-label.la \ |
1288 | + libsystemd-shared.la |
1289 | + |
1290 | +test_cgroup_util_SOURCES = \ |
1291 | + src/test/test-cgroup-util.c |
1292 | + |
1293 | +test_cgroup_util_LDADD = \ |
1294 | + libsystemd-label.la \ |
1295 | + libsystemd-shared.la |
1296 | + |
1297 | +test_env_replace_SOURCES = \ |
1298 | + src/test/test-env-replace.c |
1299 | + |
1300 | +test_env_replace_LDADD = \ |
1301 | + libsystemd-shared.la |
1302 | + |
1303 | +test_strbuf_SOURCES = \ |
1304 | + src/test/test-strbuf.c |
1305 | + |
1306 | +test_strbuf_LDADD = \ |
1307 | + libsystemd-shared.la |
1308 | + |
1309 | +test_strv_SOURCES = \ |
1310 | + src/test/test-strv.c |
1311 | + |
1312 | +test_strv_LDADD = \ |
1313 | + libsystemd-shared.la \ |
1314 | + libsystemd-units.la \ |
1315 | + libsystemd-id128-internal.la |
1316 | + |
1317 | +test_path_util_SOURCES = \ |
1318 | + src/test/test-path-util.c |
1319 | + |
1320 | +test_path_util_LDADD = \ |
1321 | + libsystemd-shared.la |
1322 | + |
1323 | +test_strxcpyx_SOURCES = \ |
1324 | + src/test/test-strxcpyx.c |
1325 | + |
1326 | +test_strxcpyx_LDADD = \ |
1327 | + libsystemd-shared.la |
1328 | + |
1329 | +test_install_SOURCES = \ |
1330 | + src/test/test-install.c |
1331 | + |
1332 | +test_install_CFLAGS = \ |
1333 | + $(AM_CFLAGS) \ |
1334 | + $(DBUS_CFLAGS) |
1335 | + |
1336 | +test_install_LDADD = \ |
1337 | + libsystemd-units.la \ |
1338 | + libsystemd-label.la \ |
1339 | + libsystemd-shared.la \ |
1340 | + libsystemd-id128-internal.la |
1341 | + |
1342 | +test_watchdog_SOURCES = \ |
1343 | + src/test/test-watchdog.c |
1344 | + |
1345 | +test_watchdog_LDADD = \ |
1346 | + libsystemd-shared.la |
1347 | + |
1348 | +test_sched_prio_SOURCES = \ |
1349 | + src/test/test-sched-prio.c |
1350 | + |
1351 | +test_sched_prio_CFLAGS = \ |
1352 | + $(AM_CFLAGS) \ |
1353 | + $(DBUS_CFLAGS) \ |
1354 | + -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)" |
1355 | + |
1356 | +test_sched_prio_LDADD = \ |
1357 | + libsystemd-core.la \ |
1358 | + libsystemd-daemon.la |
1359 | + |
1360 | +# ------------------------------------------------------------------------------ |
1361 | +systemd_initctl_SOURCES = \ |
1362 | + src/initctl/initctl.c |
1363 | + |
1364 | +systemd_initctl_CFLAGS = \ |
1365 | + $(AM_CFLAGS) \ |
1366 | + $(DBUS_CFLAGS) |
1367 | + |
1368 | +systemd_initctl_LDADD = \ |
1369 | + libsystemd-shared.la \ |
1370 | + libsystemd-daemon.la \ |
1371 | + libsystemd-dbus.la |
1372 | + |
1373 | +# ------------------------------------------------------------------------------ |
1374 | +systemd_update_utmp_SOURCES = \ |
1375 | + src/update-utmp/update-utmp.c |
1376 | + |
1377 | +systemd_update_utmp_CFLAGS = \ |
1378 | + $(AM_CFLAGS) \ |
1379 | + $(DBUS_CFLAGS) \ |
1380 | + $(AUDIT_CFLAGS) |
1381 | + |
1382 | +systemd_update_utmp_LDADD = \ |
1383 | + libsystemd-shared.la \ |
1384 | + libsystemd-dbus.la \ |
1385 | + $(AUDIT_LIBS) |
1386 | + |
1387 | +# ------------------------------------------------------------------------------ |
1388 | +systemd_shutdownd_SOURCES = \ |
1389 | + src/shutdownd/shutdownd.c |
1390 | + |
1391 | +systemd_shutdownd_LDADD = \ |
1392 | + libsystemd-label.la \ |
1393 | + libsystemd-shared.la \ |
1394 | + libsystemd-daemon.la |
1395 | + |
1396 | +pkginclude_HEADERS += \ |
1397 | + src/systemd/sd-shutdown.h |
1398 | + |
1399 | +# ------------------------------------------------------------------------------ |
1400 | +systemd_shutdown_SOURCES = \ |
1401 | + src/core/umount.c \ |
1402 | + src/core/umount.h \ |
1403 | + src/core/shutdown.c \ |
1404 | + src/core/mount-setup.c \ |
1405 | + src/core/mount-setup.h \ |
1406 | + src/core/killall.h \ |
1407 | + src/core/killall.c |
1408 | + |
1409 | +systemd_shutdown_LDADD = \ |
1410 | + libsystemd-label.la \ |
1411 | + libsystemd-shared.la \ |
1412 | + libudev.la |
1413 | + |
1414 | +# ------------------------------------------------------------------------------ |
1415 | +if HAVE_KMOD |
1416 | +systemd_modules_load_SOURCES = \ |
1417 | + src/modules-load/modules-load.c |
1418 | + |
1419 | +systemd_modules_load_CFLAGS = \ |
1420 | + $(AM_CFLAGS) \ |
1421 | + $(KMOD_CFLAGS) |
1422 | + |
1423 | +systemd_modules_load_LDADD = \ |
1424 | + libsystemd-shared.la \ |
1425 | + $(KMOD_LIBS) |
1426 | + |
1427 | +rootlibexec_PROGRAMS += \ |
1428 | + systemd-modules-load |
1429 | + |
1430 | +nodist_systemunit_DATA += \ |
1431 | + units/systemd-modules-load.service |
1432 | + |
1433 | +SYSINIT_TARGET_WANTS += \ |
1434 | + systemd-modules-load.service |
1435 | + |
1436 | +endif |
1437 | + |
1438 | +EXTRA_DIST += \ |
1439 | + units/systemd-modules-load.service.in |
1440 | + |
1441 | +# ------------------------------------------------------------------------------ |
1442 | +systemd_tmpfiles_SOURCES = \ |
1443 | + src/tmpfiles/tmpfiles.c |
1444 | + |
1445 | +systemd_tmpfiles_LDADD = \ |
1446 | + libsystemd-label.la \ |
1447 | + libsystemd-shared.la \ |
1448 | + libsystemd-capability.la |
1449 | + |
1450 | +# ------------------------------------------------------------------------------ |
1451 | +systemd_machine_id_setup_SOURCES = \ |
1452 | + src/machine-id-setup/machine-id-setup-main.c \ |
1453 | + src/core/machine-id-setup.c \ |
1454 | + src/core/machine-id-setup.h |
1455 | + |
1456 | +systemd_machine_id_setup_LDADD = \ |
1457 | + libsystemd-label.la \ |
1458 | + libsystemd-shared.la \ |
1459 | + libsystemd-id128-internal.la |
1460 | + |
1461 | +# ------------------------------------------------------------------------------ |
1462 | +systemd_sysctl_SOURCES = \ |
1463 | + src/sysctl/sysctl.c |
1464 | + |
1465 | +systemd_sysctl_LDADD = \ |
1466 | + libsystemd-shared.la |
1467 | + |
1468 | +# ------------------------------------------------------------------------------ |
1469 | +systemd_sleep_SOURCES = \ |
1470 | + src/sleep/sleep.c |
1471 | + |
1472 | +systemd_sleep_LDADD = \ |
1473 | + libsystemd-shared.la |
1474 | + |
1475 | +# ------------------------------------------------------------------------------ |
1476 | +systemd_fsck_SOURCES = \ |
1477 | + src/fsck/fsck.c |
1478 | + |
1479 | +systemd_fsck_CFLAGS = \ |
1480 | + $(AM_CFLAGS) \ |
1481 | + $(DBUS_CFLAGS) |
1482 | + |
1483 | +systemd_fsck_LDADD = \ |
1484 | + libsystemd-shared.la \ |
1485 | + libsystemd-dbus.la \ |
1486 | + libudev.la |
1487 | + |
1488 | +# ------------------------------------------------------------------------------ |
1489 | +systemd_timestamp_SOURCES = \ |
1490 | + src/timestamp/timestamp.c |
1491 | + |
1492 | +systemd_timestamp_LDADD = \ |
1493 | + libsystemd-shared.la |
1494 | + |
1495 | +# ------------------------------------------------------------------------------ |
1496 | +systemd_ac_power_SOURCES = \ |
1497 | + src/ac-power/ac-power.c |
1498 | + |
1499 | +systemd_ac_power_LDADD = \ |
1500 | + libsystemd-shared.la \ |
1501 | + libudev.la |
1502 | + |
1503 | +# ------------------------------------------------------------------------------ |
1504 | +systemd_detect_virt_SOURCES = \ |
1505 | + src/detect-virt/detect-virt.c |
1506 | + |
1507 | +systemd_detect_virt_LDADD = \ |
1508 | + libsystemd-shared.la |
1509 | + |
1510 | +systemd-detect-virt-install-hook: |
1511 | + -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt |
1512 | + |
1513 | +INSTALL_EXEC_HOOKS += \ |
1514 | + systemd-detect-virt-install-hook |
1515 | + |
1516 | +# ------------------------------------------------------------------------------ |
1517 | +systemd_delta_SOURCES = \ |
1518 | + src/delta/delta.c |
1519 | + |
1520 | +systemd_delta_LDADD = \ |
1521 | + libsystemd-shared.la |
1522 | + |
1523 | +# ------------------------------------------------------------------------------ |
1524 | +systemd_getty_generator_SOURCES = \ |
1525 | + src/getty-generator/getty-generator.c |
1526 | + |
1527 | +systemd_getty_generator_LDADD = \ |
1528 | + libsystemd-label.la \ |
1529 | + libsystemd-shared.la |
1530 | + |
1531 | +# ------------------------------------------------------------------------------ |
1532 | +systemd_fstab_generator_SOURCES = \ |
1533 | + src/fstab-generator/fstab-generator.c \ |
1534 | + src/core/mount-setup.c |
1535 | + |
1536 | +systemd_fstab_generator_LDADD = \ |
1537 | + libsystemd-label.la \ |
1538 | + libsystemd-shared.la |
1539 | + |
1540 | +# ------------------------------------------------------------------------------ |
1541 | +systemd_system_update_generator_SOURCES = \ |
1542 | + src/system-update-generator/system-update-generator.c |
1543 | + |
1544 | +systemd_system_update_generator_LDADD = \ |
1545 | + libsystemd-label.la \ |
1546 | + libsystemd-shared.la |
1547 | + |
1548 | +# ------------------------------------------------------------------------------ |
1549 | +if ENABLE_EFI |
1550 | +systemgenerator_PROGRAMS += \ |
1551 | + systemd-efi-boot-generator |
1552 | + |
1553 | +systemd_efi_boot_generator_SOURCES = \ |
1554 | + src/efi-boot-generator/efi-boot-generator.c |
1555 | + |
1556 | +systemd_efi_boot_generator_LDADD = \ |
1557 | + libsystemd-label.la \ |
1558 | + libsystemd-shared.la |
1559 | +endif |
1560 | + |
1561 | +# ------------------------------------------------------------------------------ |
1562 | +systemd_rc_local_generator_SOURCES = \ |
1563 | + src/rc-local-generator/rc-local-generator.c |
1564 | + |
1565 | +systemd_rc_local_generator_LDADD = \ |
1566 | + libsystemd-label.la \ |
1567 | + libsystemd-shared.la |
1568 | + |
1569 | +# ------------------------------------------------------------------------------ |
1570 | +systemd_remount_fs_SOURCES = \ |
1571 | + src/remount-fs/remount-fs.c \ |
1572 | + src/core/mount-setup.c \ |
1573 | + src/core/mount-setup.h |
1574 | + |
1575 | +systemd_remount_fs_LDADD = \ |
1576 | + libsystemd-label.la \ |
1577 | + libsystemd-shared.la |
1578 | + |
1579 | +# ------------------------------------------------------------------------------ |
1580 | +systemd_cgroups_agent_SOURCES = \ |
1581 | + src/cgroups-agent/cgroups-agent.c |
1582 | + |
1583 | +systemd_cgroups_agent_CFLAGS = \ |
1584 | + $(AM_CFLAGS) \ |
1585 | + $(DBUS_CFLAGS) |
1586 | + |
1587 | +systemd_cgroups_agent_LDADD = \ |
1588 | + libsystemd-shared.la \ |
1589 | + libsystemd-dbus.la |
1590 | + |
1591 | +# ------------------------------------------------------------------------------ |
1592 | +systemctl_SOURCES = \ |
1593 | + src/systemctl/systemctl.c |
1594 | + |
1595 | +systemctl_CFLAGS = \ |
1596 | + $(AM_CFLAGS) \ |
1597 | + $(DBUS_CFLAGS) |
1598 | + |
1599 | +systemctl_LDADD = \ |
1600 | + libsystemd-units.la \ |
1601 | + libsystemd-label.la \ |
1602 | + libsystemd-shared.la \ |
1603 | + libsystemd-daemon.la \ |
1604 | + libsystemd-dbus.la \ |
1605 | + libsystemd-logs.la |
1606 | + |
1607 | +# ------------------------------------------------------------------------------ |
1608 | +systemd_notify_SOURCES = \ |
1609 | + src/notify/notify.c \ |
1610 | + src/readahead/sd-readahead.c |
1611 | + |
1612 | +systemd_notify_LDADD = \ |
1613 | + libsystemd-shared.la \ |
1614 | + libsystemd-daemon.la |
1615 | + |
1616 | +# ------------------------------------------------------------------------------ |
1617 | +systemd_ask_password_SOURCES = \ |
1618 | + src/ask-password/ask-password.c |
1619 | + |
1620 | +systemd_ask_password_LDADD = \ |
1621 | + libsystemd-label.la \ |
1622 | + libsystemd-shared.la |
1623 | + |
1624 | +# ------------------------------------------------------------------------------ |
1625 | +systemd_reply_password_SOURCES = \ |
1626 | + src/reply-password/reply-password.c |
1627 | + |
1628 | +systemd_reply_password_LDADD = \ |
1629 | + libsystemd-shared.la |
1630 | + |
1631 | +# ------------------------------------------------------------------------------ |
1632 | +systemd_cgls_SOURCES = \ |
1633 | + src/cgls/cgls.c |
1634 | + |
1635 | +systemd_cgls_LDADD = \ |
1636 | + libsystemd-shared.la |
1637 | + |
1638 | +# ------------------------------------------------------------------------------ |
1639 | +systemd_cgtop_SOURCES = \ |
1640 | + src/cgtop/cgtop.c |
1641 | + |
1642 | +systemd_cgtop_LDADD = \ |
1643 | + libsystemd-shared.la |
1644 | + |
1645 | +# ------------------------------------------------------------------------------ |
1646 | +systemd_nspawn_SOURCES = \ |
1647 | + src/nspawn/nspawn.c \ |
1648 | + src/core/mount-setup.c \ |
1649 | + src/core/mount-setup.h \ |
1650 | + src/core/loopback-setup.c \ |
1651 | + src/core/loopback-setup.h |
1652 | + |
1653 | +systemd_nspawn_LDADD = \ |
1654 | + libsystemd-label.la \ |
1655 | + libsystemd-capability.la \ |
1656 | + libsystemd-shared.la \ |
1657 | + libsystemd-daemon.la \ |
1658 | + libsystemd-id128-internal.la |
1659 | + |
1660 | +# ------------------------------------------------------------------------------ |
1661 | +systemd_stdio_bridge_SOURCES = \ |
1662 | + src/stdio-bridge/stdio-bridge.c |
1663 | + |
1664 | +systemd_stdio_bridge_LDADD = \ |
1665 | + libsystemd-shared.la \ |
1666 | + libsystemd-bus.la \ |
1667 | + libsystemd-daemon.la |
1668 | + |
1669 | +# ------------------------------------------------------------------------------ |
1670 | +systemd_tty_ask_password_agent_SOURCES = \ |
1671 | + src/tty-ask-password-agent/tty-ask-password-agent.c |
1672 | + |
1673 | +systemd_tty_ask_password_agent_LDADD = \ |
1674 | + libsystemd-label.la \ |
1675 | + libsystemd-shared.la |
1676 | + |
1677 | +# ------------------------------------------------------------------------------ |
1678 | +libsystemd_daemon_la_SOURCES = \ |
1679 | + src/libsystemd-daemon/sd-daemon.c |
1680 | + |
1681 | +libsystemd_daemon_internal_la_SOURCES = \ |
1682 | + $(libsystemd_daemon_la_SOURCES) |
1683 | + |
1684 | +libsystemd_daemon_la_CFLAGS = \ |
1685 | + $(AM_CFLAGS) \ |
1686 | + -fvisibility=hidden \ |
1687 | + -DSD_EXPORT_SYMBOLS |
1688 | + |
1689 | +libsystemd_daemon_la_LDFLAGS = \ |
1690 | + $(AM_LDFLAGS) \ |
1691 | + -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \ |
1692 | + -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym |
1693 | + |
1694 | +pkginclude_HEADERS += \ |
1695 | + src/systemd/sd-daemon.h |
1696 | + |
1697 | +# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed |
1698 | +libsystemd-daemon-install-hook: |
1699 | + libname=libsystemd-daemon.so && $(move-to-rootlibdir) |
1700 | + |
1701 | +libsystemd-daemon-uninstall-hook: |
1702 | + rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so* |
1703 | + |
1704 | +INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook |
1705 | +UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook |
1706 | + |
1707 | +lib_LTLIBRARIES += \ |
1708 | + libsystemd-daemon.la |
1709 | + |
1710 | +noinst_LTLIBRARIES += \ |
1711 | + libsystemd-daemon-internal.la |
1712 | + |
1713 | +pkgconfiglib_DATA += \ |
1714 | + src/libsystemd-daemon/libsystemd-daemon.pc |
1715 | + |
1716 | +EXTRA_DIST += \ |
1717 | + src/libsystemd-daemon/libsystemd-daemon.pc.in \ |
1718 | + src/libsystemd-daemon/libsystemd-daemon.sym |
1719 | + |
1720 | +# ------------------------------------------------------------------------------ |
1721 | +libsystemd_bus_la_SOURCES = \ |
1722 | + src/systemd/sd-bus.h \ |
1723 | + src/systemd/sd-bus-protocol.h \ |
1724 | + src/libsystemd-bus/sd-bus.c \ |
1725 | + src/libsystemd-bus/bus-control.c \ |
1726 | + src/libsystemd-bus/bus-control.h \ |
1727 | + src/libsystemd-bus/bus-error.c \ |
1728 | + src/libsystemd-bus/bus-error.h \ |
1729 | + src/libsystemd-bus/bus-internal.c \ |
1730 | + src/libsystemd-bus/bus-internal.h \ |
1731 | + src/libsystemd-bus/bus-socket.c \ |
1732 | + src/libsystemd-bus/bus-socket.h \ |
1733 | + src/libsystemd-bus/bus-kernel.c \ |
1734 | + src/libsystemd-bus/bus-kernel.h \ |
1735 | + src/libsystemd-bus/bus-message.c \ |
1736 | + src/libsystemd-bus/bus-message.h \ |
1737 | + src/libsystemd-bus/bus-signature.c \ |
1738 | + src/libsystemd-bus/bus-signature.h \ |
1739 | + src/libsystemd-bus/bus-type.c \ |
1740 | + src/libsystemd-bus/bus-type.h \ |
1741 | + src/libsystemd-bus/bus-match.c \ |
1742 | + src/libsystemd-bus/bus-match.h \ |
1743 | + src/libsystemd-bus/bus-bloom.c \ |
1744 | + src/libsystemd-bus/bus-bloom.h \ |
1745 | + src/libsystemd-bus/kdbus.h |
1746 | + |
1747 | +libsystemd_bus_la_LIBADD = \ |
1748 | + libsystemd-id128-internal.la \ |
1749 | + libsystemd-shared.la \ |
1750 | + libsystemd-daemon.la |
1751 | + |
1752 | +noinst_LTLIBRARIES += \ |
1753 | + libsystemd-bus.la |
1754 | + |
1755 | +tests += \ |
1756 | + test-bus-marshal \ |
1757 | + test-bus-signature \ |
1758 | + test-bus-chat \ |
1759 | + test-bus-server \ |
1760 | + test-bus-match \ |
1761 | + test-bus-kernel |
1762 | + |
1763 | +noinst_PROGRAMS += \ |
1764 | + busctl |
1765 | + |
1766 | +test_bus_marshal_SOURCES = \ |
1767 | + src/libsystemd-bus/test-bus-marshal.c |
1768 | + |
1769 | +test_bus_marshal_LDADD = \ |
1770 | + libsystemd-shared.la \ |
1771 | + libsystemd-bus.la \ |
1772 | + $(GLIB_LIBS) \ |
1773 | + $(DBUS_LIBS) |
1774 | + |
1775 | +test_bus_marshal_CFLAGS = \ |
1776 | + $(AM_CFLAGS) \ |
1777 | + $(GLIB_CFLAGS) \ |
1778 | + $(DBUS_CFLAGS) |
1779 | + |
1780 | +test_bus_signature_SOURCES = \ |
1781 | + src/libsystemd-bus/test-bus-signature.c |
1782 | + |
1783 | +test_bus_signature_LDADD = \ |
1784 | + libsystemd-shared.la \ |
1785 | + libsystemd-bus.la |
1786 | + |
1787 | +test_bus_chat_SOURCES = \ |
1788 | + src/libsystemd-bus/test-bus-chat.c |
1789 | + |
1790 | +test_bus_chat_CFLAGS = \ |
1791 | + $(AM_CFLAGS) \ |
1792 | + -pthread |
1793 | + |
1794 | +test_bus_chat_LDADD = \ |
1795 | + libsystemd-shared.la \ |
1796 | + libsystemd-bus.la \ |
1797 | + libsystemd-id128-internal.la |
1798 | + |
1799 | +test_bus_server_SOURCES = \ |
1800 | + src/libsystemd-bus/test-bus-server.c |
1801 | + |
1802 | +test_bus_server_CFLAGS = \ |
1803 | + $(AM_CFLAGS) \ |
1804 | + -pthread |
1805 | + |
1806 | +test_bus_server_LDADD = \ |
1807 | + libsystemd-shared.la \ |
1808 | + libsystemd-bus.la \ |
1809 | + libsystemd-id128-internal.la |
1810 | + |
1811 | +test_bus_match_SOURCES = \ |
1812 | + src/libsystemd-bus/test-bus-match.c |
1813 | + |
1814 | +test_bus_match_CFLAGS = \ |
1815 | + $(AM_CFLAGS) |
1816 | + |
1817 | +test_bus_match_LDADD = \ |
1818 | + libsystemd-shared.la \ |
1819 | + libsystemd-bus.la \ |
1820 | + libsystemd-id128-internal.la |
1821 | + |
1822 | +test_bus_kernel_SOURCES = \ |
1823 | + src/libsystemd-bus/test-bus-kernel.c |
1824 | + |
1825 | +test_bus_kernel_CFLAGS = \ |
1826 | + $(AM_CFLAGS) |
1827 | + |
1828 | +test_bus_kernel_LDADD = \ |
1829 | + libsystemd-shared.la \ |
1830 | + libsystemd-bus.la \ |
1831 | + libsystemd-id128-internal.la |
1832 | + |
1833 | +busctl_SOURCES = \ |
1834 | + src/libsystemd-bus/busctl.c |
1835 | + |
1836 | +busctl_LDADD = \ |
1837 | + libsystemd-shared.la \ |
1838 | + libsystemd-bus.la |
1839 | + |
1840 | +# ------------------------------------------------------------------------------ |
1841 | +if ENABLE_GTK_DOC |
1842 | +SUBDIRS += \ |
1843 | + docs/libudev |
1844 | + |
1845 | +noinst_DATA += \ |
1846 | + docs/html/libudev \ |
1847 | + docs/html/gudev |
1848 | +endif |
1849 | + |
1850 | +include_HEADERS += \ |
1851 | + src/libudev/libudev.h |
1852 | + |
1853 | +lib_LTLIBRARIES += \ |
1854 | + libudev.la |
1855 | + |
1856 | +libudev_la_SOURCES =\ |
1857 | + src/libudev/libudev-private.h \ |
1858 | + src/libudev/libudev.c \ |
1859 | + src/libudev/libudev-list.c \ |
1860 | + src/libudev/libudev-util.c \ |
1861 | + src/libudev/libudev-device.c \ |
1862 | + src/libudev/libudev-enumerate.c \ |
1863 | + src/libudev/libudev-monitor.c \ |
1864 | + src/libudev/libudev-queue.c \ |
1865 | + src/libudev/libudev-hwdb-def.h \ |
1866 | + src/libudev/libudev-hwdb.c |
1867 | + |
1868 | +libudev_la_CFLAGS = \ |
1869 | + $(AM_CFLAGS) \ |
1870 | + -fvisibility=hidden |
1871 | + |
1872 | +libudev_la_LDFLAGS = \ |
1873 | + $(AM_LDFLAGS) \ |
1874 | + -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \ |
1875 | + -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym |
1876 | + |
1877 | +libudev_la_LIBADD = \ |
1878 | + libsystemd-shared.la \ |
1879 | + libsystemd-daemon-internal.la \ |
1880 | + libsystemd-id128-internal.la |
1881 | + |
1882 | +pkgconfiglib_DATA += \ |
1883 | + src/libudev/libudev.pc |
1884 | + |
1885 | +EXTRA_DIST += \ |
1886 | + src/libudev/libudev.pc.in \ |
1887 | + src/libudev/libudev.sym |
1888 | + |
1889 | +CLEANFILES += \ |
1890 | + src/libudev/libudev.pc \ |
1891 | + docs/html/libudev \ |
1892 | + docs/html/gudev |
1893 | + |
1894 | +docs/html/libudev: |
1895 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
1896 | + $(AM_V_LN)$(LN_S) -f ../libudev/html $@ |
1897 | + |
1898 | +docs/html/gudev: |
1899 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
1900 | + $(AM_V_LN)$(LN_S) -f ../gudev/html $@ |
1901 | + |
1902 | +# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed |
1903 | +libudev-install-hook: |
1904 | + libname=libudev.so && $(move-to-rootlibdir) |
1905 | + |
1906 | +libudev-uninstall-hook: |
1907 | + rm -f $(DESTDIR)$(rootlibdir)/libudev.so* |
1908 | + |
1909 | +INSTALL_EXEC_HOOKS += libudev-install-hook |
1910 | +UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook |
1911 | + |
1912 | +# ------------------------------------------------------------------------------ |
1913 | +noinst_LTLIBRARIES += \ |
1914 | + libudev-private.la |
1915 | + |
1916 | +libudev_private_la_SOURCES =\ |
1917 | + $(libudev_la_SOURCES) \ |
1918 | + src/libudev/libudev-device-private.c \ |
1919 | + src/libudev/libudev-queue-private.c |
1920 | + |
1921 | +libudev_private_la_CFLAGS = \ |
1922 | + $(AM_CFLAGS) \ |
1923 | + -fvisibility=default |
1924 | + |
1925 | +libudev_private_la_LIBADD = \ |
1926 | + libsystemd-shared.la |
1927 | + |
1928 | +# ------------------------------------------------------------------------------ |
1929 | +INSTALL_DIRS += \ |
1930 | + $(sysconfdir)/udev/rules.d \ |
1931 | + $(sysconfdir)/udev/hwdb.d |
1932 | + |
1933 | +dist_udevrules_DATA += \ |
1934 | + rules/99-systemd.rules \ |
1935 | + rules/42-usb-hid-pm.rules \ |
1936 | + rules/50-udev-default.rules \ |
1937 | + rules/60-keyboard.rules \ |
1938 | + rules/60-persistent-storage-tape.rules \ |
1939 | + rules/60-persistent-serial.rules \ |
1940 | + rules/60-persistent-input.rules \ |
1941 | + rules/60-persistent-alsa.rules \ |
1942 | + rules/60-persistent-storage.rules \ |
1943 | + rules/64-btrfs.rules \ |
1944 | + rules/75-net-description.rules \ |
1945 | + rules/75-tty-description.rules \ |
1946 | + rules/78-sound-card.rules \ |
1947 | + rules/80-net-name-slot.rules \ |
1948 | + rules/95-udev-late.rules |
1949 | + |
1950 | +dist_udevhwdb_DATA = \ |
1951 | + hwdb/20-pci-vendor-model.hwdb \ |
1952 | + hwdb/20-pci-classes.hwdb \ |
1953 | + hwdb/20-usb-vendor-model.hwdb \ |
1954 | + hwdb/20-usb-classes.hwdb \ |
1955 | + hwdb/20-bluetooth-vendor-product.hwdb \ |
1956 | + hwdb/20-acpi-vendor.hwdb \ |
1957 | + hwdb/20-OUI.hwdb |
1958 | + |
1959 | +udevconfdir = $(sysconfdir)/udev |
1960 | +dist_udevconf_DATA = \ |
1961 | + src/udev/udev.conf |
1962 | + |
1963 | +sharepkgconfigdir = $(datadir)/pkgconfig |
1964 | +sharepkgconfig_DATA = \ |
1965 | + src/udev/udev.pc |
1966 | + |
1967 | +EXTRA_DIST += \ |
1968 | + rules/99-systemd.rules.in \ |
1969 | + src/udev/udev.pc.in |
1970 | + |
1971 | +CLEANFILES += \ |
1972 | + rules/99-systemd.rules \ |
1973 | + src/udev/udev.pc |
1974 | + |
1975 | +EXTRA_DIST += \ |
1976 | + units/systemd-udevd.service.in \ |
1977 | + units/systemd-udev-trigger.service.in \ |
1978 | + units/systemd-udev-settle.service.in |
1979 | + |
1980 | +CLEANFILES += \ |
1981 | + units/systemd-udevd.service \ |
1982 | + units/systemd-udev-trigger.service \ |
1983 | + units/systemd-udev-settle.service |
1984 | + |
1985 | +SOCKETS_TARGET_WANTS += \ |
1986 | + systemd-udevd-control.socket \ |
1987 | + systemd-udevd-kernel.socket |
1988 | +SYSINIT_TARGET_WANTS += \ |
1989 | + systemd-udevd.service \ |
1990 | + systemd-udev-trigger.service |
1991 | + |
1992 | +rootbin_PROGRAMS += \ |
1993 | + udevadm |
1994 | + |
1995 | +rootlibexec_PROGRAMS += \ |
1996 | + systemd-udevd |
1997 | + |
1998 | +noinst_LTLIBRARIES += \ |
1999 | + libudev-core.la |
2000 | + |
2001 | +src/udev/keyboard-keys.txt: Makefile |
2002 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
2003 | + $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/input.h - < /dev/null | $(AWK) '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@ |
2004 | + |
2005 | +src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt Makefile |
2006 | + $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@ |
2007 | + |
2008 | +src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf Makefile |
2009 | + $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@ |
2010 | + |
2011 | +src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt Makefile |
2012 | + $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@ |
2013 | + |
2014 | +libudev_core_la_SOURCES = \ |
2015 | + src/udev/udev.h \ |
2016 | + src/udev/udev-event.c \ |
2017 | + src/udev/udev-watch.c \ |
2018 | + src/udev/udev-node.c \ |
2019 | + src/udev/udev-rules.c \ |
2020 | + src/udev/udev-ctrl.c \ |
2021 | + src/udev/udev-builtin.c \ |
2022 | + src/udev/udev-builtin-btrfs.c \ |
2023 | + src/udev/udev-builtin-hwdb.c \ |
2024 | + src/udev/udev-builtin-input_id.c \ |
2025 | + src/udev/udev-builtin-keyboard.c \ |
2026 | + src/udev/udev-builtin-net_id.c \ |
2027 | + src/udev/udev-builtin-path_id.c \ |
2028 | + src/udev/udev-builtin-usb_id.c |
2029 | + |
2030 | +nodist_libudev_core_la_SOURCES = \ |
2031 | + src/udev/keyboard-keys-from-name.h \ |
2032 | + src/udev/keyboard-keys-to-name.h |
2033 | + |
2034 | +BUILT_SOURCES += \ |
2035 | + $(nodist_libudev_core_la_SOURCES) |
2036 | + |
2037 | +CLEANFILES += \ |
2038 | + src/udev/keyboard-keys-from-name.gperf \ |
2039 | + src/udev/keyboard-keys.txt |
2040 | + |
2041 | +libudev_core_la_CFLAGS = \ |
2042 | + $(AM_CFLAGS) \ |
2043 | + $(BLKID_CFLAGS) \ |
2044 | + $(KMOD_CFLAGS) |
2045 | + |
2046 | +libudev_core_la_LIBADD = \ |
2047 | + libudev-private.la \ |
2048 | + libsystemd-label.la \ |
2049 | + libsystemd-daemon-internal.la \ |
2050 | + libsystemd-shared.la \ |
2051 | + $(BLKID_LIBS) \ |
2052 | + $(KMOD_LIBS) |
2053 | + |
2054 | +libudev_core_la_CPPFLAGS = \ |
2055 | + $(AM_CPPFLAGS) \ |
2056 | + -DFIRMWARE_PATH="$(FIRMWARE_PATH)" |
2057 | + |
2058 | +if ENABLE_FIRMWARE |
2059 | +libudev_core_la_SOURCES += \ |
2060 | + src/udev/udev-builtin-firmware.c |
2061 | + |
2062 | +dist_udevrules_DATA += \ |
2063 | + rules/50-firmware.rules |
2064 | +endif |
2065 | + |
2066 | +if HAVE_KMOD |
2067 | +libudev_core_la_SOURCES += \ |
2068 | + src/udev/udev-builtin-kmod.c |
2069 | + |
2070 | +dist_udevrules_DATA += \ |
2071 | + rules/80-drivers.rules |
2072 | +endif |
2073 | + |
2074 | +if HAVE_BLKID |
2075 | +libudev_core_la_SOURCES += \ |
2076 | + src/udev/udev-builtin-blkid.c |
2077 | +endif |
2078 | + |
2079 | +if HAVE_ACL |
2080 | +libudev_core_la_SOURCES += \ |
2081 | + src/udev/udev-builtin-uaccess.c \ |
2082 | + src/login/logind-acl.c \ |
2083 | + src/login/sd-login.c |
2084 | + |
2085 | +libudev_core_la_LIBADD += \ |
2086 | + libsystemd-acl.la |
2087 | +endif |
2088 | + |
2089 | +systemd_udevd_SOURCES = \ |
2090 | + src/udev/udevd.c |
2091 | + |
2092 | +systemd_udevd_LDADD = \ |
2093 | + libudev-core.la |
2094 | + |
2095 | +udevadm_SOURCES = \ |
2096 | + src/udev/udevadm.c \ |
2097 | + src/udev/udevadm-info.c \ |
2098 | + src/udev/udevadm-control.c \ |
2099 | + src/udev/udevadm-monitor.c \ |
2100 | + src/udev/udevadm-hwdb.c \ |
2101 | + src/udev/udevadm-settle.c \ |
2102 | + src/udev/udevadm-trigger.c \ |
2103 | + src/udev/udevadm-test.c \ |
2104 | + src/udev/udevadm-test-builtin.c |
2105 | + |
2106 | +udevadm_LDADD = \ |
2107 | + libudev-core.la \ |
2108 | + libsystemd-shared.la |
2109 | + |
2110 | +# Update hwdb on installation. Do not bother if installing |
2111 | +# in DESTDIR, since this is likely for packaging purposes. |
2112 | +hwdb-update-hook: |
2113 | + -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update |
2114 | + |
2115 | +INSTALL_DATA_HOOKS += \ |
2116 | + hwdb-update-hook |
2117 | + |
2118 | +hwdb-remove-hook: |
2119 | + -test -n "$(DESTDIR)" || rm -f $(udevlibexecdir)/hwdb.bin |
2120 | + |
2121 | +# ------------------------------------------------------------------------------ |
2122 | +TESTS += \ |
2123 | + test/udev-test.pl \ |
2124 | + test/rules-test.sh |
2125 | + |
2126 | +manual_tests += \ |
2127 | + test-libudev \ |
2128 | + test-udev |
2129 | + |
2130 | +test_libudev_SOURCES = \ |
2131 | + src/test/test-libudev.c |
2132 | + |
2133 | +test_libudev_LDADD = \ |
2134 | + libsystemd-label.la \ |
2135 | + libsystemd-shared.la \ |
2136 | + libudev.la |
2137 | + |
2138 | +test_udev_SOURCES = \ |
2139 | + src/test/test-udev.c |
2140 | + |
2141 | +test_udev_LDADD = \ |
2142 | + libudev-core.la \ |
2143 | + libsystemd-shared.la \ |
2144 | + $(BLKID_LIBS) \ |
2145 | + $(KMOD_LIBS) \ |
2146 | + $(SELINUX_LIBS) |
2147 | + |
2148 | +if HAVE_ACL |
2149 | +test_udev_LDADD += \ |
2150 | + libsystemd-acl.la |
2151 | +endif |
2152 | + |
2153 | +check_DATA += \ |
2154 | + test/sys |
2155 | + |
2156 | +# packed sysfs test tree |
2157 | +test/sys: |
2158 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
2159 | + $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz |
2160 | + |
2161 | +test-sys-distclean: |
2162 | + -rm -rf test/sys |
2163 | +DISTCLEAN_LOCAL_HOOKS += test-sys-distclean |
2164 | + |
2165 | +EXTRA_DIST += \ |
2166 | + test/sys.tar.xz \ |
2167 | + test/udev-test.pl \ |
2168 | + test/rules-test.sh \ |
2169 | + test/rule-syntax-check.py |
2170 | + |
2171 | +# ------------------------------------------------------------------------------ |
2172 | +ata_id_SOURCES = \ |
2173 | + src/udev/ata_id/ata_id.c |
2174 | + |
2175 | +ata_id_LDADD = \ |
2176 | + libudev-private.la \ |
2177 | + libsystemd-shared.la |
2178 | + |
2179 | +udevlibexec_PROGRAMS += \ |
2180 | + ata_id |
2181 | + |
2182 | +# ------------------------------------------------------------------------------ |
2183 | +cdrom_id_SOURCES = \ |
2184 | + src/udev/cdrom_id/cdrom_id.c |
2185 | + |
2186 | +cdrom_id_LDADD = \ |
2187 | + libudev.la \ |
2188 | + libsystemd-shared.la |
2189 | + |
2190 | +udevlibexec_PROGRAMS += \ |
2191 | + cdrom_id |
2192 | + |
2193 | +dist_udevrules_DATA += \ |
2194 | + rules/60-cdrom_id.rules |
2195 | + |
2196 | +# ------------------------------------------------------------------------------ |
2197 | +collect_SOURCES = \ |
2198 | + src/udev/collect/collect.c |
2199 | + |
2200 | +collect_LDADD = \ |
2201 | + libudev-private.la |
2202 | + |
2203 | +udevlibexec_PROGRAMS += \ |
2204 | + collect |
2205 | + |
2206 | +# ------------------------------------------------------------------------------ |
2207 | +scsi_id_SOURCES =\ |
2208 | + src/udev/scsi_id/scsi_id.c \ |
2209 | + src/udev/scsi_id/scsi_serial.c \ |
2210 | + src/udev/scsi_id/scsi.h \ |
2211 | + src/udev/scsi_id/scsi_id.h |
2212 | + |
2213 | +scsi_id_LDADD = \ |
2214 | + libudev-private.la \ |
2215 | + libsystemd-shared.la |
2216 | + |
2217 | +udevlibexec_PROGRAMS += \ |
2218 | + scsi_id |
2219 | + |
2220 | +EXTRA_DIST += \ |
2221 | + src/udev/scsi_id/README |
2222 | + |
2223 | +# ------------------------------------------------------------------------------ |
2224 | +v4l_id_SOURCES = \ |
2225 | + src/udev/v4l_id/v4l_id.c |
2226 | + |
2227 | +v4l_id_LDADD = \ |
2228 | + libudev.la |
2229 | + |
2230 | +udevlibexec_PROGRAMS += \ |
2231 | + v4l_id |
2232 | + |
2233 | +dist_udevrules_DATA += \ |
2234 | + rules/60-persistent-v4l.rules |
2235 | + |
2236 | +# ------------------------------------------------------------------------------ |
2237 | +accelerometer_SOURCES = \ |
2238 | + src/udev/accelerometer/accelerometer.c |
2239 | + |
2240 | +accelerometer_LDADD = \ |
2241 | + libudev.la -lm \ |
2242 | + libsystemd-shared.la |
2243 | + |
2244 | +udevlibexec_PROGRAMS += \ |
2245 | + accelerometer |
2246 | + |
2247 | +dist_udevrules_DATA += \ |
2248 | + rules/61-accelerometer.rules |
2249 | + |
2250 | +# ------------------------------------------------------------------------------ |
2251 | +if ENABLE_GUDEV |
2252 | +if ENABLE_GTK_DOC |
2253 | +SUBDIRS += \ |
2254 | + docs/gudev |
2255 | +endif |
2256 | + |
2257 | +libgudev_includedir = \ |
2258 | + $(includedir)/gudev-1.0/gudev |
2259 | + |
2260 | +libgudev_include_HEADERS = \ |
2261 | + src/gudev/gudev.h \ |
2262 | + src/gudev/gudevenums.h \ |
2263 | + src/gudev/gudevenumtypes.h \ |
2264 | + src/gudev/gudevtypes.h \ |
2265 | + src/gudev/gudevclient.h \ |
2266 | + src/gudev/gudevdevice.h \ |
2267 | + src/gudev/gudevenumerator.h |
2268 | + |
2269 | +lib_LTLIBRARIES += libgudev-1.0.la |
2270 | + |
2271 | +pkgconfiglib_DATA += \ |
2272 | + src/gudev/gudev-1.0.pc |
2273 | + |
2274 | +CLEANFILES += \ |
2275 | + src/gudev/gudev-1.0.pc |
2276 | + |
2277 | +libgudev_1_0_la_SOURCES = \ |
2278 | + src/gudev/gudevenums.h \ |
2279 | + src/gudev/gudevenumtypes.h \ |
2280 | + src/gudev/gudevenumtypes.h\ |
2281 | + src/gudev/gudevtypes.h \ |
2282 | + src/gudev/gudevclient.h \ |
2283 | + src/gudev/gudevclient.c \ |
2284 | + src/gudev/gudevdevice.h \ |
2285 | + src/gudev/gudevdevice.c \ |
2286 | + src/gudev/gudevenumerator.h \ |
2287 | + src/gudev/gudevenumerator.c \ |
2288 | + src/gudev/gudevprivate.h |
2289 | + |
2290 | +nodist_libgudev_1_0_la_SOURCES = \ |
2291 | + src/gudev/gudevmarshal.h \ |
2292 | + src/gudev/gudevmarshal.c \ |
2293 | + src/gudev/gudevenumtypes.h \ |
2294 | + src/gudev/gudevenumtypes.c |
2295 | + |
2296 | +BUILT_SOURCES += \ |
2297 | + $(nodist_libgudev_1_0_la_SOURCES) |
2298 | + |
2299 | +libgudev_1_0_la_CPPFLAGS = \ |
2300 | + $(AM_CPPFLAGS) \ |
2301 | + -I$(top_builddir)/src\ |
2302 | + -I$(top_srcdir)/src\ |
2303 | + -I$(top_builddir)/src/gudev \ |
2304 | + -I$(top_srcdir)/src/gudev \ |
2305 | + -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \ |
2306 | + -D_GUDEV_COMPILATION \ |
2307 | + -DG_LOG_DOMAIN=\"GUdev\" |
2308 | + |
2309 | +libgudev_1_0_la_CFLAGS = \ |
2310 | + $(AM_CFLAGS) \ |
2311 | + -fvisibility=default \ |
2312 | + $(GLIB_CFLAGS) |
2313 | + |
2314 | +libgudev_1_0_la_LIBADD = \ |
2315 | + libudev.la \ |
2316 | + $(GLIB_LIBS) |
2317 | + |
2318 | +libgudev_1_0_la_LDFLAGS = \ |
2319 | + $(AM_LDFLAGS) \ |
2320 | + -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \ |
2321 | + -export-dynamic -no-undefined \ |
2322 | + -export-symbols-regex '^g_udev_.*' |
2323 | + |
2324 | +src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list |
2325 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
2326 | + $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@ |
2327 | + |
2328 | +src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list |
2329 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
2330 | + $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \ |
2331 | + glib-genmarshal $< --prefix=g_udev_marshal --body >> $@ |
2332 | + |
2333 | +src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h |
2334 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
2335 | + $(AM_V_GEN)glib-mkenums --template $^ > $@ |
2336 | + |
2337 | +if HAVE_INTROSPECTION |
2338 | +-include $(INTROSPECTION_MAKEFILE) |
2339 | + |
2340 | +src/gudev/GUdev-1.0.gir: libgudev-1.0.la |
2341 | + |
2342 | +src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0 |
2343 | + |
2344 | +src_gudev_GUdev_1_0_gir_CFLAGS = \ |
2345 | + $(INCLUDES) \ |
2346 | + -D_GUDEV_COMPILATION \ |
2347 | + -D_GUDEV_WORK_AROUND_DEV_T_BUG \ |
2348 | + -I$(top_srcdir)/src \ |
2349 | + -I$(top_builddir)/src \ |
2350 | + -I$(top_srcdir)/src/gdev \ |
2351 | + -I$(top_builddir)/src/gdev |
2352 | + |
2353 | +src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la |
2354 | + |
2355 | +src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \ |
2356 | + --pkg-export=gudev-1.0 \ |
2357 | + --warn-all |
2358 | + |
2359 | +src_gudev_GUdev_1_0_gir_FILES = \ |
2360 | + src/gudev/gudev.h \ |
2361 | + src/gudev/gudevtypes.h \ |
2362 | + src/gudev/gudevenums.h \ |
2363 | + src/gudev/gudevenumtypes.h \ |
2364 | + src/gudev/gudevclient.h \ |
2365 | + src/gudev/gudevdevice.h \ |
2366 | + src/gudev/gudevenumerator.h \ |
2367 | + src/gudev/gudevclient.c \ |
2368 | + src/gudev/gudevdevice.c \ |
2369 | + src/gudev/gudevenumerator.c |
2370 | + |
2371 | +INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir |
2372 | +INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h |
2373 | + |
2374 | +girdir = $(datadir)/gir-1.0 |
2375 | +gir_DATA = \ |
2376 | + src/gudev/GUdev-1.0.gir |
2377 | + |
2378 | +typelibsdir = $(libdir)/girepository-1.0 |
2379 | +typelibs_DATA = \ |
2380 | + src/gudev/GUdev-1.0.typelib |
2381 | + |
2382 | +CLEANFILES += $(gir_DATA) $(typelibs_DATA) |
2383 | +endif # HAVE_INTROSPECTION |
2384 | + |
2385 | +endif |
2386 | + |
2387 | +EXTRA_DIST += \ |
2388 | + src/gudev/gudev-1.0.pc.in \ |
2389 | + src/gudev/gudevmarshal.list \ |
2390 | + src/gudev/gudevenumtypes.h.template \ |
2391 | + src/gudev/gudevenumtypes.c.template \ |
2392 | + src/gudev/gjs-example.js \ |
2393 | + src/gudev/seed-example-enum.js \ |
2394 | + src/gudev/seed-example.js |
2395 | + |
2396 | +# ------------------------------------------------------------------------------ |
2397 | +if ENABLE_KEYMAP |
2398 | +keymap_SOURCES = \ |
2399 | + src/udev/keymap/keymap.c |
2400 | + |
2401 | +keymap_CPPFLAGS = \ |
2402 | + $(AM_CPPFLAGS) -I src/udev/keymap |
2403 | + |
2404 | +keymap_LDADD = \ |
2405 | + libsystemd-shared.la |
2406 | + |
2407 | +nodist_keymap_SOURCES = \ |
2408 | + src/udev/keymap/keys-from-name.h \ |
2409 | + src/udev/keymap/keys-to-name.h |
2410 | + |
2411 | +BUILT_SOURCES += \ |
2412 | + $(nodist_keymap_SOURCES) |
2413 | + |
2414 | +udevlibexec_PROGRAMS += \ |
2415 | + keymap |
2416 | + |
2417 | +dist_doc_DATA += \ |
2418 | + src/udev/keymap/README.keymap.txt |
2419 | + |
2420 | +dist_udevrules_DATA += \ |
2421 | + src/udev/keymap/95-keymap.rules \ |
2422 | + src/udev/keymap/95-keyboard-force-release.rules |
2423 | + |
2424 | +dist_udevhome_SCRIPTS = \ |
2425 | + src/udev/keymap/findkeyboards \ |
2426 | + src/udev/keymap/keyboard-force-release.sh |
2427 | + |
2428 | +TESTS += \ |
2429 | + src/udev/keymap/check-keymaps.sh |
2430 | + |
2431 | +CLEANFILES += \ |
2432 | + src/udev/keymap/keys.txt \ |
2433 | + src/udev/keymap/keys-from-name.gperf \ |
2434 | + src/udev/keymap/keyboard-force-release.sh |
2435 | + |
2436 | +udevkeymapdir = $(udevlibexecdir)/keymaps |
2437 | +dist_udevkeymap_DATA = \ |
2438 | + keymaps/acer \ |
2439 | + keymaps/acer-aspire_5720 \ |
2440 | + keymaps/acer-aspire_8930 \ |
2441 | + keymaps/acer-aspire_5920g \ |
2442 | + keymaps/acer-aspire_6920 \ |
2443 | + keymaps/acer-travelmate_c300 \ |
2444 | + keymaps/asus \ |
2445 | + keymaps/compaq-e_evo \ |
2446 | + keymaps/dell \ |
2447 | + keymaps/dell-latitude-xt2 \ |
2448 | + keymaps/everex-xt5000 \ |
2449 | + keymaps/fujitsu-amilo_li_2732 \ |
2450 | + keymaps/fujitsu-amilo_pa_2548 \ |
2451 | + keymaps/fujitsu-amilo_pro_edition_v3505 \ |
2452 | + keymaps/fujitsu-amilo_pro_v3205 \ |
2453 | + keymaps/fujitsu-amilo_si_1520 \ |
2454 | + keymaps/fujitsu-esprimo_mobile_v5 \ |
2455 | + keymaps/fujitsu-esprimo_mobile_v6 \ |
2456 | + keymaps/genius-slimstar-320 \ |
2457 | + keymaps/hewlett-packard \ |
2458 | + keymaps/hewlett-packard-2510p_2530p \ |
2459 | + keymaps/hewlett-packard-compaq_elitebook \ |
2460 | + keymaps/hewlett-packard-pavilion \ |
2461 | + keymaps/hewlett-packard-presario-2100 \ |
2462 | + keymaps/hewlett-packard-tablet \ |
2463 | + keymaps/hewlett-packard-tx2 \ |
2464 | + keymaps/hewlett-packard_elitebook-8440p \ |
2465 | + keymaps/hewlett-packard_elitebook-8460p \ |
2466 | + keymaps/hewlett-packard-hdx9494nr \ |
2467 | + keymaps/ibm-thinkpad-usb-keyboard-trackpoint \ |
2468 | + keymaps/inventec-symphony_6.0_7.0 \ |
2469 | + keymaps/lenovo-3000 \ |
2470 | + keymaps/lenovo-ideapad \ |
2471 | + keymaps/lenovo-thinkpad-usb-keyboard-trackpoint \ |
2472 | + keymaps/lenovo-thinkpad_x6_tablet \ |
2473 | + keymaps/lenovo-thinkpad_x200_tablet \ |
2474 | + keymaps/lg-x110 \ |
2475 | + keymaps/logitech-wave \ |
2476 | + keymaps/logitech-wave-cordless \ |
2477 | + keymaps/logitech-wave-pro-cordless \ |
2478 | + keymaps/maxdata-pro_7000 \ |
2479 | + keymaps/medion-fid2060 \ |
2480 | + keymaps/medionnb-a555 \ |
2481 | + keymaps/micro-star \ |
2482 | + keymaps/module-asus-w3j \ |
2483 | + keymaps/module-ibm \ |
2484 | + keymaps/module-lenovo \ |
2485 | + keymaps/module-sony \ |
2486 | + keymaps/module-sony-old \ |
2487 | + keymaps/module-sony-vgn \ |
2488 | + keymaps/module-sony-vpc \ |
2489 | + keymaps/olpc-xo \ |
2490 | + keymaps/onkyo \ |
2491 | + keymaps/oqo-model2 \ |
2492 | + keymaps/samsung-other \ |
2493 | + keymaps/samsung-series-9 \ |
2494 | + keymaps/samsung-sq1us \ |
2495 | + keymaps/samsung-sx20s \ |
2496 | + keymaps/toshiba-satellite_a100 \ |
2497 | + keymaps/toshiba-satellite_a110 \ |
2498 | + keymaps/toshiba-satellite_m30x \ |
2499 | + keymaps/zepto-znote |
2500 | + |
2501 | +udevkeymapforcereldir = $(udevlibexecdir)/keymaps/force-release |
2502 | +dist_udevkeymapforcerel_DATA = \ |
2503 | + keymaps-force-release/dell-touchpad \ |
2504 | + keymaps-force-release/dell-xps \ |
2505 | + keymaps-force-release/hp-other \ |
2506 | + keymaps-force-release/samsung-other \ |
2507 | + keymaps-force-release/samsung-series-9 \ |
2508 | + keymaps-force-release/common-volume-keys |
2509 | + |
2510 | +src/udev/keymap/keys.txt: Makefile |
2511 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
2512 | + $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/input.h - < /dev/null | $(AWK) '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@ |
2513 | + |
2514 | +src/udev/keymap/keys-from-name.gperf: src/udev/keymap/keys.txt Makefile |
2515 | + $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@ |
2516 | + |
2517 | +src/udev/keymap/keys-from-name.h: src/udev/keymap/keys-from-name.gperf Makefile |
2518 | + $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@ |
2519 | + |
2520 | +src/udev/keymap/keys-to-name.h: src/udev/keymap/keys.txt Makefile |
2521 | + $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@ |
2522 | +endif |
2523 | + |
2524 | +EXTRA_DIST += \ |
2525 | + src/udev/keymap/check-keymaps.sh \ |
2526 | + src/udev/keymap/keyboard-force-release.sh.in |
2527 | + |
2528 | +# ------------------------------------------------------------------------------ |
2529 | +mtd_probe_SOURCES = \ |
2530 | + src/udev/mtd_probe/mtd_probe.c \ |
2531 | + src/udev/mtd_probe/mtd_probe.h \ |
2532 | + src/udev/mtd_probe/probe_smartmedia.c |
2533 | + |
2534 | +mtd_probe_CPPFLAGS = \ |
2535 | + $(AM_CPPFLAGS) |
2536 | + |
2537 | +dist_udevrules_DATA += \ |
2538 | + rules/75-probe_mtd.rules |
2539 | + |
2540 | +udevlibexec_PROGRAMS += \ |
2541 | + mtd_probe |
2542 | + |
2543 | +# ------------------------------------------------------------------------------ |
2544 | +libsystemd_id128_la_SOURCES = \ |
2545 | + src/libsystemd-id128/sd-id128.c |
2546 | + |
2547 | +libsystemd_id128_la_CFLAGS = \ |
2548 | + $(AM_CFLAGS) \ |
2549 | + -fvisibility=hidden |
2550 | + |
2551 | +libsystemd_id128_la_LDFLAGS = \ |
2552 | + $(AM_LDFLAGS) \ |
2553 | + -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \ |
2554 | + -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym |
2555 | + |
2556 | +libsystemd_id128_la_LIBADD = \ |
2557 | + libsystemd-shared.la \ |
2558 | + libsystemd-daemon-internal.la |
2559 | + |
2560 | +libsystemd_id128_internal_la_SOURCES = \ |
2561 | + $(libsystemd_id128_la_SOURCES) |
2562 | + |
2563 | +test_id128_SOURCES = \ |
2564 | + src/test/test-id128.c |
2565 | + |
2566 | +test_id128_LDADD = \ |
2567 | + libsystemd-shared.la \ |
2568 | + libsystemd-id128-internal.la |
2569 | + |
2570 | +tests += \ |
2571 | + test-id128 |
2572 | + |
2573 | +pkginclude_HEADERS += \ |
2574 | + src/systemd/sd-id128.h |
2575 | + |
2576 | +lib_LTLIBRARIES += \ |
2577 | + libsystemd-id128.la |
2578 | + |
2579 | +noinst_LTLIBRARIES += \ |
2580 | + libsystemd-id128-internal.la |
2581 | + |
2582 | +pkgconfiglib_DATA += \ |
2583 | + src/libsystemd-id128/libsystemd-id128.pc |
2584 | + |
2585 | +# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed |
2586 | +libsystemd-id128-install-hook: |
2587 | + libname=libsystemd-id128.so && $(move-to-rootlibdir) |
2588 | + |
2589 | +libsystemd-id128-uninstall-hook: |
2590 | + rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so* |
2591 | + |
2592 | +INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook |
2593 | +UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook |
2594 | + |
2595 | +EXTRA_DIST += \ |
2596 | + src/libsystemd-id128/libsystemd-id128.pc.in \ |
2597 | + src/libsystemd-id128/libsystemd-id128.sym |
2598 | + |
2599 | +# ------------------------------------------------------------------------------ |
2600 | + |
2601 | +rootlibexec_PROGRAMS += \ |
2602 | + systemd-activate |
2603 | + |
2604 | +systemd_activate_SOURCES = \ |
2605 | + src/activate/activate.c |
2606 | + |
2607 | +systemd_activate_LDADD = \ |
2608 | + libsystemd-shared.la \ |
2609 | + libsystemd-daemon.la |
2610 | + |
2611 | +# ------------------------------------------------------------------------------ |
2612 | +systemd_journald_SOURCES = \ |
2613 | + src/journal/journald.c \ |
2614 | + src/journal/journald-server.h |
2615 | + |
2616 | +systemd_journald_LDADD = \ |
2617 | + libsystemd-journal-internal.la \ |
2618 | + libsystemd-shared.la \ |
2619 | + libsystemd-id128-internal.la |
2620 | + |
2621 | +systemd_cat_SOURCES = \ |
2622 | + src/journal/cat.c |
2623 | + |
2624 | +systemd_cat_LDADD = \ |
2625 | + libsystemd-shared.la \ |
2626 | + libsystemd-journal-internal.la |
2627 | + |
2628 | +journalctl_SOURCES = \ |
2629 | + src/journal/journalctl.c |
2630 | + |
2631 | +journalctl_CFLAGS = \ |
2632 | + $(AM_CFLAGS) |
2633 | + |
2634 | +journalctl_LDADD = \ |
2635 | + libsystemd-shared.la \ |
2636 | + libsystemd-journal-internal.la \ |
2637 | + libsystemd-id128-internal.la \ |
2638 | + libsystemd-logs.la |
2639 | + |
2640 | +if HAVE_ACL |
2641 | +journalctl_LDADD += \ |
2642 | + libsystemd-acl.la |
2643 | +endif |
2644 | + |
2645 | +if HAVE_QRENCODE |
2646 | +journalctl_SOURCES += \ |
2647 | + src/journal/journal-qrcode.c \ |
2648 | + src/journal/journal-qrcode.h |
2649 | + |
2650 | +journalctl_CFLAGS += \ |
2651 | + $(QRENCODE_CFLAGS) |
2652 | + |
2653 | +journalctl_LDADD += \ |
2654 | + $(QRENCODE_LIBS) |
2655 | +endif |
2656 | + |
2657 | +test_journal_SOURCES = \ |
2658 | + src/journal/test-journal.c |
2659 | + |
2660 | +test_journal_LDADD = \ |
2661 | + libsystemd-shared.la \ |
2662 | + libsystemd-journal-internal.la \ |
2663 | + libsystemd-id128-internal.la |
2664 | + |
2665 | +test_journal_send_SOURCES = \ |
2666 | + src/journal/test-journal-send.c |
2667 | + |
2668 | +test_journal_send_LDADD = \ |
2669 | + libsystemd-shared.la \ |
2670 | + libsystemd-journal-internal.la \ |
2671 | + libsystemd-id128-internal.la |
2672 | + |
2673 | +test_journal_syslog_SOURCES = \ |
2674 | + src/journal/test-journal-syslog.c |
2675 | + |
2676 | +test_journal_syslog_LDADD = \ |
2677 | + libsystemd-journal-internal.la \ |
2678 | + libsystemd-shared.la \ |
2679 | + libsystemd-id128-internal.la |
2680 | + |
2681 | +test_journal_match_SOURCES = \ |
2682 | + src/journal/test-journal-match.c |
2683 | + |
2684 | +test_journal_match_LDADD = \ |
2685 | + libsystemd-shared.la \ |
2686 | + libsystemd-journal-internal.la \ |
2687 | + libsystemd-id128-internal.la |
2688 | + |
2689 | +test_journal_enum_SOURCES = \ |
2690 | + src/journal/test-journal-enum.c |
2691 | + |
2692 | +test_journal_enum_LDADD = \ |
2693 | + libsystemd-shared.la \ |
2694 | + libsystemd-journal-internal.la \ |
2695 | + libsystemd-id128-internal.la |
2696 | + |
2697 | +test_journal_stream_SOURCES = \ |
2698 | + src/journal/test-journal-stream.c |
2699 | + |
2700 | +test_journal_stream_LDADD = \ |
2701 | + libsystemd-shared.la \ |
2702 | + libsystemd-journal-internal.la \ |
2703 | + libsystemd-id128-internal.la |
2704 | + |
2705 | +test_journal_verify_SOURCES = \ |
2706 | + src/journal/test-journal-verify.c |
2707 | + |
2708 | +test_journal_verify_LDADD = \ |
2709 | + libsystemd-shared.la \ |
2710 | + libsystemd-journal-internal.la \ |
2711 | + libsystemd-id128-internal.la |
2712 | + |
2713 | +test_mmap_cache_SOURCES = \ |
2714 | + src/journal/test-mmap-cache.c |
2715 | + |
2716 | +test_mmap_cache_LDADD = \ |
2717 | + libsystemd-shared.la \ |
2718 | + libsystemd-journal-internal.la |
2719 | + |
2720 | +test_catalog_SOURCES = \ |
2721 | + src/journal/test-catalog.c |
2722 | + |
2723 | +test_catalog_LDADD = \ |
2724 | + libsystemd-shared.la \ |
2725 | + libsystemd-label.la \ |
2726 | + libsystemd-journal-internal.la \ |
2727 | + libsystemd-id128-internal.la |
2728 | + |
2729 | +libsystemd_journal_la_SOURCES = \ |
2730 | + src/journal/sd-journal.c \ |
2731 | + src/systemd/sd-journal.h \ |
2732 | + src/journal/journal-file.c \ |
2733 | + src/journal/journal-file.h \ |
2734 | + src/journal/journal-vacuum.c \ |
2735 | + src/journal/journal-vacuum.h \ |
2736 | + src/journal/journal-verify.c \ |
2737 | + src/journal/journal-verify.h \ |
2738 | + src/journal/lookup3.c \ |
2739 | + src/journal/lookup3.h \ |
2740 | + src/journal/journal-send.c \ |
2741 | + src/journal/journal-def.h \ |
2742 | + src/journal/compress.h \ |
2743 | + src/journal/catalog.c \ |
2744 | + src/journal/catalog.h \ |
2745 | + src/journal/mmap-cache.c \ |
2746 | + src/journal/mmap-cache.h |
2747 | + |
2748 | +libsystemd_journal_la_CFLAGS = \ |
2749 | + $(AM_CFLAGS) \ |
2750 | + -fvisibility=hidden |
2751 | + |
2752 | +libsystemd_journal_la_LDFLAGS = \ |
2753 | + $(AM_LDFLAGS) \ |
2754 | + -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \ |
2755 | + -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym |
2756 | + |
2757 | +libsystemd_journal_la_LIBADD = \ |
2758 | + libsystemd-shared.la \ |
2759 | + libsystemd-label.la \ |
2760 | + libsystemd-daemon-internal.la \ |
2761 | + libsystemd-id128-internal.la |
2762 | + |
2763 | +libsystemd_journal_internal_la_SOURCES = \ |
2764 | + $(libsystemd_journal_la_SOURCES) \ |
2765 | + src/journal/journald-kmsg.c \ |
2766 | + src/journal/journald-kmsg.h \ |
2767 | + src/journal/journald-syslog.c \ |
2768 | + src/journal/journald-syslog.h \ |
2769 | + src/journal/journald-stream.c \ |
2770 | + src/journal/journald-stream.h \ |
2771 | + src/journal/journald-server.c \ |
2772 | + src/journal/journald-server.h \ |
2773 | + src/journal/journald-console.c \ |
2774 | + src/journal/journald-console.h \ |
2775 | + src/journal/journald-native.c \ |
2776 | + src/journal/journald-native.h \ |
2777 | + src/journal/journald-rate-limit.c \ |
2778 | + src/journal/journald-rate-limit.h \ |
2779 | + src/journal/journal-internal.h |
2780 | + |
2781 | +libsystemd_journal_internal_la_CFLAGS = \ |
2782 | + $(AM_CFLAGS) |
2783 | + |
2784 | +libsystemd_journal_internal_la_LIBADD = \ |
2785 | + libsystemd-label.la \ |
2786 | + libsystemd-audit.la \ |
2787 | + libsystemd-daemon.la \ |
2788 | + libudev.la \ |
2789 | + libsystemd-shared.la \ |
2790 | + libsystemd-label.la |
2791 | + |
2792 | +nodist_libsystemd_journal_internal_la_SOURCES = \ |
2793 | + src/journal/journald-gperf.c |
2794 | + |
2795 | +if ENABLE_LOGIND |
2796 | +libsystemd_journal_internal_la_LIBADD += \ |
2797 | + libsystemd-login-internal.la |
2798 | +endif |
2799 | + |
2800 | +if HAVE_ACL |
2801 | +libsystemd_journal_internal_la_LIBADD += \ |
2802 | + libsystemd-acl.la |
2803 | +endif |
2804 | + |
2805 | +if HAVE_XZ |
2806 | +libsystemd_journal_la_SOURCES += \ |
2807 | + src/journal/compress.c |
2808 | + |
2809 | +libsystemd_journal_la_CFLAGS += \ |
2810 | + $(XZ_CFLAGS) |
2811 | + |
2812 | +libsystemd_journal_la_LIBADD += \ |
2813 | + $(XZ_LIBS) |
2814 | + |
2815 | +libsystemd_journal_internal_la_CFLAGS += \ |
2816 | + $(XZ_CFLAGS) |
2817 | + |
2818 | +libsystemd_journal_internal_la_LIBADD += \ |
2819 | + $(XZ_LIBS) |
2820 | + |
2821 | +endif |
2822 | + |
2823 | +if HAVE_GCRYPT |
2824 | +libsystemd_journal_la_SOURCES += \ |
2825 | + src/journal/journal-authenticate.c \ |
2826 | + src/journal/journal-authenticate.h \ |
2827 | + src/journal/fsprg.c \ |
2828 | + src/journal/fsprg.h |
2829 | + |
2830 | +libsystemd_journal_la_CFLAGS += \ |
2831 | + $(GCRYPT_CFLAGS) \ |
2832 | + -Wno-pointer-arith |
2833 | + |
2834 | +libsystemd_journal_la_LIBADD += \ |
2835 | + $(GCRYPT_LIBS) |
2836 | + |
2837 | +libsystemd_journal_internal_la_CFLAGS += \ |
2838 | + $(GCRYPT_CFLAGS) \ |
2839 | + -Wno-pointer-arith |
2840 | + |
2841 | +libsystemd_journal_internal_la_LIBADD += \ |
2842 | + $(GCRYPT_LIBS) |
2843 | +endif |
2844 | + |
2845 | +# move lib from $(libdir) to $(rootlibdir) and update devel link, if |
2846 | +# needed. Also, grant read access to new journal files to members of |
2847 | +# "adm" and "wheel". |
2848 | +libsystemd-journal-install-hook: |
2849 | + libname=libsystemd-journal.so && $(move-to-rootlibdir) |
2850 | + -$(MKDIR_P) $(DESTDIR)/var/log/journal |
2851 | + -chown 0:0 $(DESTDIR)/var/log/journal |
2852 | + -chmod 755 $(DESTDIR)/var/log/journal |
2853 | + -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/ |
2854 | + -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/ |
2855 | + |
2856 | +libsystemd-journal-uninstall-hook: |
2857 | + rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so* |
2858 | + |
2859 | +INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook |
2860 | +UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook |
2861 | + |
2862 | +# ------------------------------------------------------------------------------ |
2863 | + |
2864 | +# Update catalog on installation. Do not bother if installing |
2865 | +# in DESTDIR, since this is likely for packaging purposes. |
2866 | +catalog-update-hook: |
2867 | + -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog |
2868 | + |
2869 | +INSTALL_DATA_HOOKS += \ |
2870 | + catalog-update-hook |
2871 | + |
2872 | +catalog-remove-hook: |
2873 | + -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database |
2874 | + |
2875 | +UNINSTALL_DATA_HOOKS += \ |
2876 | + catalog-remove-hook |
2877 | + |
2878 | +manual_tests += \ |
2879 | + test-journal-enum |
2880 | + |
2881 | +tests += \ |
2882 | + test-journal \ |
2883 | + test-journal-send \ |
2884 | + test-journal-syslog \ |
2885 | + test-journal-match \ |
2886 | + test-journal-verify \ |
2887 | + test-mmap-cache \ |
2888 | + $(NULL) |
2889 | + |
2890 | +pkginclude_HEADERS += \ |
2891 | + src/systemd/sd-journal.h \ |
2892 | + src/systemd/sd-messages.h |
2893 | + |
2894 | +lib_LTLIBRARIES += \ |
2895 | + libsystemd-journal.la |
2896 | + |
2897 | +noinst_LTLIBRARIES += \ |
2898 | + libsystemd-journal-internal.la |
2899 | + |
2900 | +rootlibexec_PROGRAMS += \ |
2901 | + systemd-journald |
2902 | + |
2903 | +rootbin_PROGRAMS += \ |
2904 | + journalctl |
2905 | + |
2906 | +bin_PROGRAMS += \ |
2907 | + systemd-cat |
2908 | + |
2909 | +dist_systemunit_DATA += \ |
2910 | + units/systemd-journald.socket |
2911 | + |
2912 | +nodist_systemunit_DATA += \ |
2913 | + units/systemd-journald.service \ |
2914 | + units/systemd-journal-flush.service |
2915 | + |
2916 | +dist_pkgsysconf_DATA += \ |
2917 | + src/journal/journald.conf |
2918 | + |
2919 | +pkgconfiglib_DATA += \ |
2920 | + src/journal/libsystemd-journal.pc |
2921 | + |
2922 | +dist_catalog_DATA = \ |
2923 | + catalog/systemd.catalog |
2924 | + |
2925 | +SOCKETS_TARGET_WANTS += \ |
2926 | + systemd-journald.socket |
2927 | +SYSINIT_TARGET_WANTS += \ |
2928 | + systemd-journald.service \ |
2929 | + systemd-journal-flush.service |
2930 | + |
2931 | +EXTRA_DIST += \ |
2932 | + src/journal/libsystemd-journal.pc.in \ |
2933 | + src/journal/libsystemd-journal.sym \ |
2934 | + units/systemd-journald.service.in \ |
2935 | + units/systemd-journal-flush.service.in \ |
2936 | + src/journal/journald-gperf.gperf |
2937 | + |
2938 | +CLEANFILES += \ |
2939 | + src/journal/journald-gperf.c |
2940 | + |
2941 | +# ------------------------------------------------------------------------------ |
2942 | +if HAVE_MICROHTTPD |
2943 | +gatewayddocumentrootdir=$(pkgdatadir)/gatewayd |
2944 | + |
2945 | +rootlibexec_PROGRAMS += \ |
2946 | + systemd-journal-gatewayd |
2947 | + |
2948 | +systemd_journal_gatewayd_SOURCES = \ |
2949 | + src/journal/journal-gatewayd.c \ |
2950 | + src/journal/microhttpd-util.h \ |
2951 | + src/journal/microhttpd-util.c |
2952 | + |
2953 | +systemd_journal_gatewayd_LDADD = \ |
2954 | + libsystemd-shared.la \ |
2955 | + libsystemd-logs.la \ |
2956 | + libsystemd-journal-internal.la \ |
2957 | + libsystemd-id128-internal.la \ |
2958 | + libsystemd-daemon.la \ |
2959 | + libsystemd-bus.la \ |
2960 | + $(MICROHTTPD_LIBS) |
2961 | + |
2962 | +systemd_journal_gatewayd_CFLAGS = \ |
2963 | + -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \ |
2964 | + $(AM_CFLAGS) \ |
2965 | + $(MICROHTTPD_CFLAGS) |
2966 | + |
2967 | +dist_systemunit_DATA += \ |
2968 | + units/systemd-journal-gatewayd.socket |
2969 | + |
2970 | +nodist_systemunit_DATA += \ |
2971 | + units/systemd-journal-gatewayd.service |
2972 | + |
2973 | +dist_gatewayddocumentroot_DATA = \ |
2974 | + src/journal/browse.html |
2975 | + |
2976 | +endif |
2977 | + |
2978 | +EXTRA_DIST += \ |
2979 | + units/systemd-journal-gatewayd.service.in |
2980 | + |
2981 | +# ------------------------------------------------------------------------------ |
2982 | +if ENABLE_COREDUMP |
2983 | +systemd_coredump_SOURCES = \ |
2984 | + src/journal/coredump.c |
2985 | + |
2986 | +systemd_coredump_LDADD = \ |
2987 | + libsystemd-journal-internal.la \ |
2988 | + libsystemd-label.la \ |
2989 | + libsystemd-shared.la |
2990 | + |
2991 | +if ENABLE_LOGIND |
2992 | +systemd_coredump_LDADD += \ |
2993 | + libsystemd-login-internal.la |
2994 | +endif |
2995 | + |
2996 | +rootlibexec_PROGRAMS += \ |
2997 | + systemd-coredump |
2998 | + |
2999 | +systemd_coredumpctl_SOURCES = \ |
3000 | + src/journal/coredumpctl.c |
3001 | + |
3002 | +systemd_coredumpctl_LDADD = \ |
3003 | + libsystemd-shared.la \ |
3004 | + libsystemd-journal.la |
3005 | + |
3006 | +bin_PROGRAMS += \ |
3007 | + systemd-coredumpctl |
3008 | + |
3009 | +dist_bashcompletion_DATA += \ |
3010 | + shell-completion/bash/systemd-coredumpctl |
3011 | + |
3012 | +sysctl_DATA = \ |
3013 | + sysctl.d/50-coredump.conf |
3014 | + |
3015 | +CLEANFILES += \ |
3016 | + sysctl.d/50-coredump.conf |
3017 | +endif |
3018 | + |
3019 | +EXTRA_DIST += \ |
3020 | + sysctl.d/50-coredump.conf.in |
3021 | + |
3022 | +# ------------------------------------------------------------------------------ |
3023 | +if ENABLE_BINFMT |
3024 | +systemd_binfmt_SOURCES = \ |
3025 | + src/binfmt/binfmt.c |
3026 | + |
3027 | +systemd_binfmt_LDADD = \ |
3028 | + libsystemd-shared.la |
3029 | + |
3030 | +rootlibexec_PROGRAMS += \ |
3031 | + systemd-binfmt |
3032 | + |
3033 | +dist_systemunit_DATA += \ |
3034 | + units/proc-sys-fs-binfmt_misc.automount \ |
3035 | + units/proc-sys-fs-binfmt_misc.mount |
3036 | + |
3037 | +nodist_systemunit_DATA += \ |
3038 | + units/systemd-binfmt.service |
3039 | + |
3040 | +INSTALL_DIRS += \ |
3041 | + $(prefix)/lib/binfmt.d \ |
3042 | + $(sysconfdir)/binfmt.d |
3043 | + |
3044 | +SYSINIT_TARGET_WANTS += \ |
3045 | + systemd-binfmt.service \ |
3046 | + proc-sys-fs-binfmt_misc.automount |
3047 | + |
3048 | +endif |
3049 | + |
3050 | +EXTRA_DIST += \ |
3051 | + units/systemd-binfmt.service.in |
3052 | + |
3053 | +# ------------------------------------------------------------------------------ |
3054 | +if ENABLE_VCONSOLE |
3055 | +systemd_vconsole_setup_SOURCES = \ |
3056 | + src/vconsole/vconsole-setup.c |
3057 | + |
3058 | +systemd_vconsole_setup_LDADD = \ |
3059 | + libsystemd-shared.la |
3060 | + |
3061 | +rootlibexec_PROGRAMS += \ |
3062 | + systemd-vconsole-setup |
3063 | + |
3064 | +nodist_systemunit_DATA += \ |
3065 | + units/systemd-vconsole-setup.service |
3066 | + |
3067 | +SYSINIT_TARGET_WANTS += \ |
3068 | + systemd-vconsole-setup.service |
3069 | +endif |
3070 | + |
3071 | +EXTRA_DIST += \ |
3072 | + units/systemd-vconsole-setup.service.in |
3073 | + |
3074 | +# ------------------------------------------------------------------------------ |
3075 | +if ENABLE_READAHEAD |
3076 | +systemd_readahead_SOURCES = \ |
3077 | + src/readahead/readahead.c \ |
3078 | + src/readahead/readahead-collect.c \ |
3079 | + src/readahead/readahead-replay.c \ |
3080 | + src/readahead/readahead-analyze.c \ |
3081 | + src/readahead/readahead-common.c \ |
3082 | + src/readahead/readahead-common.h |
3083 | + |
3084 | +systemd_readahead_LDADD = \ |
3085 | + libsystemd-shared.la \ |
3086 | + libsystemd-daemon.la \ |
3087 | + libudev.la |
3088 | + |
3089 | +dist_doc_DATA += \ |
3090 | + src/readahead/sd-readahead.c \ |
3091 | + src/systemd/sd-readahead.h |
3092 | + |
3093 | +rootlibexec_PROGRAMS += \ |
3094 | + systemd-readahead |
3095 | + |
3096 | +dist_systemunit_DATA += \ |
3097 | + units/systemd-readahead-drop.service \ |
3098 | + units/systemd-readahead-done.timer |
3099 | + |
3100 | +nodist_systemunit_DATA += \ |
3101 | + units/systemd-readahead-collect.service \ |
3102 | + units/systemd-readahead-replay.service \ |
3103 | + units/systemd-readahead-done.service |
3104 | + |
3105 | +endif |
3106 | + |
3107 | +EXTRA_DIST += \ |
3108 | + units/systemd-readahead-collect.service.in \ |
3109 | + units/systemd-readahead-replay.service.in \ |
3110 | + units/systemd-readahead-done.service.in |
3111 | + |
3112 | +# ------------------------------------------------------------------------------ |
3113 | +if ENABLE_BOOTCHART |
3114 | +systemd_bootchart_SOURCES = \ |
3115 | + src/bootchart/bootchart.c \ |
3116 | + src/bootchart/bootchart.h \ |
3117 | + src/bootchart/store.c \ |
3118 | + src/bootchart/store.h \ |
3119 | + src/bootchart/svg.c \ |
3120 | + src/bootchart/svg.h |
3121 | + |
3122 | +systemd_bootchart_LDADD = \ |
3123 | + libsystemd-shared.la \ |
3124 | + libsystemd-journal.la |
3125 | + |
3126 | +rootlibexec_PROGRAMS += \ |
3127 | + systemd-bootchart |
3128 | + |
3129 | +dist_pkgsysconf_DATA += \ |
3130 | + src/bootchart/bootchart.conf |
3131 | +endif |
3132 | + |
3133 | +# ------------------------------------------------------------------------------ |
3134 | +if ENABLE_QUOTACHECK |
3135 | +rootlibexec_PROGRAMS += \ |
3136 | + systemd-quotacheck |
3137 | + |
3138 | +nodist_systemunit_DATA += \ |
3139 | + units/systemd-quotacheck.service |
3140 | + |
3141 | +systemd_quotacheck_SOURCES = \ |
3142 | + src/quotacheck/quotacheck.c |
3143 | + |
3144 | +systemd_quotacheck_LDADD = \ |
3145 | + libsystemd-shared.la |
3146 | +endif |
3147 | + |
3148 | +EXTRA_DIST += \ |
3149 | + units/systemd-quotacheck.service.in |
3150 | + |
3151 | +nodist_systemunit_DATA += \ |
3152 | + units/quotaon.service |
3153 | + |
3154 | +# ------------------------------------------------------------------------------ |
3155 | +if ENABLE_RANDOMSEED |
3156 | +rootlibexec_PROGRAMS += \ |
3157 | + systemd-random-seed |
3158 | + |
3159 | +nodist_systemunit_DATA += \ |
3160 | + units/systemd-random-seed-save.service \ |
3161 | + units/systemd-random-seed-load.service |
3162 | + |
3163 | +systemd_random_seed_SOURCES = \ |
3164 | + src/random-seed/random-seed.c |
3165 | + |
3166 | +systemd_random_seed_LDADD = \ |
3167 | + libsystemd-label.la \ |
3168 | + libsystemd-shared.la |
3169 | + |
3170 | +SHUTDOWN_TARGET_WANTS += \ |
3171 | + systemd-random-seed-save.service |
3172 | +SYSINIT_TARGET_WANTS += \ |
3173 | + systemd-random-seed-load.service |
3174 | + |
3175 | +endif |
3176 | + |
3177 | +EXTRA_DIST += \ |
3178 | + units/systemd-random-seed-save.service.in \ |
3179 | + units/systemd-random-seed-load.service.in |
3180 | + |
3181 | +# ------------------------------------------------------------------------------ |
3182 | +if HAVE_LIBCRYPTSETUP |
3183 | +rootlibexec_PROGRAMS += \ |
3184 | + systemd-cryptsetup |
3185 | + |
3186 | +systemgenerator_PROGRAMS += \ |
3187 | + systemd-cryptsetup-generator |
3188 | + |
3189 | +dist_systemunit_DATA += \ |
3190 | + units/cryptsetup.target |
3191 | + |
3192 | +systemd_cryptsetup_SOURCES = \ |
3193 | + src/cryptsetup/cryptsetup.c |
3194 | + |
3195 | +systemd_cryptsetup_CFLAGS = \ |
3196 | + $(AM_CFLAGS) \ |
3197 | + $(LIBCRYPTSETUP_CFLAGS) |
3198 | + |
3199 | +systemd_cryptsetup_LDADD = \ |
3200 | + libsystemd-label.la \ |
3201 | + libsystemd-shared.la \ |
3202 | + libudev.la \ |
3203 | + $(LIBCRYPTSETUP_LIBS) |
3204 | + |
3205 | +systemd_cryptsetup_generator_SOURCES = \ |
3206 | + src/cryptsetup/cryptsetup-generator.c |
3207 | + |
3208 | +systemd_cryptsetup_generator_LDADD = \ |
3209 | + libsystemd-label.la \ |
3210 | + libsystemd-shared.la |
3211 | + |
3212 | +SYSINIT_TARGET_WANTS += \ |
3213 | + cryptsetup.target |
3214 | + |
3215 | +endif |
3216 | + |
3217 | +# ------------------------------------------------------------------------------ |
3218 | +if ENABLE_HOSTNAMED |
3219 | +systemd_hostnamed_SOURCES = \ |
3220 | + src/hostname/hostnamed.c |
3221 | + |
3222 | +systemd_hostnamed_CFLAGS = \ |
3223 | + $(AM_CFLAGS) \ |
3224 | + $(DBUS_CFLAGS) |
3225 | + |
3226 | +systemd_hostnamed_LDADD = \ |
3227 | + libsystemd-label.la \ |
3228 | + libsystemd-shared.la \ |
3229 | + libsystemd-daemon.la \ |
3230 | + libsystemd-dbus.la |
3231 | + |
3232 | +rootlibexec_PROGRAMS += \ |
3233 | + systemd-hostnamed |
3234 | + |
3235 | +nodist_systemunit_DATA += \ |
3236 | + units/systemd-hostnamed.service |
3237 | + |
3238 | +dist_dbuspolicy_DATA += \ |
3239 | + src/hostname/org.freedesktop.hostname1.conf |
3240 | + |
3241 | +dist_dbussystemservice_DATA += \ |
3242 | + src/hostname/org.freedesktop.hostname1.service |
3243 | + |
3244 | +polkitpolicy_files += \ |
3245 | + src/hostname/org.freedesktop.hostname1.policy |
3246 | + |
3247 | +dbusinterface_DATA += \ |
3248 | + org.freedesktop.hostname1.xml |
3249 | + |
3250 | +org.freedesktop.hostname1.xml: systemd-hostnamed |
3251 | + $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \ |
3252 | + $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \ |
3253 | + $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp |
3254 | + |
3255 | +SYSTEM_UNIT_ALIASES += \ |
3256 | + systemd-hostnamed.service dbus-org.freedesktop.hostname1.service |
3257 | + |
3258 | +hostnamectl_SOURCES = \ |
3259 | + src/hostname/hostnamectl.c |
3260 | + |
3261 | +hostnamectl_CFLAGS = \ |
3262 | + $(AM_CFLAGS) \ |
3263 | + $(DBUS_CFLAGS) |
3264 | + |
3265 | +hostnamectl_LDADD = \ |
3266 | + libsystemd-shared.la \ |
3267 | + libsystemd-dbus.la \ |
3268 | + libsystemd-id128-internal.la |
3269 | + |
3270 | +bin_PROGRAMS += \ |
3271 | + hostnamectl |
3272 | + |
3273 | +dist_bashcompletion_DATA += \ |
3274 | + shell-completion/bash/hostnamectl |
3275 | + |
3276 | +endif |
3277 | + |
3278 | +polkitpolicy_in_files += \ |
3279 | + src/hostname/org.freedesktop.hostname1.policy.in |
3280 | + |
3281 | +EXTRA_DIST += \ |
3282 | + units/systemd-hostnamed.service.in |
3283 | + |
3284 | +# ------------------------------------------------------------------------------ |
3285 | +if ENABLE_LOCALED |
3286 | +systemd_localed_SOURCES = \ |
3287 | + src/locale/localed.c |
3288 | + |
3289 | +systemd_localed_CFLAGS = \ |
3290 | + $(AM_CFLAGS) \ |
3291 | + $(DBUS_CFLAGS) |
3292 | + |
3293 | +systemd_localed_LDADD = \ |
3294 | + libsystemd-label.la \ |
3295 | + libsystemd-shared.la \ |
3296 | + libsystemd-daemon.la \ |
3297 | + libsystemd-dbus.la |
3298 | + |
3299 | +nodist_systemunit_DATA += \ |
3300 | + units/systemd-localed.service |
3301 | + |
3302 | +rootlibexec_PROGRAMS += \ |
3303 | + systemd-localed |
3304 | + |
3305 | +dist_dbuspolicy_DATA += \ |
3306 | + src/locale/org.freedesktop.locale1.conf |
3307 | + |
3308 | +dist_dbussystemservice_DATA += \ |
3309 | + src/locale/org.freedesktop.locale1.service |
3310 | + |
3311 | +polkitpolicy_files += \ |
3312 | + src/locale/org.freedesktop.locale1.policy |
3313 | + |
3314 | +dbusinterface_DATA += \ |
3315 | + org.freedesktop.locale1.xml |
3316 | + |
3317 | +org.freedesktop.locale1.xml: systemd-localed |
3318 | + $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \ |
3319 | + $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \ |
3320 | + $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp |
3321 | + |
3322 | +SYSTEM_UNIT_ALIASES += \ |
3323 | + systemd-localed.service dbus-org.freedesktop.locale1.service |
3324 | + |
3325 | +dist_pkgdata_DATA += \ |
3326 | + src/locale/kbd-model-map |
3327 | + |
3328 | +dist_noinst_SCRIPT = \ |
3329 | + src/locale/generate-kbd-model-map |
3330 | + |
3331 | +update-kbd-model-map: src/locale/generate-kbd-model-map |
3332 | + $PYTHON $< > src/locale/kbd-model-map |
3333 | + |
3334 | +localectl_SOURCES = \ |
3335 | + src/locale/localectl.c |
3336 | + |
3337 | +localectl_CFLAGS = \ |
3338 | + $(AM_CFLAGS) \ |
3339 | + $(DBUS_CFLAGS) |
3340 | + |
3341 | +localectl_LDADD = \ |
3342 | + libsystemd-shared.la \ |
3343 | + libsystemd-dbus.la \ |
3344 | + libsystemd-id128-internal.la |
3345 | + |
3346 | +bin_PROGRAMS += \ |
3347 | + localectl |
3348 | + |
3349 | +dist_bashcompletion_DATA += \ |
3350 | + shell-completion/bash/localectl |
3351 | + |
3352 | +endif |
3353 | + |
3354 | +polkitpolicy_in_files += \ |
3355 | + src/locale/org.freedesktop.locale1.policy.in |
3356 | + |
3357 | +EXTRA_DIST += \ |
3358 | + units/systemd-localed.service.in |
3359 | + |
3360 | +# ------------------------------------------------------------------------------ |
3361 | +if ENABLE_TIMEDATED |
3362 | +systemd_timedated_SOURCES = \ |
3363 | + src/timedate/timedated.c |
3364 | + |
3365 | +systemd_timedated_CFLAGS = \ |
3366 | + $(AM_CFLAGS) \ |
3367 | + $(DBUS_CFLAGS) |
3368 | + |
3369 | +systemd_timedated_LDADD = \ |
3370 | + libsystemd-label.la \ |
3371 | + libsystemd-shared.la \ |
3372 | + libsystemd-daemon.la \ |
3373 | + libsystemd-dbus.la |
3374 | + |
3375 | +rootlibexec_PROGRAMS += \ |
3376 | + systemd-timedated |
3377 | + |
3378 | +dist_dbussystemservice_DATA += \ |
3379 | + src/timedate/org.freedesktop.timedate1.service |
3380 | + |
3381 | +dist_dbuspolicy_DATA += \ |
3382 | + src/timedate/org.freedesktop.timedate1.conf |
3383 | + |
3384 | +nodist_systemunit_DATA += \ |
3385 | + units/systemd-timedated.service |
3386 | + |
3387 | +polkitpolicy_files += \ |
3388 | + src/timedate/org.freedesktop.timedate1.policy |
3389 | + |
3390 | +org.freedesktop.timedate1.xml: systemd-timedated |
3391 | + $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \ |
3392 | + $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \ |
3393 | + $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp |
3394 | + |
3395 | +dbusinterface_DATA += \ |
3396 | + org.freedesktop.timedate1.xml |
3397 | + |
3398 | +INSTALL_DIRS += \ |
3399 | + $(prefix)/lib/systemd/ntp-units.d \ |
3400 | + $(sysconfdir)/systemd/ntp-units.d |
3401 | + |
3402 | +SYSTEM_UNIT_ALIASES += \ |
3403 | + systemd-timedated.service dbus-org.freedesktop.timedate1.service |
3404 | + |
3405 | +timedatectl_SOURCES = \ |
3406 | + src/timedate/timedatectl.c |
3407 | + |
3408 | +timedatectl_CFLAGS = \ |
3409 | + $(AM_CFLAGS) \ |
3410 | + $(DBUS_CFLAGS) |
3411 | + |
3412 | +timedatectl_LDADD = \ |
3413 | + libsystemd-shared.la \ |
3414 | + libsystemd-dbus.la |
3415 | + |
3416 | +bin_PROGRAMS += \ |
3417 | + timedatectl |
3418 | + |
3419 | +dist_bashcompletion_DATA += \ |
3420 | + shell-completion/bash/timedatectl |
3421 | +endif |
3422 | + |
3423 | +polkitpolicy_in_files += \ |
3424 | + src/timedate/org.freedesktop.timedate1.policy.in |
3425 | + |
3426 | +EXTRA_DIST += \ |
3427 | + units/systemd-timedated.service.in |
3428 | + |
3429 | +# ------------------------------------------------------------------------------ |
3430 | +if ENABLE_EFI |
3431 | +bootctl_SOURCES = \ |
3432 | + src/boot/boot.h \ |
3433 | + src/boot/boot-loader.h \ |
3434 | + src/boot/bootctl.c \ |
3435 | + src/boot/boot-loader.c \ |
3436 | + src/boot/boot-efi.c |
3437 | + |
3438 | +bootctl_LDADD = \ |
3439 | + libsystemd-shared.la \ |
3440 | + libsystemd-id128.la \ |
3441 | + libsystemd-daemon.la |
3442 | + |
3443 | +bin_PROGRAMS += \ |
3444 | + bootctl |
3445 | +endif |
3446 | + |
3447 | +# ------------------------------------------------------------------------------ |
3448 | +if HAVE_MYHOSTNAME |
3449 | +libnss_myhostname_la_SOURCES = \ |
3450 | + src/nss-myhostname/nss-myhostname.c \ |
3451 | + src/nss-myhostname/ifconf.h \ |
3452 | + src/nss-myhostname/netlink.c |
3453 | + |
3454 | +libnss_myhostname_la_CFLAGS = \ |
3455 | + $(AM_CFLAGS) |
3456 | + |
3457 | +libnss_myhostname_la_LDFLAGS = \ |
3458 | + $(AM_LDFLAGS) \ |
3459 | + -module \ |
3460 | + -export-dynamic \ |
3461 | + -avoid-version \ |
3462 | + -shared \ |
3463 | + -shrext .so.2 |
3464 | + |
3465 | +lib_LTLIBRARIES += \ |
3466 | + libnss_myhostname.la |
3467 | +endif |
3468 | + |
3469 | +# ------------------------------------------------------------------------------ |
3470 | +if ENABLE_LOGIND |
3471 | +systemd_logind_SOURCES = \ |
3472 | + src/login/logind.c \ |
3473 | + src/login/logind.h \ |
3474 | + src/login/logind-dbus.c \ |
3475 | + src/login/logind-device.c \ |
3476 | + src/login/logind-device.h \ |
3477 | + src/login/logind-button.c \ |
3478 | + src/login/logind-button.h \ |
3479 | + src/login/logind-action.c \ |
3480 | + src/login/logind-action.h \ |
3481 | + src/login/logind-seat.c \ |
3482 | + src/login/logind-seat.h \ |
3483 | + src/login/logind-session.c \ |
3484 | + src/login/logind-session.h \ |
3485 | + src/login/logind-user.c \ |
3486 | + src/login/logind-user.h \ |
3487 | + src/login/logind-inhibit.c \ |
3488 | + src/login/logind-inhibit.h \ |
3489 | + src/login/logind-session-dbus.c \ |
3490 | + src/login/logind-seat-dbus.c \ |
3491 | + src/login/logind-user-dbus.c \ |
3492 | + src/login/logind-acl.h |
3493 | + |
3494 | +nodist_systemd_logind_SOURCES = \ |
3495 | + src/login/logind-gperf.c |
3496 | + |
3497 | +systemd_logind_CFLAGS = \ |
3498 | + $(AM_CFLAGS) \ |
3499 | + $(DBUS_CFLAGS) |
3500 | + |
3501 | +systemd_logind_LDADD = \ |
3502 | + libsystemd-label.la \ |
3503 | + libsystemd-audit.la \ |
3504 | + libsystemd-shared.la \ |
3505 | + libsystemd-daemon.la \ |
3506 | + libsystemd-dbus.la \ |
3507 | + libudev.la |
3508 | + |
3509 | +if HAVE_ACL |
3510 | +systemd_logind_SOURCES += \ |
3511 | + src/login/logind-acl.c |
3512 | + |
3513 | +systemd_logind_LDADD += \ |
3514 | + libsystemd-acl.la |
3515 | +endif |
3516 | + |
3517 | +systemd_user_sessions_SOURCES = \ |
3518 | + src/login/user-sessions.c |
3519 | + |
3520 | +systemd_user_sessions_LDADD = \ |
3521 | + libsystemd-shared.la |
3522 | + |
3523 | +rootlibexec_PROGRAMS += \ |
3524 | + systemd-logind \ |
3525 | + systemd-user-sessions |
3526 | + |
3527 | +loginctl_SOURCES = \ |
3528 | + src/login/loginctl.c \ |
3529 | + src/login/sysfs-show.c |
3530 | + |
3531 | +loginctl_CFLAGS = \ |
3532 | + $(AM_CFLAGS) \ |
3533 | + $(DBUS_CFLAGS) |
3534 | + |
3535 | +loginctl_LDADD = \ |
3536 | + libsystemd-shared.la \ |
3537 | + libsystemd-dbus.la \ |
3538 | + libudev.la |
3539 | + |
3540 | +rootbin_PROGRAMS += \ |
3541 | + loginctl |
3542 | + |
3543 | +dist_bashcompletion_DATA += \ |
3544 | + shell-completion/bash/loginctl |
3545 | + |
3546 | +systemd_inhibit_SOURCES = \ |
3547 | + src/login/inhibit.c |
3548 | + |
3549 | +systemd_inhibit_CFLAGS = \ |
3550 | + $(AM_CFLAGS) \ |
3551 | + $(DBUS_CFLAGS) |
3552 | + |
3553 | +systemd_inhibit_LDADD = \ |
3554 | + libsystemd-shared.la \ |
3555 | + libsystemd-dbus.la |
3556 | + |
3557 | +rootbin_PROGRAMS += \ |
3558 | + systemd-inhibit |
3559 | + |
3560 | +test_login_SOURCES = \ |
3561 | + src/login/test-login.c |
3562 | + |
3563 | +test_login_LDADD = \ |
3564 | + libsystemd-login-internal.la \ |
3565 | + libsystemd-shared.la |
3566 | + |
3567 | +test_inhibit_SOURCES = \ |
3568 | + src/login/test-inhibit.c |
3569 | + |
3570 | +test_inhibit_LDADD = \ |
3571 | + libsystemd-shared.la \ |
3572 | + libsystemd-dbus.la |
3573 | + |
3574 | +test_inhibit_CFLAGS = \ |
3575 | + $(AM_CFLAGS) \ |
3576 | + $(DBUS_CFLAGS) |
3577 | + |
3578 | +manual_tests += \ |
3579 | + test-login \ |
3580 | + test-inhibit |
3581 | + |
3582 | +libsystemd_login_la_SOURCES = \ |
3583 | + src/login/sd-login.c |
3584 | + |
3585 | +libsystemd_login_la_CFLAGS = \ |
3586 | + $(AM_CFLAGS) \ |
3587 | + -fvisibility=hidden |
3588 | + |
3589 | +libsystemd_login_la_LDFLAGS = \ |
3590 | + $(AM_LDFLAGS) \ |
3591 | + -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \ |
3592 | + -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym |
3593 | + |
3594 | +libsystemd_login_la_LIBADD = \ |
3595 | + libsystemd-shared.la \ |
3596 | + libsystemd-daemon-internal.la |
3597 | + |
3598 | +libsystemd_login_internal_la_SOURCES = \ |
3599 | + $(libsystemd_login_la_SOURCES) |
3600 | + |
3601 | +if HAVE_PAM |
3602 | +pam_systemd_la_SOURCES = \ |
3603 | + src/login/pam-module.c |
3604 | + |
3605 | +pam_systemd_la_CFLAGS = \ |
3606 | + $(AM_CFLAGS) \ |
3607 | + $(PAM_CFLAGS) \ |
3608 | + $(DBUS_CFLAGS) \ |
3609 | + -fvisibility=hidden |
3610 | + |
3611 | +pam_systemd_la_LDFLAGS = \ |
3612 | + $(AM_LDFLAGS) \ |
3613 | + -module \ |
3614 | + -export-dynamic \ |
3615 | + -avoid-version \ |
3616 | + -shared \ |
3617 | + -export-symbols-regex '^pam_sm_.*' |
3618 | + |
3619 | +pam_systemd_la_LIBADD = \ |
3620 | + libsystemd-audit.la \ |
3621 | + libsystemd-dbus.la \ |
3622 | + libsystemd-shared.la \ |
3623 | + libsystemd-daemon-internal.la \ |
3624 | + $(PAM_LIBS) |
3625 | + |
3626 | +pamlib_LTLIBRARIES = \ |
3627 | + pam_systemd.la |
3628 | +endif |
3629 | + |
3630 | +# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed |
3631 | +libsystemd-login-install-hook: |
3632 | + libname=libsystemd-login.so && $(move-to-rootlibdir) |
3633 | + |
3634 | +libsystemd-login-uninstall-hook: |
3635 | + rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so* |
3636 | + |
3637 | +INSTALL_EXEC_HOOKS += libsystemd-login-install-hook |
3638 | +UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook |
3639 | + |
3640 | +nodist_systemunit_DATA += \ |
3641 | + units/systemd-logind.service \ |
3642 | + units/systemd-user-sessions.service |
3643 | + |
3644 | +dist_dbussystemservice_DATA += \ |
3645 | + src/login/org.freedesktop.login1.service |
3646 | + |
3647 | +dist_dbuspolicy_DATA += \ |
3648 | + src/login/org.freedesktop.login1.conf |
3649 | + |
3650 | +dist_pkgsysconf_DATA += \ |
3651 | + src/login/logind.conf |
3652 | + |
3653 | +pkginclude_HEADERS += \ |
3654 | + src/systemd/sd-login.h |
3655 | + |
3656 | +lib_LTLIBRARIES += \ |
3657 | + libsystemd-login.la |
3658 | + |
3659 | +noinst_LTLIBRARIES += \ |
3660 | + libsystemd-login-internal.la |
3661 | + |
3662 | +pkgconfiglib_DATA += \ |
3663 | + src/login/libsystemd-login.pc |
3664 | + |
3665 | +polkitpolicy_files += \ |
3666 | + src/login/org.freedesktop.login1.policy |
3667 | + |
3668 | +INSTALL_DIRS += \ |
3669 | + $(systemdstatedir) |
3670 | + |
3671 | +MULTI_USER_TARGET_WANTS += \ |
3672 | + systemd-logind.service \ |
3673 | + systemd-user-sessions.service |
3674 | + |
3675 | +SYSTEM_UNIT_ALIASES += \ |
3676 | + systemd-logind.service dbus-org.freedesktop.login1.service |
3677 | + |
3678 | +systemd_multi_seat_x_SOURCES = \ |
3679 | + src/login/multi-seat-x.c |
3680 | + |
3681 | +systemd_multi_seat_x_LDADD = \ |
3682 | + libsystemd-label.la \ |
3683 | + libsystemd-shared.la |
3684 | + |
3685 | +rootlibexec_PROGRAMS += \ |
3686 | + systemd-multi-seat-x |
3687 | + |
3688 | +dist_udevrules_DATA += \ |
3689 | + src/login/70-uaccess.rules \ |
3690 | + src/login/70-power-switch.rules |
3691 | + |
3692 | +nodist_udevrules_DATA += \ |
3693 | + src/login/71-seat.rules \ |
3694 | + src/login/73-seat-late.rules |
3695 | + |
3696 | +CLEANFILES += \ |
3697 | + src/login/logind-gperf.c \ |
3698 | + src/login/71-seat.rules \ |
3699 | + src/login/73-seat-late.rules |
3700 | +endif |
3701 | + |
3702 | +polkitpolicy_in_files += \ |
3703 | + src/login/org.freedesktop.login1.policy.in |
3704 | + |
3705 | +EXTRA_DIST += \ |
3706 | + src/login/logind-gperf.gperf \ |
3707 | + src/login/libsystemd-login.pc.in \ |
3708 | + src/login/libsystemd-login.sym \ |
3709 | + src/login/71-seat.rules.in \ |
3710 | + src/login/73-seat-late.rules.in \ |
3711 | + units/systemd-logind.service.in \ |
3712 | + units/systemd-user-sessions.service.in |
3713 | + |
3714 | +# ------------------------------------------------------------------------------ |
3715 | +if HAVE_PYTHON_DEVEL |
3716 | +pkgpyexec_LTLIBRARIES = \ |
3717 | + _journal.la \ |
3718 | + id128.la \ |
3719 | + _daemon.la \ |
3720 | + _reader.la \ |
3721 | + login.la |
3722 | + |
3723 | +_journal_la_SOURCES = \ |
3724 | + src/python-systemd/_journal.c |
3725 | + |
3726 | +_journal_la_CFLAGS = \ |
3727 | + $(AM_CFLAGS) \ |
3728 | + -fvisibility=default \ |
3729 | + $(PYTHON_CFLAGS) |
3730 | + |
3731 | +_journal_la_LDFLAGS = \ |
3732 | + $(AM_LDFLAGS) \ |
3733 | + -shared \ |
3734 | + -module \ |
3735 | + -avoid-version |
3736 | + |
3737 | +_journal_la_LIBADD = \ |
3738 | + $(PYTHON_LIBS) \ |
3739 | + libsystemd-journal.la |
3740 | + |
3741 | +id128_la_SOURCES = \ |
3742 | + src/python-systemd/id128.c \ |
3743 | + src/python-systemd/id128-constants.h \ |
3744 | + src/python-systemd/pyutil.c \ |
3745 | + src/python-systemd/pyutil.h |
3746 | + |
3747 | +id128_la_CFLAGS = \ |
3748 | + $(AM_CFLAGS) \ |
3749 | + -fvisibility=default \ |
3750 | + $(PYTHON_CFLAGS) \ |
3751 | + -I$(top_builddir)/src/python-systemd |
3752 | + |
3753 | +id128_la_LDFLAGS = \ |
3754 | + $(AM_LDFLAGS) \ |
3755 | + -shared \ |
3756 | + -module \ |
3757 | + -avoid-version |
3758 | + |
3759 | +id128_la_LIBADD = \ |
3760 | + $(PYTHON_LIBS) \ |
3761 | + libsystemd-id128.la |
3762 | + |
3763 | +_daemon_la_SOURCES = \ |
3764 | + src/python-systemd/_daemon.c \ |
3765 | + src/python-systemd/pyutil.c \ |
3766 | + src/python-systemd/pyutil.h |
3767 | + |
3768 | +_daemon_la_CFLAGS = \ |
3769 | + $(AM_CFLAGS) \ |
3770 | + -fvisibility=default \ |
3771 | + $(PYTHON_CFLAGS) \ |
3772 | + -I$(top_builddir)/src/python-systemd |
3773 | + |
3774 | +_daemon_la_LDFLAGS = \ |
3775 | + $(AM_LDFLAGS) \ |
3776 | + -shared \ |
3777 | + -module \ |
3778 | + -avoid-version |
3779 | + |
3780 | +_daemon_la_LIBADD = \ |
3781 | + $(PYTHON_LIBS) \ |
3782 | + libsystemd-daemon.la |
3783 | + |
3784 | +_reader_la_SOURCES = \ |
3785 | + src/python-systemd/_reader.c \ |
3786 | + src/python-systemd/pyutil.c \ |
3787 | + src/python-systemd/pyutil.h |
3788 | + |
3789 | +_reader_la_CFLAGS = \ |
3790 | + $(AM_CFLAGS) \ |
3791 | + -fvisibility=default \ |
3792 | + $(PYTHON_CFLAGS) |
3793 | + |
3794 | +_reader_la_LDFLAGS = \ |
3795 | + $(AM_LDFLAGS) \ |
3796 | + -shared \ |
3797 | + -module \ |
3798 | + -avoid-version |
3799 | + |
3800 | +_reader_la_LIBADD = \ |
3801 | + $(PYTHON_LIBS) \ |
3802 | + libsystemd-journal.la \ |
3803 | + libsystemd-id128.la \ |
3804 | + libsystemd-shared.la \ |
3805 | + libsystemd-daemon-internal.la |
3806 | + |
3807 | +login_la_SOURCES = \ |
3808 | + src/python-systemd/login.c \ |
3809 | + src/python-systemd/pyutil.c \ |
3810 | + src/python-systemd/pyutil.h |
3811 | + |
3812 | +login_la_CFLAGS = \ |
3813 | + $(AM_CFLAGS) \ |
3814 | + -fvisibility=default \ |
3815 | + $(PYTHON_CFLAGS) |
3816 | + |
3817 | +login_la_LDFLAGS = \ |
3818 | + $(AM_LDFLAGS) \ |
3819 | + -shared \ |
3820 | + -module \ |
3821 | + -avoid-version |
3822 | + |
3823 | +login_la_LIBADD = \ |
3824 | + $(PYTHON_LIBS) \ |
3825 | + libsystemd-journal.la \ |
3826 | + libsystemd-login.la \ |
3827 | + libsystemd-shared.la \ |
3828 | + libsystemd-daemon-internal.la |
3829 | + |
3830 | +dist_pkgpyexec_PYTHON = \ |
3831 | + src/python-systemd/journal.py \ |
3832 | + src/python-systemd/daemon.py \ |
3833 | + src/python-systemd/__init__.py |
3834 | + |
3835 | +src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile |
3836 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
3837 | + $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@ |
3838 | + |
3839 | +BUILT_SOURCES += \ |
3840 | + src/python-systemd/id128-constants.h |
3841 | + |
3842 | +SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION) |
3843 | +sphinx-%: |
3844 | + $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; } |
3845 | + $(AM_V_GEN)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) $(top_srcdir)/src/python-systemd/docs $(top_builddir)/docs/html/python-systemd/ |
3846 | + $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/ |
3847 | + |
3848 | +destdir-sphinx: all |
3849 | + dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \ |
3850 | + $(MAKE) DESTDIR="$$dir" install && \ |
3851 | + $(MAKE) DESTDIR="$$dir" sphinx-html && \ |
3852 | + rm -rf "$$dir" |
3853 | + |
3854 | +endif |
3855 | + |
3856 | +CLEAN_LOCAL_HOOKS += clean-sphinx |
3857 | + |
3858 | +clean-sphinx: |
3859 | + -rm -rf docs/html/python-systemd/ |
3860 | + |
3861 | +# ------------------------------------------------------------------------------ |
3862 | +substitutions = \ |
3863 | + '|rootlibexecdir=$(rootlibexecdir)|' \ |
3864 | + '|rootbindir=$(rootbindir)|' \ |
3865 | + '|bindir=$(bindir)|' \ |
3866 | + '|SYSTEMCTL=$(rootbindir)/systemctl|' \ |
3867 | + '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \ |
3868 | + '|pkgsysconfdir=$(pkgsysconfdir)|' \ |
3869 | + '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \ |
3870 | + '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \ |
3871 | + '|pkgdatadir=$(pkgdatadir)|' \ |
3872 | + '|systemunitdir=$(systemunitdir)|' \ |
3873 | + '|userunitdir=$(userunitdir)|' \ |
3874 | + '|systempresetdir=$(systempresetdir)|' \ |
3875 | + '|userpresetdir=$(userpresetdir)|' \ |
3876 | + '|udevhwdbdir=$(udevhwdbdir)|' \ |
3877 | + '|udevrulesdir=$(udevrulesdir)|' \ |
3878 | + '|catalogdir=$(catalogdir)|' \ |
3879 | + '|tmpfilesdir=$(tmpfilesdir)|' \ |
3880 | + '|sysctldir=$(sysctldir)|' \ |
3881 | + '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \ |
3882 | + '|PACKAGE_NAME=$(PACKAGE_NAME)|' \ |
3883 | + '|PACKAGE_URL=$(PACKAGE_URL)|' \ |
3884 | + '|RANDOM_SEED=$(localstatedir)/lib/random-seed|' \ |
3885 | + '|prefix=$(prefix)|' \ |
3886 | + '|exec_prefix=$(exec_prefix)|' \ |
3887 | + '|libdir=$(libdir)|' \ |
3888 | + '|includedir=$(includedir)|' \ |
3889 | + '|VERSION=$(VERSION)|' \ |
3890 | + '|rootprefix=$(rootprefix)|' \ |
3891 | + '|udevlibexecdir=$(udevlibexecdir)|' \ |
3892 | + '|SUSHELL=$(SUSHELL)|' \ |
3893 | + '|DEBUGTTY=$(DEBUGTTY)|' \ |
3894 | + '|KILL=$(KILL)|' \ |
3895 | + '|QUOTAON=$(QUOTAON)|' \ |
3896 | + '|QUOTACHECK=$(QUOTACHECK)|' \ |
3897 | + '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \ |
3898 | + '|VARLOGDIR=$(varlogdir)|' \ |
3899 | + '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \ |
3900 | + '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \ |
3901 | + '|PYTHON=$(PYTHON)|' \ |
3902 | + '|PYTHON_BINARY=$(PYTHON_BINARY)|' |
3903 | + |
3904 | +SED_PROCESS = \ |
3905 | + $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ |
3906 | + $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \ |
3907 | + < $< > $@ |
3908 | + |
3909 | +units/%: units/%.in Makefile |
3910 | + $(SED_PROCESS) |
3911 | + |
3912 | +man/%: man/%.in Makefile |
3913 | + $(SED_PROCESS) |
3914 | + |
3915 | +sysctl.d/%: sysctl.d/%.in Makefile |
3916 | + $(SED_PROCESS) |
3917 | + |
3918 | +%.pc: %.pc.in Makefile |
3919 | + $(SED_PROCESS) |
3920 | + |
3921 | +src/core/macros.%: src/core/macros.%.in Makefile |
3922 | + $(SED_PROCESS) |
3923 | + |
3924 | +src/%.policy.in: src/%.policy.in.in Makefile |
3925 | + $(SED_PROCESS) |
3926 | + |
3927 | +%.rules: %.rules.in Makefile |
3928 | + $(SED_PROCESS) |
3929 | + |
3930 | +%.sh: %.sh.in Makefile |
3931 | + $(SED_PROCESS) |
3932 | + $(AM_V_GEN)chmod +x $@ |
3933 | + |
3934 | +src/%.c: src/%.gperf |
3935 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
3936 | + $(AM_V_GPERF)$(GPERF) < $< > $@ |
3937 | + |
3938 | +src/%: src/%.m4 |
3939 | + $(AM_V_at)$(MKDIR_P) $(dir $@) |
3940 | + $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@ |
3941 | + |
3942 | +units/%: units/%.m4 Makefile |
3943 | + $(AM_V_M4)$(MKDIR_P) $(dir $@) |
3944 | + $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ |
3945 | + |
3946 | +units/user/%: units/%.m4 Makefile |
3947 | + $(AM_V_M4)$(MKDIR_P) $(dir $@) |
3948 | + $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ |
3949 | + |
3950 | +if ENABLE_POLKIT |
3951 | +nodist_polkitpolicy_DATA = \ |
3952 | + $(polkitpolicy_files) \ |
3953 | + $(polkitpolicy_in_in_files:.policy.in.in=.policy) |
3954 | +endif |
3955 | + |
3956 | +EXTRA_DIST += \ |
3957 | + $(polkitpolicy_in_files) \ |
3958 | + $(polkitpolicy_in_in_files) |
3959 | + |
3960 | +CLEANFILES += \ |
3961 | + $(nodist_systemunit_DATA) \ |
3962 | + $(nodist_userunit_DATA) \ |
3963 | + $(pkgconfigdata_DATA) \ |
3964 | + $(pkgconfiglib_DATA) \ |
3965 | + $(nodist_polkitpolicy_DATA) |
3966 | + |
3967 | +# ------------------------------------------------------------------------------ |
3968 | +if ENABLE_MANPAGES |
3969 | +man/custom-entities.ent: Makefile |
3970 | + $(AM_V_GEN)$(MKDIR_P) $(dir $@) |
3971 | + $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \ |
3972 | + echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(substitutions))))') \ |
3973 | + > $@ # ' |
3974 | + |
3975 | +DISTCLEANFILES += \ |
3976 | + man/custom-entities.ent |
3977 | + |
3978 | +XSLTPROC_FLAGS = \ |
3979 | + --nonet \ |
3980 | + --stringparam man.output.quietly 1 \ |
3981 | + --stringparam funcsynopsis.style ansi \ |
3982 | + --stringparam man.authors.section.enabled 0 \ |
3983 | + --stringparam man.copyright.section.enabled 0 \ |
3984 | + --stringparam systemd.version $(VERSION) \ |
3985 | + --path '$(builddir)/man:$(srcdir)/man' |
3986 | + |
3987 | +XSLTPROC_PROCESS_MAN = \ |
3988 | + $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $< |
3989 | + |
3990 | +XSLTPROC_PROCESS_HTML = \ |
3991 | + $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< |
3992 | + |
3993 | +man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent |
3994 | + $(XSLTPROC_PROCESS_MAN) |
3995 | + |
3996 | +man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent |
3997 | + $(XSLTPROC_PROCESS_MAN) |
3998 | + |
3999 | +man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent |
4000 | + $(XSLTPROC_PROCESS_MAN) |
4001 | + |
4002 | +man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent |
4003 | + $(XSLTPROC_PROCESS_MAN) |
4004 | + |
4005 | +man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent |
4006 | + $(XSLTPROC_PROCESS_MAN) |
4007 | + |
4008 | +man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent |
4009 | + $(XSLTPROC_PROCESS_HTML) |
4010 | + |
4011 | +define html-alias |
4012 | + $(AM_V_LN)$(LN_S) -f $(notdir $<) $@ |
4013 | +endef |
4014 | + |
4015 | +endif |
4016 | + |
4017 | +EXTRA_DIST += \ |
4018 | + man/custom-html.xsl \ |
4019 | + man/custom-man.xsl |
4020 | + |
4021 | +# ------------------------------------------------------------------------------ |
4022 | +DBUS_PREPROCESS = $(CPP) -P $(CFLAGS) $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h |
4023 | + |
4024 | +CLEANFILES += \ |
4025 | + $(dbusinterface_DATA) |
4026 | + |
4027 | +if HAVE_SYSV_COMPAT |
4028 | +sysvinit_DATA = \ |
4029 | + docs/sysvinit/README |
4030 | + |
4031 | +varlog_DATA = \ |
4032 | + docs/var-log/README |
4033 | + |
4034 | +docs/sysvinit/README: docs/sysvinit/README.in |
4035 | + $(SED_PROCESS) |
4036 | + |
4037 | +docs/var-log/README: docs/var-log/README.in |
4038 | + $(SED_PROCESS) |
4039 | + |
4040 | +CLEANFILES += \ |
4041 | + docs/sysvinit/README \ |
4042 | + docs/var-log/README |
4043 | +endif |
4044 | + |
4045 | +EXTRA_DIST += \ |
4046 | + docs/sysvinit/README.in \ |
4047 | + docs/var-log/README.in |
4048 | + |
4049 | +EXTRA_DIST += \ |
4050 | + shell-completion/systemd-zsh-completion.zsh |
4051 | + |
4052 | +SOCKETS_TARGET_WANTS += \ |
4053 | + systemd-initctl.socket \ |
4054 | + systemd-shutdownd.socket |
4055 | + |
4056 | +if HAVE_SYSV_COMPAT |
4057 | +RUNLEVEL1_TARGET_WANTS += \ |
4058 | + systemd-update-utmp-runlevel.service |
4059 | +RUNLEVEL2_TARGET_WANTS += \ |
4060 | + systemd-update-utmp-runlevel.service |
4061 | +RUNLEVEL3_TARGET_WANTS += \ |
4062 | + systemd-update-utmp-runlevel.service |
4063 | +RUNLEVEL4_TARGET_WANTS += \ |
4064 | + systemd-update-utmp-runlevel.service |
4065 | +RUNLEVEL5_TARGET_WANTS += \ |
4066 | + systemd-update-utmp-runlevel.service |
4067 | +endif |
4068 | +SHUTDOWN_TARGET_WANTS += \ |
4069 | + systemd-update-utmp-shutdown.service |
4070 | +LOCAL_FS_TARGET_WANTS += \ |
4071 | + systemd-remount-fs.service \ |
4072 | + systemd-fsck-root.service \ |
4073 | + tmp.mount |
4074 | +MULTI_USER_TARGET_WANTS += \ |
4075 | + getty.target \ |
4076 | + systemd-ask-password-wall.path |
4077 | +SYSINIT_TARGET_WANTS += \ |
4078 | + dev-hugepages.mount \ |
4079 | + dev-mqueue.mount \ |
4080 | + sys-kernel-config.mount \ |
4081 | + sys-kernel-debug.mount \ |
4082 | + sys-fs-fuse-connections.mount \ |
4083 | + systemd-tmpfiles-setup-dev.service \ |
4084 | + systemd-tmpfiles-setup.service \ |
4085 | + systemd-sysctl.service \ |
4086 | + systemd-ask-password-console.path |
4087 | +TIMERS_TARGET_WANTS += \ |
4088 | + systemd-tmpfiles-clean.timer |
4089 | + |
4090 | +if HAVE_SYSV_COMPAT |
4091 | +SYSTEM_UNIT_ALIASES += \ |
4092 | + poweroff.target runlevel0.target \ |
4093 | + rescue.target runlevel1.target \ |
4094 | + multi-user.target runlevel2.target \ |
4095 | + multi-user.target runlevel3.target \ |
4096 | + multi-user.target runlevel4.target \ |
4097 | + graphical.target runlevel5.target \ |
4098 | + reboot.target runlevel6.target |
4099 | +endif |
4100 | + |
4101 | +SYSTEM_UNIT_ALIASES += \ |
4102 | + graphical.target default.target \ |
4103 | + reboot.target ctrl-alt-del.target \ |
4104 | + getty@.service autovt@.service |
4105 | + |
4106 | +USER_UNIT_ALIASES += \ |
4107 | + $(systemunitdir)/shutdown.target shutdown.target \ |
4108 | + $(systemunitdir)/sockets.target sockets.target \ |
4109 | + $(systemunitdir)/timers.target timers.target \ |
4110 | + $(systemunitdir)/paths.target paths.target \ |
4111 | + $(systemunitdir)/bluetooth.target bluetooth.target \ |
4112 | + $(systemunitdir)/printer.target printer.target \ |
4113 | + $(systemunitdir)/sound.target sound.target \ |
4114 | + $(systemunitdir)/smartcard.target smartcard.target |
4115 | + |
4116 | +GENERAL_ALIASES += \ |
4117 | + $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \ |
4118 | + $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \ |
4119 | + $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \ |
4120 | + ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service |
4121 | + |
4122 | +if HAVE_SYSV_COMPAT |
4123 | +INSTALL_DIRS += \ |
4124 | + $(systemunitdir)/runlevel1.target.wants \ |
4125 | + $(systemunitdir)/runlevel2.target.wants \ |
4126 | + $(systemunitdir)/runlevel3.target.wants \ |
4127 | + $(systemunitdir)/runlevel4.target.wants \ |
4128 | + $(systemunitdir)/runlevel5.target.wants |
4129 | +endif |
4130 | + |
4131 | +INSTALL_DIRS += \ |
4132 | + $(tmpfilesdir) \ |
4133 | + $(sysconfdir)/tmpfiles.d \ |
4134 | + $(prefix)/lib/modules-load.d \ |
4135 | + $(sysconfdir)/modules-load.d \ |
4136 | + $(prefix)/lib/sysctl.d \ |
4137 | + $(sysconfdir)/sysctl.d \ |
4138 | + $(prefix)/lib/kernel/install.d \ |
4139 | + $(sysconfdir)/kernel/install.d \ |
4140 | + $(systemshutdowndir) \ |
4141 | + $(systemsleepdir) \ |
4142 | + $(systemgeneratordir) \ |
4143 | + $(usergeneratordir) \ |
4144 | + \ |
4145 | + $(userunitdir) \ |
4146 | + $(pkgsysconfdir)/system \ |
4147 | + $(pkgsysconfdir)/system/multi-user.target.wants \ |
4148 | + $(pkgsysconfdir)/system/getty.target.wants \ |
4149 | + $(pkgsysconfdir)/user \ |
4150 | + $(dbussessionservicedir) \ |
4151 | + $(sysconfdir)/xdg/systemd |
4152 | + |
4153 | +install-exec-hook: $(INSTALL_EXEC_HOOKS) |
4154 | + |
4155 | +uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS) |
4156 | + |
4157 | +install-data-hook: $(INSTALL_DATA_HOOKS) |
4158 | + |
4159 | +distclean-local: $(DISTCLEAN_LOCAL_HOOKS) |
4160 | + |
4161 | +clean-local: $(CLEAN_LOCAL_HOOKS) |
4162 | + rm -rf $(abs_srcdir)/install-tree |
4163 | + rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \ |
4164 | + $(abs_srcdir)/hwdb/iab.txt |
4165 | + |
4166 | +DISTCHECK_CONFIGURE_FLAGS = \ |
4167 | + --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \ |
4168 | + --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \ |
4169 | + --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \ |
4170 | + --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \ |
4171 | + --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \ |
4172 | + --with-pamlibdir=$$dc_install_base/$(pamlibdir) \ |
4173 | + --with-rootprefix=$$dc_install_base \ |
4174 | + --disable-split-usr |
4175 | + |
4176 | +if HAVE_SYSV_COMPAT |
4177 | +DISTCHECK_CONFIGURE_FLAGS += \ |
4178 | + --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \ |
4179 | + --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir) |
4180 | +else |
4181 | +DISTCHECK_CONFIGURE_FLAGS += \ |
4182 | + --with-sysvinit-path= \ |
4183 | + --with-sysvrcnd-path= |
4184 | +endif |
4185 | + |
4186 | +if ENABLE_GTK_DOC |
4187 | +DISTCHECK_CONFIGURE_FLAGS += \ |
4188 | + --enable-gtk-doc |
4189 | +endif |
4190 | + |
4191 | +hwdb-update: |
4192 | + ( cd $(top_srcdir)/hwdb && \ |
4193 | + wget -N http://www.linux-usb.org/usb.ids \ |
4194 | + http://pci-ids.ucw.cz/v2.2/pci.ids \ |
4195 | + http://standards.ieee.org/develop/regauth/oui/oui.txt \ |
4196 | + http://standards.ieee.org/develop/regauth/iab/iab.txt && \ |
4197 | + ./ids-update.pl ) |
4198 | + |
4199 | +kdbus-update: |
4200 | + ( cd $(top_srcdir)/src/libsystemd-bus/ && \ |
4201 | + wget -N https://d-bus.googlecode.com/git/kdbus.h ) |
4202 | + |
4203 | +upload: all distcheck |
4204 | + cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/ |
4205 | + scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/ |
4206 | + scp man/*.html tango:public/systemd-man/ |
4207 | + |
4208 | +www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd |
4209 | +doc-sync: all destdir-sphinx |
4210 | + gtkdoc-rebase --html-dir=docs/libudev/html --online |
4211 | + rsync -rlv --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/ |
4212 | + gtkdoc-rebase --html-dir=docs/gudev/html --online |
4213 | + rsync -rlv --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/ |
4214 | + rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/ |
4215 | + rsync -rlv --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/ |
4216 | + |
4217 | +git-tag: |
4218 | + git tag "v$(VERSION)" -m "systemd $(VERSION)" |
4219 | + |
4220 | +install-tree: all |
4221 | + rm -rf $(abs_srcdir)/install-tree |
4222 | + $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree |
4223 | + tree $(abs_srcdir)/install-tree |
4224 | |
4225 | === added file '.pc/add-cgmanager-support/configure.ac' |
4226 | --- .pc/add-cgmanager-support/configure.ac 1970-01-01 00:00:00 +0000 |
4227 | +++ .pc/add-cgmanager-support/configure.ac 2014-03-19 21:34:41 +0000 |
4228 | @@ -0,0 +1,978 @@ |
4229 | +# |
4230 | +# This file is part of systemd. |
4231 | +# |
4232 | +# Copyright 2010-2012 Lennart Poettering |
4233 | +# Copyright 2010-2012 Kay Sievers |
4234 | +# |
4235 | +# systemd is free software; you can redistribute it and/or modify it |
4236 | +# under the terms of the GNU Lesser General Public License as published by |
4237 | +# the Free Software Foundation; either version 2.1 of the License, or |
4238 | +# (at your option) any later version. |
4239 | +# |
4240 | +# systemd is distributed in the hope that it will be useful, but |
4241 | +# WITHOUT ANY WARRANTY; without even the implied warranty of |
4242 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
4243 | +# Lesser General Public License for more details. |
4244 | +# |
4245 | +# You should have received a copy of the GNU Lesser General Public License |
4246 | +# along with systemd; If not, see <http://www.gnu.org/licenses/>. |
4247 | + |
4248 | +AC_PREREQ([2.64]) |
4249 | + |
4250 | +AC_INIT([systemd], |
4251 | + [204], |
4252 | + [http://bugs.freedesktop.org/enter_bug.cgi?product=systemd], |
4253 | + [systemd], |
4254 | + [http://www.freedesktop.org/wiki/Software/systemd]) |
4255 | + |
4256 | +AC_CONFIG_SRCDIR([src/core/main.c]) |
4257 | +AC_CONFIG_MACRO_DIR([m4]) |
4258 | +AC_CONFIG_HEADERS([config.h]) |
4259 | +AC_CONFIG_AUX_DIR([build-aux]) |
4260 | + |
4261 | +AC_USE_SYSTEM_EXTENSIONS |
4262 | +AC_SYS_LARGEFILE |
4263 | +AC_PREFIX_DEFAULT([/usr]) |
4264 | +AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects check-news]) |
4265 | +AM_SILENT_RULES([yes]) |
4266 | +AC_CANONICAL_HOST |
4267 | +AC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.]) |
4268 | +AS_IF([test "x$host_cpu" = "xmips" || test "x$host_cpu" = "xmipsel" || |
4269 | + test "x$host_cpu" = "xmips64" || test "x$host_cpu" = "xmips64el"], |
4270 | + [AC_DEFINE(ARCH_MIPS, [], [Whether on mips arch])]) |
4271 | + |
4272 | +LT_PREREQ(2.2) |
4273 | +LT_INIT([disable-static]) |
4274 | + |
4275 | +# i18n stuff for the PolicyKit policy files |
4276 | +IT_PROG_INTLTOOL([0.40.0]) |
4277 | + |
4278 | +GETTEXT_PACKAGE=systemd |
4279 | +AC_SUBST(GETTEXT_PACKAGE) |
4280 | + |
4281 | +AC_PROG_MKDIR_P |
4282 | +AC_PROG_LN_S |
4283 | +AC_PROG_SED |
4284 | +AC_PROG_GREP |
4285 | +AC_PROG_AWK |
4286 | + |
4287 | +AC_PROG_CC |
4288 | +AC_PROG_CC_C99 |
4289 | +AM_PROG_CC_C_O |
4290 | +AC_PROG_GCC_TRADITIONAL |
4291 | + |
4292 | +AC_PATH_PROG([M4], [m4]) |
4293 | +AC_PATH_PROG([XSLTPROC], [xsltproc]) |
4294 | + |
4295 | +AC_PATH_PROG([QUOTAON], [quotaon], [/sbin/quotaon]) |
4296 | +AC_PATH_PROG([QUOTACHECK], [quotacheck], [/sbin/quotacheck]) |
4297 | + |
4298 | +AC_PATH_PROG([SETCAP], [setcap], [/sbin/setcap]) |
4299 | + |
4300 | +AC_PATH_PROG([KILL], [kill], [/bin/kill]) |
4301 | + |
4302 | +# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line |
4303 | +m4_ifdef([GTK_DOC_CHECK], [ |
4304 | +GTK_DOC_CHECK([1.18],[--flavour no-tmpl]) |
4305 | +], [AM_CONDITIONAL([ENABLE_GTK_DOC], [false])]) |
4306 | + |
4307 | +AS_IF([test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x], [ |
4308 | + AC_MSG_ERROR([*** GTK doc requested but xsltproc not found]) |
4309 | +]) |
4310 | + |
4311 | +m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [ |
4312 | +GOBJECT_INTROSPECTION_CHECK([1.31.1]) |
4313 | +], [ |
4314 | + AM_CONDITIONAL([HAVE_INTROSPECTION], [false]) |
4315 | + enable_introspection=no]) |
4316 | + |
4317 | +AC_CHECK_TOOL(OBJCOPY, objcopy) |
4318 | +AC_CHECK_TOOL(STRINGS, strings) |
4319 | +AC_CHECK_TOOL(GPERF, gperf) |
4320 | +if test -z "$GPERF" ; then |
4321 | + AC_MSG_ERROR([*** gperf not found]) |
4322 | +fi |
4323 | + |
4324 | +CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\ |
4325 | + -pipe \ |
4326 | + -Wall \ |
4327 | + -Wextra \ |
4328 | + -Wno-inline \ |
4329 | + -Wundef \ |
4330 | + "-Wformat=2 -Wformat-security -Wformat-nonliteral" \ |
4331 | + -Wlogical-op \ |
4332 | + -Wsign-compare \ |
4333 | + -Wmissing-include-dirs \ |
4334 | + -Wold-style-definition \ |
4335 | + -Wpointer-arith \ |
4336 | + -Winit-self \ |
4337 | + -Wdeclaration-after-statement \ |
4338 | + -Wfloat-equal \ |
4339 | + -Wmissing-prototypes \ |
4340 | + -Wstrict-prototypes \ |
4341 | + -Wredundant-decls \ |
4342 | + -Wmissing-declarations \ |
4343 | + -Wmissing-noreturn \ |
4344 | + -Wshadow \ |
4345 | + -Wendif-labels \ |
4346 | + -Wcast-align \ |
4347 | + -Wstrict-aliasing=2 \ |
4348 | + -Wwrite-strings \ |
4349 | + -Wno-long-long \ |
4350 | + -Wno-overlength-strings \ |
4351 | + -Wno-unused-parameter \ |
4352 | + -Wno-missing-field-initializers \ |
4353 | + -Wno-unused-result \ |
4354 | + -Werror=overflow \ |
4355 | + -ffast-math \ |
4356 | + -fno-common \ |
4357 | + -fdiagnostics-show-option \ |
4358 | + -fno-strict-aliasing \ |
4359 | + -fvisibility=hidden \ |
4360 | + -ffunction-sections \ |
4361 | + -fdata-sections \ |
4362 | + -fstack-protector \ |
4363 | + --param=ssp-buffer-size=4]) |
4364 | +AC_SUBST([OUR_CFLAGS], $with_cflags) |
4365 | + |
4366 | +AS_CASE([$CFLAGS], [*-O[[12345g\ ]]*], [ |
4367 | + CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\ |
4368 | + -Wp,-D_FORTIFY_SOURCE=2])], [ |
4369 | + python_extra_cflags=-Wp,-U_FORTIFY_SOURCE |
4370 | + AC_MSG_RESULT([skipping -D_FORTIFY_SOURCE, optimization not enabled])]) |
4371 | +AC_SUBST([OUR_CPPFLAGS], $with_cppflags) |
4372 | + |
4373 | +CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\ |
4374 | + -Wl,--as-needed \ |
4375 | + -Wl,--no-undefined \ |
4376 | + -Wl,--gc-sections \ |
4377 | + -Wl,-z,relro \ |
4378 | + -Wl,-z,now]) |
4379 | +AC_SUBST([OUR_LDFLAGS], $with_ldflags) |
4380 | + |
4381 | +# ------------------------------------------------------------------------------ |
4382 | +# we use python to build the man page index, and for systemd-python |
4383 | +have_python=no |
4384 | +have_python_devel=no |
4385 | + |
4386 | +AC_ARG_WITH([python], |
4387 | + [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])]) |
4388 | + |
4389 | +AS_IF([test "x$with_python" != "xno"], [ |
4390 | + AM_PATH_PYTHON(,, [:]) |
4391 | + AS_IF([test "$PYTHON" != :], [have_python=yes]) |
4392 | +]) |
4393 | +AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"]) |
4394 | +AS_IF([test "x$PYTHON_BINARY" = "x"], |
4395 | + [AS_IF([test "x$have_python" = "xyes"], |
4396 | + [PYTHON_BINARY="$(which "$PYTHON")"], |
4397 | + [PYTHON_BINARY=/usr/bin/python])]) |
4398 | +AC_ARG_VAR(PYTHON_BINARY, [Python binary used to launch installed scripts]) |
4399 | + |
4400 | +AS_IF([test "x$with_python" != "xno"], [ |
4401 | + AC_PATH_PROG(PYTHON_CONFIG, python${PYTHON_VERSION}-config) |
4402 | + AS_IF([test -n "$PYTHON_CONFIG"], [ |
4403 | + have_python_devel=yes |
4404 | + PYTHON_CFLAGS="$($PYTHON_CONFIG --cflags) $python_extra_cflags" |
4405 | + PYTHON_LIBS="$($PYTHON_CONFIG --ldflags)" |
4406 | + AC_SUBST(PYTHON_CFLAGS) |
4407 | + AC_SUBST(PYTHON_LIBS) |
4408 | + AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build) |
4409 | + ]) |
4410 | +]) |
4411 | +AM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"]) |
4412 | + |
4413 | +# ------------------------------------------------------------------------------ |
4414 | + |
4415 | +AC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])]) |
4416 | +AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])]) |
4417 | + |
4418 | +save_LIBS="$LIBS" |
4419 | +LIBS= |
4420 | +AC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])]) |
4421 | +AC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])]) |
4422 | +CAP_LIBS="$LIBS" |
4423 | +LIBS="$save_LIBS" |
4424 | +AC_SUBST(CAP_LIBS) |
4425 | + |
4426 | +AC_CHECK_FUNCS([fanotify_init fanotify_mark]) |
4427 | +AC_CHECK_FUNCS([__secure_getenv secure_getenv]) |
4428 | +AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at], [], [], [[#include <sys/types.h> |
4429 | +#include <unistd.h> |
4430 | +#include <sys/mount.h> |
4431 | +#include <fcntl.h>]]) |
4432 | + |
4433 | +# This makes sure pkg.m4 is available. |
4434 | +m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config]) |
4435 | + |
4436 | +PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2]) |
4437 | + |
4438 | +# ------------------------------------------------------------------------------ |
4439 | +have_kmod=no |
4440 | +AC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules support])) |
4441 | +if test "x$enable_kmod" != "xno"; then |
4442 | + PKG_CHECK_MODULES(KMOD, [ libkmod >= 5 ], |
4443 | + [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available]) have_kmod=yes], have_kmod=no) |
4444 | + if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then |
4445 | + AC_MSG_ERROR([*** kmod support requested but libraries not found]) |
4446 | + fi |
4447 | +fi |
4448 | +AM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"]) |
4449 | + |
4450 | +# ------------------------------------------------------------------------------ |
4451 | +have_blkid=no |
4452 | +AC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support])) |
4453 | +if test "x$enable_blkid" != "xno"; then |
4454 | + PKG_CHECK_MODULES(BLKID, [ blkid >= 2.20 ], |
4455 | + [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no) |
4456 | + if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then |
4457 | + AC_MSG_ERROR([*** blkid support requested but libraries not found]) |
4458 | + fi |
4459 | +fi |
4460 | +AM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"]) |
4461 | + |
4462 | +# ------------------------------------------------------------------------------ |
4463 | +have_ima=yes |
4464 | +AC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]), |
4465 | + [case "${enableval}" in |
4466 | + yes) have_ima=yes ;; |
4467 | + no) have_ima=no ;; |
4468 | + *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;; |
4469 | + esac], |
4470 | + [have_ima=yes]) |
4471 | + |
4472 | +if test "x${have_ima}" != xno ; then |
4473 | + AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available]) |
4474 | +fi |
4475 | + |
4476 | +# ------------------------------------------------------------------------------ |
4477 | +have_chkconfig=yes |
4478 | +AC_ARG_ENABLE([chkconfig], AS_HELP_STRING([--disable-chkconfig],[Disable optional chkconfig support]), |
4479 | + [case "${enableval}" in |
4480 | + yes) have_chkconfig=yes ;; |
4481 | + no) have_chkconfig=no ;; |
4482 | + *) AC_MSG_ERROR(bad value ${enableval} for --disable-chkconfig) ;; |
4483 | + esac], |
4484 | + [AC_PATH_PROG(CHKCONFIG, chkconfig) |
4485 | + if test -z "$CHKCONFIG"; then |
4486 | + have_chkconfig=no |
4487 | + else |
4488 | + have_chkconfig=yes |
4489 | + fi]) |
4490 | + |
4491 | +if test "x${have_chkconfig}" != xno ; then |
4492 | + AC_DEFINE(HAVE_CHKCONFIG, 1, [Define if CHKCONFIG is available]) |
4493 | +fi |
4494 | + |
4495 | +# ------------------------------------------------------------------------------ |
4496 | +have_selinux=no |
4497 | +AC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support])) |
4498 | +if test "x$enable_selinux" != "xno"; then |
4499 | + PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9], |
4500 | + [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no) |
4501 | + if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then |
4502 | + AC_MSG_ERROR([*** SELinux support requested but libraries not found]) |
4503 | + fi |
4504 | +fi |
4505 | +AM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"]) |
4506 | + |
4507 | +AC_ARG_WITH(debug-shell, |
4508 | + AS_HELP_STRING([--with-debug-shell=PATH], |
4509 | + [Path to debug shell binary]), |
4510 | + [SUSHELL="$withval"],[ |
4511 | + AS_IF([test "x${have_selinux}" != "xno"], [SUSHELL="/sbin/sushell"] , [SUSHELL="/bin/sh"])]) |
4512 | + |
4513 | +AC_SUBST(SUSHELL) |
4514 | + |
4515 | +AC_ARG_WITH([debug-tty], |
4516 | + AS_HELP_STRING([--with-debug-tty=PATH], |
4517 | + [Specify the tty device for debug shell]), |
4518 | + [DEBUGTTY="$withval"], |
4519 | + [DEBUGTTY=/dev/tty9]) |
4520 | + |
4521 | +AC_SUBST(DEBUGTTY) |
4522 | + |
4523 | +# ------------------------------------------------------------------------------ |
4524 | +have_xz=no |
4525 | +AC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support])) |
4526 | +if test "x$enable_xz" != "xno"; then |
4527 | + PKG_CHECK_MODULES(XZ, [ liblzma ], |
4528 | + [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no) |
4529 | + if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then |
4530 | + AC_MSG_ERROR([*** Xz support requested but libraries not found]) |
4531 | + fi |
4532 | +fi |
4533 | +AM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"]) |
4534 | + |
4535 | +# ------------------------------------------------------------------------------ |
4536 | +AC_ARG_ENABLE([tcpwrap], |
4537 | + AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]), |
4538 | + [case "${enableval}" in |
4539 | + yes) have_tcpwrap=yes ;; |
4540 | + no) have_tcpwrap=no ;; |
4541 | + *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;; |
4542 | + esac], |
4543 | + [have_tcpwrap=auto]) |
4544 | + |
4545 | +if test "x${have_tcpwrap}" != xno ; then |
4546 | + ACX_LIBWRAP |
4547 | + if test "x${LIBWRAP_LIBS}" = x ; then |
4548 | + if test "x$have_tcpwrap" = xyes ; then |
4549 | + AC_MSG_ERROR([*** TCP wrappers support not found.]) |
4550 | + fi |
4551 | + have_tcpwrap=no |
4552 | + else |
4553 | + have_tcpwrap=yes |
4554 | + fi |
4555 | +else |
4556 | + LIBWRAP_LIBS= |
4557 | +fi |
4558 | +AC_SUBST(LIBWRAP_LIBS) |
4559 | + |
4560 | +# ------------------------------------------------------------------------------ |
4561 | +AC_ARG_ENABLE([pam], |
4562 | + AS_HELP_STRING([--disable-pam],[Disable optional PAM support]), |
4563 | + [case "${enableval}" in |
4564 | + yes) have_pam=yes ;; |
4565 | + no) have_pam=no ;; |
4566 | + *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;; |
4567 | + esac], |
4568 | + [have_pam=auto]) |
4569 | + |
4570 | +if test "x${have_pam}" != xno ; then |
4571 | + AC_CHECK_HEADERS( |
4572 | + [security/pam_modules.h security/pam_modutil.h security/pam_ext.h], |
4573 | + [have_pam=yes], |
4574 | + [if test "x$have_pam" = xyes ; then |
4575 | + AC_MSG_ERROR([*** PAM headers not found.]) |
4576 | + fi]) |
4577 | + |
4578 | + AC_CHECK_LIB( |
4579 | + [pam], |
4580 | + [pam_syslog], |
4581 | + [have_pam=yes], |
4582 | + [if test "x$have_pam" = xyes ; then |
4583 | + AC_MSG_ERROR([*** libpam not found.]) |
4584 | + fi]) |
4585 | + |
4586 | + if test "x$have_pam" = xyes ; then |
4587 | + PAM_LIBS="-lpam -lpam_misc" |
4588 | + AC_DEFINE(HAVE_PAM, 1, [PAM available]) |
4589 | + else |
4590 | + have_pam=no |
4591 | + fi |
4592 | +else |
4593 | + PAM_LIBS= |
4594 | +fi |
4595 | +AC_SUBST(PAM_LIBS) |
4596 | +AM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno]) |
4597 | + |
4598 | +# ------------------------------------------------------------------------------ |
4599 | +AC_ARG_ENABLE([acl], |
4600 | + AS_HELP_STRING([--disable-acl],[Disable optional ACL support]), |
4601 | + [case "${enableval}" in |
4602 | + yes) have_acl=yes ;; |
4603 | + no) have_acl=no ;; |
4604 | + *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;; |
4605 | + esac], |
4606 | + [have_acl=auto]) |
4607 | + |
4608 | +if test "x${have_acl}" != xno ; then |
4609 | + AC_CHECK_HEADERS( |
4610 | + [sys/acl.h acl/libacl.h], |
4611 | + [have_acl=yes], |
4612 | + [if test "x$have_acl" = xyes ; then |
4613 | + AC_MSG_ERROR([*** ACL headers not found.]) |
4614 | + fi]) |
4615 | + |
4616 | + AC_CHECK_LIB( |
4617 | + [acl], |
4618 | + [acl_get_file], |
4619 | + [have_acl=yes], |
4620 | + [if test "x$have_acl" = xyes ; then |
4621 | + AC_MSG_ERROR([*** libacl not found.]) |
4622 | + fi]) |
4623 | + |
4624 | + if test "x$have_acl" = xyes ; then |
4625 | + ACL_LIBS="-lacl" |
4626 | + AC_DEFINE(HAVE_ACL, 1, [ACL available]) |
4627 | + else |
4628 | + have_acl=no |
4629 | + fi |
4630 | +else |
4631 | + ACL_LIBS= |
4632 | +fi |
4633 | +AC_SUBST(ACL_LIBS) |
4634 | +AM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno]) |
4635 | + |
4636 | +# ------------------------------------------------------------------------------ |
4637 | +AC_ARG_ENABLE([xattr], |
4638 | + AS_HELP_STRING([--disable-xattr],[Disable optional XATTR support]), |
4639 | + [case "${enableval}" in |
4640 | + yes) have_xattr=yes ;; |
4641 | + no) have_xattr=no ;; |
4642 | + *) AC_MSG_ERROR(bad value ${enableval} for --disable-xattr) ;; |
4643 | + esac], |
4644 | + [have_xattr=auto]) |
4645 | + |
4646 | +if test "x${have_xattr}" != xno ; then |
4647 | + AC_CHECK_HEADERS( |
4648 | + [attr/xattr.h], |
4649 | + [have_xattr=yes], |
4650 | + [if test "x$have_xattr" = xyes ; then |
4651 | + AC_MSG_ERROR([*** XATTR headers not found.]) |
4652 | + fi]) |
4653 | + |
4654 | + AC_CHECK_LIB( |
4655 | + [attr], |
4656 | + [fsetxattr], |
4657 | + [have_xattr=yes], |
4658 | + [if test "x$have_xattr" = xyes ; then |
4659 | + AC_MSG_ERROR([*** libattr not found.]) |
4660 | + fi]) |
4661 | + |
4662 | + if test "x$have_xattr" = xyes ; then |
4663 | + XATTR_LIBS="-lattr" |
4664 | + AC_DEFINE(HAVE_XATTR, 1, [XATTR available]) |
4665 | + else |
4666 | + have_xattr=no |
4667 | + fi |
4668 | +else |
4669 | + XATTR_LIBS= |
4670 | +fi |
4671 | +AC_SUBST(XATTR_LIBS) |
4672 | +AM_CONDITIONAL([HAVE_XATTR], [test "x$have_xattr" != xno]) |
4673 | + |
4674 | +# ------------------------------------------------------------------------------ |
4675 | +AC_ARG_ENABLE([gcrypt], |
4676 | + AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]), |
4677 | + [case "${enableval}" in |
4678 | + yes) have_gcrypt=yes ;; |
4679 | + no) have_gcrypt=no ;; |
4680 | + *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;; |
4681 | + esac], |
4682 | + [have_gcrypt=auto]) |
4683 | + |
4684 | +if test "x${have_gcrypt}" != xno ; then |
4685 | + AM_PATH_LIBGCRYPT( |
4686 | + [1.4.5], |
4687 | + [have_gcrypt=yes], |
4688 | + [if test "x$have_gcrypt" = xyes ; then |
4689 | + AC_MSG_ERROR([*** GCRYPT headers not found.]) |
4690 | + fi]) |
4691 | + |
4692 | + if test "x$have_gcrypt" = xyes ; then |
4693 | + GCRYPT_LIBS="$LIBGCRYPT_LIBS" |
4694 | + GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS" |
4695 | + AC_DEFINE(HAVE_GCRYPT, 1, [GCRYPT available]) |
4696 | + else |
4697 | + have_gcrypt=no |
4698 | + fi |
4699 | +else |
4700 | + GCRYPT_LIBS= |
4701 | + GCRYPT_CFLAGS= |
4702 | +fi |
4703 | +AC_SUBST(GCRYPT_LIBS) |
4704 | +AC_SUBST(GCRYPT_CFLAGS) |
4705 | +AM_CONDITIONAL([HAVE_GCRYPT], [test "x$have_gcrypt" != xno]) |
4706 | + |
4707 | +# ------------------------------------------------------------------------------ |
4708 | +AC_ARG_ENABLE([audit], |
4709 | + AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]), |
4710 | + [case "${enableval}" in |
4711 | + yes) have_audit=yes ;; |
4712 | + no) have_audit=no ;; |
4713 | + *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;; |
4714 | + esac], |
4715 | + [have_audit=auto]) |
4716 | + |
4717 | +if test "x${have_audit}" != xno ; then |
4718 | + AC_CHECK_HEADERS( |
4719 | + [libaudit.h], |
4720 | + [have_audit=yes], |
4721 | + [if test "x$have_audit" = xyes ; then |
4722 | + AC_MSG_ERROR([*** AUDIT headers not found.]) |
4723 | + fi]) |
4724 | + |
4725 | + AC_CHECK_LIB( |
4726 | + [audit], |
4727 | + [audit_open], |
4728 | + [have_audit=yes], |
4729 | + [if test "x$have_audit" = xyes ; then |
4730 | + AC_MSG_ERROR([*** libaudit not found.]) |
4731 | + fi]) |
4732 | + |
4733 | + if test "x$have_audit" = xyes ; then |
4734 | + AUDIT_LIBS="-laudit" |
4735 | + AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available]) |
4736 | + else |
4737 | + have_audit=no |
4738 | + fi |
4739 | +else |
4740 | + AUDIT_LIBS= |
4741 | +fi |
4742 | +AC_SUBST(AUDIT_LIBS) |
4743 | + |
4744 | +# ------------------------------------------------------------------------------ |
4745 | +have_libcryptsetup=no |
4746 | +AC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools])) |
4747 | +if test "x$enable_libcryptsetup" != "xno"; then |
4748 | + PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup >= 1.4.2 ], |
4749 | + [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no) |
4750 | + if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then |
4751 | + AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found]) |
4752 | + fi |
4753 | +fi |
4754 | +AM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"]) |
4755 | + |
4756 | +# ------------------------------------------------------------------------------ |
4757 | +have_qrencode=no |
4758 | +AC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support])) |
4759 | +if test "x$enable_qrencode" != "xno"; then |
4760 | + PKG_CHECK_MODULES(QRENCODE, [ libqrencode ], |
4761 | + [AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no) |
4762 | + if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then |
4763 | + AC_MSG_ERROR([*** qrencode support requested but libraries not found]) |
4764 | + fi |
4765 | +fi |
4766 | +AM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"]) |
4767 | + |
4768 | +# ------------------------------------------------------------------------------ |
4769 | +have_microhttpd=no |
4770 | +AC_ARG_ENABLE(microhttpd, AS_HELP_STRING([--disable-microhttpd], [disable microhttpd support])) |
4771 | +if test "x$enable_microhttpd" != "xno"; then |
4772 | + PKG_CHECK_MODULES(MICROHTTPD, [libmicrohttpd >= 0.9.5], |
4773 | + [AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no) |
4774 | + if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then |
4775 | + AC_MSG_ERROR([*** microhttpd support requested but libraries not found]) |
4776 | + fi |
4777 | +fi |
4778 | +AM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"]) |
4779 | + |
4780 | +# ------------------------------------------------------------------------------ |
4781 | +have_binfmt=no |
4782 | +AC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool])) |
4783 | +if test "x$enable_binfmt" != "xno"; then |
4784 | + have_binfmt=yes |
4785 | +fi |
4786 | +AM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"]) |
4787 | + |
4788 | +# ------------------------------------------------------------------------------ |
4789 | +have_vconsole=no |
4790 | +AC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool])) |
4791 | +if test "x$enable_vconsole" != "xno"; then |
4792 | + have_vconsole=yes |
4793 | +fi |
4794 | +AM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"]) |
4795 | + |
4796 | +# ------------------------------------------------------------------------------ |
4797 | +have_readahead=no |
4798 | +AC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools])) |
4799 | +if test "x$enable_readahead" != "xno"; then |
4800 | + have_readahead=yes |
4801 | +fi |
4802 | +AM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"]) |
4803 | + |
4804 | +# ------------------------------------------------------------------------------ |
4805 | +have_bootchart=no |
4806 | +AC_ARG_ENABLE(bootchart, AS_HELP_STRING([--disable-bootchart], [disable bootchart tool])) |
4807 | +if test "x$enable_bootchart" != "xno"; then |
4808 | + have_bootchart=yes |
4809 | +fi |
4810 | +AM_CONDITIONAL(ENABLE_BOOTCHART, [test "$have_bootchart" = "yes"]) |
4811 | + |
4812 | +# ------------------------------------------------------------------------------ |
4813 | +have_quotacheck=no |
4814 | +AC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools])) |
4815 | +if test "x$enable_quotacheck" != "xno"; then |
4816 | + have_quotacheck=yes |
4817 | +fi |
4818 | +AM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"]) |
4819 | + |
4820 | +# ------------------------------------------------------------------------------ |
4821 | +have_randomseed=no |
4822 | +AC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools])) |
4823 | +if test "x$enable_randomseed" != "xno"; then |
4824 | + have_randomseed=yes |
4825 | +fi |
4826 | +AM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"]) |
4827 | + |
4828 | +# ------------------------------------------------------------------------------ |
4829 | +have_logind=no |
4830 | +AC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon])) |
4831 | +if test "x$enable_logind" != "xno"; then |
4832 | + have_logind=yes |
4833 | +fi |
4834 | +AM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"]) |
4835 | +AS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ]) |
4836 | + |
4837 | +# ------------------------------------------------------------------------------ |
4838 | +have_hostnamed=no |
4839 | +AC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon])) |
4840 | +if test "x$enable_hostnamed" != "xno"; then |
4841 | + have_hostnamed=yes |
4842 | +fi |
4843 | +AM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"]) |
4844 | + |
4845 | +# ------------------------------------------------------------------------------ |
4846 | +have_timedated=no |
4847 | +AC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon])) |
4848 | +if test "x$enable_timedated" != "xno"; then |
4849 | + have_timedated=yes |
4850 | +fi |
4851 | +AM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"]) |
4852 | + |
4853 | +# ------------------------------------------------------------------------------ |
4854 | +have_localed=no |
4855 | +AC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon])) |
4856 | +if test "x$enable_localed" != "xno"; then |
4857 | + have_localed=yes |
4858 | +fi |
4859 | +AM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"]) |
4860 | + |
4861 | +# ------------------------------------------------------------------------------ |
4862 | +have_coredump=no |
4863 | +AC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook])) |
4864 | +if test "x$enable_coredump" != "xno"; then |
4865 | + have_coredump=yes |
4866 | +fi |
4867 | +AM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"]) |
4868 | + |
4869 | +# ------------------------------------------------------------------------------ |
4870 | +have_polkit=no |
4871 | +AC_ARG_ENABLE(polkit, AS_HELP_STRING([--disable-polkit], [disable PolicyKit support])) |
4872 | +if test "x$enable_polkit" != "xno"; then |
4873 | + AC_DEFINE(ENABLE_POLKIT, 1, [Define if PolicyKit support is to be enabled]) |
4874 | + have_polkit=yes |
4875 | +fi |
4876 | +AM_CONDITIONAL(ENABLE_POLKIT, [test "x$have_polkit" = "xyes"]) |
4877 | + |
4878 | +# ------------------------------------------------------------------------------ |
4879 | +have_efi=no |
4880 | +AC_ARG_ENABLE(efi, AS_HELP_STRING([--disable-efi], [disable EFI support])) |
4881 | +if test "x$enable_efi" != "xno"; then |
4882 | + AC_DEFINE(ENABLE_EFI, 1, [Define if EFI support is to be enabled]) |
4883 | + have_efi=yes |
4884 | +fi |
4885 | +AM_CONDITIONAL(ENABLE_EFI, [test "x$have_efi" = "xyes"]) |
4886 | + |
4887 | +# ------------------------------------------------------------------------------ |
4888 | +AC_ARG_WITH(rc-local-script-path-start, |
4889 | + AS_HELP_STRING([--with-rc-local-script-path-start=PATH], |
4890 | + [Path to /etc/rc.local]), |
4891 | + [RC_LOCAL_SCRIPT_PATH_START="$withval"], |
4892 | + [RC_LOCAL_SCRIPT_PATH_START="/etc/rc.local"]) |
4893 | + |
4894 | +AC_ARG_WITH(rc-local-script-path-stop, |
4895 | + AS_HELP_STRING([--with-rc-local-script-path-stop=PATH], |
4896 | + [Path to /usr/sbin/halt.local]), |
4897 | + [RC_LOCAL_SCRIPT_PATH_STOP="$withval"], |
4898 | + [RC_LOCAL_SCRIPT_PATH_STOP="/usr/sbin/halt.local"]) |
4899 | + |
4900 | +AC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_START, ["$RC_LOCAL_SCRIPT_PATH_START"], [Path of /etc/rc.local script]) |
4901 | +AC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_STOP, ["$RC_LOCAL_SCRIPT_PATH_STOP"], [Path of /usr/sbin/halt.local script]) |
4902 | + |
4903 | +AC_SUBST(RC_LOCAL_SCRIPT_PATH_START) |
4904 | +AC_SUBST(RC_LOCAL_SCRIPT_PATH_STOP) |
4905 | + |
4906 | +# ------------------------------------------------------------------------------ |
4907 | +AC_ARG_WITH(kbd-loadkeys, |
4908 | + AS_HELP_STRING([--with-kbd-loadkeys=PATH], |
4909 | + [Path to loadkeys]), |
4910 | + [KBD_LOADKEYS="$withval"], |
4911 | + [KBD_LOADKEYS="/bin/loadkeys"]) |
4912 | + |
4913 | +AC_ARG_WITH(kbd-setfont, |
4914 | + AS_HELP_STRING([--with-kbd-setfont=PATH], |
4915 | + [Path to setfont]), |
4916 | + [KBD_SETFONT="$withval"], |
4917 | + [KBD_SETFONT="/bin/setfont"]) |
4918 | + |
4919 | +AC_DEFINE_UNQUOTED(KBD_LOADKEYS, ["$KBD_LOADKEYS"], [Path of loadkeys]) |
4920 | +AC_DEFINE_UNQUOTED(KBD_SETFONT, ["$KBD_SETFONT"], [Path of setfont]) |
4921 | + |
4922 | +AC_SUBST(KBD_LOADKEYS) |
4923 | +AC_SUBST(KBD_SETFONT) |
4924 | + |
4925 | +AC_ARG_WITH(telinit, |
4926 | + AS_HELP_STRING([--with-telinit=PATH], |
4927 | + [Path to telinit]), |
4928 | + [TELINIT="$withval"], |
4929 | + [TELINIT="/lib/upstart/telinit"]) |
4930 | + |
4931 | +AC_DEFINE_UNQUOTED(TELINIT, ["$TELINIT"], [Path to telinit]) |
4932 | + |
4933 | +AC_SUBST(TELINIT) |
4934 | + |
4935 | +AC_CHECK_HEADERS_ONCE([valgrind/memcheck.h]) |
4936 | + |
4937 | +# ------------------------------------------------------------------------------ |
4938 | +have_myhostname=no |
4939 | +AC_ARG_ENABLE(myhostname, AS_HELP_STRING([--disable-myhostname], [disable nss-myhostname support])) |
4940 | +if test "x$enable_myhostname" != "xno"; then |
4941 | + AC_HEADER_STDC |
4942 | + AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h nss.h sys/ioctl.h]) |
4943 | + |
4944 | + AC_C_CONST |
4945 | + AC_TYPE_SIZE_T |
4946 | + AC_HEADER_TIME |
4947 | + |
4948 | + AC_FUNC_MALLOC |
4949 | + AC_FUNC_SELECT_ARGTYPES |
4950 | + AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn]) |
4951 | + |
4952 | + have_myhostname=yes |
4953 | +fi |
4954 | +AM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"]) |
4955 | + |
4956 | +# ------------------------------------------------------------------------------ |
4957 | +AC_ARG_WITH(firmware-path, |
4958 | + AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]], |
4959 | + [Firmware search path (default="")]), |
4960 | + [], [with_firmware_path=""]) |
4961 | +OLD_IFS=$IFS |
4962 | +IFS=: |
4963 | +for i in $with_firmware_path; do |
4964 | + if test "x${FIRMWARE_PATH}" = "x"; then |
4965 | + FIRMWARE_PATH="\\\"${i}/\\\"" |
4966 | + else |
4967 | + FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\"" |
4968 | + fi |
4969 | +done |
4970 | +IFS=$OLD_IFS |
4971 | +AC_SUBST(FIRMWARE_PATH) |
4972 | +AS_IF([test "x${FIRMWARE_PATH}" != "x"], [ AC_DEFINE(HAVE_FIRMWARE, 1, [Define if FIRMWARE is available]) ]) |
4973 | +AM_CONDITIONAL(ENABLE_FIRMWARE, [test "x${FIRMWARE_PATH}" != "x"]) |
4974 | + |
4975 | +# ------------------------------------------------------------------------------ |
4976 | +AC_ARG_ENABLE([gudev], |
4977 | + AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]), |
4978 | + [], [enable_gudev=yes]) |
4979 | +AS_IF([test "x$enable_gudev" = "xyes"], [ PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0 gio-2.0]) ]) |
4980 | +AM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"]) |
4981 | +AS_IF([test "x$enable_gudev" = "xyes"], [ AC_DEFINE(HAVE_GLIB, 1, [Define if glib is available]) ]) |
4982 | + |
4983 | +# ------------------------------------------------------------------------------ |
4984 | +AC_ARG_ENABLE([keymap], |
4985 | + AS_HELP_STRING([--disable-keymap], [disable keymap fixup support @<:@default=enabled@:>@]), |
4986 | + [], [enable_keymap=yes]) |
4987 | +AS_IF([test "x$enable_keymap" = "xyes"], [ |
4988 | + AC_PATH_PROG([GPERF], [gperf]) |
4989 | + if test -z "$GPERF"; then |
4990 | + AC_MSG_ERROR([gperf is needed]) |
4991 | + fi |
4992 | + |
4993 | + AC_CHECK_HEADER([linux/input.h], [:], AC_MSG_ERROR([kernel headers not found])) |
4994 | + AC_SUBST([INCLUDE_PREFIX], [$(echo '#include <linux/input.h>' | eval $ac_cpp -E - | sed -n '/linux\/input.h/ {s:.*"\(.*\)/linux/input.h".*:\1:; p; q}')]) |
4995 | +]) |
4996 | +AM_CONDITIONAL([ENABLE_KEYMAP], [test "x$enable_keymap" = "xyes"]) |
4997 | + |
4998 | +# ------------------------------------------------------------------------------ |
4999 | +have_manpages=no |
5000 | +AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages])) |
Hey Stéphane,
great work! This isn't upstreamable anyway (as upstream moved to a completely different cgroup management architecture), so I don't think all that careful HAVE_CGMANAGER etc. is actually needed. But if you need it for some kind of non-Ubuntu usage, this bit in Makefile.am probably ought to be conditional on ENABLE_CGMANAGER as well?
682 src/shared/ cgmanager. c \ cgmanager. h \
683 src/shared/
Same with e. g. in logind.c or src/shared/ cgroup- util.c
41 #include "cgmanager.h"
108 Suggests: cgmanager
Out of interest, will cgmanager installed by default on trusty hosts/containers? (I suppose you only need it on the host?)
I'm a bit surprised by the addition of src/shared/ cgmanager. [hc]. Shouldn't those be in libcgmanager- dev/libcgmanage r0?
src/shared/ cgroup- util.c:
55 if (cgm_dbus_ connect( )) { "/tmp/. cgmanager- logind. XXXXXX" );
56 template = strdup(
"template" leaks here, both with successful operation as well as in various error paths. It does not need to be initialized that early, so you can move it further down to cut some error paths. But actually this is an excellent place for using _cleanup_free_, so you don't need to worry about all the error paths.
Same problem further down (line 112 ff.)
Is there a bug report for this? I suppose this needs an FFE and proper testing at this point of the release cycle.
LGTM otherwise, thanks!