~ubuntu-branches/ubuntu/saucy/systemd/saucy-proposed

« back to all changes in this revision

Viewing changes to .pc/v44..upstream-fixes_44-9/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2013-02-15 17:01:24 UTC
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: package-import@ubuntu.com-20130215170124-pohfk2t6u6ia3q1n
Tags: 44-10
* Team upload.
* Using the return code of "systemctl is-enabled" to determine whether we
  enable a service or not is unreliable since it also returns a non-zero
  exit code for masked services. As we don't want to enable masked services,
  grep for the string "disabled" instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#  This file is part of systemd.
2
 
#
3
 
#  Copyright 2011 Lennart Poettering
4
 
#  Copyright 2011 Kay Sievers
5
 
#
6
 
#  systemd is free software; you can redistribute it and/or modify it
7
 
#  under the terms of the GNU General Public License as published by
8
 
#  the Free Software Foundation; either version 2 of the License, or
9
 
#  (at your option) any later version.
10
 
#
11
 
#  systemd is distributed in the hope that it will be useful, but
12
 
#  WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
 
#  General Public License for more details.
15
 
#
16
 
#  You should have received a copy of the GNU General Public License
17
 
#  along with systemd; If not, see <http://www.gnu.org/licenses/>.
18
 
 
19
 
ACLOCAL_AMFLAGS = -I m4
20
 
 
21
 
SUBDIRS = po
22
 
 
23
 
LIBSYSTEMD_LOGIN_CURRENT=2
24
 
LIBSYSTEMD_LOGIN_REVISION=1
25
 
LIBSYSTEMD_LOGIN_AGE=2
26
 
 
27
 
LIBSYSTEMD_DAEMON_CURRENT=0
28
 
LIBSYSTEMD_DAEMON_REVISION=1
29
 
LIBSYSTEMD_DAEMON_AGE=0
30
 
 
31
 
LIBSYSTEMD_ID128_CURRENT=0
32
 
LIBSYSTEMD_ID128_REVISION=3
33
 
LIBSYSTEMD_ID128_AGE=0
34
 
 
35
 
LIBSYSTEMD_JOURNAL_CURRENT=0
36
 
LIBSYSTEMD_JOURNAL_REVISION=3
37
 
LIBSYSTEMD_JOURNAL_AGE=0
38
 
 
39
 
# Dirs of external packages
40
 
dbuspolicydir=@dbuspolicydir@
41
 
dbussessionservicedir=@dbussessionservicedir@
42
 
dbussystemservicedir=@dbussystemservicedir@
43
 
dbusinterfacedir=@dbusinterfacedir@
44
 
udevrulesdir=@udevrulesdir@
45
 
pamlibdir=@pamlibdir@
46
 
pkgconfigdatadir=$(datadir)/pkgconfig
47
 
pkgconfiglibdir=$(libdir)/pkgconfig
48
 
polkitpolicydir=$(datadir)/polkit-1/actions
49
 
bashcompletiondir=$(sysconfdir)/bash_completion.d
50
 
 
51
 
# Our own, non-special dirs
52
 
pkgsysconfdir=$(sysconfdir)/systemd
53
 
userunitdir=$(prefix)/lib/systemd/user
54
 
tmpfilesdir=$(prefix)/lib/tmpfiles.d
55
 
sysctldir=$(prefix)/lib/sysctl.d
56
 
usergeneratordir=$(pkglibexecdir)/user-generators
57
 
pkgincludedir=$(includedir)/systemd
58
 
 
59
 
# And these are the special ones for /
60
 
rootprefix=@rootprefix@
61
 
rootbindir=$(rootprefix)/bin
62
 
rootlibexecdir=$(rootprefix)/lib/systemd
63
 
systemgeneratordir=$(rootlibexecdir)/system-generators
64
 
systemshutdowndir=$(rootlibexecdir)/system-shutdown
65
 
systemunitdir=$(rootprefix)/lib/systemd/system
66
 
 
67
 
CLEANFILES =
68
 
EXTRA_DIST =
69
 
INSTALL_EXEC_HOOKS =
70
 
UNINSTALL_EXEC_HOOKS =
71
 
INSTALL_DATA_HOOKS =
72
 
pkginclude_HEADERS =
73
 
lib_LTLIBRARIES =
74
 
pkgconfiglib_DATA =
75
 
polkitpolicy_in_files =
76
 
dist_udevrules_DATA =
77
 
 
78
 
AM_CPPFLAGS = \
79
 
        -include $(top_builddir)/config.h \
80
 
        -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
81
 
        -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
82
 
        -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
83
 
        -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
84
 
        -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
85
 
        -DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
86
 
        -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
87
 
        -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
88
 
        -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
89
 
        -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
90
 
        -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
91
 
        -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
92
 
        -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
93
 
        -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
94
 
        -DROOTPREFIX=\"$(rootprefix)\" \
95
 
        -DRUNTIME_DIR=\"/run\" \
96
 
        -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
97
 
        -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
98
 
        -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
99
 
        -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
100
 
        -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
101
 
        -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
102
 
        -DX_SERVER=\"$(bindir)/X\" \
103
 
        -I $(top_srcdir)/src \
104
 
        -I $(top_srcdir)/src/readahead \
105
 
        -I $(top_srcdir)/src/login \
106
 
        -I $(top_srcdir)/src/journal \
107
 
        -I $(top_srcdir)/src/systemd
108
 
 
109
 
if TARGET_GENTOO
110
 
AM_CPPFLAGS += \
111
 
        -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
112
 
        -DKBD_SETFONT=\"/usr/bin/setfont\" \
113
 
        -DDEFAULT_FONT=\"LatArCyrHeb-16\"
114
 
else
115
 
if TARGET_ARCH
116
 
AM_CPPFLAGS += \
117
 
        -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
118
 
        -DKBD_SETFONT=\"/usr/bin/setfont\" \
119
 
        -DDEFAULT_FONT=\"LatArCyrHeb-16\"
120
 
else
121
 
if TARGET_FRUGALWARE
122
 
AM_CPPFLAGS += \
123
 
        -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
124
 
        -DKBD_SETFONT=\"/usr/bin/setfont\" \
125
 
        -DDEFAULT_FONT=\"LatArCyrHeb-16\"
126
 
else
127
 
if TARGET_MANDRIVA
128
 
AM_CPPFLAGS += \
129
 
        -DKBD_LOADKEYS=\"/bin/loadkeys\" \
130
 
        -DKBD_SETFONT=\"/bin/setfont\" \
131
 
        -DDEFAULT_FONT=\"LatArCyrHeb-16\"
132
 
else
133
 
if TARGET_MEEGO
134
 
AM_CPPFLAGS += \
135
 
        -DKBD_LOADKEYS=\"/bin/loadkeys\" \
136
 
        -DKBD_SETFONT=\"/bin/setfont\" \
137
 
        -DDEFAULT_FONT=\"LatArCyrHeb-16\"
138
 
else
139
 
if TARGET_ANGSTROM
140
 
AM_CPPFLAGS += \
141
 
        -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
142
 
        -DKBD_SETFONT=\"/usr/bin/setfont\" \
143
 
        -DDEFAULT_FONT=\"LatArCyrHeb-16\"
144
 
else
145
 
if TARGET_MAGEIA
146
 
AM_CPPFLAGS += \
147
 
        -DKBD_LOADKEYS=\"/bin/loadkeys\" \
148
 
        -DKBD_SETFONT=\"/bin/setfont\" \
149
 
        -DDEFAULT_FONT=\"LatArCyrHeb-16\"
150
 
else
151
 
AM_CPPFLAGS += \
152
 
        -DKBD_LOADKEYS=\"/bin/loadkeys\" \
153
 
        -DKBD_SETFONT=\"/bin/setfont\" \
154
 
        -DDEFAULT_FONT=\"latarcyrheb-sun16\"
155
 
endif
156
 
endif
157
 
endif
158
 
endif
159
 
endif
160
 
endif
161
 
endif
162
 
 
163
 
rootbin_PROGRAMS = \
164
 
        systemctl \
165
 
        systemd-notify \
166
 
        systemd-ask-password \
167
 
        systemd-tty-ask-password-agent \
168
 
        systemd-tmpfiles \
169
 
        systemd-machine-id-setup
170
 
 
171
 
bin_PROGRAMS = \
172
 
        systemd-cgls \
173
 
        systemd-cgtop \
174
 
        systemd-stdio-bridge \
175
 
        systemd-nspawn
176
 
 
177
 
dist_bin_SCRIPTS = \
178
 
        src/systemd-analyze
179
 
 
180
 
if HAVE_GTK
181
 
bin_PROGRAMS += \
182
 
        systemadm \
183
 
        systemd-gnome-ask-password-agent
184
 
endif
185
 
 
186
 
rootlibexec_PROGRAMS = \
187
 
        systemd \
188
 
        systemd-cgroups-agent \
189
 
        systemd-initctl \
190
 
        systemd-update-utmp \
191
 
        systemd-shutdownd \
192
 
        systemd-shutdown \
193
 
        systemd-modules-load \
194
 
        systemd-remount-api-vfs \
195
 
        systemd-reply-password \
196
 
        systemd-fsck \
197
 
        systemd-timestamp \
198
 
        systemd-ac-power \
199
 
        systemd-detect-virt \
200
 
        systemd-sysctl
201
 
 
202
 
systemgenerator_PROGRAMS = \
203
 
        systemd-getty-generator
204
 
 
205
 
noinst_PROGRAMS = \
206
 
        test-engine \
207
 
        test-job-type \
208
 
        test-ns \
209
 
        test-loopback \
210
 
        test-hostname \
211
 
        test-daemon \
212
 
        test-cgroup \
213
 
        test-env-replace \
214
 
        test-strv \
215
 
        test-install
216
 
 
217
 
dist_pkgsysconf_DATA = \
218
 
        src/system.conf \
219
 
        src/user.conf
220
 
 
221
 
dist_dbuspolicy_DATA = \
222
 
        src/org.freedesktop.systemd1.conf
223
 
 
224
 
dist_dbussystemservice_DATA = \
225
 
        src/org.freedesktop.systemd1.service
226
 
 
227
 
nodist_udevrules_DATA = \
228
 
        src/99-systemd.rules
229
 
 
230
 
dbusinterface_DATA = \
231
 
        org.freedesktop.systemd1.Manager.xml \
232
 
        org.freedesktop.systemd1.Job.xml \
233
 
        org.freedesktop.systemd1.Unit.xml \
234
 
        org.freedesktop.systemd1.Service.xml \
235
 
        org.freedesktop.systemd1.Socket.xml \
236
 
        org.freedesktop.systemd1.Timer.xml \
237
 
        org.freedesktop.systemd1.Target.xml \
238
 
        org.freedesktop.systemd1.Device.xml \
239
 
        org.freedesktop.systemd1.Mount.xml \
240
 
        org.freedesktop.systemd1.Automount.xml \
241
 
        org.freedesktop.systemd1.Snapshot.xml \
242
 
        org.freedesktop.systemd1.Swap.xml \
243
 
        org.freedesktop.systemd1.Path.xml
244
 
 
245
 
dist_bashcompletion_DATA = \
246
 
        src/systemd-bash-completion.sh
247
 
 
248
 
dist_tmpfiles_DATA = \
249
 
        tmpfiles.d/systemd.conf \
250
 
        tmpfiles.d/tmp.conf \
251
 
        tmpfiles.d/x11.conf
252
 
 
253
 
if HAVE_SYSV_COMPAT
254
 
dist_tmpfiles_DATA += \
255
 
        tmpfiles.d/legacy.conf
256
 
endif
257
 
 
258
 
dist_systemunit_DATA = \
259
 
        units/graphical.target \
260
 
        units/multi-user.target \
261
 
        units/emergency.service \
262
 
        units/emergency.target \
263
 
        units/sysinit.target \
264
 
        units/basic.target \
265
 
        units/getty.target \
266
 
        units/halt.target \
267
 
        units/kexec.target \
268
 
        units/local-fs.target \
269
 
        units/local-fs-pre.target \
270
 
        units/remote-fs.target \
271
 
        units/remote-fs-pre.target \
272
 
        units/network.target \
273
 
        units/nss-lookup.target \
274
 
        units/mail-transfer-agent.target \
275
 
        units/http-daemon.target \
276
 
        units/poweroff.target \
277
 
        units/reboot.target \
278
 
        units/rescue.target \
279
 
        units/rpcbind.target \
280
 
        units/time-sync.target \
281
 
        units/shutdown.target \
282
 
        units/final.target \
283
 
        units/umount.target \
284
 
        units/sigpwr.target \
285
 
        units/sockets.target \
286
 
        units/swap.target \
287
 
        units/systemd-initctl.socket \
288
 
        units/systemd-shutdownd.socket \
289
 
        units/syslog.socket \
290
 
        units/dev-hugepages.mount \
291
 
        units/dev-mqueue.mount \
292
 
        units/sys-kernel-config.mount \
293
 
        units/sys-kernel-debug.mount \
