Add initial APKBUILD for shairport-sync and nqptp
This commit is contained in:
35
nqptp/APKBUILD
Normal file
35
nqptp/APKBUILD
Normal file
@ -0,0 +1,35 @@
|
||||
# Maintainer: hoellen <dev@hoellen.eu>
|
||||
pkgname=nqptp
|
||||
pkgver=0.1
|
||||
pkgrel=0
|
||||
pkgdesc="Not Quite PTP. A daemon that monitors timing data from any PTP clocks."
|
||||
url="https://github.com/mikebrady/nqptp"
|
||||
arch="all"
|
||||
license="GPL-2.0-or-later"
|
||||
makedepends="autoconf automake libtool git"
|
||||
subpackages="$pkgname-openrc"
|
||||
source="$pkgname.initd"
|
||||
options=!check
|
||||
|
||||
builddir="$srcdir/$pkgname"
|
||||
|
||||
prepare() {
|
||||
git clone $url $builddir
|
||||
cd $builddir
|
||||
default_prepare
|
||||
autoreconf -i -f
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure --prefix=/usr --localstatedir=/var
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $builddir
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -m 755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
||||
}
|
||||
|
||||
|
||||
sha512sums="8af548879c307a67c818377a4e18f7c6f3ad824f56c5d8d8be15598c816e2e2160cfcecde5953253deb5b3001bb2637261ef05499cb9d64a08e64c381ef82916 nqptp.initd"
|
14
nqptp/nqptp.initd
Normal file
14
nqptp/nqptp.initd
Normal file
@ -0,0 +1,14 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name="nqptp"
|
||||
description="A daemon that monitors timing data from any PTP clocks"
|
||||
command="/usr/bin/nqptp"
|
||||
command_background="yes"
|
||||
|
||||
pidfile="/run/$RC_SVCNAME.pid"
|
||||
|
||||
depend() {
|
||||
need net localmount
|
||||
}
|
||||
|
||||
# ToDO: run as user nqptp: setcap 'cap_net_bind_service=+ep' /usr/local/bin/nqptp
|
Reference in New Issue
Block a user