aboutsummaryrefslogtreecommitdiffstats
path: root/main/apk-cron
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-03-03 23:25:34 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-03-03 23:25:34 +0200
commitc06d34acaa80b9c827fd701b567c2bea70c668e0 (patch)
tree730c10768e12e138c22167610597337a2ddd4f1c /main/apk-cron
parent772ed716e44fc27ab0beddddb1307affc1a23ebf (diff)
downloadaports-c06d34acaa80b9c827fd701b567c2bea70c668e0.tar.bz2
aports-c06d34acaa80b9c827fd701b567c2bea70c668e0.tar.xz
main/apk-cron: moved from testing
Diffstat (limited to 'main/apk-cron')
-rw-r--r--main/apk-cron/APKBUILD23
-rw-r--r--main/apk-cron/apk7
2 files changed, 30 insertions, 0 deletions
diff --git a/main/apk-cron/APKBUILD b/main/apk-cron/APKBUILD
new file mode 100644
index 0000000000..7c085f99b9
--- /dev/null
+++ b/main/apk-cron/APKBUILD
@@ -0,0 +1,23 @@
+# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
+# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
+pkgname=apk-cron
+pkgver=1.0
+pkgrel=0
+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/main/apk-cron/apk b/main/apk-cron/apk
new file mode 100644
index 0000000000..28a2cfa5e3
--- /dev/null
+++ b/main/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