aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorThomas Liske <thomas@fiasko-nw.net>2020-03-27 23:10:37 +0100
committerTBK <tbk@jjtc.eu>2020-03-29 09:40:29 +0000
commit575d2175d9f27136bb6e2848419fe17a5cfd2d78 (patch)
treecce6f0c3cfd53eb1a797502ce1be2dc54db79d9f /testing
parente8048f6df88c47f5fd3c1a4855733078fd702fd8 (diff)
downloadaports-575d2175d9f27136bb6e2848419fe17a5cfd2d78.tar.bz2
aports-575d2175d9f27136bb6e2848419fe17a5cfd2d78.tar.xz
testing/dpns: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/dpns/APKBUILD22
-rwxr-xr-xtesting/dpns/dpns.initd13
2 files changed, 35 insertions, 0 deletions
diff --git a/testing/dpns/APKBUILD b/testing/dpns/APKBUILD
new file mode 100644
index 0000000000..5ca627d110
--- /dev/null
+++ b/testing/dpns/APKBUILD
@@ -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"
diff --git a/testing/dpns/dpns.initd b/testing/dpns/dpns.initd
new file mode 100755
index 0000000000..cdd6b1156a
--- /dev/null
+++ b/testing/dpns/dpns.initd
@@ -0,0 +1,13 @@
+#!/sbin/openrc-run
+
+description="Docker Pull & Save"
+
+depend() {
+ need docker localmount net
+}
+
+start() {
+ ebegin "Loading docker images"
+ dpns-run
+ eend $?
+}