blob: da27a7268f2d53cbc7aad203da11cdf85c378b06 (
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
|
DESCRIPTION = "User management daemon and client library"
HOMEPAGE = "http://nohomepage.org"
SECTION = "Security/Accounts"
LICENSE = "LGPL-2.1+"
PV = "1.0.8"
SRC_URI = ""
S = "${WORKDIR}/git"
inherit manifest autotools-brokensep useradd
BBCLASSEXTEND = ""
PROVIDES = ""
#PROVIDES by gum-utils
PROVIDES += "gum-utils"
#PROVIDES by libgum-dev
PROVIDES += "libgum-dev"
#PROVIDES by libgum
PROVIDES += "libgum"
#PROVIDES by gumd-doc
PROVIDES += "gumd-doc"
#PROVIDES by gumd
RDEPENDS = ""
#RDEPENDS of gum-utils (gum-utils)
RDEPENDS_gum-utils += "libgum"
#RDEPENDS of gumd (${PN})
RDEPENDS_${PN} += "dbus"
RDEPENDS_${PN} += "libgum"
RDEPENDS_${PN} += "glibc"
RDEPENDS_${PN} += "tizen-platform-config"
#RDEPENDS of libgum (libgum)
RDEPENDS_libgum += "gumd"
#RDEPENDS of gumd-doc (${PN}-doc)
RDEPENDS_${PN}-doc += "libgum"
#RDEPENDS of libgum-dev (libgum-dev)
RDEPENDS_libgum-dev += "libgum"
DEPENDS = ""
#DEPENDS of gumd
DEPENDS += "systemd"
DEPENDS += "dbus"
inherit pkgconfig
DEPENDS += "glib-2.0"
DEPENDS += "gtk-doc-stub"
do_prep() {
cd ${S}
chmod -Rf a+rX,u+w,g-w,o-w ${S}
#setup -q -n gumd-1.0.3
cp -a ${S}/packaging/gumd.manifest gumd.manifest
cp -a ${S}/packaging/libgum.manifest libgum.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 ;
autoreconf -ivf
autotools_do_configure
oe_runmake ${PARALLEL_MAKE}
}
EXTRA_OECONF += " --enable-dbus-type=system --disable-tests"
do_install() {
export RPM_BUILD_ROOT=${D}
cd ${S}
LANG=C
export LANG
unset DISPLAY
rm -rf ${D}
mkdir -p ${D}
rm -rf ${D}
make \
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 --
cp -a ${S}/data/tizen/etc/gumd/gumd-tizen-common.conf ${D}${sysconfdir}/gumd/gumd.conf
}
pkg_postinst_libgum() {
#!/bin/sh -e
[ "x$D" == "x" ] && ldconfig
}
pkg_postinst_${PN}() {
#!/bin/sh -e
ldconfig
mkdir -p $D${sysconfdir}/gumd/useradd.d
mkdir -p $D${sysconfdir}/gumd/userdel.d
mkdir -p $D${sysconfdir}/gumd/groupadd.d
mkdir -p $D${sysconfdir}/gumd/groupdel.d
}
pkg_postrm_libgum() {
#!/bin/sh -e
[ "x$D" == "x" ] && ldconfig
}
pkg_postrm_${PN}() {
#!/bin/sh -e
[ "x$D" == "x" ] && ldconfig
}
PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
PACKAGES += " gum-utils "
PACKAGES += " libgum-dev "
PACKAGES += " libgum "
PACKAGES += " gumd "
gum-utils_files = ""
gum-utils_files += "${prefix}/bin/gum-utils"
MANIFESTFILES_gum-utils = "gumd.manifest"
libgum-dev_files = ""
libgum-dev_files += "${prefix}/include/gum/*"
libgum-dev_files += "${prefix}/lib/libgum*.so"
libgum-dev_files += "${prefix}/lib/pkgconfig/libgum.pc"
libgum-dev_files += "${prefix}/share/dbus-1/interfaces/*UserManagement*.xml"
MANIFESTFILES_libgum-dev = "gumd.manifest"
libgum_files = ""
libgum_files += "${prefix}/lib/libgum*.so.*"
MANIFESTFILES_libgum = "libgum.manifest"
gumd-doc_files = ""
gumd-doc_files += "${prefix}/share/gtk-doc/html/gumd/*"
MANIFESTFILES_${PN}-doc = "gumd.manifest"
gumd_files = ""
gumd_files += "AUTHORS COPYING.LIB NEWS README"
gumd_files += "${prefix}/bin/gumd"
gumd_files += "${sysconfdir}/gumd"
gumd_files += "${sysconfdir}/gumd/gumd.conf"
gumd_files += "${prefix}/share/dbus-1/system-services"
gumd_files += "${prefix}/share/dbus-1/system-services/*UserManagement*.service"
gumd_files += "${sysconfdir}/dbus-1"
gumd_files += "${sysconfdir}/dbus-1/system.d"
gumd_files += "${sysconfdir}/dbus-1/system.d/gumd-dbus.conf"
MANIFESTFILES_${PN} = "gumd.manifest"
DIRFILES_${PN} = ""
DIRFILES_${PN} += "${sysconfdir}/gumd"
DIRFILES_${PN} += "${prefix}/share/dbus-1/system-services"
DIRFILES_${PN} += "${sysconfdir}/dbus-1"
DIRFILES_${PN} += "${sysconfdir}/dbus-1/system.d"
FILES_gum-utils = "${gum-utils_files}"
FILES_libgum-dev = "${libgum-dev_files}"
FILES_libgum = "${libgum_files}"
FILES_${PN}-doc = "${gumd-doc_files}"
FILES_${PN} = "${gumd_files}"
PKG_gum-utils= "gum-utils"
PKG_libgum-dev= "libgum-dev"
PKG_libgum= "libgum"
PKG_gumd-doc= "gumd-doc"
PKG_gumd= "gumd"
USERADD_PACKAGES = "${PN}"
GROUPADD_PARAM_${PN} = "-r gumd"
require gumd-extraconf.inc
|