294
 
        units/sys-kernel-security.mount \
295
 
        units/sys-fs-fuse-connections.mount \
296
 
        units/var-run.mount \
297
 
        units/media.mount \
298
 
        units/remount-rootfs.service \
299
 
        units/printer.target \
300
 
        units/sound.target \
301
 
        units/bluetooth.target \
302
 
        units/smartcard.target \
303
 
        units/systemd-tmpfiles-clean.timer \
304
 
        units/quotaon.service \
305
 
        units/systemd-ask-password-wall.path \
306
 
        units/systemd-ask-password-console.path \
307
 
        units/syslog.target
308
 
 
309
 
if HAVE_SYSV_COMPAT
310
 
dist_systemunit_DATA += \
311
 
        units/var-lock.mount
312
 
endif
313
 
 
314
 
nodist_systemunit_DATA = \
315
 
        units/getty@.service \
316
 
        units/serial-getty@.service \
317
 
        units/console-shell.service \
318
 
        units/systemd-initctl.service \
319
 
        units/systemd-shutdownd.service \
320
 
        units/systemd-modules-load.service \
321
 
        units/systemd-remount-api-vfs.service \
322
 
        units/systemd-update-utmp-runlevel.service \
323
 
        units/systemd-update-utmp-shutdown.service \
324
 
        units/systemd-tmpfiles-setup.service \
325
 
        units/systemd-tmpfiles-clean.service \
326
 
        units/systemd-ask-password-wall.service \
327
 
        units/systemd-ask-password-console.service \
328
 
        units/systemd-sysctl.service \
329
 
        units/halt.service \
330
 
        units/poweroff.service \
331
 
        units/reboot.service \
332
 
        units/kexec.service \
333
 
        units/fsck@.service \
334
 
        units/fsck-root.service \
335
 
        units/rescue.service \
336
 
        units/user@.service
337
 
 
338
 
dist_userunit_DATA = \
339
 
        units/user/default.target \
340
 
        units/user/exit.target
341
 
 
342
 
nodist_userunit_DATA = \
343
 
        units/user/exit.service
344
 
 
345
 
EXTRA_DIST += \
346
 
        units/getty@.service.m4 \
347
 
        units/serial-getty@.service.m4 \
348
 
        units/console-shell.service.m4 \
349
 
        units/rescue.service.m4 \
350
 
        units/systemd-initctl.service.in \
351
 
        units/systemd-shutdownd.service.in \
352
 
        units/systemd-modules-load.service.in \
353
 
        units/systemd-remount-api-vfs.service.in \
354
 
        units/systemd-update-utmp-runlevel.service.in \
355
 
        units/systemd-update-utmp-shutdown.service.in \
356
 
        units/systemd-tmpfiles-setup.service.in \
357
 
        units/systemd-tmpfiles-clean.service.in \
358
 
        units/systemd-ask-password-wall.service.in \
359
 
        units/systemd-ask-password-console.service.in \
360
 
        units/systemd-sysctl.service.in \
361
 
        units/halt.service.in \
362
 
        units/poweroff.service.in \
363
 
        units/reboot.service.in \
364
 
        units/kexec.service.in \
365
 
        units/user/exit.service.in \
366
 
        units/fsck@.service.in \
367
 
        units/fsck-root.service.in \
368
 
        units/user@.service.in \
369
 
        src/systemd.pc.in \
370
 
        introspect.awk \
371
 
        src/99-systemd.rules.in \
372
 
        man/custom-html.xsl
373
 
 
374
 
if TARGET_FEDORA
375
 
dist_systemunit_DATA += \
376
 
        units/fedora/prefdm.service \
377
 
        units/fedora/rc-local.service \
378
 
        units/fedora/halt-local.service
379
 
systemgenerator_PROGRAMS += \
380
 
        systemd-rc-local-generator
381
 
endif
382
 
 
383
 
if TARGET_MANDRIVA
384
 
dist_systemunit_DATA += \
385
 
        units/mandriva/prefdm.service \
386
 
        units/fedora/rc-local.service \
387
 
        units/fedora/halt-local.service
388
 
systemgenerator_PROGRAMS += \
389
 
        systemd-rc-local-generator
390
 
endif
391
 
 
392
 
if TARGET_FRUGALWARE
393
 
dist_systemunit_DATA += \
394
 
        units/frugalware/display-manager.service
395
 
endif
396
 
 
397
 
if TARGET_SUSE
398
 
dist_systemunit_DATA += \
399
 
        units/suse/rc-local.service \
400
 
        units/suse/halt-local.service
401
 
systemgenerator_PROGRAMS += \
402
 
        systemd-rc-local-generator
403
 
endif
404
 
 
405
 
if TARGET_MAGEIA
406
 
dist_systemunit_DATA += \
407
 
        units/mageia/prefdm.service \
408
 
        units/fedora/rc-local.service \
409
 
        units/fedora/halt-local.service
410
 
systemgenerator_PROGRAMS += \
411
 
        systemd-rc-local-generator
412
 
endif
413
 
 
414
 
if HAVE_PLYMOUTH
415
 
dist_systemunit_DATA += \
416
 
        units/plymouth-start.service \
417
 
        units/plymouth-read-write.service \
418
 
        units/plymouth-quit.service \
419
 
        units/plymouth-quit-wait.service \
420
 
        units/plymouth-reboot.service \
421
 
        units/plymouth-kexec.service \
422
 
        units/plymouth-poweroff.service \
423
 
        units/plymouth-halt.service \
424
 
        units/systemd-ask-password-plymouth.path
425
 
 
426
 
nodist_systemunit_DATA += \
427
 
        units/systemd-ask-password-plymouth.service
428
 
 
429
 
EXTRA_DIST += \
430
 
        units/systemd-ask-password-plymouth.service.in
431
 
endif
432
 
 
433
 
dist_doc_DATA = \
434
 
        README \
435
 
        NEWS \
436
 
        LICENSE \
437
 
        DISTRO_PORTING
438
 
 
439
 
pkgconfigdata_DATA = \
440
 
        src/systemd.pc
441
 
 
442
 
# First passed through sed, followed by intltool
443
 
polkitpolicy_in_in_files = \
444
 
        src/org.freedesktop.systemd1.policy.in.in
445
 
 
446
 
nodist_polkitpolicy_DATA = \
447
 
        $(polkitpolicy_in_files:.policy.in=.policy) \
448
 
        $(polkitpolicy_in_in_files:.policy.in.in=.policy)
449
 
 
450
 
EXTRA_DIST += \
451
 
        $(polkitpolicy_in_files) \
452
 
        $(polkitpolicy_in_in_files)
453
 
 
454
 
@INTLTOOL_POLICY_RULE@
455
 
 
456
 
noinst_LTLIBRARIES = \
457
 
        libsystemd-basic.la \
458
 
        libsystemd-core.la
459
 
 
460
 
libsystemd_basic_la_SOURCES = \
461
 
        src/util.c \
462
 
        src/virt.c \
463
 
        src/label.c \
464
 
        src/hashmap.c \
465
 
        src/set.c \
466
 
        src/strv.c \
467
 
        src/conf-parser.c \
468
 
        src/socket-util.c \
469
 
        src/log.c \
470
 
        src/ratelimit.c \
471
 
        src/exit-status.c \
472
 
        src/utf8.c
473
 
 
474
 
libsystemd_basic_la_CFLAGS = \
475
 
        $(AM_CFLAGS) \
476
 
        $(SELINUX_CFLAGS)
477
 
 
478
 
libsystemd_basic_la_LIBADD = \
479
 
        $(SELINUX_LIBS) \
480
 
        $(CAP_LIBS)
481
 
 
482
 
libsystemd_core_la_SOURCES = \
483
 
        src/unit.c \
484
 
        src/job.c \
485
 
        src/manager.c \
486
 
        src/path-lookup.c \
487
 
        src/load-fragment.c \
488
 
        src/service.c \
489
 
        src/automount.c \
490
 
        src/mount.c \
491
 
        src/swap.c \
492
 
        src/device.c \
493
 
        src/target.c \
494
 
        src/snapshot.c \
495
 
        src/socket.c \
496
 
        src/timer.c \
497
 
        src/path.c \
498
 
        src/load-dropin.c \
499
 
        src/execute.c \
500
 
        src/utmp-wtmp.c \
501
 
        src/dbus.c \
502
 
        src/dbus-manager.c \
503
 
        src/dbus-unit.c \
504
 
        src/dbus-job.c \
505
 
        src/dbus-service.c \
506
 
        src/dbus-socket.c \
507
 
        src/dbus-timer.c \
508
 
        src/dbus-target.c \
509
 
        src/dbus-mount.c \
510
 
        src/dbus-automount.c \
511
 
        src/dbus-swap.c \
512
 
        src/dbus-snapshot.c \
513
 
        src/dbus-device.c \
514
 
        src/dbus-execute.c \
515
 
        src/dbus-path.c \
516
 
        src/cgroup.c \
517
 
        src/mount-setup.c \
518
 
        src/hostname-setup.c \
519
 
        src/selinux-setup.c \
520
 
        src/loopback-setup.c \
521
 
        src/kmod-setup.c \
522
 
        src/locale-setup.c \
523
 
        src/machine-id-setup.c \
524
 
        src/specifier.c \
525
 
        src/unit-name.c \
526
 
        src/fdset.c \
527
 
        src/namespace.c \
528
 
        src/tcpwrap.c \
529
 
        src/cgroup-util.c \
530
 
        src/condition.c \
531
 
        src/dbus-common.c \
532
 
        src/sd-daemon.c \
533
 
        src/install.c \
534
 
        src/cgroup-attr.c \
535
 
        src/sd-id128.c
536
 
 
537
 
nodist_libsystemd_core_la_SOURCES = \
538
 
        src/load-fragment-gperf.c \
539
 
        src/load-fragment-gperf-nulstr.c
540
 
 
541
 
EXTRA_DIST += \
542
 
        src/load-fragment-gperf.gperf.m4
543
 
 
544
 
libsystemd_core_la_CFLAGS = \
545
 
        $(AM_CFLAGS) \
546
 
        $(DBUS_CFLAGS) \
547
 
        $(UDEV_CFLAGS) \
548
 
        $(LIBWRAP_CFLAGS) \
549
 
        $(PAM_CFLAGS) \
550
 
        $(AUDIT_CFLAGS) \
551
 
        $(KMOD_CFLAGS)
552
 
 
553
 
libsystemd_core_la_LIBADD = \
554
 
        libsystemd-basic.la \
555
 
        $(DBUS_LIBS) \
556
 
        $(UDEV_LIBS) \
557
 
        $(LIBWRAP_LIBS) \
558
 
        $(PAM_LIBS) \
559
 
        $(AUDIT_LIBS) \
560
 
        $(CAP_LIBS) \
561
 
        $(KMOD_LIBS)
562
 
 
563
 
# This is needed because automake is buggy in how it generates the
564
 
# rules for C programs, but not Vala programs.  We therefore can't
565
 
# list the .h files as dependencies if we want make dist to work.
566
 
 
567
 
EXTRA_DIST += \
568
 
        src/util.h \
569
 
        src/virt.h \
570
 
        src/label.h \
571
 
        src/hashmap.h \
572
 
        src/set.h \
573
 
        src/strv.h \
574
 
        src/conf-parser.h \
575
 
        src/socket-util.h \
576
 
        src/log.h \
577
 
        src/ratelimit.h \
578
 
        src/exit-status.h \
579
 
        src/unit.h \
580
 
        src/job.h \
581
 
        src/manager.h \
582
 
        src/path-lookup.h \
583
 
        src/load-fragment.h \
584
 
        src/service.h \
585
 
        src/automount.h \
586
 
        src/mount.h \
587
 
        src/swap.h \
588
 
        src/device.h \
589
 
        src/target.h \
590
 
        src/snapshot.h \
591
 
        src/socket.h \
592
 
        src/timer.h \
593
 
        src/path.h \
594
 
        src/load-dropin.h \
595
 
        src/execute.h \
596
 
        src/utmp-wtmp.h \
597
 
        src/dbus.h \
598
 
        src/dbus-manager.h \
599
 
        src/dbus-unit.h \
600
 
        src/dbus-job.h \
601
 
        src/dbus-service.h \
602
 
        src/dbus-socket.h \
603
 
        src/dbus-timer.h \
604
 
        src/dbus-target.h \
605
 
        src/dbus-mount.h \
606
 
        src/dbus-automount.h \
607
 
        src/dbus-swap.h \
608
 
        src/dbus-snapshot.h \
609
 
        src/dbus-device.h \
610
 
        src/dbus-execute.h \
611
 
        src/dbus-path.h \
612
 
        src/cgroup.h \
613
 
        src/mount-setup.h \
614
 
        src/hostname-setup.h \
615
 
        src/selinux-setup.h \
616
 
        src/loopback-setup.h \
617
 
        src/kmod-setup.h \
618
 
        src/locale-setup.h \
619
 
        src/machine-id-setup.h \
