aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2018-11-15 01:37:46 +0100
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2019-02-01 17:56:27 +0200
commit1dd75242af95b7d5267b8ecffc54d5b715c2b2a2 (patch)
tree7bda36f0fb0ed009fd12e56ac0f06ed0796ba1bd
parent73358c47f3874f73be6ffe2fa952d33104606cca (diff)
downloadaports-1dd75242af95b7d5267b8ecffc54d5b715c2b2a2.tar.gz
aports-1dd75242af95b7d5267b8ecffc54d5b715c2b2a2.tar.bz2
aports-1dd75242af95b7d5267b8ecffc54d5b715c2b2a2.tar.xz
main/apk-cron: modernize
-rw-r--r--main/apk-cron/APKBUILD11
-rw-r--r--main/apk-cron/apk2
2 files changed, 7 insertions, 6 deletions
diff --git a/main/apk-cron/APKBUILD b/main/apk-cron/APKBUILD
index 8ab294dc86..abe3daea6d 100644
--- a/main/apk-cron/APKBUILD
+++ b/main/apk-cron/APKBUILD
@@ -2,22 +2,21 @@
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=apk-cron
pkgver=1.0
-pkgrel=1
+pkgrel=2
pkgdesc="Periodic software updates"
-url=http://git.alpinelinux.org/cgit/aports/tree/main/apk-cron
+url=https://git.alpinelinux.org/cgit/aports/tree/main/apk-cron
arch=noarch
license=GPL2
depends=apk-tools
source=apk
+options="!check"
build() {
- :
+ return
}
package() {
install -D -m 755 "$srcdir/apk" "$pkgdir/etc/periodic/daily/apk"
}
-md5sums="5d53149d6eba6e849cb05046ded78f5e apk"
-sha256sums="3cad83f2614d4b0fc360310052f28881209d748393f863f9730e36b23432b950 apk"
-sha512sums="4f08405f356af61e19063e1b7e8cf7817636e0634a88e9551a4448a6786489dee6f8529b2b661ce96a351ca4773cf6e5a9564dffef9d4046430c7c60a34ff215 apk"
+sha512sums="6efad227a5f7f3d4fc0f22496eb37e203e4090f348c9154e3e80ea385a0cfff8240fef1c72d401ae361d73c4bb11110363bfb9ce2c614a6f122989a690e5458b apk"
diff --git a/main/apk-cron/apk b/main/apk-cron/apk
index 28a2cfa5e3..83cf881b29 100644
--- a/main/apk-cron/apk
+++ b/main/apk-cron/apk
@@ -3,5 +3,7 @@
# cron job for automatic software updates
# Copyright (c) 2014 Kaarle Ritvanen
+set -eu
+
sleep $(expr $RANDOM % 7200)
exec apk -U upgrade