summaryrefslogtreecommitdiff
path: root/meta-tizen-common-base/recipes-core/systemd/systemd.inc
blob: 585feaabb81fd2578ba4b736d0bcc35c1e2d8159 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
DESCRIPTION = "A System and Service Manager"
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/systemd"
SECTION = "Base/Startup"
LICENSE = "LGPL-2.0+ and MIT and GPL-2.0+"
PV = "216"

SRC_URI = ""

S = "${WORKDIR}/git"

inherit manifest autotools-brokensep

BBCLASSEXTEND = ""
PROVIDES = ""

#PROVIDES by libsystemd
PROVIDES += "libsystemd"


#PROVIDES by systemd
# the PROVIDES rules is ignore "SysVinit = 2.86-24"
PROVIDES += "SysVinit"
RPROVIDES_systemd += "SysVinit"
# the PROVIDES rules is ignore "sysvinit = 2.86-24"
PROVIDES += "sysvinit"
RPROVIDES_systemd += "sysvinit"
# the PROVIDES rules is ignore "/bin/systemctl  "
PROVIDES += "/bin/systemctl"
RPROVIDES_systemd += "/bin/systemctl"
# the PROVIDES rules is ignore "/sbin/shutdown  "
PROVIDES += "/sbin/shutdown"
RPROVIDES_systemd += "/sbin/shutdown"
# the PROVIDES rules is ignore "udev = 216"
PROVIDES += "udev"
RPROVIDES_systemd += "udev"


#PROVIDES by libgudev-dev
PROVIDES += "libgudev-dev"


#PROVIDES by systemd-dev
PROVIDES += "systemd-dev"
# the PROVIDES rules is ignore "libudev-dev = 216"
PROVIDES += "libudev-dev"
RPROVIDES_systemd-dev += "libudev-dev"


#PROVIDES by libgudev
PROVIDES += "libgudev"


#PROVIDES by systemd-docs
PROVIDES += "systemd-docs "


#PROVIDES by systemd-analyze
PROVIDES += "systemd-analyze"


RDEPENDS = ""
#RDEPENDS of systemd (${PN})
RDEPENDS_${PN} += "hwdata"
RDEPENDS_${PN} += "dbus"
RDEPENDS_${PN} += "gawk"
RDEPENDS_${PN} += "coreutils"
RDEPENDS_${PN} += "shadow"
RDEPENDS_${PN} += "glibc"

#RDEPENDS of libgudev-dev (libgudev-dev)
RDEPENDS_libgudev-dev += "libgudev"

#RDEPENDS of systemd-dev (${PN}-dev)
RDEPENDS_${PN}-dev += "libsystemd"
RDEPENDS_${PN}-dev += "systemd"

#RDEPENDS of libgudev (libgudev)
RDEPENDS_libgudev += "systemd"

#RDEPENDS of systemd-analyze (${PN}-analyze)
RDEPENDS_${PN}-analyze += "systemd"


DEPENDS = ""
#DEPENDS of systemd
DEPENDS += "kmod"
DEPENDS_append_class-native = " intltool-native"
DEPENDS_append_class-target = " intltool-native"
DEPENDS += "gperf"
DEPENDS += "hwdata"
DEPENDS += "dbus"
DEPENDS += "usbutils"
inherit pkgconfig
DEPENDS += "acl"
DEPENDS += "docbook-xsl-stylesheets"
DEPENDS += "glib-2.0"
DEPENDS += "libxslt"
DEPENDS += "pciutils"
DEPENDS += "libcap"
DEPENDS += "util-linux"
DEPENDS += "libgcrypt"
DEPENDS += "xz"
DEPENDS += "libpam"

do_prep() {
 cd ${S}
 chmod -Rf a+rX,u+w,g-w,o-w ${S}
 #setup -q
 cp ${S}/packaging/systemd.manifest .
 
 
}
do_patch_append() {
    bb.build.exec_func('do_prep', d)
}

do_configure() {
}