620
 
        src/specifier.h \
621
 
        src/unit-name.h \
622
 
        src/fdset.h \
623
 
        src/namespace.h \
624
 
        src/tcpwrap.h \
625
 
        src/cgroup-util.h \
626
 
        src/condition.h \
627
 
        src/dbus-common.h \
628
 
        src/install.h \
629
 
        src/cgroup-attr.h \
630
 
        src/macro.h \
631
 
        src/def.h \
632
 
        src/ioprio.h \
633
 
        src/missing.h \
634
 
        src/list.h \
635
 
        src/securebits.h \
636
 
        src/linux/auto_dev-ioctl.h \
637
 
        src/linux/fanotify.h \
638
 
        src/initreq.h \
639
 
        src/special.h \
640
 
        src/dbus-common.h \
641
 
        src/bus-errors.h \
642
 
        src/cgroup-show.h \
643
 
        src/build.h \
644
 
        src/shutdownd.h \
645
 
        src/umount.h \
646
 
        src/ask-password-api.h \
647
 
        src/pager.h \
648
 
        src/sysfs-show.h \
649
 
        src/polkit.h \
650
 
        src/dbus-loop.h \
651
 
        src/spawn-agent.h \
652
 
        src/acl-util.h \
653
 
        src/logs-show.h \
654
 
        src/utf8.h
655
 
 
656
 
MANPAGES = \
657
 
        man/systemd.1 \
658
 
        man/systemctl.1 \
659
 
        man/systemadm.1 \
660
 
        man/systemd-cgls.1 \
661
 
        man/systemd-cgtop.1 \
662
 
        man/systemd-nspawn.1 \
663
 
        man/systemd-tmpfiles.8 \
664
 
        man/systemd-notify.1 \
665
 
        man/systemd.unit.5 \
666
 
        man/systemd.service.5 \
667
 
        man/systemd.socket.5 \
668
 
        man/systemd.mount.5 \
669
 
        man/systemd.automount.5 \
670
 
        man/systemd.swap.5 \
671
 
        man/systemd.timer.5 \
672
 
        man/systemd.path.5 \
673
 
        man/systemd.target.5 \
674
 
        man/systemd.device.5 \
675
 
        man/systemd.snapshot.5 \
676
 
        man/systemd.exec.5 \
677
 
        man/systemd.special.7 \
678
 
        man/daemon.7 \
679
 
        man/runlevel.8 \
680
 
        man/telinit.8 \
681
 
        man/halt.8 \
682
 
        man/shutdown.8 \
683
 
        man/pam_systemd.8 \
684
 
        man/systemd.conf.5 \
685
 
        man/tmpfiles.d.5 \
686
 
        man/hostname.5 \
687
 
        man/timezone.5 \
688
 
        man/machine-id.5 \
689
 
        man/locale.conf.5 \
690
 
        man/os-release.5 \
691
 
        man/machine-info.5 \
692
 
        man/modules-load.d.5 \
693
 
        man/sysctl.d.5 \
694
 
        man/systemd-ask-password.1 \
695
 
        man/systemd-cat.1 \
696
 
        man/systemd-machine-id-setup.1 \
697
 
        man/systemd-journald.conf.5 \
698
 
        man/systemd-journalctl.1
699
 
 
700
 
MANPAGES_ALIAS = \
701
 
        man/reboot.8 \
702
 
        man/poweroff.8 \
703
 
        man/init.1
704
 
 
705
 
man/reboot.8: man/halt.8
706
 
man/poweroff.8: man/halt.8
707
 
man/init.1: man/systemd.1
708
 
 
709
 
XML_FILES = \
710
 
        ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
711
 
 
712
 
if ENABLE_MANPAGES
713
 
man_MANS = \
714
 
        $(MANPAGES) \
715
 
        $(MANPAGES_ALIAS)
716
 
 
717
 
noinst_DATA = \
718
 
        ${XML_FILES:.xml=.html}
719
 
endif
720
 
 
721
 
EXTRA_DIST += \
722
 
        $(XML_FILES) \
723
 
        ${XML_FILES:.xml=.html} \
724
 
        $(MANPAGES) \
725
 
        $(MANPAGES_ALIAS)
726
 
 
727
 
systemd_SOURCES = \
728
 
        src/main.c
729
 
 
730
 
systemd_CFLAGS = \
731
 
        $(AM_CFLAGS) \
732
 
        $(DBUS_CFLAGS) \
733
 
        $(UDEV_CFLAGS)
734
 
 
735
 
systemd_LDADD = \
736
 
        libsystemd-core.la
737
 
 
738
 
test_engine_SOURCES = \
739
 
        src/test-engine.c
740
 
 
741
 
test_engine_CFLAGS = $(systemd_CFLAGS)
742
 
test_engine_LDADD = $(systemd_LDADD)
743
 
 
744
 
test_job_type_SOURCES = \
745
 
        src/test-job-type.c
746
 
 
747
 
test_job_type_CFLAGS = $(systemd_CFLAGS)
748
 
test_job_type_LDADD = $(systemd_LDADD)
749
 
 
750
 
test_ns_SOURCES = \
751
 
        src/test-ns.c
752
 
 
753
 
test_ns_CFLAGS = $(systemd_CFLAGS)
754
 
test_ns_LDADD = $(systemd_LDADD)
755
 
 
756
 
test_loopback_SOURCES = \
757
 
        src/test-loopback.c \
758
 
        src/loopback-setup.c
759
 
 
760
 
test_loopback_LDADD = \
761
 
        libsystemd-basic.la
762
 
 
763
 
test_hostname_SOURCES = \
764
 
        src/test-hostname.c \
765
 
        src/hostname-setup.c
766
 
 
767
 
test_hostname_LDADD = \
768
 
        libsystemd-basic.la
769
 
 
770
 
test_daemon_SOURCES = \
771
 
        src/test-daemon.c
772
 
 
773
 
test_daemon_LDADD = \
774
 
        libsystemd-basic.la \
775
 
        libsystemd-daemon.la
776
 
 
777
 
test_cgroup_SOURCES = \
778
 
        src/test-cgroup.c \
779
 
        src/cgroup-util.c
780
 
 
781
 
test_cgroup_LDADD = \
782
 
        libsystemd-basic.la
783
 
 
784
 
test_env_replace_SOURCES = \
785
 
        src/test-env-replace.c
786
 
 
787
 
test_env_replace_LDADD = \
788
 
        libsystemd-basic.la
789
 
 
790
 
test_strv_SOURCES = \
791
 
        src/test-strv.c \
792
 
        src/specifier.c
793
 
 
794
 
test_strv_LDADD = \
795
 
        libsystemd-basic.la
796
 
 
797
 
test_install_SOURCES = \
798
 
        src/test-install.c \
799
 
        src/install.c \
800
 
        src/path-lookup.c \
801
 
        src/unit-name.c
802
 
 
803
 
test_install_CFLAGS = \
804
 
        $(AM_CFLAGS) \
805
 
        $(DBUS_CFLAGS)
806
 
 
807
 
test_install_LDADD = \
808
 
        libsystemd-basic.la
809
 
 
810
 
systemd_initctl_SOURCES = \
811
 
        src/initctl.c \
812
 
        src/dbus-common.c
813
 
 
814
 
systemd_initctl_CFLAGS = \
815
 
        $(AM_CFLAGS) \
816
 
        $(DBUS_CFLAGS)
817
 
 
818
 
systemd_initctl_LDADD = \
819
 
        libsystemd-basic.la \
820
 
        libsystemd-daemon.la \
821
 
        $(DBUS_LIBS)
822
 
 
823
 
systemd_update_utmp_SOURCES = \
824
 
        src/update-utmp.c \
825
 
        src/dbus-common.c \
826
 
        src/utmp-wtmp.c
827
 
 
828
 
systemd_update_utmp_CFLAGS = \
829
 
        $(AM_CFLAGS) \
830
 
        $(DBUS_CFLAGS) \
831
 
        $(AUDIT_CFLAGS)
832
 
 
833
 
systemd_update_utmp_LDADD = \
834
 
        libsystemd-basic.la \
835
 
        $(DBUS_LIBS) \
836
 
        $(AUDIT_LIBS)
837
 
 
838
 
systemd_shutdownd_SOURCES = \
839
 
        src/utmp-wtmp.c \
840
 
        src/shutdownd.c
841
 
 
842
 
systemd_shutdownd_CFLAGS = \
843
 
        $(AM_CFLAGS)
844
 
 
845
 
systemd_shutdownd_LDADD = \
846
 
        libsystemd-basic.la \
847
 
        libsystemd-daemon.la
848
 
 
849
 
systemd_shutdown_SOURCES = \
850
 
        src/mount-setup.c \
851
 
        src/umount.c \
852
 
        src/shutdown.c
853
 
 
854
 
systemd_shutdown_CFLAGS = \
855
 
        $(AM_CFLAGS) \
856
 
        $(UDEV_CFLAGS)
857
 
 
858
 
systemd_shutdown_LDADD = \
859
 
        libsystemd-basic.la \
860
 
        $(UDEV_LIBS)
861
 
 
862
 
systemd_modules_load_SOURCES = \
863
 
        src/modules-load.c
864
 
 
865
 
systemd_modules_load_CFLAGS = \
866
 
        $(KMOD_CFLAGS)
867
 
 
868
 
systemd_modules_load_LDADD = \
869
 
        libsystemd-basic.la \
870
 
        $(KMOD_LIBS)
871
 
 
872
 
systemd_tmpfiles_SOURCES = \
873
 
        src/tmpfiles.c
874
 
 
875
 
systemd_tmpfiles_LDADD = \
876
 
        libsystemd-basic.la
877
 
 
878
 
systemd_machine_id_setup_SOURCES = \
879
 
        src/machine-id-setup.c \
880
 
        src/machine-id-main.c \
881
 
        src/sd-id128.c
882
 
 
883
 
systemd_machine_id_setup_LDADD = \
884
 
        libsystemd-basic.la
885
 
 
886
 
systemd_sysctl_SOURCES = \
887
 
        src/sysctl.c
888
 
 
889
 
systemd_sysctl_LDADD = \
890
 
        libsystemd-basic.la
891
 
 
892
 
systemd_fsck_SOURCES = \
893
 
        src/fsck.c \
894
 
        src/dbus-common.c
895
 
 
896
 
systemd_fsck_CFLAGS = \
897
 
        $(AM_CFLAGS) \
898
 
        $(UDEV_CFLAGS) \
899
 
        $(DBUS_CFLAGS)
900
 
 
901
 
systemd_fsck_LDADD = \
902
 
        libsystemd-basic.la \
903
 
        $(UDEV_LIBS) \
904
 
        $(DBUS_LIBS)
905
 
 
906
 
systemd_timestamp_SOURCES = \
907
 
        src/timestamp.c
908
 
 
909
 
systemd_timestamp_LDADD = \
910
 
        libsystemd-basic.la
911
 
 
912
 
systemd_ac_power_SOURCES = \
913
 
        src/ac-power.c
914
 
 
915
 
systemd_ac_power_CFLAGS = \
916
 
        $(AM_CFLAGS) \
917
 
        $(UDEV_CFLAGS)
918
 
 
919
 
systemd_ac_power_LDADD = \
920
 
        libsystemd-basic.la \
921
 
        $(UDEV_LIBS)
922
 
 
923
 
systemd_detect_virt_SOURCES = \
924
 
        src/detect-virt.c
925
 
 
926
 
systemd_detect_virt_LDADD = \
927
 
        libsystemd-basic.la
928
 
 
929
 
systemd_getty_generator_SOURCES = \
930
 
        src/getty-generator.c \
931
 
        src/unit-name.c
932
 
 
933
 
systemd_getty_generator_LDADD = \
934
 
        libsystemd-basic.la
935
 
 
936
 
systemd_rc_local_generator_SOURCES = \
937
 
        src/rc-local-generator.c
938
 
 
939
 
systemd_rc_local_generator_LDADD = \
940
 
        libsystemd-basic.la
941
 
 
942
 
systemd_remount_api_vfs_SOURCES = \
943
 
        src/remount-api-vfs.c \
944
 
        src/mount-setup.c \
945
 
        src/exit-status.c
946
 
 
947
 
systemd_remount_api_vfs_LDADD = \
948
 
        libsystemd-basic.la
949
 
 
950
 
systemd_cgroups_agent_SOURCES = \
951
 
        src/cgroups-agent.c \
952
 
        src/dbus-common.c
953
 
 
954
 
systemd_cgroups_agent_CFLAGS = \
955
 
        $(AM_CFLAGS) \
956
 
        $(DBUS_CFLAGS)
957
 
 
958
 
systemd_cgroups_agent_LDADD = \
959
 
        libsystemd-basic.la \
960
 
        $(DBUS_LIBS)
961
 
 
962
 
systemctl_SOURCES = \
963
 
        src/systemctl.c \
964
 
        src/utmp-wtmp.c \
965
 
        src/dbus-common.c \
