chore: add nextcloud-29, remove nextcloud-27
Some checks failed
/ nextcloud-28 (push) Successful in 27m42s
/ nextcloud-28-app-calendar (push) Successful in 3m50s
/ nextcloud-28-app-contacts (push) Successful in 1m37s
/ nextcloud-28-app-deck (push) Successful in 3m50s
/ nextcloud-28-app-forms (push) Successful in 2m46s
/ nextcloud-28-app-gpoddersync (push) Successful in 1m15s
/ nextcloud-28-app-gpxpod (push) Successful in 7m54s
/ nextcloud-28-app-groupfolders (push) Successful in 1m52s
/ nextcloud-28-app-polls (push) Successful in 4m5s
/ nextcloud-28-app-previewgenerator (push) Successful in 1m11s
/ nextcloud-28-app-mail (push) Successful in 9m0s
/ nextcloud-28-app-news (push) Successful in 3m3s
/ nextcloud-28-app-nextpod (push) Successful in 1m42s
/ nextcloud-28-app-notes (push) Successful in 2m18s
/ nextcloud-28-app-notify-push (push) Successful in 4m32s
/ nextcloud-28-app-richdocuments (push) Successful in 3m44s
/ nextcloud-28-app-richdocumentscode (push) Successful in 15m44s
/ nextcloud-28-app-talk (push) Successful in 8m19s
/ nextcloud-28-app-tasks (push) Successful in 3m6s
/ nextcloud-28-app-twofactor-webauthn (push) Successful in 4m2s
/ nextcloud-28-app-user-oidc (push) Successful in 2m3s
/ nextcloud-29 (push) Successful in 22m9s
/ nextcloud-29-app-calendar (push) Successful in 4m48s
/ nextcloud-29-app-contacts (push) Successful in 3m27s
/ nextcloud-29-app-deck (push) Successful in 4m27s
/ nextcloud-29-app-forms (push) Successful in 3m20s
/ nextcloud-29-app-gpoddersync (push) Failing after 43s
/ nextcloud-29-app-gpxpod (push) Successful in 8m28s
/ nextcloud-29-app-groupfolders (push) Failing after 54s
/ nextcloud-29-app-polls (push) Successful in 4m25s
/ nextcloud-29-app-previewgenerator (push) Successful in 1m18s
/ nextcloud-29-app-mail (push) Successful in 8m42s
/ nextcloud-29-app-news (push) Successful in 3m27s
/ nextcloud-29-app-nextpod (push) Successful in 2m10s
/ nextcloud-29-app-notes (push) Successful in 2m36s
/ nextcloud-29-app-notify-push (push) Successful in 5m9s
/ nextcloud-29-app-richdocuments (push) Successful in 3m50s
/ nextcloud-29-app-richdocumentscode (push) Successful in 8m55s
/ nextcloud-29-app-talk (push) Successful in 6m8s
/ nextcloud-29-app-tasks (push) Failing after 51s
/ nextcloud-29-app-twofactor-webauthn (push) Successful in 3m32s
/ nextcloud-29-app-user-oidc (push) Successful in 1m50s

This commit is contained in:
s3lph 2024-04-28 18:05:46 +02:00
parent 35130aac11
commit 0796b421be
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5
38 changed files with 140 additions and 81 deletions

View file

