Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | SUMMARY = "Transparent Inter-Process Communication protocol" |
| 2 | LICENSE = "GPLv2" |
| 3 | LIC_FILES_CHKSUM = "file://tipclog/tipc.h;endline=35;md5=985b6ea8735818511d276c1b466cce98" |
| 4 | |
| 5 | SRC_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 Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 8 | file://0001-multicast_blast-tipcc-Fix-struct-type-for-TIPC_GROUP.patch \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 9 | " |
| 10 | SRCREV = "7ab2211b87414ba240b0b2e4af219c1057c9cf9a" |
| 11 | PV = "2.2.0+git${SRCPV}" |
| 12 | |
| 13 | DEPENDS="virtual/kernel" |
| 14 | |
| 15 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 16 | |
| 17 | inherit autotools pkgconfig |
| 18 | |
| 19 | DEPENDS += "libdaemon" |
| 20 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 21 | RDEPENDS_${PN} = "iproute2-tipc" |
| 22 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 23 | S = "${WORKDIR}/git" |
| 24 | |
| 25 | do_configure_prepend() { |
| 26 | ( cd ${S}; ${S}/bootstrap ) |
| 27 | } |
| 28 | |
| 29 | do_install_append() { |
| 30 | demos="benchmark hello_world topology_subscr_demo connection_demo \ |
| 31 | multicast_demo stream_demo" |
| 32 | for i in $demos;do |
| 33 | install -d ${D}/opt/tipcutils/demos/$i |
| 34 | install ${B}/demos/$i/client_tipc ${D}/opt/tipcutils/demos/$i/ |
| 35 | install ${B}/demos/$i/server_tipc ${D}/opt/tipcutils/demos/$i/ |
| 36 | done |
| 37 | install -d ${D}/opt/tipcutils/demos/inventory_sim |
| 38 | install ${B}/demos/inventory_sim/inventory_sim ${D}/opt/tipcutils/demos/inventory_sim/ |
| 39 | |
| 40 | install -d ${D}/opt/tipcutils/ptts |
| 41 | install ${B}/ptts/tipcTS ${D}/opt/tipcutils/ptts/ |
| 42 | install ${B}/ptts/tipcTC ${D}/opt/tipcutils/ptts/ |
| 43 | |
| 44 | install -d ${D}${sysconfdir} |
| 45 | cp -R --no-dereference --preserve=mode,links -v ${S}/scripts/etc/* ${D}${sysconfdir}/ |
| 46 | chown -R root:root ${D}${sysconfdir} |
| 47 | } |
| 48 | |
| 49 | PACKAGES += "${PN}-demos" |
| 50 | FILES_${PN}-dbg += "/opt/tipcutils/demos/*/.debug /opt/tipcutils/ptts/.debug" |
| 51 | FILES_${PN}-demos = "/opt/tipcutils/*" |
| 52 | |