966
 
        src/path-lookup.c \
967
 
        src/cgroup-show.c \
968
 
        src/cgroup-util.c \
969
 
        src/exit-status.c \
970
 
        src/unit-name.c \
971
 
        src/pager.c \
972
 
        src/install.c \
973
 
        src/spawn-agent.c \
974
 
        src/logs-show.c
975
 
 
976
 
systemctl_CFLAGS = \
977
 
        $(AM_CFLAGS) \
978
 
        $(DBUS_CFLAGS)
979
 
 
980
 
systemctl_LDADD = \
981
 
        libsystemd-basic.la \
982
 
        libsystemd-daemon.la \
983
 
        libsystemd-journal.la \
984
 
        libsystemd-id128.la \
985
 
        $(DBUS_LIBS)
986
 
 
987
 
systemd_notify_SOURCES = \
988
 
        src/notify.c \
989
 
        src/readahead/sd-readahead.c
990
 
 
991
 
systemd_notify_LDADD = \
992
 
        libsystemd-basic.la \
993
 
        libsystemd-daemon.la
994
 
 
995
 
systemd_ask_password_SOURCES = \
996
 
        src/ask-password.c \
997
 
        src/ask-password-api.c
998
 
 
999
 
systemd_ask_password_LDADD = \
1000
 
        libsystemd-basic.la
1001
 
 
1002
 
systemd_reply_password_SOURCES = \
1003
 
        src/reply-password.c
1004
 
 
1005
 
systemd_reply_password_LDADD = \
1006
 
        libsystemd-basic.la
1007
 
 
1008
 
systemd_cgls_SOURCES = \
1009
 
        src/cgls.c \
1010
 
        src/cgroup-show.c \
1011
 
        src/cgroup-util.c \
1012
 
        src/pager.c
1013
 
 
1014
 
systemd_cgls_LDADD = \
1015
 
        libsystemd-basic.la
1016
 
 
1017
 
systemd_cgtop_SOURCES = \
1018
 
        src/cgtop.c \
1019
 
        src/cgroup-util.c
1020
 
 
1021
 
systemd_cgtop_LDADD = \
1022
 
        libsystemd-basic.la
1023
 
 
1024
 
systemd_nspawn_SOURCES = \
1025
 
        src/nspawn.c \
1026
 
        src/cgroup-util.c \
1027
 
        src/loopback-setup.c
1028
 
 
1029
 
systemd_nspawn_LDADD = \
1030
 
        libsystemd-basic.la \
1031
 
        libsystemd-daemon.la
1032
 
 
1033
 
systemd_stdio_bridge_SOURCES = \
1034
 
        src/bridge.c
1035
 
 
1036
 
systemd_stdio_bridge_LDADD = \
1037
 
        libsystemd-basic.la
1038
 
 
1039
 
systemadm_SOURCES = \
1040
 
        src/systemadm.vala \
1041
 
        src/systemd-interfaces.vala \
1042
 
        src/wraplabel.vala
1043
 
 
1044
 
systemadm_CFLAGS = \
1045
 
        $(AM_CFLAGS) \
1046
 
        $(GTK_CFLAGS) \
1047
 
        -Wno-unused-variable \
1048
 
        -Wno-unused-function \
1049
 
        -Wno-shadow \
1050
 
        -Wno-format-nonliteral
1051
 
 
1052
 
systemadm_VALAFLAGS = \
1053
 
        --pkg=posix \
1054
 
        --pkg=gtk+-2.0 \
1055
 
        --pkg=gee-1.0 \
1056
 
        -g
1057
 
 
1058
 
systemadm_LDADD = \
1059
 
        $(GTK_LIBS)
1060
 
 
1061
 
systemd_gnome_ask_password_agent_SOURCES = \
1062
 
        src/gnome-ask-password-agent.vala
1063
 
 
1064
 
systemd_gnome_ask_password_agent_CFLAGS = \
1065
 
        $(AM_CFLAGS) \
1066
 
        $(LIBNOTIFY_CFLAGS) \
1067
 
        $(GTK_CFLAGS) \
1068
 
        -Wno-unused-variable \
1069
 
        -Wno-unused-function \
1070
 
        -Wno-shadow \
1071
 
        -Wno-format-nonliteral
1072
 
 
1073
 
systemd_gnome_ask_password_agent_VALAFLAGS = \
1074
 
        --pkg=posix \
1075
 
        --pkg=gtk+-2.0 \
1076
 
        --pkg=linux \
1077
 
        --pkg=gio-unix-2.0 \
1078
 
        --pkg=libnotify \
1079
 
        -g
1080
 
 
1081
 
systemd_gnome_ask_password_agent_LDADD = \
1082
 
        $(LIBNOTIFY_LIBS) \
1083
 
        $(GTK_LIBS)
1084
 
 
1085
 
systemd_tty_ask_password_agent_SOURCES = \
1086
 
        src/tty-ask-password-agent.c \
1087
 
        src/ask-password-api.c \
1088
 
        src/utmp-wtmp.c
1089
 
 
1090
 
systemd_tty_ask_password_agent_LDADD = \
1091
 
        libsystemd-basic.la
1092
 
 
1093
 
# ------------------------------------------------------------------------------
1094
 
libsystemd_daemon_la_SOURCES = \
1095
 
        src/sd-daemon.c
1096
 
 
1097
 
libsystemd_daemon_la_CFLAGS = \
1098
 
        $(AM_CFLAGS) \
1099
 
        -fvisibility=hidden \
1100
 
        -DSD_EXPORT_SYMBOLS
1101
 
 
1102
 
libsystemd_daemon_la_LDFLAGS = \
1103
 
        -shared \
1104
 
        -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1105
 
        -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon.sym
1106
 
 
1107
 
pkginclude_HEADERS += \
1108
 
        src/systemd/sd-daemon.h
1109
 
 
1110
 
# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1111
 
libsystemd-daemon-install-hook:
1112
 
        if test "$(libdir)" != "$(rootlibdir)"; then \
1113
 
                mkdir -p $(DESTDIR)$(rootlibdir) && \
1114
 
                so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-daemon.so) && \
1115
 
                so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1116
 
                ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-daemon.so && \
1117
 
                mv $(DESTDIR)$(libdir)/libsystemd-daemon.so.* $(DESTDIR)$(rootlibdir); \
1118
 
        fi
1119
 
 
1120
 
INSTALL_EXEC_HOOKS += \
1121
 
        libsystemd-daemon-install-hook
1122
 
 
1123
 
libsystemd-daemon-uninstall-hook:
1124
 
        rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1125
 
 
1126
 
UNINSTALL_EXEC_HOOKS += \
1127
 
        libsystemd-daemon-uninstall-hook
1128
 
 
1129
 
lib_LTLIBRARIES += \
1130
 
        libsystemd-daemon.la
1131
 
 
1132
 
pkgconfiglib_DATA += \
1133
 
        src/libsystemd-daemon.pc
1134
 
 
1135
 
MANPAGES += \
1136
 
        man/sd-daemon.7 \
1137
 
        man/sd_notify.3 \
1138
 
        man/sd_listen_fds.3 \
1139
 
        man/sd_is_fifo.3 \
1140
 
        man/sd_booted.3
1141
 
 
1142
 
MANPAGES_ALIAS += \
1143
 
        man/sd_is_socket.3 \
1144
 
        man/sd_is_socket_unix.3 \
1145
 
        man/sd_is_socket_inet.3 \
1146
 
        man/sd_is_mq.3 \
1147
 
        man/sd_notifyf.3
1148
 
 
1149
 
man/sd_is_socket.3: man/sd_is_fifo.3
1150
 
man/sd_is_socket_unix.3: man/sd_is_fifo.3
1151
 
man/sd_is_socket_inet.3: man/sd_is_fifo.3
1152
 
man/sd_is_mq.3: man/sd_is_fifo.3
1153
 
man/sd_notifyf.3: man/sd_notify.3
1154
 
 
1155
 
EXTRA_DIST += \
1156
 
        src/libsystemd-daemon.pc.in \
1157
 
        src/libsystemd-daemon.sym
1158
 
 
1159
 
# ------------------------------------------------------------------------------
1160
 
libsystemd_id128_la_SOURCES = \
1161
 
        src/sd-id128.c
1162
 
 
1163
 
libsystemd_id128_la_CFLAGS = \
1164
 
        $(AM_CFLAGS) \
1165
 
        -fvisibility=hidden
1166
 
 
1167
 
libsystemd_id128_la_LDFLAGS = \
1168
 
        -shared \
1169
 
        -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
1170
 
        -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128.sym
1171
 
 
1172
 
libsystemd_id128_la_LIBADD = \
1173
 
        libsystemd-basic.la
1174
 
 
1175
 
test_id128_SOURCES = \
1176
 
        src/test-id128.c \
1177
 
        src/sd-id128.c
1178
 
 
1179
 
test_id128_LDADD = \
1180
 
        libsystemd-basic.la
1181
 
 
1182
 
noinst_PROGRAMS += \
1183
 
        test-id128
1184
 
 
1185
 
pkginclude_HEADERS += \
1186
 
        src/systemd/sd-id128.h
1187
 
 
1188
 
lib_LTLIBRARIES += \
1189
 
        libsystemd-id128.la
1190
 
 
1191
 
pkgconfiglib_DATA += \
1192
 
        src/libsystemd-id128.pc
1193
 
 
1194
 
# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1195
 
libsystemd-id128-install-hook:
1196
 
        if test "$(libdir)" != "$(rootlibdir)"; then \
1197
 
                mkdir -p $(DESTDIR)$(rootlibdir) && \
1198
 
                so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-id128.so) && \
1199
 
                so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1200
 
                ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-id128.so && \
1201
 
                mv $(DESTDIR)$(libdir)/libsystemd-id128.so.* $(DESTDIR)$(rootlibdir); \
1202
 
        fi
1203
 
 
1204
 
INSTALL_EXEC_HOOKS += \
1205
 
        libsystemd-id128-install-hook
1206
 
 
1207
 
libsystemd-id128-uninstall-hook:
1208
 
        rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
1209
 
 
1210
 
UNINSTALL_EXEC_HOOKS += \
1211
 
        libsystemd-id128-uninstall-hook
1212
 
 
1213
 
EXTRA_DIST += \
1214
 
        src/libsystemd-id128.pc.in \
1215
 
        src/libsystemd-id128.sym
1216
 
 
1217
 
# ------------------------------------------------------------------------------
1218
 
systemd_journald_SOURCES = \
1219
 
        src/journal/journald.c \
1220
 
        src/journal/sd-journal.c \
1221
 
        src/journal/journal-file.c \
1222
 
        src/journal/lookup3.c \
1223
 
        src/journal/journal-rate-limit.c \
1224
 
        src/sd-id128.c \
1225
 
        src/cgroup-util.c
1226
 
 
1227
 
if HAVE_ACL
1228
 
systemd_journald_SOURCES += \
1229
 
        src/acl-util.c
1230
 
endif
1231
 
 
1232
 
nodist_systemd_journald_SOURCES = \
1233
 
        src/journal/journald-gperf.c
1234
 
 
1235
 
systemd_journald_CFLAGS = \
1236
 
        $(AM_CFLAGS) \
1237
 
        $(ACL_CFLAGS)
1238
 
 
1239
 
systemd_journald_LDADD = \
1240
 
        libsystemd-basic.la \
1241
 
        libsystemd-daemon.la \
1242
 
        libsystemd-login.la \
1243
 
        $(ACL_LIBS)
1244
 
 
1245
 
if HAVE_XZ
1246
 
systemd_journald_SOURCES += \
1247
 
        src/journal/compress.c
1248
 
systemd_journald_CFLAGS += \
1249
 
        $(XZ_CFLAGS)
1250
 
systemd_journald_LDADD += \
1251
 
        $(XZ_LIBS)
1252
 
endif
1253
 
 
1254
 
systemd_cat_SOURCES = \
1255
 
        src/journal/cat.c
1256
 
 
1257
 
systemd_cat_LDADD = \
1258
 
        libsystemd-basic.la \
1259
 
        libsystemd-journal.la
1260
 
 
1261
 
systemd_journalctl_SOURCES = \
1262
 
        src/journal/journalctl.c \
1263
 
        src/pager.c \
1264
 
        src/logs-show.c
1265
 
 
1266
 
systemd_journalctl_LDADD = \
1267
 
        libsystemd-basic.la \
1268
 
        libsystemd-journal.la \
1269
 
        libsystemd-id128.la
1270
 
 
1271
 
if HAVE_XZ
1272
 
systemd_journalctl_SOURCES += \
1273
 
        src/journal/compress.c
1274
 
systemd_journalctl_CFLAGS = \
1275
 
        $(AM_CFLAGS) \
1276
 
        $(XZ_CFLAGS)
1277
 
systemd_journalctl_LDADD += \
1278
 
        $(XZ_LIBS)
1279
 
endif
1280
 
 
1281
 
test_journal_SOURCES = \
1282
 
        src/journal/test-journal.c \
