1 DESCRIPTION = "Logging service"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "System/Libraries"
10 inherit autotools-brokensep
24 #PROVIDES by libdlog-dev
28 #RDEPENDS of dlogutil (${PN}util)
29 RDEPENDS_${PN}util += "libdlog"
30 RDEPENDS_${PN}util += "systemd"
32 #RDEPENDS of libdlog-dev (lib${PN}-dev)
33 RDEPENDS_lib${PN}-dev += "libdlog"
38 DEPENDS += "tizen-platform-config"
42 chmod -Rf a+rX,u+w,g-w,o-w ${S}
44 cp ${S}/packaging/dlog.manifest .
49 bb.build.exec_func('do_prep', d)
60 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
61 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
62 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
63 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
66 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
67 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
68 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
69 ./autogen.sh --build=${TARGET_SYS} --host=${HOST_SYS} \
70 --target=x86_64-tizen-linux \
73 --exec-prefix=${prefix} \
74 --bindir=${prefix}/bin \
75 --sbindir=${prefix}/sbin \
76 --sysconfdir=${sysconfdir} \
77 --datadir=${prefix}/share \
78 --includedir=${prefix}/include \
79 --libdir=${prefix}/lib \
80 --libexecdir=${prefix}/libexec \
81 --localstatedir=${localstatedir} \
82 --sharedstatedir=${prefix}/com \
86 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
87 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
88 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
89 autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
90 --target=x86_64-tizen-linux \
93 --exec-prefix=${prefix} \
94 --bindir=${prefix}/bin \
95 --sbindir=${prefix}/sbin \
96 --sysconfdir=${sysconfdir} \
97 --datadir=${prefix}/share \
98 --includedir=${prefix}/include \
99 --libdir=${prefix}/lib \
100 --libexecdir=${prefix}/libexec \
101 --localstatedir=${localstatedir} \
102 --sharedstatedir=${prefix}/com \
104 --infodir=${infodir} --disable-static \
105 --without-systemd-journal
114 echo export RPM_BUILD_ROOT=${D}
126 BINDIR=${prefix}/bin \
128 rm -f ${D}${infodir}/dir
129 find ${D} -regex ".*\.la$" | xargs rm -f --
130 find ${D} -regex ".*\.a$" | xargs rm -f --
131 mkdir -p ${D}%{TZ_SYS_ETC}/dump.d/default.d
132 cp dlog_dump.sh ${D}%{TZ_SYS_ETC}/dump.d/default.d/dlog_dump.sh
133 mkdir -p ${D}/usr/bin/
134 cp dlogctrl ${D}/usr/bin/dlogctrl
136 mkdir -p ${D}/lib/systemd/system/multi-user.target.wants
138 install -m 0644 ${S}/packaging/dlog-main.service ${D}/lib/systemd/system
139 install -m 0644 ${S}/packaging/dlog-radio.service ${D}/lib/systemd/system
142 mkdir -p ${D}//lib/systemd/system/multi-user.target.wants
143 ln -s ../dlog-main.service ${D}//lib/systemd/system/multi-user.target.wants/dlog-main.service
145 mkdir -p ${D}//lib/systemd/system/multi-user.target.wants
146 ln -s ../dlog-radio.service ${D}//lib/systemd/system/multi-user.target.wants/dlog-radio.service
151 PACKAGES += " libdlog "
152 PACKAGES += " dlogutil "
153 PACKAGES += " libdlog-dev "
156 libdlog_files += "dlog.manifest"
157 libdlog_files += "${prefix}/lib/libdlog.so.*"
160 dlogutil_files += "dlog.manifest"
161 dlogutil_files += "%{TZ_SYS_ETC}/dump.d/default.d/dlog_dump.sh"
162 dlogutil_files += "${prefix}/bin/dlogutil"
163 dlogutil_files += "${prefix}/bin/dlogctrl"
164 dlogutil_files += "/lib/systemd/system/dlog-main.service"
165 dlogutil_files += "/lib/systemd/system/dlog-radio.service"
166 dlogutil_files += "/lib/systemd/system/multi-user.target.wants/dlog-main.service"
167 dlogutil_files += "/lib/systemd/system/multi-user.target.wants/dlog-radio.service"
169 libdlog-dev_files = ""
170 libdlog-dev_files += "dlog.manifest"
171 libdlog-dev_files += "${prefix}/include/dlog/dlog.h"
172 libdlog-dev_files += "${prefix}/lib/pkgconfig/dlog.pc"
173 libdlog-dev_files += "${prefix}/lib/libdlog.so"
175 FILES_lib${PN} = "${libdlog_files}"
176 FILES_${PN}util = "${dlogutil_files}"
177 FILES_lib${PN}-dev = "${libdlog-dev_files}"
179 PKG_libdlog= "libdlog"
180 PKG_dlogutil= "dlogutil"
181 PKG_libdlog-dev= "libdlog-dev"
183 require dlog-extraconf.inc