blob: 054e0acc886f7f2a0736a6d42f6fba09e60de44e [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001SUMMARY = "Transparent Inter-Process Communication protocol"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://tipclog/tipc.h;endline=35;md5=985b6ea8735818511d276c1b466cce98"
4
5SRC_URI = "git://git.code.sf.net/p/tipc/tipcutils \
6 file://0001-include-sys-select.h-for-FD_-definitions.patch \
7 file://0002-replace-non-standard-uint-with-unsigned-int.patch \
Brad Bishop316dfdd2018-06-25 12:45:53 -04008 file://0001-multicast_blast-tipcc-Fix-struct-type-for-TIPC_GROUP.patch \
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009 "
10SRCREV = "7ab2211b87414ba240b0b2e4af219c1057c9cf9a"
11PV = "2.2.0+git${SRCPV}"
12
Brad Bishop6e60e8b2018-02-01 10:27:11 -050013inherit autotools pkgconfig
14
15DEPENDS += "libdaemon"
16
Brad Bishopd7bf8c12018-02-25 22:55:05 -050017RDEPENDS_${PN} = "iproute2-tipc"
18
Brad Bishop6e60e8b2018-02-01 10:27:11 -050019S = "${WORKDIR}/git"
20
21do_configure_prepend() {
22 ( cd ${S}; ${S}/bootstrap )
23}
24
25do_install_append() {
26 demos="benchmark hello_world topology_subscr_demo connection_demo \
27 multicast_demo stream_demo"
28 for i in $demos;do
29 install -d ${D}/opt/tipcutils/demos/$i
30 install ${B}/demos/$i/client_tipc ${D}/opt/tipcutils/demos/$i/
31 install ${B}/demos/$i/server_tipc ${D}/opt/tipcutils/demos/$i/
32 done
33 install -d ${D}/opt/tipcutils/demos/inventory_sim
34 install ${B}/demos/inventory_sim/inventory_sim ${D}/opt/tipcutils/demos/inventory_sim/
35
36 install -d ${D}/opt/tipcutils/ptts
37 install ${B}/ptts/tipcTS ${D}/opt/tipcutils/ptts/
38 install ${B}/ptts/tipcTC ${D}/opt/tipcutils/ptts/
39
40 install -d ${D}${sysconfdir}
41 cp -R --no-dereference --preserve=mode,links -v ${S}/scripts/etc/* ${D}${sysconfdir}/
42 chown -R root:root ${D}${sysconfdir}
43}
44
45PACKAGES += "${PN}-demos"
46FILES_${PN}-dbg += "/opt/tipcutils/demos/*/.debug /opt/tipcutils/ptts/.debug"
47FILES_${PN}-demos = "/opt/tipcutils/*"
48