From 5375d409755db9d64f350656f9987164db04f047 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Mon, 1 Jan 2024 16:44:50 +0100 Subject: feat: Add meta package for nextcloud It will help me to keep some configuration versioned. --- apks/nextcloud-ext/APKBUILD | 37 +++++++++++++++++++++++++++++++++++ apks/nextcloud-ext/nextcloud-ext.cron | 6 ++++++ 2 files changed, 43 insertions(+) create mode 100644 apks/nextcloud-ext/APKBUILD create mode 100755 apks/nextcloud-ext/nextcloud-ext.cron diff --git a/apks/nextcloud-ext/APKBUILD b/apks/nextcloud-ext/APKBUILD new file mode 100644 index 0000000..2c99821 --- /dev/null +++ b/apks/nextcloud-ext/APKBUILD @@ -0,0 +1,37 @@ +# Maintainer: Gabriel A. Giovanini +pkgname=nextcloud-ext +pkgver=0.0.1 +pkgrel=1 +pkgdesc="Meta package for maintaining nextcloud" +url="https://git.sr.ht/~gabrielgio/apkbuilds" +arch="noarch" +license="MIT" +options="!check" # this can't be tested +depends=" + nextcloud + nextcloud-files_external + nextcloud-files_pdfviewer + nextcloud-files_rightclick + nextcloud-files_sharing + nextcloud-files_trashbin + nextcloud-files_versions + nextcloud-files_videoplayer + nextcloud-initscript + nextcloud-pgsql + nextcloud-photos + nextcloud-sharebymail + nextcloud-text + nextcloud-user_status + nextcloud-weather_status + ffmpeg +" +source="$pkgname.cron" +builddir="$srcdir"/$pkgname + +package() { + mkdir -p "$pkgdir" + install -m 755 -D "$srcdir"/$pkgname.cron "$pkgdir"/etc/periodic/15min/$pkgname +} +sha512sums=" +66b1609a3b4d8e398a37f7bda117b0b0a661d32c9484202758c0c21b18560f46bded9b17a3b4ec4931a26dd2b02a20fe5be1f06c3420da69ea952a6aa712ff5c nextcloud-ext.cron +" diff --git a/apks/nextcloud-ext/nextcloud-ext.cron b/apks/nextcloud-ext/nextcloud-ext.cron new file mode 100755 index 0000000..a989082 --- /dev/null +++ b/apks/nextcloud-ext/nextcloud-ext.cron @@ -0,0 +1,6 @@ +#!/bin/sh + +# Run only when nextcloud service is started. +if rc-service nextcloud -q status >/dev/null 2>&1; then + su nextcloud -s /bin/sh -c 'occ preview:pre-generate' +fi -- cgit v1.2.3