@ -11,7 +11,7 @@ jobs:
# One step per package
nextcloud-27: &job
nextcloud-28: &job
runs-on: docker
container:
image: git.kabelsalat.ch/s3lph/package-pipeline-builder:latest
@ -34,28 +34,6 @@ jobs:
--upload-file "${file}" \
"${API_REPOSITORY_DEB}"
done
nextcloud-27-app-calendar: *job
nextcloud-27-app-contacts: *job
nextcloud-27-app-deck: *job
nextcloud-27-app-forms: *job
nextcloud-27-app-gpoddersync: *job
nextcloud-27-app-gpxpod: *job
nextcloud-27-app-groupfolders: *job
nextcloud-27-app-polls: *job
nextcloud-27-app-previewgenerator: *job
nextcloud-27-app-mail: *job
nextcloud-27-app-news: *job
nextcloud-27-app-nextpod: *job
nextcloud-27-app-notes: *job
nextcloud-27-app-notify-push: *job
nextcloud-27-app-richdocuments: *job
nextcloud-27-app-richdocumentscode: *job
nextcloud-27-app-talk: *job
nextcloud-27-app-tasks: *job
nextcloud-27-app-twofactor-webauthn: *job
nextcloud-27-app-user-oidc: *job
nextcloud-28: *job
nextcloud-28-app-calendar: *job
nextcloud-28-app-contacts: *job
nextcloud-28-app-deck: *job
@ -77,3 +55,25 @@ jobs:
nextcloud-28-app-twofactor-webauthn: *job
nextcloud-28-app-user-oidc: *job
nextcloud-29: *job
nextcloud-29-app-calendar: *job
nextcloud-29-app-contacts: *job
nextcloud-29-app-deck: *job
nextcloud-29-app-forms: *job
nextcloud-29-app-gpoddersync: *job
nextcloud-29-app-gpxpod: *job
nextcloud-29-app-groupfolders: *job
nextcloud-29-app-polls: *job
nextcloud-29-app-previewgenerator: *job
nextcloud-29-app-mail: *job
nextcloud-29-app-news: *job
nextcloud-29-app-nextpod: *job
nextcloud-29-app-notes: *job
nextcloud-29-app-notify-push: *job
nextcloud-29-app-richdocuments: *job
nextcloud-29-app-richdocumentscode: *job
nextcloud-29-app-talk: *job
nextcloud-29-app-tasks: *job
nextcloud-29-app-twofactor-webauthn: *job
nextcloud-29-app-user-oidc: *job

View file

