diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-13 14:23:17 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-15 16:22:04 +0200 |
commit | ab198bbcfae9239c761e412e800d497bdd8bedf4 (patch) | |
tree | 6527c5ffa4c262abf6e6ef473e53d89a6286da90 /meta-systemd/meta-oe | |
parent | 443ea30263cf4a6382ff7c647130bbe7604f6296 (diff) | |
download | meta-openembedded-ab198bbcfae9239c761e412e800d497bdd8bedf4.tar.gz |
udisks: move systemd support from meta-systemd back to meta-oe
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-systemd/meta-oe')
-rw-r--r-- | meta-systemd/meta-oe/recipes-support/udisks/udisks/add-systemd-support.patch | 112 | ||||
-rw-r--r-- | meta-systemd/meta-oe/recipes-support/udisks/udisks_1.0.4.bbappend | 16 |
2 files changed, 0 insertions, 128 deletions
diff --git a/meta-systemd/meta-oe/recipes-support/udisks/udisks/add-systemd-support.patch b/meta-systemd/meta-oe/recipes-support/udisks/udisks/add-systemd-support.patch deleted file mode 100644 index 29df8a4da..000000000 --- a/meta-systemd/meta-oe/recipes-support/udisks/udisks/add-systemd-support.patch +++ /dev/null | |||
@@ -1,112 +0,0 @@ | |||
1 | From 7a485d491697906b445020dfcb37fe91806d7134 Mon Sep 17 00:00:00 2001 | ||
2 | From: Lennart Poettering <lennart@poettering.net> | ||
3 | Date: Thu, 22 Jul 2010 02:20:22 +0200 | ||
4 | Subject: [PATCH] systemd: install systemd unit files | ||
5 | Upstream-Status: ? | ||
6 | Based on: https://www.libreoffice.org/bugzilla/show_bug.cgi?id=29205 | ||
7 | --- | ||
8 | Makefile.am | 5 ++++- | ||
9 | configure.ac | 9 +++++++++ | ||
10 | data/.gitignore | 1 + | ||
11 | data/Makefile.am | 11 ++++++++++- | ||
12 | data/org.freedesktop.UDisks.service.in | 2 +- | ||
13 | data/udisks-daemon.service.in | 12 ++++++++++++ | ||
14 | 6 files changed, 37 insertions(+), 3 deletions(-) | ||
15 | create mode 100644 data/udisks-daemon.service.in | ||
16 | |||
17 | diff --git a/Makefile.am b/Makefile.am | ||
18 | index 588f05d..c3aaeea 100644 | ||
19 | --- a/Makefile.am | ||
20 | +++ b/Makefile.am | ||
21 | @@ -24,7 +24,10 @@ EXTRA_DIST = \ | ||
22 | ChangeLog | ||
23 | |||
24 | # xsltproc barfs on 'make distcheck'; disable for now | ||
25 | -DISTCHECK_CONFIGURE_FLAGS=--disable-man-pages --disable-gtk-doc | ||
26 | +DISTCHECK_CONFIGURE_FLAGS = \ | ||
27 | + --disable-man-pages \ | ||
28 | + --disable-gtk-doc \ | ||
29 | + --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) | ||
30 | |||
31 | clean-local : | ||
32 | rm -f *~ | ||
33 | diff --git a/configure.ac b/configure.ac | ||
34 | index a9141bf..39bbd7a 100644 | ||
35 | --- a/configure.ac | ||
36 | +++ b/configure.ac | ||
37 | @@ -232,6 +232,15 @@ AC_SUBST([GETTEXT_PACKAGE]) | ||
38 | AM_GLIB_GNU_GETTEXT | ||
39 | AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[gettext domain]) | ||
40 | |||
41 | +# systemd | ||
42 | + | ||
43 | +AC_ARG_WITH([systemdsystemunitdir], | ||
44 | + AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), | ||
45 | + [], | ||
46 | + [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]) | ||
47 | +AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) | ||
48 | +AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir"]) | ||
49 | + | ||
50 | AC_OUTPUT([ | ||
51 | Makefile | ||
52 | data/Makefile | ||
53 | diff --git a/data/Makefile.am b/data/Makefile.am | ||
54 | index ca6d8ac..bf5c1a7 100644 | ||
55 | --- a/data/Makefile.am | ||
56 | +++ b/data/Makefile.am | ||
57 | @@ -35,6 +35,14 @@ avahiservicedir = $(sysconfdir)/avahi/services | ||
58 | avahiservice_DATA = udisks.service | ||
59 | endif # REMOTE_ACCESS_ENABLED | ||
60 | |||
61 | +if HAVE_SYSTEMD | ||
62 | +systemdsystemunit_DATA = \ | ||
63 | + udisks-daemon.service | ||
64 | + | ||
65 | +udisks-daemon.service: udisks-daemon.service.in | ||
66 | + @sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@ | ||
67 | +endif | ||
68 | + | ||
69 | EXTRA_DIST = \ | ||
70 | 80-udisks.rules \ | ||
71 | $(dbusif_DATA) \ | ||
72 | @@ -42,7 +50,8 @@ EXTRA_DIST = \ | ||
73 | $(dbusconf_in_files) \ | ||
74 | udisks.pc.in \ | ||
75 | udisks.service \ | ||
76 | + udisks-daemon.service.in \ | ||
77 | $(NULL) | ||
78 | |||
79 | clean-local : | ||
80 | - rm -f *~ $(service_DATA) $(dbusconf_DATA) | ||
81 | + rm -f *~ $(service_DATA) $(dbusconf_DATA) udisks-daemon.service | ||
82 | diff --git a/data/org.freedesktop.UDisks.service.in b/data/org.freedesktop.UDisks.service.in | ||
83 | index b3606a6..6ba2cd0 100644 | ||
84 | --- a/data/org.freedesktop.UDisks.service.in | ||
85 | +++ b/data/org.freedesktop.UDisks.service.in | ||
86 | @@ -2,4 +2,4 @@ | ||
87 | Name=org.freedesktop.UDisks | ||
88 | Exec=@libexecdir@/udisks-daemon | ||
89 | User=root | ||
90 | - | ||
91 | +SystemdService=udisks-daemon.service | ||
92 | diff --git a/data/udisks-daemon.service.in b/data/udisks-daemon.service.in | ||
93 | new file mode 100644 | ||
94 | index 0000000..78379b2 | ||
95 | --- /dev/null | ||
96 | +++ b/data/udisks-daemon.service.in | ||
97 | @@ -0,0 +1,12 @@ | ||
98 | +[Unit] | ||
99 | +Description=Disk Manager | ||
100 | +After=syslog.target | ||
101 | + | ||
102 | +[Service] | ||
103 | +Type=dbus | ||
104 | +BusName=org.freedesktop.UDisks | ||
105 | +ExecStart=@libexecdir@/udisks-daemon | ||
106 | +StandardOutput=syslog | ||
107 | + | ||
108 | +[Install] | ||
109 | +WantedBy=graphical.target | ||
110 | -- | ||
111 | 1.7.0.1 | ||
112 | |||
diff --git a/meta-systemd/meta-oe/recipes-support/udisks/udisks_1.0.4.bbappend b/meta-systemd/meta-oe/recipes-support/udisks/udisks_1.0.4.bbappend deleted file mode 100644 index 5f3021644..000000000 --- a/meta-systemd/meta-oe/recipes-support/udisks/udisks_1.0.4.bbappend +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | inherit systemd | ||
2 | |||
3 | PRINC := "${@int(PRINC) + 3}" | ||
4 | |||
5 | # look for files in the layer first | ||
6 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
7 | |||
8 | DEPENDS += "systemd" | ||
9 | |||
10 | SRC_URI += "file://add-systemd-support.patch" | ||
11 | |||
12 | RPROVIDES_${PN} += "${PN}-systemd" | ||
13 | RREPLACES_${PN} += "${PN}-systemd" | ||
14 | RCONFLICTS_${PN} += "${PN}-systemd" | ||
15 | SYSTEMD_SERVICE_${PN} = "udisks-daemon.service" | ||
16 | SYSTEMD_AUTO_ENABLE = "disable" | ||