1283
 
        src/journal/sd-journal.c \
1284
 
        src/journal/journal-file.c \
1285
 
        src/journal/lookup3.c \
1286
 
        src/journal/journal-send.c \
1287
 
        src/sd-id128.c
1288
 
 
1289
 
test_journal_LDADD = \
1290
 
        libsystemd-basic.la
1291
 
 
1292
 
if HAVE_XZ
1293
 
test_journal_SOURCES += \
1294
 
        src/journal/compress.c
1295
 
 
1296
 
test_journal_CFLAGS = \
1297
 
        $(AM_CFLAGS) \
1298
 
        $(XZ_CFLAGS)
1299
 
 
1300
 
test_journal_LDADD += \
1301
 
        $(XZ_LIBS)
1302
 
endif
1303
 
 
1304
 
libsystemd_journal_la_SOURCES = \
1305
 
        src/journal/sd-journal.c \
1306
 
        src/journal/journal-file.c \
1307
 
        src/journal/lookup3.c \
1308
 
        src/journal/journal-send.c
1309
 
 
1310
 
libsystemd_journal_la_CFLAGS = \
1311
 
        $(AM_CFLAGS) \
1312
 
        -fvisibility=hidden
1313
 
 
1314
 
libsystemd_journal_la_LDFLAGS = \
1315
 
        -shared \
1316
 
        -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
1317
 
        -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
1318
 
 
1319
 
libsystemd_journal_la_LIBADD = \
1320
 
        libsystemd-basic.la \
1321
 
        libsystemd-id128.la
1322
 
 
1323
 
if HAVE_XZ
1324
 
libsystemd_journal_la_SOURCES += \
1325
 
        src/journal/compress.c
1326
 
 
1327
 
libsystemd_journal_la_CFLAGS += \
1328
 
        $(XZ_CFLAGS)
1329
 
 
1330
 
libsystemd_journal_la_LIBADD += \
1331
 
        $(XZ_LIBS)
1332
 
endif
1333
 
 
1334
 
# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1335
 
libsystemd-journal-install-hook:
1336
 
        if test "$(libdir)" != "$(rootlibdir)"; then \
1337
 
                mkdir -p $(DESTDIR)$(rootlibdir) && \
1338
 
                so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-journal.so) && \
1339
 
                so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1340
 
                ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-journal.so && \
1341
 
                mv $(DESTDIR)$(libdir)/libsystemd-journal.so.* $(DESTDIR)$(rootlibdir); \
1342
 
        fi
1343
 
 
1344
 
INSTALL_EXEC_HOOKS += \
1345
 
        libsystemd-journal-install-hook
1346
 
 
1347
 
libsystemd-journal-uninstall-hook:
1348
 
        rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
1349
 
 
1350
 
UNINSTALL_EXEC_HOOKS += \
1351
 
        libsystemd-journal-uninstall-hook
1352
 
 
1353
 
noinst_PROGRAMS += \
1354
 
        test-journal
1355
 
 
1356
 
pkginclude_HEADERS += \
1357
 
        src/systemd/sd-journal.h \
1358
 
        src/systemd/sd-messages.h
1359
 
 
1360
 
lib_LTLIBRARIES += \
1361
 
        libsystemd-journal.la
1362
 
 
1363
 
rootlibexec_PROGRAMS += \
1364
 
        systemd-journald
1365
 
 
1366
 
rootbin_PROGRAMS += \
1367
 
        systemd-journalctl
1368
 
 
1369
 
bin_PROGRAMS += \
1370
 
        systemd-cat
1371
 
 
1372
 
dist_systemunit_DATA += \
1373
 
        units/systemd-journald.socket
1374
 
 
1375
 
nodist_systemunit_DATA += \
1376
 
        units/systemd-journald.service
1377
 
 
1378
 
dist_pkgsysconf_DATA += \
1379
 
        src/journal/systemd-journald.conf
1380
 
 
1381
 
pkgconfiglib_DATA += \
1382
 
        src/journal/libsystemd-journal.pc
1383
 
 
1384
 
journal-install-data-hook:
1385
 
        $(MKDIR_P) -m 0755 \
1386
 
                $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1387
 
                $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1388
 
        ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1389
 
                rm -f systemd-journald.socket && \
1390
 
                $(LN_S) ../systemd-journald.socket )
1391
 
        ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1392
 
                rm -f systemd-journald.service && \
1393
 
                $(LN_S) ../systemd-journald.service )
1394
 
 
1395
 
INSTALL_DATA_HOOKS += \
1396
 
        journal-install-data-hook
1397
 
 
1398
 
EXTRA_DIST += \
1399
 
        src/journal/journald.h \
1400
 
        src/journal/journal-def.h \
1401
 
        src/journal/journal-internal.h \
1402
 
        src/journal/journal-file.h \
1403
 
        src/journal/lookup3.h \
1404
 
        src/journal/compress.h \
1405
 
        src/journal/journal-rate-limit.h \
1406
 
        src/journal/libsystemd-journal.pc.in \
1407
 
        src/journal/libsystemd-journal.sym \
1408
 
        units/systemd-journald.service.in \
1409
 
        src/journal/journald-gperf.gperf
1410
 
 
1411
 
CLEANFILES += \
1412
 
        src/journal/journald-gperf.c
1413
 
 
1414
 
# ------------------------------------------------------------------------------
1415
 
if ENABLE_COREDUMP
1416
 
systemd_coredump_SOURCES = \
1417
 
        src/journal/coredump.c
1418
 
 
1419
 
systemd_coredump_LDADD = \
1420
 
        libsystemd-basic.la \
1421
 
        libsystemd-journal.la \
1422
 
        libsystemd-login.la
1423
 
 
1424
 
rootlibexec_PROGRAMS += \
1425
 
        systemd-coredump
1426
 
 
1427
 
sysctl_DATA = \
1428
 
        sysctl.d/coredump.conf
1429
 
 
1430
 
EXTRA_DIST += \
1431
 
        sysctl.d/coredump.conf.in
1432
 
 
1433
 
CLEANFILES += \
1434
 
        sysctl.d/coredump.conf
1435
 
endif
1436
 
 
1437
 
# ------------------------------------------------------------------------------
1438
 
if ENABLE_BINFMT
1439
 
systemd_binfmt_SOURCES = \
1440
 
        src/binfmt/binfmt.c
1441
 
 
1442
 
systemd_binfmt_LDADD = \
1443
 
        libsystemd-basic.la
1444
 
 
1445
 
rootlibexec_PROGRAMS += \
1446
 
        systemd-binfmt
1447
 
 
1448
 
dist_systemunit_DATA += \
1449
 
        units/proc-sys-fs-binfmt_misc.automount \
1450
 
        units/proc-sys-fs-binfmt_misc.mount
1451
 
 
1452
 
nodist_systemunit_DATA += \
1453
 
        units/systemd-binfmt.service
1454
 
 
1455
 
binfmt-install-data-hook:
1456
 
        $(MKDIR_P) -m 0755 \
1457
 
                $(DESTDIR)$(prefix)/lib/binfmt.d \
1458
 
                $(DESTDIR)$(sysconfdir)/binfmt.d \
1459
 
                $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1460
 
        ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1461
 
                rm -f systemd-binfmt.service \
1462
 
                        proc-sys-fs-binfmt_misc.automount && \
1463
 
                $(LN_S) ../systemd-binfmt.service systemd-binfmt.service && \
1464
 
                $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount )
1465
 
 
1466
 
INSTALL_DATA_HOOKS += \
1467
 
        binfmt-install-data-hook
1468
 
 
1469
 
MANPAGES += \
1470
 
        man/binfmt.d.5
1471
 
 
1472
 
EXTRA_DIST += \
1473
 
        units/systemd-binfmt.service.in
1474
 
endif
1475
 
 
1476
 
# ------------------------------------------------------------------------------
1477
 
if ENABLE_VCONSOLE
1478
 
systemd_vconsole_setup_SOURCES = \
1479
 
        src/vconsole/vconsole-setup.c
1480
 
 
1481
 
systemd_vconsole_setup_LDADD = \
1482
 
        libsystemd-basic.la
1483
 
 
1484
 
rootlibexec_PROGRAMS += \
1485
 
        systemd-vconsole-setup
1486
 
 
1487
 
nodist_systemunit_DATA += \
1488
 
        units/systemd-vconsole-setup.service
1489
 
 
1490
 
vconsole-install-data-hook:
1491
 
        $(MKDIR_P) -m 0755 \
1492
 
                $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1493
 
        ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1494
 
                rm -f systemd-vconsole-setup.service && \
1495
 
                $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service )
1496
 
 
1497
 
INSTALL_DATA_HOOKS += \
1498
 
        vconsole-install-data-hook
1499
 
 
1500
 
MANPAGES += \
1501
 
        man/vconsole.conf.5
1502
 
 
1503
 
EXTRA_DIST += \
1504
 
        units/systemd-vconsole-setup.service.in
1505
 
endif
1506
 
 
1507
 
# ------------------------------------------------------------------------------
1508
 
if ENABLE_READAHEAD
1509
 
systemd_readahead_collect_SOURCES = \
1510
 
        src/readahead/readahead-collect.c \
1511
 
        src/readahead/readahead-common.c
1512
 
 
1513
 
systemd_readahead_collect_LDADD = \
1514
 
        libsystemd-basic.la \
1515
 
        libsystemd-daemon.la \
1516
 
        $(UDEV_LIBS)
1517
 
 
1518
 
systemd_readahead_collect_CFLAGS = \
1519
 
        $(AM_CFLAGS) \
1520
 
        $(UDEV_CFLAGS)
1521
 
 
1522
 
systemd_readahead_replay_SOURCES = \
1523
 
        src/readahead/readahead-replay.c \
1524
 
        src/readahead/readahead-common.c
1525
 
 
1526
 
systemd_readahead_replay_CFLAGS = \
1527
 
        $(AM_CFLAGS) \
1528
 
        $(UDEV_CFLAGS)
1529
 
 
1530
 
systemd_readahead_replay_LDADD = \
1531
 
        libsystemd-basic.la \
1532
 
        libsystemd-daemon.la \
1533
 
        $(UDEV_LIBS)
1534
 
 
1535
 
rootlibexec_PROGRAMS += \
1536
 
        systemd-readahead-collect \
1537
 
        systemd-readahead-replay
1538
 
 
1539
 
dist_systemunit_DATA += \
1540
 
        units/systemd-readahead-done.timer
1541
 
 
1542
 
nodist_systemunit_DATA += \
1543
 
        units/systemd-readahead-collect.service \
1544
 
        units/systemd-readahead-replay.service \
1545
 
        units/systemd-readahead-done.service
1546
 
 
1547
 
EXTRA_DIST += \
1548
 
        src/systemd/sd-readahead.h \
1549
 
        src/readahead/readahead-common.h \
1550
 
        units/systemd-readahead-collect.service.in \
1551
 
        units/systemd-readahead-replay.service.in \
1552
 
        units/systemd-readahead-done.service.in
1553
 
 
1554
 
MANPAGES += \
1555
 
        man/sd_readahead.3 \
1556
 
        man/sd-readahead.7
1557
 
endif
1558
 
 
1559
 
# ------------------------------------------------------------------------------
1560
 
if ENABLE_QUOTACHECK
1561
 
rootlibexec_PROGRAMS += \
1562
 
        systemd-quotacheck
1563
 
 
1564
 
nodist_systemunit_DATA += \
1565
 
        units/quotacheck.service
1566
 
 
1567
 
EXTRA_DIST += \
1568
 
        units/quotacheck.service.in
1569
 
 
1570
 
systemd_quotacheck_SOURCES = \
1571
 
        src/quotacheck.c
1572
 
 
1573
 
systemd_quotacheck_LDADD = \
1574
 
        libsystemd-basic.la
1575
 
endif
1576
 
 
1577
 
# ------------------------------------------------------------------------------
1578
 
if ENABLE_RANDOMSEED
1579
 
rootlibexec_PROGRAMS += \
1580
 
        systemd-random-seed
1581
 
 
1582
 
nodist_systemunit_DATA += \
1583
 
        units/systemd-random-seed-save.service \
1584
 
        units/systemd-random-seed-load.service
1585
 
 
1586
 
EXTRA_DIST += \
1587
 
        units/systemd-random-seed-save.service.in \
1588
 
        units/systemd-random-seed-load.service.in
1589
 
 
1590
 
systemd_random_seed_SOURCES = \
1591
 
        src/random-seed.c
1592
 
 
1593
 
systemd_random_seed_LDADD = \
1594
 
        libsystemd-basic.la
1595
 
 
1596
 
randomseed-install-data-hook:
1597
 
        $(MKDIR_P) -m 0755 \
1598
 
                $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1599
 
                $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1600
 
        ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1601
 
                rm -f systemd-random-seed-save.service && \
1602
 
                $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1603
 
        ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1604
 
                rm -f systemd-random-seed-load.service && \
1605
 
                $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service )
1606
 
 
1607
 