@ -10,26 +10,6 @@ information, please see [https://repo.s3lph.me/](https://repo.s3lph.me/).
## Packages
- [nextcloud-27](https://github.com/nextcloud/server) (Code integrity check fails due to patches applied during build process!)
- [nextcloud-27-app-calendar](https://apps.nextcloud.com/apps/calendar)
- [nextcloud-27-app-contacts](https://apps.nextcloud.com/apps/contacts)
- [nextcloud-27-app-deck](https://apps.nextcloud.com/apps/deck)
- [nextcloud-27-app-forms](https://apps.nextcloud.com/apps/forms)
- [nextcloud-27-app-gpoddersync](https://apps.nextcloud.com/apps/gpoddersync)
- [nextcloud-27-app-gpxpod](https://apps.nextcloud.com/apps/gpxpod)
- [nextcloud-27-app-groupfolders](https://apps.nextcloud.com/apps/groupfolders)
- [nextcloud-27-app-polls](https://apps.nextcloud.com/apps/polls)
- [nextcloud-27-app-previewgenerator](https://apps.nextcloud.com/apps/previewgenerator)
- [nextcloud-27-app-mail](https://apps.nextcloud.com/apps/mail)
- [nextcloud-27-app-news](https://apps.nextcloud.com/apps/news)
- [nextcloud-27-app-nextpod](https://apps.nextcloud.com/apps/nextpod)
- [nextcloud-27-app-notes](https://apps.nextcloud.com/apps/notes)
- [nextcloud-27-app-notify-push](https://apps.nextcloud.com/apps/notify_push)
- [nextcloud-27-app-richdocuments](https://apps.nextcloud.com/apps/richdocuments)
- [nextcloud-27-app-richdocumentscode](https://apps.nextcloud.com/apps/richdocumentscode)
- [nextcloud-27-app-tasks](https://apps.nextcloud.com/apps/tasks)
- [nextcloud-27-app-twofactor-webauthn](https://apps.nextcloud.com/apps/twofactor_webauthn)
- [nextcloud-27-app-user-oidc](https://apps.nextcloud.com/apps/user_oidc)
- [nextcloud-28](https://github.com/nextcloud/server) (Code integrity check fails due to patches applied during build process!)
- [nextcloud-28-app-calendar](https://apps.nextcloud.com/apps/calendar)
- [nextcloud-28-app-contacts](https://apps.nextcloud.com/apps/contacts)
@ -50,3 +30,23 @@ information, please see [https://repo.s3lph.me/](https://repo.s3lph.me/).
- [nextcloud-28-app-tasks](https://apps.nextcloud.com/apps/tasks)
- [nextcloud-28-app-twofactor-webauthn](https://apps.nextcloud.com/apps/twofactor_webauthn)
- [nextcloud-28-app-user-oidc](https://apps.nextcloud.com/apps/user_oidc)
- [nextcloud-29](https://github.com/nextcloud/server) (Code integrity check fails due to patches applied during build process!)
- [nextcloud-29-app-calendar](https://apps.nextcloud.com/apps/calendar)
- [nextcloud-29-app-contacts](https://apps.nextcloud.com/apps/contacts)
- [nextcloud-29-app-deck](https://apps.nextcloud.com/apps/deck)
- [nextcloud-29-app-forms](https://apps.nextcloud.com/apps/forms)
- [nextcloud-29-app-gpoddersync](https://apps.nextcloud.com/apps/gpoddersync) !!!
- [nextcloud-29-app-gpxpod](https://apps.nextcloud.com/apps/gpxpod)
- [nextcloud-29-app-groupfolders](https://apps.nextcloud.com/apps/groupfolders) !!!
- [nextcloud-29-app-polls](https://apps.nextcloud.com/apps/polls)
- [nextcloud-29-app-previewgenerator](https://apps.nextcloud.com/apps/previewgenerator)
- [nextcloud-29-app-mail](https://apps.nextcloud.com/apps/mail)
- [nextcloud-29-app-news](https://apps.nextcloud.com/apps/news)
- [nextcloud-29-app-nextpod](https://apps.nextcloud.com/apps/nextpod)
- [nextcloud-29-app-notes](https://apps.nextcloud.com/apps/notes)
- [nextcloud-29-app-notify-push](https://apps.nextcloud.com/apps/notify_push)
- [nextcloud-29-app-richdocuments](https://apps.nextcloud.com/apps/richdocuments)
- [nextcloud-29-app-richdocumentscode](https://apps.nextcloud.com/apps/richdocumentscode)
- [nextcloud-29-app-tasks](https://apps.nextcloud.com/apps/tasks) !!!
- [nextcloud-29-app-twofactor-webauthn](https://apps.nextcloud.com/apps/twofactor_webauthn)
- [nextcloud-29-app-user-oidc](https://apps.nextcloud.com/apps/user_oidc)

View file

@ -1,9 +0,0 @@
#!/bin/bash
. ../.skel/nextcloud-app/build-nextcloud-app
post_prepare() {
github_changelog nextcloud/news
}
build_nextcloud_app news 27

View file

@ -1,8 +0,0 @@
#!/bin/bash
. ../.skel/nextcloud-app/build-nextcloud-app
export ADDITIONAL_DEPS=", nextcloud-27-app-gpoddersync"
build_nextcloud_app nextpod 27

View file

@ -6,5 +6,5 @@ post_prepare() {
github_changelog nextcloud/calendar
}
build_nextcloud_app calendar 27
build_nextcloud_app calendar 29

View file

@ -6,5 +6,5 @@ post_prepare() {
github_changelog nextcloud/contacts
}
build_nextcloud_app contacts 27
build_nextcloud_app contacts 29

View file

@ -6,5 +6,5 @@ post_prepare() {
github_changelog nextcloud/deck
}
build_nextcloud_app deck 27
build_nextcloud_app deck 29

View file

@ -6,4 +6,4 @@ post_prepare() {
github_changelog nextcloud/forms
}
build_nextcloud_app forms 27
build_nextcloud_app forms 29

View file

@ -6,5 +6,5 @@ post_prepare() {
cat "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/${APP}/CHANGELOG.md" | gzip -9n > "${PKGDIR}/usr/share/doc/${PKGNAME}/changelog.gz"
}
build_nextcloud_app gpoddersync 27
build_nextcloud_app gpoddersync 29

View file

@ -6,5 +6,5 @@ post_prepare() {
github_changelog julien-nc/gpxpod
}
build_nextcloud_app gpxpod 27
build_nextcloud_app gpxpod 29

View file

@ -6,5 +6,5 @@ post_prepare() {
github_changelog nextcloud/groupfolders
}
build_nextcloud_app groupfolders 27
build_nextcloud_app groupfolders 29

View file

@ -6,4 +6,4 @@ post_prepare() {
github_changelog nextcloud/mail
}
build_nextcloud_app mail 27
build_nextcloud_app mail 29

View file

@ -0,0 +1,68 @@
#!/bin/bash
. ../.skel/nextcloud-app/build-nextcloud-app
function pre_fetch() {
# Filter from .skel/build-nextcloud-app, but with restriction to stable versions removed
export _NCAPPS_JQ='.[] | select(.id == $app) | .releases[] | "\(.version) \(.download) \(.rawPlatformVersionSpec)"'
}
function _prepare() {
mkdir -p \
"${PKGDIR}/DEBIAN" \
"${PKGDIR}/usr/share/doc/${PKGNAME}" \
"${PKGDIR}/usr/lib/nextcloud/nextcloud-apps"
VERSION=$(cat "${SRCDIR}/${APP}/appinfo/info.xml" | xq-python -r .info.version | sed -re 's/-/~/g')
SUMMARY=$(cat "${SRCDIR}/${APP}/appinfo/info.xml" | xq-python -r '.info.summary | if type == "array" then (.[] | select(.["@lang"]=="en") | .["#text"]) else (.) end')
DESCRIPTION=$(cat "${SRCDIR}/${APP}/appinfo/info.xml" | xq-python -r '.info.description | if type == "array" then (.[] | select(.["@lang"]=="en") | .["#text"]) else (.) end')
PHP_MIN=$(cat "${SRCDIR}/${APP}/appinfo/info.xml" | xq-python -r '.info.dependencies.php."@min-version"')
PHP_MAX=$(cat "${SRCDIR}/${APP}/appinfo/info.xml" | xq-python -r '.info.dependencies.php."@max-version"')
PHP_DEP=""
# #f [[ "${PHP_MIN}" != "null" ]]; then
# PHP_DEP="${PHP_DEP}, php (>= ${PHP_MIN})"
# fi
# if [[ "${PHP_MAX}" != "null" ]]; then
# # awk increments the last version component, from https://stackoverflow.com/a/69489163
# PHP_MAX=$(echo "${PHP_MAX}" | awk -F. -v OFS=. '{$NF=$NF+1;print}')
# PHP_DEP="${PHP_DEP}, php (<< ${PHP_MAX})"
# fi
cp -r "${SRCDIR}/${APP}" "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/${APP}"
cat > "${PKGDIR}/DEBIAN/control" <<EOF
Package: ${PKGNAME}
Version: ${VERSION}
Maintainer: ${MAINTAINER}
Section: web
Priority: optional
Architecture: ${ARCH}
Depends: nextcloud-${NCMAJOR}${PHP_DEP}${ADDITIONAL_DEPS}
Provides: nextcloud-app-${APP//_/-}
Conflicts: nextcloud-app-${APP//_/-}
Description: ${SUMMARY}
$(echo ${DESCRIPTION} | fold --width=71 --spaces | sed -re 's/^([^ ])/ \1/g')
EOF
cat > "${PKGDIR}/DEBIAN/postinst" <<EOF
#!/bin/bash
set -exo pipefail
if [[ "\$1" == "configure" ]]; then
$(declare -f postinst_configure_pre | sed -e '1,2d' -e '$d')
# Only run migrations if nextcloud is installed and the app is enabled
if [[ -z "\$(grep installed /var/lib/nextcloud/webroot/config/config.php | grep false)" && \\
-n \$(sudo -u www-data php /var/lib/nextcloud/webroot/occ app:list | grep -B 10000 '^Disabled:' | grep -- "- ${APP}:") ]]; then
sudo -u www-data php /var/lib/nextcloud/webroot/occ upgrade
sudo -u www-data php /var/lib/nextcloud/webroot/occ maintenance:mode --off
fi
$(declare -f postinst_configure_post | sed -e '1,2d' -e '$d')
fi
EOF
}
post_prepare() {
github_changelog nextcloud/news
}
build_nextcloud_app news 29

View file

@ -0,0 +1,8 @@
#!/bin/bash
. ../.skel/nextcloud-app/build-nextcloud-app
export ADDITIONAL_DEPS=", nextcloud-29-app-gpoddersync"
build_nextcloud_app nextpod 29

View file

@ -6,4 +6,4 @@ post_prepare() {
github_changelog nextcloud/notes
}
build_nextcloud_app notes 27
build_nextcloud_app notes 29

View file

@ -46,4 +46,4 @@ function postinst_configure_post() {
deb-systemd-invoke restart nextcloud-notify-push.service
}
build_nextcloud_app notify_push 27
build_nextcloud_app notify_push 29

View file

@ -6,5 +6,5 @@ post_prepare() {
github_changelog nextcloud/polls
}
build_nextcloud_app polls 27
build_nextcloud_app polls 29

View file

@ -13,5 +13,5 @@ postinst_configure_post() {
deb-systemd-helper enable nextcloud-preview-generator.timer
}
build_nextcloud_app previewgenerator 27
build_nextcloud_app previewgenerator 29

View file

@ -6,5 +6,5 @@ post_prepare() {
github_changelog nextcloud/richdocuments
}
build_nextcloud_app richdocuments 27
build_nextcloud_app richdocuments 29

View file

@ -12,4 +12,4 @@ post_chown() {
chmod 0755 "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/${APP}/collabora/Collabora_Online.AppImage"
}
build_nextcloud_app richdocumentscode 27 25
build_nextcloud_app richdocumentscode 29

View file

@ -6,5 +6,5 @@ post_prepare() {
github_changelog nextcloud/spreed
}
build_nextcloud_app spreed 27
build_nextcloud_app spreed 29

View file

@ -6,5 +6,5 @@ post_prepare() {
github_changelog nextcloud/tasks
}
build_nextcloud_app tasks 27
build_nextcloud_app tasks 29

View file

@ -6,5 +6,5 @@ post_prepare() {
cat "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/${APP}/CHANGELOG.md" | gzip -9n > "${PKGDIR}/usr/share/doc/${PKGNAME}/changelog.gz"
}
build_nextcloud_app twofactor_webauthn 27
build_nextcloud_app twofactor_webauthn 29

View file

@ -6,5 +6,5 @@ post_prepare() {
cat "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/${APP}/CHANGELOG.md" | gzip -9n > "${PKGDIR}/usr/share/doc/${PKGNAME}/changelog.gz"
}
build_nextcloud_app user_oidc 27
build_nextcloud_app user_oidc 29

View file

@ -1,10 +1,10 @@
Package: nextcloud-27
Package: nextcloud-29
Version: __VERSION__
Maintainer: __MAINTAINER__
Section: web
Priority: optional
Architecture: all
Depends: php-cli (>=8.0), php-curl, php-gd, php-mbstring, php-xml, php-zip, php-bz2, php-intl
Depends: php-cli (>=8.1), php-curl, php-gd, php-mbstring, php-xml, php-zip, php-bz2, php-intl
Suggests: apache2, mariadb-server, php-mysql, php-redis
Provides: nextcloud, nextcloud-app-twofactor-totp
Conflicts: nextcloud, nextcloud-app-twofactor-totp

View file

@ -4,7 +4,7 @@ set -exo pipefail
. ../.skel/helpers.sh
VERSION=27
VERSION=29
URL="https://download.nextcloud.com/server/releases/latest-${VERSION}.tar.bz2"