diff --git a/modem/tqftpserv/APKBUILD b/modem/tqftpserv/APKBUILD new file mode 100644 index 000000000..8a4aacb80 --- /dev/null +++ b/modem/tqftpserv/APKBUILD @@ -0,0 +1,31 @@ +# Maintainer: Dolphin von Chips +pkgname=tqftpserv +pkgver=0_git20200207 +pkgrel=0 +_commit="783425b550de2a359db6aa3b41577c3fbaae5903" +pkgdesc="Trivial File Transfer Protocol server over AF_QIPCRTR" +url="https://github.com/andersson/tqftpserv" +arch="all" +license="BSD-3-Clause" +makedepends="qrtr-dev" +source="https://github.com/andersson/tqftpserv/archive/$_commit/tqftpserv-$_commit.tar.gz + tqftpserv.initd + " +subpackages="$pkgname-doc $pkgname-openrc" +builddir="$srcdir/tqftpserv-$_commit" +options="!check" # No test suite + +build() { + make prefix="/usr" +} + +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"/tqftpserv.initd "$pkgdir"/etc/init.d/tqftpserv +} + +sha512sums="67673664bfea444da50e7ff5e882e68d60cf8a4cec60ecaea68766ed20f0bd66cbdbbee883e362003d252070f67172512aa06bcc2c94f23df9248bb1bf58b552 tqftpserv-783425b550de2a359db6aa3b41577c3fbaae5903.tar.gz +f262063ef1b465ce086d1a70500b9ba6edd3d6d2b61a3bba0e5d935d8a507618880d38d477f9e571cc2fcc94b893fb10fafc030d7ee1a2d4e1d52732dc2f7af8 tqftpserv.initd" diff --git a/modem/tqftpserv/tqftpserv.initd b/modem/tqftpserv/tqftpserv.initd new file mode 100644 index 000000000..3b45ed9f0 --- /dev/null +++ b/modem/tqftpserv/tqftpserv.initd @@ -0,0 +1,9 @@ +#!/sbin/openrc-run +supervisor=supervise-daemon +name="tqftpserv" +description="QRTR TFTP service" +command="/usr/bin/tqftpserv" + +depend() { + need qrtr-ns +}