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"
62 chmod -Rf a+rX,u+w,g-w,o-w ${S}
64 cp ${S}/packaging/buxton.manifest .
69 bb.build.exec_func('do_prep', d)
80 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
83 autotools_do_configure
92 export RPM_BUILD_ROOT=${D}
104 BINDIR=${prefix}/bin \
106 rm -f ${D}${infodir}/dir
107 find ${D} -regex ".*\.la$" | xargs rm -f --
108 find ${D} -regex ".*\.a$" | xargs rm -f --
109 # TODO: need to define needed layers for Tizen in tizen.conf
110 install -m 0644 ${S}/packaging/tizen.conf ${D}${sysconfdir}/buxton.conf
115 pkg_postinst_${PN}() {
118 [ "x$D" == "x" ] && ldconfig
119 [ "x$D" != "x" ] && exit 1
120 #buxtond runs as user buxton, which much be created
121 buxtonctl create-db base
122 buxtonctl create-db isp
123 if [ "$1" -eq 1 ] ; then
124 # The initial DBs will not have the correct labels and
125 # permissions when created in postinstall during image
126 # creation, so we set these file attributes here.
127 chsmack -a System ${localstatedir}/lib/buxton/*.db
128 chown buxton:buxton ${localstatedir}/lib/buxton/*.db
136 [ "x$D" == "x" ] && ldconfig
139 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
140 PACKAGES += " buxton-dev "
141 PACKAGES += " buxtonsimple "
142 PACKAGES += " buxton-docs "
143 PACKAGES += " buxtonsimple-dev "
144 PACKAGES += " buxton "
146 buxton-dev_files = ""
147 buxton-dev_files += "${prefix}/include/buxton.h"
148 buxton-dev_files += "${prefix}/lib/libbuxton.so"
149 buxton-dev_files += "${prefix}/lib/pkgconfig/buxton.pc"
150 MANIFESTFILES_${PN}-dev = "buxton.manifest"
152 buxtonsimple_files = ""
153 buxtonsimple_files += "${prefix}/lib/libbuxtonsimple.so.*"
154 MANIFESTFILES_${PN}simple = "buxton.manifest"
156 buxton-docs_files = ""
158 buxtonsimple-dev_files = ""
159 buxtonsimple-dev_files += "${prefix}/include/buxtonsimple.h"
160 buxtonsimple-dev_files += "${prefix}/lib/libbuxtonsimple.so"
161 buxtonsimple-dev_files += "${prefix}/lib/pkgconfig/buxtonsimple.pc"
162 MANIFESTFILES_${PN}simple-dev = "buxton.manifest"
165 buxton_files += "${sysconfdir}/buxton.conf"
166 buxton_files += "${prefix}/bin/buxtonctl"
167 buxton_files += "${prefix}/lib/buxton/*.so"
168 buxton_files += "${prefix}/lib/libbuxton.so.*"
169 buxton_files += "/lib/systemd/system/buxton.service"
170 buxton_files += "/lib/systemd/system/buxton.socket"
171 buxton_files += "/lib/systemd/system/sockets.target.wants/buxton.socket"
172 buxton_files += "${prefix}/sbin/buxtond"
173 buxton_files += "%dir ${localstatedir}/lib/buxton"
174 MANIFESTFILES_${PN} = "buxton.manifest"
176 FILES_${PN}-dev = "${buxton-dev_files}"
177 FILES_${PN}simple = "${buxtonsimple_files}"
178 FILES_${PN}-docs = "${buxton-docs_files}"
179 FILES_${PN}simple-dev = "${buxtonsimple-dev_files}"
180 FILES_${PN} = "${buxton_files}"
182 PKG_buxton-dev= "buxton-dev"
183 PKG_buxtonsimple= "buxtonsimple"
184 PKG_buxton-docs= "buxton-docs"
185 PKG_buxtonsimple-dev= "buxtonsimple-dev"
188 require buxton-extraconf.inc