1 DESCRIPTION = "A security-enabled configuration system"
2 HOMEPAGE = "https://github.com/sofar/buxton"
3 SECTION = "System/Configuration"
12 #PROVIDES by buxton-devel
13 PROVIDES += "buxton-devel"
14 RPROVIDES_buxton-devel += "buxton-devel"
15 RPROVIDES_buxton-devel += "buxton-dev"
17 #PROVIDES by buxton-docs
18 PROVIDES += "buxton-docs "
19 RPROVIDES_buxton-docs += "buxton-docs "
23 RPROVIDES_buxton += "buxton"
26 #RDEPENDS of buxton-devel (${PN}-devel)
27 RDEPENDS_${PN}-devel += "buxton"
29 #RDEPENDS of buxton (${PN})
30 RDEPENDS_${PN} += "/usr/bin/chown"
31 RDEPENDS_${PN} += "smack"
32 RDEPENDS_${PN} += "buxton"
37 DEPENDS += "pkgconfig(systemd)"
38 DEPENDS += "pkgconfig(libsystemd-daemon)"
39 DEPENDS += "pkgconfig(check)"
41 DEPENDS += "gdbm-devel"
44 chmod -Rf a+rX,u+w,g-w,o-w ${S}
46 cp ${S}/packaging/buxton.manifest .
58 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
59 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
60 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
61 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
64 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
65 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
66 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
67 autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
68 --target=x86_64-tizen-linux \
75 --datadir=/usr/share \
76 --includedir=/usr/include \
78 --libexecdir=/usr/libexec \
79 --localstatedir=/var \
80 --sharedstatedir=/usr/com \
81 --mandir=/usr/share/man \
82 --infodir=/usr/share/info
90 echo export RPM_BUILD_ROOT=${D}
103 rm -f ${D}/usr/share/info/dir
104 find ${D} -regex ".*\.la$" | xargs rm -f --
105 find ${D} -regex ".*\.a$" | xargs rm -f --
106 # TODO: need to define needed layers for Tizen in tizen.conf
107 install -m 0644 ${S}/packaging/tizen.conf ${D}/etc/buxton.conf
113 PACKAGES += "buxton-devel"
114 PACKAGES += "buxton-docs"
117 buxton-devel_files = ""
118 buxton-devel_files += "buxton.manifest"
119 buxton-devel_files += "/usr/include/buxton.h"
120 buxton-devel_files += "/usr/lib/libbuxton.so"
121 buxton-devel_files += "/usr/lib/pkgconfig/*.pc"
123 buxton-docs_files = ""
124 buxton-docs_files += "/usr/share/info"
125 buxton-docs_files += "/usr/share/man"
128 buxton_files += "buxton.manifest"
129 buxton_files += "/etc/buxton.conf"
130 buxton_files += "/usr/bin/buxtonctl"
131 buxton_files += "/usr/lib/buxton/*.so"
132 buxton_files += "/usr/lib/libbuxton.so.*"
133 buxton_files += "/usr/lib/systemd/system/buxton.service"
134 buxton_files += "/usr/lib/systemd/system/buxton.socket"
135 buxton_files += "/usr/lib/systemd/system/sockets.target.wants/buxton.socket"
136 buxton_files += "/usr/sbin/buxtond"
138 FILES_${PN}-devel = "${buxton-devel_files}"
139 FILES_${PN}-docs = "${buxton-docs_files}"
140 FILES_${PN} = "${buxton_files}"
142 PKG_buxton-devel= "buxton-devel"
143 PKG_buxton-docs= "buxton-docs"
146 require buxton-extraconf.inc