Verified Commit a5eb0304 authored by Minecrell's avatar Minecrell 🐪 Committed by PureTryOut

modem/qrtr: cleanup (!1032)

- Fix version
- Rename init script to qrtr-ns ("nameservice") to clarify which
  service is actually started
- Use supervise-daemon
- Configure and start daemon in one command (no need for qrtr-cfg)
- Remove "before qcom_rmtfs": it should depend on qrtr-ns,
  not the other way around
- Do not activate qrtr daemon by default - this should happen automatically
  if other service files have "need qrtr-ns"
parent 03ec1146
pkgname=qrtr
pkgver=1.1.0.3_git20200302
pkgver=0.3_git20200302
_commit="7bd5cf302437755b0d741c9dc1805395a9654597"
pkgrel=0
pkgdesc="Userspace reference for net/qrtr in the Linux kernel"
......@@ -8,11 +8,10 @@ arch="all"
license="BSD-3-Clause"
depends_dev="linux-headers"
makedepends="$depends_dev"
install="$pkgname.post-install"
subpackages="$pkgname-doc $pkgname-dev"
subpackages="$pkgname-doc $pkgname-dev $pkgname-openrc"
source="
qrtr-$_commit.tar.gz::https://github.com/andersson/qrtr/archive/$_commit.tar.gz
qrtr.initd
qrtr-ns.initd
"
builddir="$srcdir/qrtr-$_commit"
options="!check"
......@@ -23,9 +22,11 @@ build() {
package() {
make prefix=/usr DESTDIR="$pkgdir" install
rm -r "$pkgdir"/usr/lib/systemd
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING
install -Dm755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
install -Dm755 "$srcdir"/qrtr-ns.initd "$pkgdir"/etc/init.d/qrtr-ns
}
sha512sums="054d75190d110b3daa397bcc1c954a2361bd1024b81055e94ea257a4d79f0bc4e789dd7c33f5b649e4fec82480ef0ff6c78a64aaee1c9ff97f30dd4ba9bc1dc8 qrtr-7bd5cf302437755b0d741c9dc1805395a9654597.tar.gz
fcd9b8e4c4df9236ec778f1ffb231e547e0d65c718e0caf351bee821b1549aecafbfdb21b4c1d1e3d049d541d87b6bf98746414e88e5d70d05131e0496e1ef37 qrtr.initd"
68c27e5c1c70ffdec0498cd4746208dd571e392ba030cf1a52f4a05394a57e399cf7437a1f27631dd288c7771fb656946aa27d7aec5b23d41fe13c5199ae390a qrtr-ns.initd"
#!/sbin/openrc-run
supervisor=supervise-daemon
name="QRTR"
description="Qualcomm IPC router name service"
# -f should be in command_args_foreground, but then the order is wrong (1 -f)
command="/usr/bin/qrtr-ns"
command_args="-f 1"
#!/sbin/runscript
depend() {
before qcom_rmtfs
}
start() {
ebegin "Starting QRTR service"
/usr/bin/qrtr-cfg 1 && /usr/bin/qrtr-ns
eend $?
}
#!/bin/sh
rc-update -q add qrtr boot
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment