mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-26 19:47:17 +00:00
nuttcp: add systemd unit file
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
committed by
Khem Raj
parent
a38651166e
commit
2a3177255b
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Network Performance Testing Server Activation Socket
|
||||||
|
|
||||||
|
[Socket]
|
||||||
|
ListenStream=5000
|
||||||
|
Accept=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sockets.target
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Network Performance Testing Server
|
||||||
|
After=local-fs.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=nobody
|
||||||
|
ExecStart=/usr/bin/nuttcp -S
|
||||||
|
StandardInput=socket
|
||||||
@@ -12,7 +12,9 @@ LIC_FILES_CHKSUM = "file://${BP}.c;beginline=4;endline=30;md5=496a7c0bb83c07ff52
|
|||||||
|
|
||||||
UPSTREAM_CHECK_URI = "https://www.nuttcp.net/nuttcp/beta/"
|
UPSTREAM_CHECK_URI = "https://www.nuttcp.net/nuttcp/beta/"
|
||||||
|
|
||||||
SRC_URI = "http://nuttcp.net/${BPN}/beta/${BP}.c"
|
SRC_URI = "http://nuttcp.net/${BPN}/beta/${BP}.c \
|
||||||
|
file://nuttcp@.service \
|
||||||
|
file://nuttcp.socket"
|
||||||
SRC_URI[md5sum] = "d3c92c4d2f261221193c3726c1b9a42f"
|
SRC_URI[md5sum] = "d3c92c4d2f261221193c3726c1b9a42f"
|
||||||
SRC_URI[sha256sum] = "8c5595bcd27c2fd66831be74c390df078cfb1870aa427f2511ac2586d236c8a1"
|
SRC_URI[sha256sum] = "8c5595bcd27c2fd66831be74c390df078cfb1870aa427f2511ac2586d236c8a1"
|
||||||
|
|
||||||
@@ -24,5 +26,13 @@ do_compile () {
|
|||||||
|
|
||||||
do_install () {
|
do_install () {
|
||||||
install -d ${D}${bindir}
|
install -d ${D}${bindir}
|
||||||
|
install -d ${D}${systemd_system_unitdir}
|
||||||
install -m 0755 nuttcp ${D}${bindir}
|
install -m 0755 nuttcp ${D}${bindir}
|
||||||
|
install -m 0644 ${WORKDIR}/nuttcp@.service ${D}${systemd_system_unitdir}
|
||||||
|
install -m 0644 ${WORKDIR}/nuttcp.socket ${D}${systemd_system_unitdir}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FILES_${PN} += " \
|
||||||
|
${bindir} \
|
||||||
|
${systemd_system_unitdir} \
|
||||||
|
"
|
||||||
|
|||||||
Reference in New Issue
Block a user