Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | SUMMARY = "Transparent Inter-Process Communication protocol" |
| 2 | LICENSE = "BSD-3-Clause" |
| 3 | LIC_FILES_CHKSUM = "file://tipc-config/tipc-config.c;endline=32;md5=527a3d5745e1581b15a4fddfb5dfda68" |
| 4 | |
| 5 | SRC_URI = "git://tipc.git.sourceforge.net/gitroot/tipc/tipcutils" |
| 6 | SRCREV = "292a03e17f889013fca2c7bd0aaeebd600c88f40" |
| 7 | |
| 8 | DEPENDS="virtual/kernel" |
| 9 | |
| 10 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 11 | |
| 12 | inherit autotools |
| 13 | |
| 14 | S = "${WORKDIR}/git" |
| 15 | |
| 16 | do_configure_prepend() { |
| 17 | ( cd ${S}; ${S}/bootstrap ) |
| 18 | } |
| 19 | |
| 20 | do_install_append() { |
| 21 | demos="benchmark hello_world topology_subscr_demo connection_demo \ |
| 22 | multicast_demo stream_demo" |
| 23 | for i in $demos;do |
| 24 | install -d ${D}/opt/tipcutils/demos/$i |
| 25 | install ${B}/demos/$i/client_tipc ${D}/opt/tipcutils/demos/$i/ |
| 26 | install ${B}/demos/$i/server_tipc ${D}/opt/tipcutils/demos/$i/ |
| 27 | done |
| 28 | install -d ${D}/opt/tipcutils/demos/inventory_sim |
| 29 | install ${B}/demos/inventory_sim/inventory_sim ${D}/opt/tipcutils/demos/inventory_sim/ |
| 30 | |
| 31 | install -d ${D}/opt/tipcutils/ptts |
| 32 | install ${B}/ptts/tipcTS ${D}/opt/tipcutils/ptts/ |
| 33 | install ${B}/ptts/tipcTC ${D}/opt/tipcutils/ptts/ |
| 34 | |
| 35 | install -d ${D}${sysconfdir} |
| 36 | cp -R --no-dereference --preserve=mode,links -v ${S}/scripts/etc/* ${D}${sysconfdir}/ |
| 37 | chown -R root:root ${D}${sysconfdir} |
| 38 | } |
| 39 | |
| 40 | PACKAGES += "${PN}-demos" |
| 41 | FILES_${PN}-dbg += "/opt/tipcutils/demos/*/.debug /opt/tipcutils/ptts/.debug" |
| 42 | FILES_${PN}-demos = "/opt/tipcutils/*" |
| 43 | |