1 DESCRIPTION = "A security-enabled configuration system"
2 HOMEPAGE = "https://github.com/sofar/buxton"
3 SECTION = "System/Configuration"
11 inherit manifest autotools-brokensep
16 #PROVIDES by buxton-dev
17 PROVIDES += "buxton-dev"
20 #PROVIDES by buxtonsimple
21 PROVIDES += "buxtonsimple"
24 #PROVIDES by buxton-docs
25 PROVIDES += "buxton-docs "
28 #PROVIDES by buxtonsimple-dev
29 PROVIDES += "buxtonsimple-dev"
36 #RDEPENDS of buxton-dev (${PN}-dev)
37 RDEPENDS_${PN}-dev += "buxton"
39 #RDEPENDS of buxtonsimple (${PN}simple)
40 RDEPENDS_${PN}simple += "buxton"
42 #RDEPENDS of buxtonsimple-dev (${PN}simple-dev)
43 RDEPENDS_${PN}simple-dev += "buxton"
45 #RDEPENDS of buxton (${PN})
46 RDEPENDS_${PN} += "coreutils"
47 RDEPENDS_${PN} += "smack"
48 RDEPENDS_${PN} += "buxton"
61 chmod -Rf a+rX,u+w,g-w,o-w ${S}
63 cp ${S}/packaging/buxton.manifest .
68 bb.build.exec_func('do_prep', d)
79 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
82 autotools_do_configure
91 export RPM_BUILD_ROOT=${D}
103 BINDIR=${prefix}/bin \
105 rm -f ${D}${infodir}/dir
106 find ${D} -regex ".*\.la$" | xargs rm -f --
107 find ${D} -regex ".*\.a$" | xargs rm -f --
108 # TODO: need to define needed layers for Tizen in tizen.conf
109 install -m 0644 ${S}/packaging/tizen.conf ${D}${sysconfdir}/buxton.conf
114 pkg_postinst_${PN}() {
117 [ "x$D" == "x" ] && ldconfig
118 #buxtond runs as user buxton, which much be created
120 buxtonctl create-db base
121 buxtonctl create-db isp
122 if [ "$1" -eq 1 ] ; then
123 # The initial DBs will not have the correct labels and
124 # permissions when created in postinstall during image
125 # creation, so we set these file attributes here.
126 chsmack -a System ${localstatedir}/lib/buxton/*.db
127 chown buxton:buxton ${localstatedir}/lib/buxton/*.db
135 [ "x$D" == "x" ] && ldconfig
138 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
139 PACKAGES += " buxton-dev "
140 PACKAGES += " buxtonsimple "
141 PACKAGES += " buxton-docs "
142 PACKAGES += " buxtonsimple-dev "
143 PACKAGES += " buxton "
145 buxton-dev_files = ""
146 buxton-dev_files += "${prefix}/include/buxton.h"
147 buxton-dev_files += "${prefix}/lib/libbuxton.so"
148 buxton-dev_files += "${prefix}/lib/pkgconfig/buxton.pc"
149 MANIFESTFILES_${PN}-dev = "buxton.manifest"
151 buxtonsimple_files = ""
152 buxtonsimple_files += "${prefix}/lib/libbuxtonsimple.so.*"
153 MANIFESTFILES_${PN}simple = "buxton.manifest"
155 buxton-docs_files = ""
157 buxtonsimple-dev_files = ""
158 buxtonsimple-dev_files += "${prefix}/include/buxtonsimple.h"
159 buxtonsimple-dev_files += "${prefix}/lib/libbuxtonsimple.so"
160 buxtonsimple-dev_files += "${prefix}/lib/pkgconfig/buxtonsimple.pc"
161 MANIFESTFILES_${PN}simple-dev = "buxton.manifest"
164 buxton_files += "${sysconfdir}/buxton.conf"
165 buxton_files += "${prefix}/bin/buxtonctl"
166 buxton_files += "${prefix}/lib/buxton/*.so"
167 buxton_files += "${prefix}/lib/libbuxton.so.*"
168 buxton_files += "${prefix}/lib/systemd/system/buxton.service"
169 buxton_files += "${prefix}/lib/systemd/system/buxton.socket"
170 buxton_files += "${prefix}/lib/systemd/system/sockets.target.wants/buxton.socket"
171 buxton_files += "${prefix}/sbin/buxtond"
172 buxton_files += "%dir ${localstatedir}/lib/buxton"
173 MANIFESTFILES_${PN} = "buxton.manifest"
175 FILES_${PN}-dev = "${buxton-dev_files}"
176 FILES_${PN}simple = "${buxtonsimple_files}"
177 FILES_${PN}-docs = "${buxton-docs_files}"
178 FILES_${PN}simple-dev = "${buxtonsimple-dev_files}"
179 FILES_${PN} = "${buxton_files}"
181 PKG_buxton-dev= "buxton-dev"
182 PKG_buxtonsimple= "buxtonsimple"
183 PKG_buxton-docs= "buxton-docs"
184 PKG_buxtonsimple-dev= "buxtonsimple-dev"
187 require buxton-extraconf.inc