INSTALL_DATA_HOOKS += \
1608
 
        randomseed-install-data-hook
1609
 
endif
1610
 
 
1611
 
# ------------------------------------------------------------------------------
1612
 
if HAVE_LIBCRYPTSETUP
1613
 
rootlibexec_PROGRAMS += \
1614
 
        systemd-cryptsetup
1615
 
 
1616
 
systemgenerator_PROGRAMS += \
1617
 
        systemd-cryptsetup-generator
1618
 
 
1619
 
dist_systemunit_DATA += \
1620
 
        units/cryptsetup.target
1621
 
 
1622
 
systemd_cryptsetup_SOURCES = \
1623
 
        src/cryptsetup/cryptsetup.c \
1624
 
        src/ask-password-api.c
1625
 
 
1626
 
systemd_cryptsetup_CFLAGS = \
1627
 
        $(AM_CFLAGS) \
1628
 
        $(LIBCRYPTSETUP_CFLAGS) \
1629
 
        $(UDEV_CFLAGS)
1630
 
 
1631
 
systemd_cryptsetup_LDADD = \
1632
 
        $(LIBCRYPTSETUP_LIBS) \
1633
 
        $(UDEV_LIBS) \
1634
 
        libsystemd-basic.la
1635
 
 
1636
 
systemd_cryptsetup_generator_SOURCES = \
1637
 
        src/cryptsetup/cryptsetup-generator.c \
1638
 
        src/unit-name.c
1639
 
 
1640
 
systemd_cryptsetup_generator_LDADD = \
1641
 
        libsystemd-basic.la
1642
 
 
1643
 
cryptsetup-install-data-hook:
1644
 
        $(MKDIR_P) -m 0755 \
1645
 
                $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1646
 
        ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1647
 
                rm -f cryptsetup.target && \
1648
 
                $(LN_S) ../cryptsetup.target cryptsetup.target )
1649
 
 
1650
 
INSTALL_DATA_HOOKS += \
1651
 
        cryptsetup-install-data-hook
1652
 
endif
1653
 
 
1654
 
# ------------------------------------------------------------------------------
1655
 
if ENABLE_HOSTNAMED
1656
 
systemd_hostnamed_SOURCES = \
1657
 
        src/hostname/hostnamed.c \
1658
 
        src/dbus-common.c \
1659
 
        src/polkit.c
1660
 
 
1661
 
systemd_hostnamed_CFLAGS = \
1662
 
        $(AM_CFLAGS) \
1663
 
        $(DBUS_CFLAGS)
1664
 
 
1665
 
systemd_hostnamed_LDADD = \
1666
 
        libsystemd-basic.la \
1667
 
        libsystemd-daemon.la \
1668
 
        $(DBUS_LIBS)
1669
 
 
1670
 
rootlibexec_PROGRAMS += \
1671
 
        systemd-hostnamed
1672
 
 
1673
 
nodist_systemunit_DATA += \
1674
 
        units/systemd-hostnamed.service
1675
 
 
1676
 
dist_dbuspolicy_DATA += \
1677
 
        src/hostname/org.freedesktop.hostname1.conf
1678
 
 
1679
 
dist_dbussystemservice_DATA += \
1680
 
        src/hostname/org.freedesktop.hostname1.service
1681
 
 
1682
 
polkitpolicy_in_files += \
1683
 
        src/hostname/org.freedesktop.hostname1.policy.in
1684
 
 
1685
 
dbusinterface_DATA += \
1686
 
        org.freedesktop.hostname1.xml
1687
 
 
1688
 
org.freedesktop.hostname1.xml: systemd-hostnamed
1689
 
        $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
1690
 
                $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1691
 
                $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1692
 
 
1693
 
