testing/dpns: new aport

This commit is contained in:
Thomas Liske 2020-03-27 23:10:37 +01:00 committed by TBK
parent e8048f6df8
commit 575d2175d9
2 changed files with 35 additions and 0 deletions

22
testing/dpns/APKBUILD Normal file
View File

@ -0,0 +1,22 @@
# Maintainer: Thomas Liske <thomas@fiasko-nw.net>
pkgname=dpns
pkgver=0.3
pkgrel=0
pkgdesc="docker pull & save"
url="https://github.com/liske/dpns"
arch="noarch"
license="GPL-2.0-or-later"
depends="bash docker docker-compose"
subpackages="$pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/liske/dpns/archive/$pkgver.tar.gz
dpns.initd
"
options="!check" # only three small shell scripts w/o testing capability
package() {
make DESTDIR="$pkgdir" install
install -Dm755 "$srcdir"/dpns.initd "$pkgdir"/etc/init.d/dpns
}
sha512sums="88546893929b115ec5ca1e14f6302383a3c7e878a5c0987e024b6e6f791b0b69fac3e8f586d5e7a5ca777dd9bcbff334dc1860404b46c81d3c56684207fb7c78 dpns-0.3.tar.gz
baa68b6ffd6d452a72230904636cb0a230d30313379196b925e8acaab089ffb50598ba1cd8d416699b4f93caedfd5f2bba17c6aa2a2b6cf2b1c983b784d7b1c3 dpns.initd"

13
testing/dpns/dpns.initd Executable file
View File

@ -0,0 +1,13 @@
#!/sbin/openrc-run
description="Docker Pull & Save"
depend() {
need docker localmount net
}
start() {
ebegin "Loading docker images"
dpns-run
eend $?
}