Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | SUMMARY = "network performance measurement tool" |
| 2 | DESCRIPTION = "nuttcp is a network performance measurement tool intended for use by network \ |
| 3 | and system managers. Its most basic usage is to determine the raw TCP (or UDP) \ |
| 4 | network layer throughput by transferring memory buffers from a source system \ |
| 5 | across an interconnecting network to a destination system, either transferring \ |
| 6 | data for a specified time interval, or alternatively transferring a specified \ |
| 7 | number of bytes." |
| 8 | HOMEPAGE = "http://www.nuttcp.net/Welcome%20Page.html" |
| 9 | LICENSE = "GPL-2.0" |
| 10 | SECTION = "net" |
| 11 | LIC_FILES_CHKSUM = "file://${BP}.c;beginline=4;endline=30;md5=496a7c0bb83c07ff528d226bf85e05c5" |
| 12 | |
| 13 | UPSTREAM_CHECK_URI = "https://www.nuttcp.net/nuttcp/beta/" |
| 14 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 15 | SRC_URI = "http://nuttcp.net/${BPN}/beta/${BP}.c \ |
| 16 | file://nuttcp@.service \ |
| 17 | file://nuttcp.socket" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 18 | SRC_URI[md5sum] = "d3c92c4d2f261221193c3726c1b9a42f" |
| 19 | SRC_URI[sha256sum] = "8c5595bcd27c2fd66831be74c390df078cfb1870aa427f2511ac2586d236c8a1" |
| 20 | |
| 21 | S = "${WORKDIR}" |
| 22 | |
| 23 | do_compile () { |
| 24 | ${CC} ${CFLAGS} ${LDFLAGS} -o nuttcp nuttcp-${PV}.c |
| 25 | } |
| 26 | |
| 27 | do_install () { |
| 28 | install -d ${D}${bindir} |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 29 | install -d ${D}${systemd_system_unitdir} |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 30 | install -m 0755 nuttcp ${D}${bindir} |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 31 | install -m 0644 ${WORKDIR}/nuttcp@.service ${D}${systemd_system_unitdir} |
| 32 | install -m 0644 ${WORKDIR}/nuttcp.socket ${D}${systemd_system_unitdir} |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 33 | } |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 34 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 35 | FILES:${PN} += " \ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 36 | ${bindir} \ |
| 37 | ${systemd_system_unitdir} \ |
| 38 | " |