hostnamed-install-data-hook:
1694
 
        ( cd $(DESTDIR)$(systemunitdir) && \
1695
 
                rm -f dbus-org.freedesktop.hostname1.service && \
1696
 
                $(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service )
1697
 
 
1698
 
INSTALL_DATA_HOOKS += \
1699
 
        hostnamed-install-data-hook
1700
 
 
1701
 
EXTRA_DIST += \
1702
 
        units/systemd-hostnamed.service.in
1703
 
endif
1704
 
 
1705
 
# ------------------------------------------------------------------------------
1706
 
if ENABLE_LOCALED
1707
 
systemd_localed_SOURCES = \
1708
 
        src/locale/localed.c \
1709
 
        src/dbus-common.c \
1710
 
        src/polkit.c
1711
 
 
1712
 
systemd_localed_CFLAGS = \
1713
 
        $(AM_CFLAGS) \
1714
 
        $(DBUS_CFLAGS)
1715
 
 
1716
 
systemd_localed_LDADD = \
1717
 
        libsystemd-basic.la \
1718
 
        libsystemd-daemon.la \
1719
 
        $(DBUS_LIBS)
1720
 
 
1721
 
nodist_systemunit_DATA += \
1722
 
        units/systemd-localed.service
1723
 
 
1724
 
rootlibexec_PROGRAMS += \
1725
 
        systemd-localed
1726
 
 
1727
 
dist_dbuspolicy_DATA += \
1728
 
        src/locale/org.freedesktop.locale1.conf
1729
 
 
1730
 
dist_dbussystemservice_DATA += \
1731
 
        src/locale/org.freedesktop.locale1.service
1732
 
 
1733
 
polkitpolicy_in_files += \
1734
 
        src/locale/org.freedesktop.locale1.policy.in
1735
 
 
1736
 
dbusinterface_DATA += \
1737
 
        org.freedesktop.locale1.xml
1738
 
 
1739
 
org.freedesktop.locale1.xml: systemd-localed
1740
 
        $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
1741
 
                $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1742
 
                $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1743
 
 
1744
 
localed-install-data-hook:
1745
 
        ( cd $(DESTDIR)$(systemunitdir) && \
1746
 
                rm -f dbus-org.freedesktop.locale1.service && \
1747
 
                $(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service )
1748
 
 
1749
 
INSTALL_DATA_HOOKS += \
1750
 
        localed-install-data-hook
1751
 
 
1752
 
EXTRA_DIST += \
1753
 
        units/systemd-localed.service.in
1754
 
 
1755
 
dist_pkgdata_DATA = \
1756
 
        src/locale/kbd-model-map
1757
 
 
1758
 
dist_noinst_SCRIPT = \
1759
 
        src/locale/generate-kbd-model-map
1760
 
 
1761
 
update-kbd-model-map:
1762
 
        src/locale/generate-kbd-model-map > src/locale/kbd-model-map
1763
 
 
1764
 
endif
1765
 
 
1766
 
# ------------------------------------------------------------------------------
1767
 
if ENABLE_TIMEDATED
1768
 
systemd_timedated_SOURCES = \
1769
 
        src/timedate/timedated.c \
1770
 
        src/dbus-common.c \
1771
 
        src/polkit.c
1772
 
 
1773
 
systemd_timedated_CFLAGS = \
1774
 
        $(AM_CFLAGS) \
1775
 
        $(DBUS_CFLAGS)
1776
 
 
1777
 
systemd_timedated_LDADD = \
1778
 
        libsystemd-basic.la \
1779
 
        libsystemd-daemon.la \
1780
 
        $(DBUS_LIBS)
1781
 
 
1782
 
rootlibexec_PROGRAMS += \
1783
 
        systemd-timedated
1784
 
 
1785
 
dist_dbussystemservice_DATA += \
1786
 
        src/timedate/org.freedesktop.timedate1.service
1787
 
 
1788
 
dist_dbuspolicy_DATA += \
1789
 
        src/timedate/org.freedesktop.timedate1.conf
1790
 
 
1791
 
nodist_systemunit_DATA += \
1792
 
        units/systemd-timedated.service
1793
 
 
1794
 
polkitpolicy_in_files += \
1795
 
        src/timedate/org.freedesktop.timedate1.policy.in
1796
 
 
1797
 
org.freedesktop.timedate1.xml: systemd-timedated
1798
 
        $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
1799
 
                $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1800
 
                $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1801
 
 
1802
 
dbusinterface_DATA += \
1803
 
        org.freedesktop.timedate1.xml
1804
 
 
1805
 
timedated-install-data-hook:
1806
 
        ( cd $(DESTDIR)$(systemunitdir) && \
1807
 
                rm -f dbus-org.freedesktop.timedate1.service  && \
1808
 
                $(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service )
1809
 
 
1810
 
INSTALL_DATA_HOOKS += \
1811
 
        timedated-install-data-hook
1812
 
 
1813
 
EXTRA_DIST += \
1814
 
        units/systemd-timedated.service.in
1815
 
endif
1816
 
 
1817
 
# ------------------------------------------------------------------------------
1818
 
if ENABLE_LOGIND
1819
 
systemd_logind_SOURCES = \
1820
 
        src/login/logind.c \
1821
 
        src/login/logind-dbus.c \
1822
 
        src/login/logind-device.c \
1823
 
        src/login/logind-seat.c \
1824
 
        src/login/logind-seat-dbus.c \
1825
 
        src/login/logind-session.c \
1826
 
        src/login/logind-session-dbus.c \
1827
 
        src/login/logind-user.c \
1828
 
        src/login/logind-user-dbus.c \
1829
 
        src/dbus-common.c \
1830
 
        src/dbus-loop.c \
1831
 
        src/cgroup-util.c \
1832
 
        src/polkit.c
1833
 
 
1834
 
nodist_systemd_logind_SOURCES = \
1835
 
        src/login/logind-gperf.c
1836
 
 
1837
 
if HAVE_ACL
1838
 
systemd_logind_SOURCES += \
1839
 
        src/login/logind-acl.c \
1840
 
        src/acl-util.c
1841
 
endif
1842
 
 
1843
 
systemd_logind_CFLAGS = \
1844
 
        $(AM_CFLAGS) \
1845
 
        $(DBUS_CFLAGS) \
1846
 
        $(UDEV_CFLAGS) \
1847
 
        $(ACL_CFLAGS)
1848
 
 
1849
 
systemd_logind_LDADD = \
1850
 
        libsystemd-basic.la \
1851
 
        libsystemd-daemon.la \
1852
 
        $(DBUS_LIBS) \
1853
 
        $(UDEV_LIBS) \
1854
 
        $(ACL_LIBS)
1855
 
 
1856
 
systemd_user_sessions_SOURCES = \
1857
 
        src/login/user-sessions.c \
1858
 
        src/cgroup-util.c
1859
 
 
1860
 
systemd_user_sessions_LDADD = \
1861
 
        libsystemd-basic.la
1862
 
 
1863
 
rootlibexec_PROGRAMS += \
1864
 
        systemd-logind \
1865
 
        systemd-user-sessions
1866
 
 
1867
 
systemd_loginctl_SOURCES = \
1868
 
        src/login/loginctl.c \
1869
 
        src/login/sysfs-show.c \
1870
 
        src/dbus-common.c \
1871
 
        src/cgroup-show.c \
1872
 
        src/cgroup-util.c \
1873
 
        src/pager.c
1874
 
 
1875
 
systemd_loginctl_CFLAGS = \
1876
 
        $(AM_CFLAGS) \
1877
 
        $(DBUS_CFLAGS) \
1878
 
        $(UDEV_CFLAGS)
1879
 
 
1880
 
systemd_loginctl_LDADD = \
1881
 
        libsystemd-basic.la \
1882
 
        $(DBUS_LIBS) \
1883
 
        $(UDEV_LIBS)
1884
 
 
1885
 
rootbin_PROGRAMS += \
1886
 
        systemd-loginctl
1887
 
 
1888
 
test_login_SOURCES = \
1889
 
        src/login/test-login.c
1890
 
 
1891
 
test_login_LDADD = \
1892
 
        libsystemd-basic.la \
1893
 
        libsystemd-login.la
1894
 
 
1895
 
noinst_PROGRAMS += \
1896
 
        test-login
1897
 
 
1898
 
libsystemd_login_la_SOURCES = \
1899
 
        src/login/sd-login.c \
1900
 
        src/cgroup-util.c
1901
 
 
1902
 
libsystemd_login_la_CFLAGS = \
1903
 
        $(AM_CFLAGS) \
1904
 
        -fvisibility=hidden
1905
 
 
1906
 
libsystemd_login_la_LDFLAGS = \
1907
 
        -shared \
1908
 
        -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
1909
 
        -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
1910
 
 
1911
 
libsystemd_login_la_LIBADD = \
1912
 
        libsystemd-basic.la
1913
 
 
1914
 
if HAVE_PAM
1915
 
pam_systemd_la_SOURCES = \
1916
 
        src/login/pam-module.c \
1917
 
        src/dbus-common.c
1918
 
 
1919
 
pam_systemd_la_CFLAGS = \
1920
 
        $(AM_CFLAGS) \
1921
 
        $(PAM_CFLAGS) \
1922
 
        $(DBUS_CFLAGS) \
1923
 
        -fvisibility=hidden
1924
 
 
1925
 
pam_systemd_la_LDFLAGS = \
1926
 
        -module \
1927
 
        -export-dynamic \
1928
 
        -avoid-version \
1929
 
        -shared \
1930
 
        -export-symbols-regex '^pam_sm_.*'
1931
 
 
1932
 
pam_systemd_la_LIBADD = \
1933
 
        libsystemd-basic.la \
1934
 
        libsystemd-daemon.la \
1935
 
        $(PAM_LIBS) \
1936
 
        $(DBUS_LIBS)
1937
 
 
1938
 
pamlib_LTLIBRARIES = \
1939
 
        pam_systemd.la
1940
 
endif
1941
 
 
1942
 
# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1943
 
libsystemd-login-install-hook:
1944
 
        if test "$(libdir)" != "$(rootlibdir)"; then \
1945
 
                mkdir -p $(DESTDIR)$(rootlibdir) && \
1946
 
                so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-login.so) && \
1947
 
                so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1948
 
                ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-login.so && \
1949
 
                mv $(DESTDIR)$(libdir)/libsystemd-login.so.* $(DESTDIR)$(rootlibdir); \
1950
 
        fi
1951
 
 
1952
 
INSTALL_EXEC_HOOKS += \
1953
 
        libsystemd-login-install-hook
1954
 
 
1955
 
libsystemd-login-uninstall-hook:
1956
 
        rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
1957
 
 
1958
 
UNINSTALL_EXEC_HOOKS += \
1959
 
        libsystemd-login-uninstall-hook
1960
 
 
1961
 
nodist_systemunit_DATA += \
1962
 
        units/systemd-logind.service \
1963
 
        units/systemd-user-sessions.service
1964
 
 
1965
 
dist_dbussystemservice_DATA += \
1966
 
        src/login/org.freedesktop.login1.service
1967
 
 
1968
 
dist_dbuspolicy_DATA += \
1969
 
        src/login/org.freedesktop.login1.conf
1970
 
 
1971
 
dist_pkgsysconf_DATA += \
1972
 
        src/login/systemd-logind.conf
1973
 
 
1974
 
pkginclude_HEADERS += \
1975
 
        src/systemd/sd-login.h
1976
 
 
1977
 
lib_LTLIBRARIES += \
1978
 
        libsystemd-login.la
1979
 
 
1980
 
pkgconfiglib_DATA += \
1981
 
        src/login/libsystemd-login.pc
1982
 
 
1983
 
polkitpolicy_in_files += \
1984
 
        src/login/org.freedesktop.login1.policy.in
1985
 
 
1986
 
logind-install-data-hook:
1987
 
        $(MKDIR_P) -m 0755 \
1988
 
                $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1989
 
                $(DESTDIR)$(localstatedir)/lib/systemd
1990
 
        ( cd $(DESTDIR)$(systemunitdir) && \
1991
 
                rm -f dbus-org.freedesktop.login1.service && \
1992
 
                $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service)
1993
 
        ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1994
 
                rm -f systemd-logind.service systemd-user-sessions.service && \
1995
 
                $(LN_S) ../systemd-logind.service systemd-logind.service && \
1996
 
                $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service )
1997
 
 
1998
 
INSTALL_DATA_HOOKS += \
1999
 
        logind-install-data-hook
2000
 
 
2001
 
systemd_multi_seat_x_SOURCES = \
2002
 
        src/login/multi-seat-x.c
2003
 
 
2004
 
systemd_multi_seat_x_CFLAGS = \
2005
 
        $(AM_CFLAGS) \
2006
 
        $(UDEV_CFLAGS)
2007
 
 
2008
 
systemd_multi_seat_x_LDADD = \
2009
 
        libsystemd-basic.la \
2010
 
        $(UDEV_LIBS)
2011
 
 
2012
 
rootlibexec_PROGRAMS += \
2013
 
        systemd-multi-seat-x
2014
 
 
2015
 
systemd_uaccess_SOURCES = \
2016
 
        src/login/uaccess.c
2017
 
 
2018
 
if HAVE_ACL
2019
 
systemd_uaccess_SOURCES += \
2020
 
        src/login/logind-acl.c \
2021
 
        src/acl-util.c
2022
 
endif
2023
 
 
2024
 
systemd_uaccess_CFLAGS = \
2025
 
        $(AM_CFLAGS) \
2026
 
        $(UDEV_CFLAGS) \
2027
 
        $(ACL_CFLAGS)
2028
 
 
2029
 
systemd_uaccess_LDADD = \
2030
 
        libsystemd-basic.la \
2031
 
        libsystemd-daemon.la \
2032
 
        libsystemd-login.la \
2033
 
        $(UDEV_LIBS) \
2034
 
        $(ACL_LIBS)
2035
 
 
2036
 
rootlibexec_PROGRAMS += \
2037
 
        systemd-uaccess
2038
 
 
2039
 
dist_udevrules_DATA += \
2040
 
        src/login/70-uaccess.rules
2041
 
 
2042
 
dist_udevrules_DATA += \
2043
 
        src/login/71-seat.rules
2044
 
 
2045
 
nodist_udevrules_DATA += \
2046
 
        src/login/73-seat-late.rules
2047
 
 
2048
 
MANPAGES += \
2049
 
        man/systemd-logind.conf.5 \
2050
 
        man/sd-login.7 \
2051
 
        man/systemd-loginctl.1 \
2052
 
        man/sd_login_monitor_new.3 \
2053
 
        man/sd_pid_get_session.3 \
2054
 
        man/sd_uid_get_state.3 \
2055
 
        man/sd_session_is_active.3 \
2056
 
        man/sd_seat_get_active.3 \
2057
 
        man/sd_get_seats.3
2058
 
 
2059
 
MANPAGES_ALIAS += \
2060
 
        man/sd_login_monitor_unref.3 \
2061
 
        man/sd_login_monitor_flush.3 \
2062
 
        man/sd_login_monitor_get_fd.3 \
2063
 
        man/sd_session_get_uid.3 \
2064
 
        man/sd_session_get_seat.3 \
2065
 
        man/sd_session_get_service.3 \
2066
 
        man/sd_session_get_type.3 \
2067
 
        man/sd_session_get_class.3 \
2068
 
        man/sd_session_get_display.3 \
2069
 
        man/sd_pid_get_owner_uid.3 \
2070
 
        man/sd_pid_get_unit.3 \
2071
 
        man/sd_uid_is_on_seat.3 \
2072
 
        man/sd_uid_get_sessions.3 \
2073
 
        man/sd_uid_get_seats.3 \
2074
 
        man/sd_seat_get_sessions.3 \
2075
 
        man/sd_seat_can_multi_session.3 \
2076
 
        man/sd_get_sessions.3 \
2077
 
        man/sd_get_uids.3
2078
 
 
2079
 
man/sd_login_monitor_unref.3: man/sd_login_monitor_new.3
2080
 
man/sd_login_monitor_flush.3: man/sd_login_monitor_new.3
2081
 
man/sd_login_monitor_get_fd.3: man/sd_login_monitor_new.3
2082
 
man/sd_session_get_uid.3: man/sd_session_is_active.3
2083
 
man/sd_session_get_seat.3: man/sd_session_is_active.3
2084
 
man/sd_session_get_service.3: man/sd_session_is_active.3
2085
 
man/sd_session_get_type.3: man/sd_session_is_active.3
2086
 
man/sd_session_get_class.3: man/sd_session_is_active.3
2087
 
man/sd_session_get_display.3: man/sd_session_is_active.3
2088
 
man/sd_pid_get_owner_uid.3: man/sd_pid_get_session.3
2089
 
man/sd_pid_get_unit.3: man/sd_pid_get_session.3
2090
 
man/sd_uid_is_on_seat.3: man/sd_uid_get_state.3
2091
 
man/sd_uid_get_sessions.3: man/sd_uid_get_state.3
2092
 
man/sd_uid_get_seats.3: man/sd_uid_get_state.3
2093
 
man/sd_seat_get_sessions.3: man/sd_seat_get_active.3
2094
 
man/sd_seat_can_multi_session.3: man/sd_seat_get_active.3
2095
 
man/sd_get_sessions.3: man/sd_get_seats.3
2096
 
man/sd_get_uids.3: man/sd_get_seats.3
2097
 
 
2098
 
EXTRA_DIST += \
2099
 
        src/login/logind-gperf.gperf \
2100
 
        src/login/libsystemd-login.pc.in \
2101
 
        src/login/libsystemd-login.sym \
2102
 
        src/login/logind.h \
2103
 
        src/login/logind-device.h \
2104
 
        src/login/logind-seat.h \
2105
 
        src/login/logind-session.h \
2106
 
        src/login/logind-user.h \
2107
 
        src/login/logind-acl.h \
2108
 
        src/login/73-seat-late.rules.in \
2109
 
        units/systemd-logind.service.in \
2110
 
        units/systemd-user-sessions.service.in
2111
 
 
2112
 
CLEANFILES += \
2113
 
        src/login/logind-gperf.c \
2114
 
        src/login/73-seat-late.rules
2115
 
endif
2116
 
# ------------------------------------------------------------------------------
2117
 
 
2118
 
SED_PROCESS = \
2119
 
        $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2120
 
        $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
2121
 
                -e 's,@rootbindir\@,$(rootbindir),g' \
2122
 
                -e 's,@bindir\@,$(bindir),g' \
2123
 
                -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
2124
 
                -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
2125
 
                -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
2126
 
                -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
2127
 
                -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
2128
 
                -e 's,@systemunitdir\@,$(systemunitdir),g' \
2129
 
                -e 's,@userunitdir\@,$(userunitdir),g' \
2130
 
                -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
2131
 
                -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
2132
 
                -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
2133
 
                -e 's,@prefix\@,$(prefix),g' \
2134
 
                -e 's,@exec_prefix\@,$(exec_prefix),g' \
2135
 
                -e 's,@libdir\@,$(libdir),g' \
2136
 
                -e 's,@includedir\@,$(includedir),g' \
2137
 
                < $< > $@ || rm $@
2138
 
 
2139
 
units/%: units/%.in Makefile
2140
 
        $(SED_PROCESS)
2141
 
 
2142
 
man/%: man/%.in Makefile
2143
 
        $(SED_PROCESS)
2144
 
 
2145
 
sysctl.d/%: sysctl.d/%.in Makefile
2146
 
        $(SED_PROCESS)
2147
 
 
2148
 
%.pc: %.pc.in Makefile
2149
 
        $(SED_PROCESS)
2150
 
 
2151
 
src/%.policy.in: src/%.policy.in.in Makefile
2152
 
        $(SED_PROCESS)
2153
 
 
2154
 
src/%.rules: src/%.rules.in Makefile
2155
 
        $(SED_PROCESS)
2156
 
 
2157
 
src/%.c: src/%.gperf
2158
 
        $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2159
 
        $(GPERF) < $< > $@
2160
 
 
2161
 
src/%: src/%.m4
2162
 
        $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2163
 
        $(M4) -P $(M4_DEFINES) < $< > $@ || rm $@
2164
 
 
2165
 
src/load-fragment-gperf-nulstr.c: src/load-fragment-gperf.gperf
2166
 
        $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2167
 
        $(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 ";" }' < $< > $@ || rm $@
2168
 
 
2169
 
M4_PROCESS_SYSTEM = \
2170
 
        $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2171
 
        $(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ || rm $@
2172
 
 
2173
 
M4_PROCESS_USER = \
2174
 
        $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2175
 
        $(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ || rm $@
2176
 
 
2177
 
units/%: units/%.m4 Makefile
2178
 
        $(M4_PROCESS_SYSTEM)
2179
 
 
2180
 
units/user/%: units/%.m4 Makefile
2181
 
        $(M4_PROCESS_USER)
2182
 
 
2183
 
CLEANFILES += \
2184
 
        $(nodist_systemunit_DATA) \
2185
 
        $(nodist_userunit_DATA) \
2186
 
        $(nodist_man_MANS) \
2187
 
        $(pkgconfigdata_DATA) \
2188
 
        $(pkgconfiglib_DATA) \
2189
 
        $(nodist_polkitpolicy_DATA) \
2190
 
        src/load-fragment-gperf.gperf \
2191
 
        src/load-fragment-gperf.c \
2192
 
        src/load-fragment-gperf-nulstr.c \
2193
 
        src/99-systemd.rules
2194
 
 
2195
 
if HAVE_VALAC
2196
 
CLEANFILES += \
2197
 
        ${systemadm_SOURCES:.vala=.c}
2198
 
endif
2199
 
 
2200
 
if HAVE_XSLTPROC
2201
 
XSLTPROC_FLAGS = \
2202
 
        --nonet \
2203
 
        --stringparam funcsynopsis.style ansi
2204
 
 
2205
 
XSLTPROC_PROCESS_MAN = \
2206
 
        $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2207
 
        $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
2208
 
 
2209
 
XSLTPROC_PROCESS_HTML = \
2210
 
        $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2211
 
        $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
2212
 
 
2213
 
man/%.1: man/%.xml
2214
 
        $(XSLTPROC_PROCESS_MAN)
2215
 
 
2216
 
man/%.3: man/%.xml
2217
 
        $(XSLTPROC_PROCESS_MAN)
2218
 
 
2219
 
man/%.5: man/%.xml
2220
 
        $(XSLTPROC_PROCESS_MAN)
2221
 
 
2222
 
man/%.7: man/%.xml
2223
 
        $(XSLTPROC_PROCESS_MAN)
2224
 
 
2225
 
man/%.8: man/%.xml
2226
 
        $(XSLTPROC_PROCESS_MAN)
2227
 
 
2228
 
man/%.html: man/%.xml
2229
 
        $(XSLTPROC_PROCESS_HTML)
2230
 
 
2231
 
CLEANFILES += \
2232
 
        $(dist_man_MANS) \
2233
 
        ${XML_FILES:.xml=.html}
2234
 
endif
2235
 
 
2236
 
DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
2237
 
 
2238
 
org.freedesktop.systemd1.%.xml: systemd
2239
 
        $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
2240
 
                $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
2241
 
                $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
2242
 
 
2243
 
CLEANFILES += \
2244
 
        $(dbusinterface_DATA)
2245
 
 
2246
 
systemd-install-data-hook:
2247
 
        $(MKDIR_P) -m 0755 \
2248
 
                $(DESTDIR)$(tmpfilesdir) \
2249
 
                $(DESTDIR)$(sysconfdir)/tmpfiles.d \
2250
 
                $(DESTDIR)$(prefix)/lib/modules-load.d \
2251
 
                $(DESTDIR)$(sysconfdir)/modules-load.d \
2252
 
                $(DESTDIR)$(prefix)/lib/sysctl.d \
2253
 
                $(DESTDIR)$(sysconfdir)/sysctl.d \
2254
 
                $(DESTDIR)$(systemshutdowndir) \
2255
 
                $(DESTDIR)$(systemgeneratordir) \
2256
 
                $(DESTDIR)$(usergeneratordir)
2257
 
        $(MKDIR_P) -m 0755 \
2258
 
                $(DESTDIR)$(systemunitdir) \
2259
 
                $(DESTDIR)$(userunitdir) \
2260
 
                $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
2261
 
                $(DESTDIR)$(systemunitdir)/sockets.target.wants \
2262
 
                $(DESTDIR)$(systemunitdir)/basic.target.wants \
2263
 
                $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
2264
 
                $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
2265
 
                $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
2266
 
                $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
2267
 
                $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
2268
 
                $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
2269
 
                $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
2270
 
                $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
2271
 
                $(DESTDIR)$(systemunitdir)/graphical.target.wants \
2272
 
                $(DESTDIR)$(pkgsysconfdir)/system \
2273
 
                $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
2274
 
                $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
2275
 
                $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
2276
 
                $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
2277
 
                $(DESTDIR)$(pkgsysconfdir)/user \
2278
 
                $(DESTDIR)$(dbussessionservicedir) \
2279
 
                $(DESTDIR)$(sysconfdir)/xdg/systemd
2280
 
        ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
2281
 
                rm -f user && \
2282
 
                $(LN_S) $(pkgsysconfdir)/user user )
2283
 
        ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
2284
 
                rm -f systemd-initctl.socket systemd-shutdownd.socket && \
2285
 
                $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
2286
 
                $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
2287
 
        ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
2288
 
                rm -f systemd-update-utmp-runlevel.service && \
2289
 
                $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2290
 
        ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
2291
 
                rm -f systemd-update-utmp-runlevel.service && \
2292
 
                $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2293
 
        ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
2294
 
                rm -f systemd-update-utmp-runlevel.service && \
2295
 
                $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2296
 
        ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
2297
 
                rm -f systemd-update-utmp-runlevel.service && \
2298
 
                $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2299
 
        ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
2300
 
                rm -f systemd-update-utmp-runlevel.service && \
2301
 
                $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2302
 
        ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
2303
 
                rm -f systemd-update-utmp-shutdown.service && \
2304
 
                $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service )
2305
 
        ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2306
 
                rm -f systemd-remount-api-vfs.service \
2307
 
                        fsck-root.service \
2308
 
                        remount-rootfs.service \
2309
 
                        var-run.mount \
2310
 
                        media.mount && \
2311
 
                $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
2312
 
                $(LN_S) ../fsck-root.service fsck-root.service && \
2313
 
                $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
2314
 
                $(LN_S) ../var-run.mount var-run.mount && \
2315
 
                $(LN_S) ../media.mount media.mount )
