commit 48b1ca24d42bd350b6546560a1b7a3d94e70cbc6
parent 53390ee7e032c49519cff9e2217b53162cfda4a1
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 20 Jan 2021 20:43:12 +0100
parent 53390ee7e032c49519cff9e2217b53162cfda4a1
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 20 Jan 2021 20:43:12 +0100
fritzbox-exporter: cleanup
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/fritzbox-exporter/APKBUILD b/fritzbox-exporter/APKBUILD @@ -1,23 +1,24 @@ -# Contributor: -# Maintainer: +# Contributor: Leah (ctucx) <leah@ctu.cx> +# Maintainer: Leah (ctucx) <leah@ctu.cx> pkgname=fritzbox-exporter -pkgver=0.0.1 -pkgrel=4 +pkgver=0.0.4 +pkgrel=1 pkgdesc="prometheus exporter for lte fritzboxes" url="https://cgit.ctu.cx/fritzbox-exporter" arch="all" license="MIT" depends="" makedepends="nim" -install="$pkgname.pre-install" -subpackages="" -source="fritzbox-exporter.tar.gz::https://cgit.ctu.cx/fritzbox-exporter/snapshot/fritzbox-exporter-master.tar.gz - fritzbox-exporter.confd - fritzbox-exporter.initd" -builddir="$srcdir/fritzbox-exporter-master/" +install="${pkgname}.pre-install" +subpackages="${pkgname}-openrc" +_commit="b0faf94254fb6c98f775737c8629544e389b61d0" +source="${pkgname}-${_commit}.tar.gz::https://cgit.ctu.cx/fritzbox-exporter/snapshot/fritzbox-exporter-${_commit}.tar.gz + ${pkgname}.confd + ${pkgname}.initd" +builddir="${srcdir}/${pkgname}-${_commit}/" build() { - cd $builddir + cd ${builddir} nim c -d:release --nimcache:$PWD src/fb_exporter.nim } @@ -26,11 +27,11 @@ check() { } package() { - install -Dm755 src/fb_exporter $pkgdir/usr/bin/fb_exporter - install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname - install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname + install -Dm755 src/fb_exporter ${pkgdir}/usr/bin/fb_exporter + install -Dm755 "${srcdir}"/${pkgname}.initd ${pkgdir}/etc/init.d/${pkgname} + install -Dm644 "${srcdir}"/${pkgname}.confd ${pkgdir}/etc/conf.d/${pkgname} } -sha512sums="ad9e2ce87792e5de4a7201d7fd68ec92d7e6574aea9e2ce78d75069865ef6570c4c5f62d340fc3b5389ee44e6321d1eb015a5c1148e230518a4c89c952880049 fritzbox-exporter.tar.gz +sha512sums="9861d42d3ce3ec60b7ddb3d572fc289250b0ac347a4cff9b2a7d02428b4876dd3d707830873e0bb168e797b08c261f277e9863c2dcfb3dd12d7de25a90dee832 fritzbox-exporter-b0faf94254fb6c98f775737c8629544e389b61d0.tar.gz 051e44ab6e0680518db6b0de443b8dde852da7ce6818d95608fde77044308b35e8cfab5a58b9f2a264893b25b8add70365fb5aee3a565fe8d2223539e8743ae1 fritzbox-exporter.confd 59720844ebb7658bbb06d4dad69b265c4c917e27c7631e2081d618b6086d178a999055fcef76ca333fdc8b475618d65ef9b998bce702254d101892ebefada02b fritzbox-exporter.initd"