aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/apk-cron/APKBUILD22
-rw-r--r--testing/apk-cron/apk7
2 files changed, 29 insertions, 0 deletions
diff --git a/testing/apk-cron/APKBUILD b/testing/apk-cron/APKBUILD
new file mode 100644
index 0000000000..486d4a3624
--- /dev/null
+++ b/testing/apk-cron/APKBUILD
@@ -0,0 +1,22 @@
+# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
+# Maintainer:
+pkgname=apk-cron
+pkgver=0.1
+pkgdesc="Periodic software updates"
+url=http://git.alpinelinux.org/cgit/aports/tree/testing/apk-cron
+arch=noarch
+license=GPL-2
+depends=apk-tools
+source=apk
+
+build() {
+ :
+}
+
+package() {
+ install -D -m 755 "$srcdir/apk" "$pkgdir/etc/periodic/daily/apk"
+}
+
+md5sums="5d53149d6eba6e849cb05046ded78f5e apk"
+sha256sums="3cad83f2614d4b0fc360310052f28881209d748393f863f9730e36b23432b950 apk"
+sha512sums="4f08405f356af61e19063e1b7e8cf7817636e0634a88e9551a4448a6786489dee6f8529b2b661ce96a351ca4773cf6e5a9564dffef9d4046430c7c60a34ff215 apk"
diff --git a/testing/apk-cron/apk b/testing/apk-cron/apk
new file mode 100644
index 0000000000..28a2cfa5e3
--- /dev/null
+++ b/testing/apk-cron/apk
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# cron job for automatic software updates
+# Copyright (c) 2014 Kaarle Ritvanen
+
+sleep $(expr $RANDOM % 7200)
+exec apk -U upgrade