2316
 
        ( cd $(DESTDIR)$(userunitdir) && \
2317
 
                rm -f shutdown.target sockets.target bluetooth.target printer.target sound.target && \
2318
 
                $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
2319
 
                $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
2320
 
                $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
2321
 
                $(LN_S) $(systemunitdir)/printer.target printer.target && \
2322
 
                $(LN_S) $(systemunitdir)/sound.target sound.target )
2323
 
        ( cd $(DESTDIR)$(systemunitdir) && \
2324
 
                rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
2325
 
                $(LN_S) poweroff.target runlevel0.target && \
2326
 
                $(LN_S) rescue.target runlevel1.target && \
2327
 
                $(LN_S) multi-user.target runlevel2.target && \
2328
 
                $(LN_S) multi-user.target runlevel3.target && \
2329
 
                $(LN_S) multi-user.target runlevel4.target && \
2330
 
                $(LN_S) graphical.target runlevel5.target && \
2331
 
                $(LN_S) reboot.target runlevel6.target )
2332
 
        ( cd $(DESTDIR)$(systemunitdir) && \
2333
 
                rm -f default.target ctrl-alt-del.target autovt@.service && \
2334
 
                $(LN_S) graphical.target default.target && \
2335
 
                $(LN_S) reboot.target ctrl-alt-del.target && \
2336
 
                $(LN_S) getty@.service autovt@.service )
2337
 
        ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2338
 
                rm -f getty.target systemd-ask-password-wall.path && \
2339
 
                $(LN_S) ../getty.target getty.target && \
2340
 
                $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path)
2341
 
        ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2342
 
                rm -f getty@tty1.service && \
2343
 
                $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service )
2344
 
        ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2345
 
                rm -f remote-fs.target && \
2346
 
                $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
2347
 
        ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2348
 
                rm -f dev-hugepages.mount \
2349
 
                        dev-mqueue.mount \
2350
 
                        sys-kernel-config.mount \
2351
 
                        sys-kernel-debug.mount \
2352
 
                        sys-kernel-security.mount \
2353
 
                        sys-fs-fuse-connections.mount \
2354
 
                        systemd-modules-load.service \
2355
 
                        systemd-tmpfiles-setup.service \
2356
 
                        systemd-sysctl.service \
2357
 
                        systemd-ask-password-console.path && \
2358
 
                $(LN_S) ../dev-hugepages.mount dev-hugepages.mount && \
2359
 
                $(LN_S) ../dev-mqueue.mount dev-mqueue.mount && \
2360
 
                $(LN_S) ../sys-kernel-config.mount sys-kernel-config.mount && \
2361
 
                $(LN_S) ../sys-kernel-debug.mount sys-kernel-debug.mount && \
2362
 
                $(LN_S) ../sys-kernel-security.mount sys-kernel-security.mount && \
2363
 
                $(LN_S) ../sys-fs-fuse-connections.mount sys-fs-fuse-connections.mount && \
2364
 
                $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
2365
 
                $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
2366
 
                $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
2367
 
                $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path )
2368
 
        ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
2369
 
                rm -f systemd-tmpfiles-clean.timer && \
2370
 
                $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
2371
 
        ( cd $(DESTDIR)$(dbussessionservicedir) && \
2372
 
                rm -f org.freedesktop.systemd1.service && \
2373
 
                $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
2374
 
if HAVE_PLYMOUTH
2375
 
        $(MKDIR_P) -m 0755 \
2376
 
                $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
2377
 
                $(DESTDIR)$(systemunitdir)/reboot.target.wants \
2378
 
                $(DESTDIR)$(systemunitdir)/kexec.target.wants \
2379
 
                $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
2380
 
                $(DESTDIR)$(systemunitdir)/halt.target.wants
2381
 
        ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2382
 
                rm -f plymouth-start.service plymouth-read-write.service && \
2383
 
                $(LN_S) ../plymouth-start.service plymouth-start.service && \
2384
 
                $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
2385
 
        ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2386
 
                rm -f plymouth-quit.service plymouth-quit-wait.service && \
2387
 
                $(LN_S) ../plymouth-quit.service plymouth-quit.service && \
2388
 
                $(LN_S) ../plymouth-quit-wait.service plymouth-quit-wait.service )
2389
 
        ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
2390
 
                rm -f plymouth-reboot.service && \
2391
 
                $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
2392
 
        ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
2393
 
                rm -f plymouth-kexec.service && \
2394
 
                $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
2395
 
        ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
2396
 
                rm -f plymouth-poweroff.service && \
2397
 
                $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
2398
 
        ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
2399
 
                rm -f plymouth-halt.service && \
2400
 
                $(LN_S) ../plymouth-halt.service plymouth-halt.service )
2401
 
endif
2402
 
if TARGET_MEEGO
2403
 
        $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2404
 
        ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2405
 
                rm -f network.target && \
2406
 
                $(LN_S) $(systemunitdir)/network.target network.target )
2407
 
        ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
2408
 
                rm -f * )
2409
 
        ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
2410
 
                rm -f * )
2411
 
        ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2412
 
                rm -f * )
2413
 
        ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2414
 
                rm -f * )
2415
 
endif
2416
 
 
2417
 
if TARGET_FEDORA
2418
 
        $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2419
 
        ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2420
 
                rm -f halt-local.service && \
2421
 
                $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2422
 
        ( cd $(DESTDIR)$(systemunitdir) && \
2423
 
                rm -f display-manager.service single.service && \
2424
 
                $(LN_S) prefdm.service display-manager.service && \
2425
 
                $(LN_S) rescue.service single.service )
2426
 
        ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2427
 
                rm -f display-manager.service && \
2428
 
                $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2429
 
endif
2430
 
 
2431
 
if TARGET_MANDRIVA
2432
 
        $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2433
 
        ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2434
 
                rm -f halt-local.service && \
2435
 
                $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2436
 
        ( cd $(DESTDIR)$(systemunitdir) && \
2437
 
                rm -f display-manager.service dm.service single.service && \
2438
 
                $(LN_S) prefdm.service display-manager.service && \
2439
 
                $(LN_S) prefdm.service dm.service && \
2440
 
                $(LN_S) rescue.service single.service )
2441
 
        ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2442
 
                rm -f display-manager.service && \
2443
 
                $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2444
 
endif
2445
 
 
2446
 
if TARGET_DEBIAN_OR_UBUNTU
2447
 
        ( cd $(DESTDIR)$(systemunitdir) && \
2448
 
                rm -f runlevel5.target && \
2449
 
                $(LN_S) multi-user.target runlevel5.target )
2450
 
endif
2451
 
 
2452
 
if TARGET_SUSE
2453
 
        $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2454
 
        ( cd $(DESTDIR)$(systemunitdir) && \
2455
 
                rm -f local.service && \
2456
 
                $(LN_S) rc-local.service local.service )
2457
 
        ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2458
 
                rm -f halt-local.service && \
2459
 
                $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2460
 
endif
2461
 
 
2462
 
if TARGET_MAGEIA
2463
 
        $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2464
 
        ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2465
 
                rm -f halt-local.service && \
2466
 
                $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2467
 
        ( cd $(DESTDIR)$(systemunitdir) && \
2468
 
                rm -f display-manager.service && \
2469
 
                $(LN_S) prefdm.service display-manager.service && \
2470
 
                $(LN_S) prefdm.service dm.service )
2471
 
        ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2472
 
                rm -f display-manager.service && \
2473
 
                $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2474
 
endif
2475
 
 
2476
 
if HAVE_SYSV_COMPAT
2477
 
        ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2478
 
                rm -f var-lock.mount && \
2479
 
                $(LN_S) ../var-lock.mount var-lock.mount )
2480
 
endif
2481
 
 
2482
 
install-exec-hook: $(INSTALL_EXEC_HOOKS)
2483
 
 
2484
 
uninstall-hook: $(UNINSTALL_EXEC_HOOKS)
2485
 
 
2486
 
install-data-hook: systemd-install-data-hook $(INSTALL_DATA_HOOKS)
2487
 
 
2488
 
DISTCHECK_CONFIGURE_FLAGS = \
2489
 
        --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
2490
 
        --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
2491
 
        --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
2492
 
        --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
2493
 
        --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
2494
 
        --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
2495
 
        --with-rootprefix=$$dc_install_base \
2496
 
        --disable-split-usr
2497
 
 
2498
 
upload: all distcheck
2499
 
        cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
2500
 
        scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
2501
 
        scp man/*.html fdo:/srv/www.freedesktop.org/www/software/systemd/man/
2502
 
        scp man/*.html tango:public/systemd-man/
2503
 
 
2504
 
git-tag:
2505
 
        git tag "v$(VERSION)" -m "systemd $(VERSION)"