do_compile() {
 cd ${S}
  LANG=C
  export LANG
  unset DISPLAY
  LD_AS_NEEDED=1; export LD_AS_NEEDED ;
  
  if which gtkdocize >/dev/null 2>/dev/null; then
          gtkdocize --docdir docs/ --flavour no-tmpl
          gtkdocargs=--enable-gtk-doc
  else
          echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation."
          rm -f docs/gtk-doc.make
          echo 'EXTRA_DIST =' > docs/gtk-doc.make
  fi
  
  intltoolize --force --automake
  
  autotools_do_configure
  
  oe_runmake -j16
  
  
  
}
EXTRA_OECONF += " --disable-kdbus --enable-compat-libs --enable-bootchart --disable-sysusers --disable-firstboot --disable-timesyncd --disable-resolved --disable-networkd --libexecdir=${prefix}/lib --docdir=${prefix}/share/doc/packages/systemd --disable-static --with-sysvinit-path= --with-sysvrcnd-path= --with-smack-run-label=System --with-rootprefix=/ --with-rootlibdir=//lib cc_cv_CFLAGS__flto=no"

do_install() {
 export RPM_BUILD_ROOT=${D}
 cd ${S}
 LANG=C
 export LANG
 unset DISPLAY
 rm -rf ${D}
 mkdir -p ${D}
 
 
   oe_runmake \
         DESTDIR=${D} \
         INSTALL_ROOT=${D} \
         BINDIR=${prefix}/bin \
   install  
   rm -f ${D}${infodir}/dir 
   find ${D} -regex ".*\.la$" | xargs rm -f -- 
   find ${D} -regex ".*\.a$" | xargs rm -f --
 
 #find_lang systemd
 cat <<EOF >> systemd.lang
 %lang(fr) ${prefix}/lib/systemd/catalog/systemd.fr.catalog
 %lang(it) ${prefix}/lib/systemd/catalog/systemd.it.catalog
 %lang(ru) ${prefix}/lib/systemd/catalog/systemd.ru.catalog
EOF
 
 # udev links
 mkdir -p ${D}/${prefix}/sbin
 ln -sf ../bin/udevadm ${D}${prefix}/sbin/udevadm
 mkdir -p ${D}${prefix}/lib/firmware/updates
 
 # Create SysV compatibility symlinks. systemctl/systemd are smart
 # enough to detect in which way they are called.
 ln -sf //lib/systemd/systemd ${D}${prefix}/sbin/init
 ln -sf //lib/systemd/systemd ${D}${prefix}/bin/systemd
 ln -sf ../bin/systemctl ${D}${prefix}/sbin/reboot
 ln -sf ../bin/systemctl ${D}${prefix}/sbin/halt
 ln -sf ../bin/systemctl ${D}${prefix}/sbin/poweroff
 ln -sf ../bin/systemctl ${D}${prefix}/sbin/shutdown
 ln -sf ../bin/systemctl ${D}${prefix}/sbin/telinit
 ln -sf ../bin/systemctl ${D}${prefix}/sbin/runlevel
 
 # legacy links
 ln -sf loginctl ${D}${prefix}/bin/systemd-loginctl
 
 # We create all wants links manually at installation time to make sure
 # they are not owned and hence overriden by rpm after the used deleted
 # them.
 rm -rf ${D}${sysconfdir}/systemd/system/*.target.wants
 
 # Make sure the ghost-ing below works
 touch ${D}${sysconfdir}/systemd/system/runlevel2.target
 touch ${D}${sysconfdir}/systemd/system/runlevel3.target
 touch ${D}${sysconfdir}/systemd/system/runlevel4.target
 touch ${D}${sysconfdir}/systemd/system/runlevel5.target
 
 # Make sure these directories are properly owned
 mkdir -p ${D}${systemd_unitdir}/system/basic.target.wants
 mkdir -p ${D}${systemd_unitdir}/system/default.target.wants
 mkdir -p ${D}${systemd_unitdir}/system/dbus.target.wants
 mkdir -p ${D}${systemd_unitdir}/system/syslog.target.wants
 
 # Make sure the user generators dir exists too
 mkdir -p ${D}//lib/systemd/system-generators
 mkdir -p ${D}${prefix}/lib/systemd/user-generators
 
 # Create new-style configuration files so that we can ghost-own them
 touch ${D}${sysconfdir}/hostname
 touch ${D}${sysconfdir}/vconsole.conf
 touch ${D}${sysconfdir}/locale.conf
 touch ${D}${sysconfdir}/machine-id
 touch ${D}${sysconfdir}/machine-info
 touch ${D}${sysconfdir}/timezone
 
 mkdir -p ${D}//lib/systemd/system-preset/
 mkdir -p ${D}//lib/systemd/user-preset/
 
 # Make sure the shutdown/sleep drop-in dirs exist
 mkdir -p ${D}//lib/systemd/system-shutdown/
 mkdir -p ${D}//lib/systemd/system-sleep/
 
 # Make sure the NTP units dir exists
 mkdir -p ${D}${prefix}/lib/systemd/ntp-units.d/
 
 # Install modprobe fragment
 mkdir -p ${D}${sysconfdir}/modprobe.d/
 
 # Enable readahead services
 ln -sf ../systemd-readahead-collect.service ${D}${systemd_unitdir}/system/default.target.wants/
 ln -sf ../systemd-readahead-replay.service ${D}${systemd_unitdir}/system/default.target.wants/
 
 # Fix the dangling /var/lock -> /run/lock symlink
 install -Dm644 tmpfiles.d/legacy.conf ${D}${prefix}/lib/tmpfiles.d/legacy.conf
 
 install -m644 ${S}/packaging/pamconsole-tmp.conf ${D}${prefix}/lib/tmpfiles.d/
 
 rm -rf ${D}/${prefix}/lib/systemd/user/default.target
 
 rm -rf ${D}/${prefix}/share/doc/packages/systemd
 
 # Move macros to the proper location for Tizen
 mkdir -p ${D}${sysconfdir}/rpm
 install -m644 src/core/macros.systemd ${D}${sysconfdir}/rpm/macros.systemd
 
 rm -fr ${D}${prefix}/lib/rpm
 rm -fr ${D}${sysconfdir}/kernel
 rm -fr ${D}${sysconfdir}/modprobe.d
 rm -fr ${D}${localstatedir}
 
 # Exclude ELF binaries
 rm -f ${D}///lib/systemd/system-generators/systemd-debug-generator
 rm -f ${D}/${prefix}/lib/systemd/system-generators/systemd-hibernate-resume-generator
 
 # end of install
 
}

pkg_preinst_${PN}() {
    #!/bin/sh -e

    getent group cdrom >/dev/null 2>&1 || /usr/sbin/groupadd -r -g 11 cdrom >/dev/null 2>&1 || :
    getent group tape >/dev/null 2>&1 || /usr/sbin/groupadd -r -g 33 tape >/dev/null 2>&1 || :
    getent group dialout >/dev/null 2>&1 || /usr/sbin/groupadd -r -g 18 dialout >/dev/null 2>&1 || :
    getent group floppy >/dev/null 2>&1 || /usr/sbin/groupadd -r -g 19 floppy >/dev/null 2>&1 || :
    systemctl stop systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-udevd.service >/dev/null 2>&1 || :
    # Rename configuration files that changed their names
    mv -n $D${sysconfdir}/systemd/systemd-logind.conf $D${sysconfdir}/systemd/logind.conf >/dev/null 2>&1 || :
    mv -n $D${sysconfdir}/systemd/systemd-journald.conf $D${sysconfdir}/systemd/journald.conf >/dev/null 2>&1 || :

}

pkg_postinst_${PN}() {
    #!/bin/sh -e

    systemd-machine-id-setup > /dev/null 2>&1 || :
    systemd-random-seed save > /dev/null 2>&1 || :
    systemctl daemon-reexec > /dev/null 2>&1 || :
    systemctl start systemd-udevd.service >/dev/null 2>&1 || :

}

pkg_postinst_libgudev() {
    #!/bin/sh -e

    [ "x$D" == "x" ] && ldconfig
}

pkg_postinst_libsystemd() {
    #!/bin/sh -e

    [ "x$D" == "x" ] && ldconfig
}

pkg_prerm_${PN}() {
    #!/bin/sh -e

    if [ $1 -eq 0 ] ; then
            systemctl disable \
                    getty@.service \
                    remote-fs.target \
                    systemd-readahead-replay.service \
                    systemd-readahead-collect.service >/dev/null 2>&1 || :
            rm -f $D${sysconfdir}/systemd/system/default.target >/dev/null 2>&1 || :
    fi

}

pkg_postrm_libgudev() {
    #!/bin/sh -e

    [ "x$D" == "x" ] && ldconfig
}

pkg_postrm_libsystemd() {
    #!/bin/sh -e

    [ "x$D" == "x" ] && ldconfig
}

pkg_postrm_${PN}() {
    #!/bin/sh -e

    if [ $1 -ge 1 ] ; then
            systemctl daemon-reload > /dev/null 2>&1 || :
            systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :
    fi

}

PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
PACKAGES += " libsystemd "
PACKAGES += " systemd "
PACKAGES += " libgudev-dev "
PACKAGES += " systemd-dev "
PACKAGES += " systemd-docs "
PACKAGES += " libgudev "
PACKAGES += " systemd-analyze "

libsystemd_files = ""
libsystemd_files += "/lib/security/pam_systemd.so"
libsystemd_files += "/lib/libsystemd.so.*"
libsystemd_files += "/lib/libudev.so.*"
libsystemd_files += "/lib/libsystemd-daemon.so.*"
libsystemd_files += "/lib/libsystemd-id128.so.*"
libsystemd_files += "/lib/libsystemd-journal.so.*"
libsystemd_files += "/lib/libsystemd-login.so.*"
libsystemd_files += "${prefix}/lib/libnss_myhostname.so.2"
libsystemd_files += "${prefix}/lib/libnss_mymachines.so.2"
MANIFESTFILES_lib${PN} = "systemd.manifest"

systemd_files = ""
systemd_files += "${sysconfdir}/pam.d/systemd-user"
systemd_files += "${prefix}/bin/bootctl"
systemd_files += "${prefix}/bin/busctl"
systemd_files += "${prefix}/bin/kernel-install"
systemd_files += "/bin/machinectl"
systemd_files += "${prefix}/bin/systemd-run"
systemd_files += "${prefix}/lib/kernel"
systemd_files += "${prefix}/lib/kernel/install.d"
systemd_files += "${prefix}/lib/kernel/install.d/50-depmod.install"
systemd_files += "${prefix}/lib/kernel/install.d/90-loaderentry.install"
systemd_files += "${prefix}/bin/hostnamectl"
systemd_files += "${prefix}/bin/localectl"
systemd_files += "${prefix}/bin/coredumpctl"
systemd_files += "${prefix}/bin/timedatectl"
systemd_files += "${sysconfdir}/systemd"
systemd_files += "${sysconfdir}/systemd/system"
systemd_files += "${sysconfdir}/systemd/user"
systemd_files += "${sysconfdir}/tmpfiles.d"
systemd_files += "${sysconfdir}/sysctl.d"
systemd_files += "${sysconfdir}/modules-load.d"
systemd_files += "${sysconfdir}/binfmt.d"
systemd_files += "${prefix}/share/bash-completion/*"
systemd_files += "${prefix}/share/zsh/site-functions"
systemd_files += "${prefix}/share/zsh/site-functions/*"
systemd_files += "${sysconfdir}/udev"
systemd_files += "${sysconfdir}/udev/rules.d"
systemd_files += "/lib/systemd"
systemd_files += "${systemd_unitdir}/system"
systemd_files += "/lib/systemd/system-generators"
systemd_files += "${prefix}/lib/systemd/user-generators"
systemd_files += "/lib/systemd/system-preset"
systemd_files += "/lib/systemd/user-preset"
systemd_files += "/lib/systemd/system-shutdown"
systemd_files += "/lib/systemd/system-sleep"
systemd_files += "${prefix}/lib/tmpfiles.d"
systemd_files += "${prefix}/lib/sysctl.d"
systemd_files += "${prefix}/lib/modules-load.d"
systemd_files += "${prefix}/lib/binfmt.d"
systemd_files += "${prefix}/lib/firmware"
systemd_files += "${prefix}/lib/firmware/updates"
systemd_files += "${prefix}/share/systemd"
systemd_files += "${prefix}/lib/systemd/ntp-units.d"
systemd_files += "${sysconfdir}/dbus-1/system.d/org.freedesktop.systemd1.conf"
systemd_files += "${sysconfdir}/dbus-1/system.d/org.freedesktop.hostname1.conf"
systemd_files += "${sysconfdir}/dbus-1/system.d/org.freedesktop.login1.conf"
systemd_files += "${sysconfdir}/dbus-1/system.d/org.freedesktop.locale1.conf"
systemd_files += "${sysconfdir}/dbus-1/system.d/org.freedesktop.timedate1.conf"
systemd_files += "${sysconfdir}/dbus-1/system.d/org.freedesktop.machine1.conf"
systemd_files += "${sysconfdir}/systemd/bootchart.conf"
systemd_files += "${sysconfdir}/systemd/coredump.conf"
systemd_files += "${sysconfdir}/systemd/system.conf"
systemd_files += "${sysconfdir}/systemd/user.conf"
systemd_files += "${sysconfdir}/systemd/logind.conf"
systemd_files += "${sysconfdir}/systemd/journald.conf"
systemd_files += "${sysconfdir}/udev/udev.conf"
systemd_files += "${sysconfdir}/xdg/systemd"
systemd_files += "${prefix}/bin/systemd"
systemd_files += "/bin/systemctl"
systemd_files += "/bin/systemd-notify"
systemd_files += "/bin/systemd-ask-password"
systemd_files += "/bin/systemd-tty-ask-password-agent"
systemd_files += "/bin/systemd-machine-id-setup"
systemd_files += "/bin/loginctl"
systemd_files += "${prefix}/bin/systemd-loginctl"
systemd_files += "/bin/journalctl"
systemd_files += "/bin/systemd-tmpfiles"
systemd_files += "${prefix}/bin/systemd-nspawn"
systemd_files += "${prefix}/bin/systemd-stdio-bridge"
systemd_files += "${prefix}/bin/systemd-cat"
systemd_files += "${prefix}/bin/systemd-cgls"
systemd_files += "${prefix}/bin/systemd-cgtop"
systemd_files += "${prefix}/bin/systemd-delta"
systemd_files += "${prefix}/bin/systemd-detect-virt"
systemd_files += "/bin/systemd-inhibit"
systemd_files += "/bin/udevadm"
systemd_files += "/bin/systemd-escape"
systemd_files += "${prefix}/bin/systemd-path"
systemd_files += "${prefix}/lib/sysctl.d/*.conf"
systemd_files += "/lib/systemd/systemd"
systemd_files += "${systemd_unitdir}/system"
systemd_files += "${systemd_unitdir}/system/basic.target.wants"
systemd_files += "${prefix}/lib/systemd/user"
systemd_files += "/lib/systemd/network"
systemd_files += "${prefix}/lib/systemd/user/basic.target"
systemd_files += "${prefix}/lib/systemd/user/bluetooth.target"
systemd_files += "${prefix}/lib/systemd/user/exit.target"
systemd_files += "${prefix}/lib/systemd/user/printer.target"
systemd_files += "${prefix}/lib/systemd/user/shutdown.target"
systemd_files += "${prefix}/lib/systemd/user/sockets.target"
systemd_files += "${prefix}/lib/systemd/user/sound.target"
systemd_files += "${prefix}/lib/systemd/user/systemd-exit.service"
systemd_files += "${prefix}/lib/systemd/user/paths.target"
systemd_files += "${prefix}/lib/systemd/user/smartcard.target"
systemd_files += "${prefix}/lib/systemd/user/timers.target"
systemd_files += "${prefix}/lib/systemd/user/busnames.target"
systemd_files += "/lib/systemd/network/80-container-host0.network"
systemd_files += "/lib/systemd/network/99-default.link"
systemd_files += "/lib/systemd/systemd-*"
systemd_files += "${prefix}/lib/systemd/catalog"
systemd_files += "${prefix}/lib/systemd/catalog/systemd.catalog"
systemd_files += "/lib/udev"
systemd_files += "/lib/systemd/system-generators/systemd-efi-boot-generator"
systemd_files += "/lib/systemd/system-generators/systemd-getty-generator"
systemd_files += "/lib/systemd/system-generators/systemd-fstab-generator"
systemd_files += "/lib/systemd/system-generators/systemd-system-update-generator"
systemd_files += "/lib/systemd/system-generators/systemd-gpt-auto-generator"
systemd_files += "${prefix}/lib/tmpfiles.d/systemd.conf"
systemd_files += "${prefix}/lib/tmpfiles.d/x11.conf"
systemd_files += "${prefix}/lib/tmpfiles.d/tmp.conf"
systemd_files += "${prefix}/lib/tmpfiles.d/legacy.conf"
systemd_files += "${prefix}/lib/tmpfiles.d/pamconsole-tmp.conf"
systemd_files += "${prefix}/lib/tmpfiles.d/systemd-nologin.conf"
systemd_files += "${prefix}/lib/tmpfiles.d/etc.conf"
systemd_files += "${prefix}/lib/tmpfiles.d/systemd-remote.conf"
systemd_files += "${prefix}/lib/tmpfiles.d/var.conf"
systemd_files += "${prefix}/sbin/init"
systemd_files += "${prefix}/sbin/reboot"
systemd_files += "${prefix}/sbin/halt"
systemd_files += "${prefix}/sbin/poweroff"
systemd_files += "${prefix}/sbin/shutdown"
systemd_files += "${prefix}/sbin/telinit"
systemd_files += "${prefix}/sbin/runlevel"
systemd_files += "${prefix}/sbin/udevadm"
systemd_files += "${prefix}/share/systemd/kbd-model-map"
systemd_files += "${prefix}/share/dbus-1/services/org.freedesktop.systemd1.service"
systemd_files += "${prefix}/share/dbus-1/system-services/org.freedesktop.systemd1.service"
systemd_files += "${prefix}/share/dbus-1/system-services/org.freedesktop.hostname1.service"
systemd_files += "${prefix}/share/dbus-1/system-services/org.freedesktop.login1.service"
systemd_files += "${prefix}/share/dbus-1/system-services/org.freedesktop.locale1.service"
systemd_files += "${prefix}/share/dbus-1/system-services/org.freedesktop.timedate1.service"
systemd_files += "${prefix}/share/dbus-1/system-services/org.freedesktop.machine1.service"
systemd_files += "${prefix}/share/polkit-1"
systemd_files += "${prefix}/share/polkit-1/actions"
systemd_files += "${prefix}/share/polkit-1/actions/org.freedesktop.systemd1.policy"
systemd_files += "${prefix}/share/polkit-1/actions/org.freedesktop.hostname1.policy"
systemd_files += "${prefix}/share/polkit-1/actions/org.freedesktop.login1.policy"
systemd_files += "${prefix}/share/polkit-1/actions/org.freedesktop.locale1.policy"
systemd_files += "${prefix}/share/polkit-1/actions/org.freedesktop.timedate1.policy"
CONFFILES_${PN} = ""
CONFFILES_${PN} += "${sysconfdir}/pam.d/systemd-user"
MANIFESTFILES_${PN} = "systemd.manifest"
DIRFILES_${PN} = ""
DIRFILES_${PN} += "${prefix}/lib/kernel"
DIRFILES_${PN} += "${prefix}/lib/kernel/install.d"
DIRFILES_${PN} += "${sysconfdir}/systemd"
DIRFILES_${PN} += "${sysconfdir}/systemd/system"
DIRFILES_${PN} += "${sysconfdir}/systemd/user"
DIRFILES_${PN} += "${sysconfdir}/tmpfiles.d"
DIRFILES_${PN} += "${sysconfdir}/sysctl.d"
DIRFILES_${PN} += "${sysconfdir}/modules-load.d"
DIRFILES_${PN} += "${sysconfdir}/binfmt.d"
DIRFILES_${PN} += "${prefix}/share/zsh/site-functions"
DIRFILES_${PN} += "${sysconfdir}/udev"
DIRFILES_${PN} += "${sysconfdir}/udev/rules.d"
DIRFILES_${PN} += "/lib/systemd"
DIRFILES_${PN} += "${systemd_unitdir}/system"
DIRFILES_${PN} += "/lib/systemd/system-generators"
DIRFILES_${PN} += "${prefix}/lib/systemd/user-generators"
DIRFILES_${PN} += "/lib/systemd/system-preset"
DIRFILES_${PN} += "/lib/systemd/user-preset"
DIRFILES_${PN} += "/lib/systemd/system-shutdown"
DIRFILES_${PN} += "/lib/systemd/system-sleep"
DIRFILES_${PN} += "${prefix}/lib/tmpfiles.d"
DIRFILES_${PN} += "${prefix}/lib/sysctl.d"
DIRFILES_${PN} += "${prefix}/lib/modules-load.d"
DIRFILES_${PN} += "${prefix}/lib/binfmt.d"
DIRFILES_${PN} += "${prefix}/lib/firmware"
DIRFILES_${PN} += "${prefix}/lib/firmware/updates"
DIRFILES_${PN} += "${prefix}/share/systemd"
DIRFILES_${PN} += "${prefix}/lib/systemd/ntp-units.d"
DIRFILES_${PN} += "${systemd_unitdir}/system/basic.target.wants"
DIRFILES_${PN} += "${prefix}/lib/systemd/user"
DIRFILES_${PN} += "/lib/systemd/network"
DIRFILES_${PN} += "${prefix}/lib/systemd/catalog"
DIRFILES_${PN} += "${prefix}/share/polkit-1"
DIRFILES_${PN} += "${prefix}/share/polkit-1/actions"

libgudev-dev_files = ""
libgudev-dev_files += "${prefix}/lib/libgudev-1.0.so"
libgudev-dev_files += "${prefix}/include/gudev-1.0"
libgudev-dev_files += "${prefix}/include/gudev-1.0/gudev"
libgudev-dev_files += "${prefix}/include/gudev-1.0/gudev/*.h"
libgudev-dev_files += "${prefix}/lib/pkgconfig/gudev-1.0*"
MANIFESTFILES_libgudev-dev = "systemd.manifest"
DIRFILES_libgudev-dev = ""
DIRFILES_libgudev-dev += "${prefix}/include/gudev-1.0"
DIRFILES_libgudev-dev += "${prefix}/include/gudev-1.0/gudev"

systemd-dev_files = ""
systemd-dev_files += "${prefix}/lib/libudev.so"
systemd-dev_files += "${prefix}/lib/libsystemd.so"
systemd-dev_files += "${prefix}/lib/libsystemd-daemon.so"
systemd-dev_files += "${prefix}/lib/libsystemd-id128.so"
systemd-dev_files += "${prefix}/lib/libsystemd-journal.so"
systemd-dev_files += "${prefix}/lib/libsystemd-login.so"
systemd-dev_files += "${prefix}/include/systemd"
systemd-dev_files += "${prefix}/include/systemd/_sd-common.h"
systemd-dev_files += "${prefix}/include/systemd/sd-daemon.h"
systemd-dev_files += "${prefix}/include/systemd/sd-id128.h"
systemd-dev_files += "${prefix}/include/systemd/sd-journal.h"
systemd-dev_files += "${prefix}/include/systemd/sd-login.h"
systemd-dev_files += "${prefix}/include/systemd/sd-messages.h"
systemd-dev_files += "${prefix}/include/libudev.h"
systemd-dev_files += "${prefix}/lib/pkgconfig/libudev.pc"
systemd-dev_files += "${prefix}/lib/pkgconfig/libsystemd.pc"
systemd-dev_files += "${prefix}/lib/pkgconfig/libsystemd-daemon.pc"
systemd-dev_files += "${prefix}/lib/pkgconfig/libsystemd-id128.pc"
systemd-dev_files += "${prefix}/lib/pkgconfig/libsystemd-journal.pc"
systemd-dev_files += "${prefix}/lib/pkgconfig/libsystemd-login.pc"
systemd-dev_files += "${prefix}/share/pkgconfig/systemd.pc"
systemd-dev_files += "${prefix}/share/pkgconfig/udev.pc"
systemd-dev_files += "${sysconfdir}/rpm/macros.systemd"
CONFFILES_${PN}-dev = ""
CONFFILES_${PN}-dev += "${sysconfdir}/rpm/macros.systemd"
MANIFESTFILES_${PN}-dev = "systemd.manifest"
DIRFILES_${PN}-dev = ""
DIRFILES_${PN}-dev += "${prefix}/include/systemd"

systemd-docs_files = ""

libgudev_files = ""
libgudev_files += "${prefix}/lib/libgudev-1.0.so.*"
MANIFESTFILES_libgudev = "systemd.manifest"

systemd-analyze_files = ""
systemd-analyze_files += "${prefix}/bin/systemd-analyze"
MANIFESTFILES_${PN}-analyze = "systemd.manifest"

FILES_lib${PN} = "${libsystemd_files}"
FILES_${PN} = "${systemd_files}"
FILES_libgudev-dev = "${libgudev-dev_files}"
FILES_${PN}-dev = "${systemd-dev_files}"
FILES_${PN}-docs = "${systemd-docs_files}"
FILES_libgudev = "${libgudev_files}"
FILES_${PN}-analyze = "${systemd-analyze_files}"

PKG_libsystemd= "libsystemd"
PKG_systemd= "systemd"
PKG_libgudev-dev= "libgudev-dev"
PKG_systemd-dev= "systemd-dev"
PKG_systemd-docs= "systemd-docs"
PKG_libgudev= "libgudev"
PKG_systemd-analyze= "systemd-analyze"

require systemd-extraconf.inc