chore: remove nextcloud-28
All checks were successful
/ nextcloud-29 (push) Successful in 13m50s
/ nextcloud-29-app-calendar (push) Successful in 1m29s
/ nextcloud-29-app-contacts (push) Successful in 2m9s
/ nextcloud-29-app-deck (push) Successful in 1m31s
/ nextcloud-29-app-forms (push) Successful in 2m45s
/ nextcloud-29-app-gpoddersync (push) Successful in 49s
/ nextcloud-29-app-gpxpod (push) Successful in 6m35s
/ nextcloud-29-app-groupfolders (push) Successful in 1m5s
/ nextcloud-29-app-polls (push) Successful in 2m22s
/ nextcloud-29-app-previewgenerator (push) Successful in 51s
/ nextcloud-29-app-mail (push) Successful in 6m45s
/ nextcloud-29-app-memories (push) Successful in 6m49s
/ nextcloud-29-app-news (push) Successful in 3m4s
/ nextcloud-29-app-nextpod (push) Successful in 1m44s
/ nextcloud-29-app-notes (push) Successful in 2m24s
/ nextcloud-29-app-notify-push (push) Successful in 4m13s
/ nextcloud-29-app-richdocuments (push) Successful in 3m26s
/ nextcloud-29-app-richdocumentscode (push) Successful in 6m10s
/ nextcloud-29-app-talk (push) Successful in 2m11s
/ nextcloud-29-app-tasks (push) Successful in 1m11s
/ nextcloud-29-app-twofactor-webauthn (push) Successful in 1m38s
/ nextcloud-29-app-user-oidc (push) Successful in 1m9s
All checks were successful
/ nextcloud-29 (push) Successful in 13m50s
/ nextcloud-29-app-calendar (push) Successful in 1m29s
/ nextcloud-29-app-contacts (push) Successful in 2m9s
/ nextcloud-29-app-deck (push) Successful in 1m31s
/ nextcloud-29-app-forms (push) Successful in 2m45s
/ nextcloud-29-app-gpoddersync (push) Successful in 49s
/ nextcloud-29-app-gpxpod (push) Successful in 6m35s
/ nextcloud-29-app-groupfolders (push) Successful in 1m5s
/ nextcloud-29-app-polls (push) Successful in 2m22s
/ nextcloud-29-app-previewgenerator (push) Successful in 51s
/ nextcloud-29-app-mail (push) Successful in 6m45s
/ nextcloud-29-app-memories (push) Successful in 6m49s
/ nextcloud-29-app-news (push) Successful in 3m4s
/ nextcloud-29-app-nextpod (push) Successful in 1m44s
/ nextcloud-29-app-notes (push) Successful in 2m24s
/ nextcloud-29-app-notify-push (push) Successful in 4m13s
/ nextcloud-29-app-richdocuments (push) Successful in 3m26s
/ nextcloud-29-app-richdocumentscode (push) Successful in 6m10s
/ nextcloud-29-app-talk (push) Successful in 2m11s
/ nextcloud-29-app-tasks (push) Successful in 1m11s
/ nextcloud-29-app-twofactor-webauthn (push) Successful in 1m38s
/ nextcloud-29-app-user-oidc (push) Successful in 1m9s
This commit is contained in:
parent
0537b7ba36
commit
be76f6dd23
37 changed files with 1 additions and 685 deletions
|
@ -11,7 +11,7 @@ jobs:
|
|||
|
||||
# One step per package
|
||||
|
||||
nextcloud-28: &job
|
||||
nextcloud-29: &job
|
||||
runs-on: docker
|
||||
container:
|
||||
image: git.kabelsalat.ch/s3lph/package-pipeline-builder:latest
|
||||
|
@ -34,29 +34,6 @@ jobs:
|
|||
--upload-file "${file}" \
|
||||
"${API_REPOSITORY_DEB}"
|
||||
done
|
||||
nextcloud-28-app-calendar: *job
|
||||
nextcloud-28-app-contacts: *job
|
||||
nextcloud-28-app-deck: *job
|
||||
nextcloud-28-app-forms: *job
|
||||
nextcloud-28-app-gpoddersync: *job
|
||||
nextcloud-28-app-gpxpod: *job
|
||||
nextcloud-28-app-groupfolders: *job
|
||||
nextcloud-28-app-polls: *job
|
||||
nextcloud-28-app-previewgenerator: *job
|
||||
nextcloud-28-app-mail: *job
|
||||
nextcloud-28-app-memories: *job
|
||||
nextcloud-28-app-news: *job
|
||||
nextcloud-28-app-nextpod: *job
|
||||
nextcloud-28-app-notes: *job
|
||||
nextcloud-28-app-notify-push: *job
|
||||
nextcloud-28-app-richdocuments: *job
|
||||
nextcloud-28-app-richdocumentscode: *job
|
||||
nextcloud-28-app-talk: *job
|
||||
nextcloud-28-app-tasks: *job
|
||||
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
|
||||
|
|
21
README.md
21
README.md
|
@ -10,27 +10,6 @@ information, please see [https://repo.s3lph.me/](https://repo.s3lph.me/).
|
|||
|
||||
## Packages
|
||||
|
||||
- [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)
|
||||
- [nextcloud-28-app-deck](https://apps.nextcloud.com/apps/deck)
|
||||
- [nextcloud-28-app-forms](https://apps.nextcloud.com/apps/forms)
|
||||
- [nextcloud-28-app-gpoddersync](https://apps.nextcloud.com/apps/gpoddersync)
|
||||
- [nextcloud-28-app-gpxpod](https://apps.nextcloud.com/apps/gpxpod)
|
||||
- [nextcloud-28-app-groupfolders](https://apps.nextcloud.com/apps/groupfolders)
|
||||
- [nextcloud-28-app-polls](https://apps.nextcloud.com/apps/polls)
|
||||
- [nextcloud-28-app-previewgenerator](https://apps.nextcloud.com/apps/previewgenerator)
|
||||
- [nextcloud-28-app-mail](https://apps.nextcloud.com/apps/mail)
|
||||
- [nextcloud-28-app-memories](https://apps.nextcloud.com/apps/memories)
|
||||
- [nextcloud-28-app-news](https://apps.nextcloud.com/apps/news)
|
||||
- [nextcloud-28-app-nextpod](https://apps.nextcloud.com/apps/nextpod)
|
||||
- [nextcloud-28-app-notes](https://apps.nextcloud.com/apps/notes)
|
||||
- [nextcloud-28-app-notify-push](https://apps.nextcloud.com/apps/notify_push)
|
||||
- [nextcloud-28-app-richdocuments](https://apps.nextcloud.com/apps/richdocuments)
|
||||
- [nextcloud-28-app-richdocumentscode](https://apps.nextcloud.com/apps/richdocumentscode)
|
||||
- [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)
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
post_prepare() {
|
||||
github_changelog nextcloud/calendar
|
||||
}
|
||||
|
||||
build_nextcloud_app calendar 28
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
post_prepare() {
|
||||
github_changelog nextcloud/contacts
|
||||
}
|
||||
|
||||
build_nextcloud_app contacts 28
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
post_prepare() {
|
||||
github_changelog nextcloud/deck
|
||||
}
|
||||
|
||||
build_nextcloud_app deck 28
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
post_prepare() {
|
||||
github_changelog nextcloud/forms
|
||||
}
|
||||
|
||||
build_nextcloud_app forms 28
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
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 28
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
post_prepare() {
|
||||
github_changelog julien-nc/gpxpod
|
||||
}
|
||||
|
||||
build_nextcloud_app gpxpod 28
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
post_prepare() {
|
||||
github_changelog nextcloud/groupfolders
|
||||
}
|
||||
|
||||
build_nextcloud_app groupfolders 28
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
post_prepare() {
|
||||
github_changelog nextcloud/mail
|
||||
}
|
||||
|
||||
build_nextcloud_app mail 28
|
|
@ -1,57 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
export ARCHS=(amd64 arm64)
|
||||
|
||||
function _ncarch() {
|
||||
case "$1" in
|
||||
amd64)
|
||||
echo x86_64
|
||||
;;
|
||||
arm64)
|
||||
echo aarch64
|
||||
;;
|
||||
*)
|
||||
echo no such architecture
|
||||
exit 1
|
||||
esac
|
||||
}
|
||||
|
||||
function _binarch() {
|
||||
case "$1" in
|
||||
amd64)
|
||||
echo amd64
|
||||
;;
|
||||
arm64)
|
||||
echo aarch64
|
||||
;;
|
||||
*)
|
||||
echo no such architecture
|
||||
exit 1
|
||||
esac
|
||||
}
|
||||
|
||||
function post_chown() {
|
||||
chmod 0755 "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/memories/bin-ext/exiftool/build_tag_lookup"
|
||||
chmod 0755 "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/memories/bin-ext/exiftool/exiftool"
|
||||
chmod 0755 "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/memories/bin-ext/exiftool/validate"
|
||||
}
|
||||
|
||||
post_prepare() {
|
||||
NCARCH=$(_ncarch $ARCH)
|
||||
for oarch in ${ARCHS[@]}; do
|
||||
if [[ "$(_ncarch $oarch)" == "${NCARCH}" ]]; then
|
||||
continue
|
||||
fi
|
||||
binarch=$(_binarch $oarch)
|
||||
rm -f ${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/memories/bin-ext/*-${binarch}*
|
||||
rm -f ${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/memories/bin-ext/exiftool/*-${binarch}*
|
||||
done
|
||||
github_changelog pulsejet/memories
|
||||
}
|
||||
|
||||
export ADDITIONAL_DEPS=", sensible-utils"
|
||||
|
||||
build_nextcloud_app memories 28
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
#!/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 28
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
export ADDITIONAL_DEPS=", nextcloud-28-app-gpoddersync"
|
||||
|
||||
build_nextcloud_app nextpod 28
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
post_prepare() {
|
||||
github_changelog nextcloud/notes
|
||||
}
|
||||
|
||||
build_nextcloud_app notes 28
|
|
@ -1,25 +0,0 @@
|
|||
# Mandatory: TCP port to listen on
|
||||
PORT=7867
|
||||
|
||||
# The push server can be configured either by loading the config from
|
||||
# the nextcloud config.php or by setting all options through
|
||||
# environment variables.
|
||||
#
|
||||
# Re-using the configuration from nextcloud is the recommended way, as
|
||||
# it ensures that the configuration remains in sync.
|
||||
CONFIG=/var/lib/nextcloud/webroot/config/config.php
|
||||
|
||||
# If using the config.php isn't possible, you can configure the push
|
||||
# server by setting the following environment variables:
|
||||
|
||||
# connection url for the Nextcloud database
|
||||
#DATABASE_URL=postgres://user:password@db_host/db_name
|
||||
|
||||
# database prefix configured in Nextcloud
|
||||
#DATABASE_PREFIX=oc_
|
||||
|
||||
# connection url for redis
|
||||
#REDIS_URL=redis://localhost
|
||||
|
||||
# url for the nextcloud instance
|
||||
#NEXTCLOUD_URL=https://cloud.example.com
|
|
@ -1,12 +0,0 @@
|
|||
[Unit]
|
||||
Description=Push daemon for Nextcloud clients
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=-/etc/default/nextcloud-notify-push
|
||||
ExecStart=/usr/lib/nextcloud/nextcloud-apps/notify_push/bin/notify_push $CONFIG
|
||||
User=www-data
|
||||
Group=www-data
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,49 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
export ARCHS=(amd64 arm64 armhf)
|
||||
|
||||
function _ncarch() {
|
||||
case "$1" in
|
||||
amd64)
|
||||
echo x86_64
|
||||
;;
|
||||
arm64)
|
||||
echo aarch64
|
||||
;;
|
||||
armhf)
|
||||
echo armv7
|
||||
;;
|
||||
*)
|
||||
echo no such architecture
|
||||
exit 1
|
||||
esac
|
||||
}
|
||||
|
||||
function post_prepare() {
|
||||
NCARCH=$(_ncarch $ARCH)
|
||||
mkdir -p \
|
||||
"${PKGDIR}/lib/systemd/system" \
|
||||
"${PKGDIR}/etc/default"
|
||||
mv "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/notify_push/bin/${NCARCH}/notify_push" \
|
||||
"${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/notify_push/bin/notify_push"
|
||||
find "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/notify_push/bin/" -type d -mindepth 1 -maxdepth 1 -exec rm -rf {} \;
|
||||
cp "${ROOT}/nextcloud-notify-push.service" "${PKGDIR}/lib/systemd/system/nextcloud-notify-push.service"
|
||||
cp "${ROOT}/nextcloud-notify-push.default" "${PKGDIR}/etc/default/nextcloud-notify-push"
|
||||
cp "${SRCDIR}/notify_push/LICENSE" "${PKGDIR}/usr/share/doc/nextcloud-${NCMAJOR}-app-${APP//_/-}/copyright"
|
||||
echo '/etc/default/nextcloud-notify-push' > "${PKGDIR}/DEBIAN/conffiles"
|
||||
github_changelog nextcloud/notify_push
|
||||
}
|
||||
|
||||
function post_chown() {
|
||||
chmod 0600 "${PKGDIR}/etc/default/nextcloud-notify-push"
|
||||
chmod 0755 "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/notify_push/bin/notify_push"
|
||||
}
|
||||
|
||||
function postinst_configure_post() {
|
||||
deb-systemd-helper enable nextcloud-notify-push.service
|
||||
deb-systemd-invoke restart nextcloud-notify-push.service
|
||||
}
|
||||
|
||||
build_nextcloud_app notify_push 28
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
post_prepare() {
|
||||
github_changelog nextcloud/polls
|
||||
}
|
||||
|
||||
build_nextcloud_app polls 28
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
[Unit]
|
||||
Description=Pre-Generate Nextcloud preview thumbnails
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/php /var/lib/nextcloud/webroot/occ preview:pre-generate
|
||||
User=www-data
|
||||
Group=www-data
|
|
@ -1,9 +0,0 @@
|
|||
[Unit]
|
||||
Description=Pre-Generate Nextcloud preview thumbnails
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*:0/15
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
|
@ -1,17 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
post_prepare() {
|
||||
mkdir -p "${PKGDIR}/lib/systemd/system/"
|
||||
cp "${ROOT}/nextcloud-preview-generator.service" "${PKGDIR}/lib/systemd/system/nextcloud-preview-generator.service"
|
||||
cp "${ROOT}/nextcloud-preview-generator.timer" "${PKGDIR}/lib/systemd/system/nextcloud-preview-generator.timer"
|
||||
github_changelog nextcloud/previewgenerator
|
||||
}
|
||||
|
||||
postinst_configure_post() {
|
||||
deb-systemd-helper enable nextcloud-preview-generator.timer
|
||||
}
|
||||
|
||||
build_nextcloud_app previewgenerator 28
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
post_prepare() {
|
||||
github_changelog nextcloud/richdocuments
|
||||
}
|
||||
|
||||
build_nextcloud_app richdocuments 28
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
export ARCHS=(amd64)
|
||||
|
||||
post_prepare() {
|
||||
github_changelog CollaboraOnline/richdocumentscode
|
||||
}
|
||||
|
||||
post_chown() {
|
||||
chmod 0755 "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/${APP}/collabora/Collabora_Online.AppImage"
|
||||
}
|
||||
|
||||
build_nextcloud_app richdocumentscode 28
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
post_prepare() {
|
||||
github_changelog nextcloud/spreed
|
||||
}
|
||||
|
||||
build_nextcloud_app spreed 28
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
post_prepare() {
|
||||
github_changelog nextcloud/tasks
|
||||
}
|
||||
|
||||
build_nextcloud_app tasks 28
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
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 28
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ../.skel/nextcloud-app/build-nextcloud-app
|
||||
|
||||
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 28
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
|
||||
$CONFIG = array (
|
||||
'installed' => false,
|
||||
|
||||
'trusted_domains' => [
|
||||
'nextcloud.example.com'
|
||||
],
|
||||
'overwrite.cli.url' => 'http://nextcloud.example.com',
|
||||
'datadirectory' => '/var/lib/nextcloud/data',
|
||||
'logfile' => '/var/log/nextcloud/nextcloud.log',
|
||||
|
||||
'mysql.utf8mb4' => true,
|
||||
|
||||
'connectivity_check_domains' => ['localhost'],
|
||||
|
||||
'appstoreenabled' => false,
|
||||
'apps_paths' => [
|
||||
[
|
||||
'path'=> '/usr/lib/nextcloud/nextcloud-apps',
|
||||
'url' => '/dist-apps',
|
||||
'writable' => false,
|
||||
]
|
||||
],
|
||||
|
||||
);
|
|
@ -1,2 +0,0 @@
|
|||
/var/lib/nextcloud/webroot/config/config.php
|
||||
/etc/apache2/sites-available/nextcloud.site.conf
|
|
@ -1,16 +0,0 @@
|
|||
Package: nextcloud-28
|
||||
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
|
||||
Suggests: apache2, mariadb-server, php-mysql, php-redis
|
||||
Provides: nextcloud, nextcloud-app-twofactor-totp
|
||||
Conflicts: nextcloud, nextcloud-app-twofactor-totp
|
||||
Replaces: nextcloud-app-twofactor-totp
|
||||
Description: A safe home for all your data.
|
||||
Nextcloud Hub is the first completely integrated on-premises content
|
||||
collaboration platform on the market, ready for a new generation of
|
||||
users who expect seamless online collaboration capabilities out of
|
||||
the box.
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [[ "$1" == "configure" ]]; then
|
||||
|
||||
deb-systemd-helper enable nextcloud-cron.timer
|
||||
|
||||
# Only run occ upgrade if nextcloud has been configured
|
||||
if [[ -z "$(grep installed /var/lib/nextcloud/webroot/config/config.php | grep false)" ]]; 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
|
||||
|
||||
fi
|
|
@ -1,8 +0,0 @@
|
|||
[Unit]
|
||||
Description=Nextcloud Cronjob
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/php /var/lib/nextcloud/webroot/cron.php
|
||||
User=www-data
|
||||
Group=www-data
|
|
@ -1,9 +0,0 @@
|
|||
[Unit]
|
||||
Description=Nextcloud Cronjob
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*:0/5
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
|
@ -1,33 +0,0 @@
|
|||
<VirtualHost *:80>
|
||||
|
||||
ServerName nextcloud.example.com
|
||||
|
||||
DocumentRoot /var/lib/nextcloud/webroot
|
||||
Alias /dist-apps /usr/lib/nextcloud/nextcloud-apps
|
||||
|
||||
<Directory /var/lib/nextcloud/webroot>
|
||||
Require all granted
|
||||
AllowOverride All
|
||||
Options FollowSymLinks MultiViews
|
||||
</Directory>
|
||||
|
||||
<Directory /usr/lib/nextcloud>
|
||||
Require all granted
|
||||
AllowOverride All
|
||||
Options FollowSymLinks MultiViews
|
||||
</Directory>
|
||||
|
||||
<IfModule mod_dav.c>
|
||||
Dav off
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine on
|
||||
RewriteRule ^\.well-known/host-meta /public.php?service=host-meta [QSA,L]
|
||||
RewriteRule ^\.well-known/host-meta\.json /public.php?service=host-meta-json [QSA,L]
|
||||
RewriteRule ^\.well-known/webfinger /public.php?service=webfinger [QSA,L]
|
||||
RewriteRule ^\.well-known/carddav /remote.php/dav/ [R=301,L]
|
||||
RewriteRule ^\.well-known/caldav /remote.php/dav/ [R=301,L]
|
||||
</IfModule>
|
||||
|
||||
</VirtualHost>
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
/usr/bin/sudo -u www-data -- /usr/bin/php /var/lib/nextcloud/webroot/occ $@
|
||||
|
|
@ -1,79 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -exo pipefail
|
||||
|
||||
. ../.skel/helpers.sh
|
||||
|
||||
VERSION=28
|
||||
|
||||
URL="https://download.nextcloud.com/server/releases/latest-${VERSION}.tar.bz2"
|
||||
|
||||
ROOT=$(pwd)
|
||||
function fetch() {
|
||||
cd "${SRCDIR}"
|
||||
wget "${URL}" --output-document "nextcloud-${VERSION}.tar.bz2"
|
||||
tar -xf "nextcloud-${VERSION}.tar.bz2"
|
||||
patch --strip=1 --directory="${SRCDIR}" --ignore-whitespace < "${ROOT}/patches/01_isfairuse_userfacing_ui.patch"
|
||||
}
|
||||
|
||||
function prepare() {
|
||||
mkdir -p \
|
||||
"${PKGDIR}/DEBIAN" \
|
||||
"${PKGDIR}/var/lib/nextcloud" \
|
||||
"${PKGDIR}/usr/lib/nextcloud" \
|
||||
"${PKGDIR}/var/lib/nextcloud/data" \
|
||||
"${PKGDIR}/lib/systemd/system" \
|
||||
"${PKGDIR}/var/log/nextcloud" \
|
||||
"${PKGDIR}/usr/local/bin" \
|
||||
"${PKGDIR}/etc/apache2/sites-available" \
|
||||
"${PKGDIR}/usr/share/doc/${PKGNAME}"
|
||||
VERSION=$(cat "${SRCDIR}/nextcloud/version.php" | grep "OC_VersionString" | cut -d"'" -f2)
|
||||
cp -r "${SRCDIR}/nextcloud" "${PKGDIR}/var/lib/nextcloud/webroot"
|
||||
mv "${PKGDIR}/var/lib/nextcloud/webroot/apps" "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps"
|
||||
cp "${ROOT}/config.php" "${PKGDIR}/var/lib/nextcloud/webroot/config/config.php"
|
||||
cp "${ROOT}/debian.control" "${PKGDIR}/DEBIAN/control"
|
||||
cp "${ROOT}/debian.conffiles" "${PKGDIR}/DEBIAN/conffiles"
|
||||
cp "${ROOT}/debian.postinst" "${PKGDIR}/DEBIAN/postinst"
|
||||
cp "${ROOT}/nextcloud-cron.service" "${ROOT}/nextcloud-cron.timer" "${PKGDIR}/lib/systemd/system/"
|
||||
cp "${ROOT}/nextcloud.site.conf" "${PKGDIR}/etc/apache2/sites-available/"
|
||||
cp "${ROOT}/occ.sh" "${PKGDIR}/usr/local/bin/occ"
|
||||
sed -re "s/__VERSION__/${VERSION}/g" -i "${PKGDIR}/DEBIAN/control"
|
||||
sed -re "s/__MAINTAINER__/${MAINTAINER}/g" -i "${PKGDIR}/DEBIAN/control"
|
||||
cp "${SRCDIR}/nextcloud/COPYING" "${PKGDIR}/usr/share/doc/${PKGNAME}/copyright"
|
||||
github_changelog nextcloud/server
|
||||
find "${PKGDIR}" -exec touch -m --reference "${SRCDIR}/nextcloud/version.php" {} \;
|
||||
}
|
||||
|
||||
function _chown() {
|
||||
chown 0:0 -R "${PKGDIR}/"
|
||||
# www-data:www-data
|
||||
chown 33:33 -R \
|
||||
"${PKGDIR}/var/lib/nextcloud" \
|
||||
"${PKGDIR}/var/log/nextcloud" \
|
||||
"${PKGDIR}/usr/lib/nextcloud"
|
||||
find "${PKGDIR}/var/lib/nextcloud/webroot" "${PKGDIR}/var/log/nextcloud" -type f -exec chmod 0640 {} \;
|
||||
find "${PKGDIR}/var/lib/nextcloud/webroot" "${PKGDIR}/var/log/nextcloud" -type d -exec chmod 0750 {} \;
|
||||
find "${PKGDIR}/usr/lib/nextcloud" -type f -exec chmod 0644 {} \;
|
||||
find "${PKGDIR}/usr/lib/nextcloud" -type d -exec chmod 0755 {} \;
|
||||
ln -sf "/var/lib/nextcloud/webroot/core" "${PKGDIR}/usr/lib/nextcloud/core"
|
||||
}
|
||||
|
||||
function package() {
|
||||
cd "${BUILDDIR}"
|
||||
dpkg-deb --build "${PKGDIR}" "${BUILDDIR}"
|
||||
}
|
||||
|
||||
function build() {
|
||||
export PKGNAME="nextcloud-${VERSION}"
|
||||
export BUILDDIR=${ROOT}/build
|
||||
export SRCDIR=${ROOT}/build/srcdir
|
||||
export PKGDIR=${ROOT}/build/pkgdir
|
||||
mkdir -p ${SRCDIR} ${PKGDIR}
|
||||
fetch
|
||||
prepare
|
||||
_chown
|
||||
package
|
||||
}
|
||||
|
||||
|
||||
build
|
|
@ -1,33 +0,0 @@
|
|||
diff -3ur a/nextcloud/apps/settings/templates/settings/personal/personal.info.php b/nextcloud/apps/settings/templates/settings/personal/personal.info.php
|
||||
--- a/nextcloud/apps/settings/templates/settings/personal/personal.info.php 2022-10-21 16:18:20.730871392 +0200
|
||||
+++ b/nextcloud/apps/settings/templates/settings/personal/personal.info.php 2022-10-21 16:23:38.133437330 +0200
|
||||
@@ -35,13 +35,6 @@
|
||||
'vue-settings-personal-info',
|
||||
]);
|
||||
?>
|
||||
-<?php if (!$_['isFairUseOfFreePushService']) : ?>
|
||||
- <div class="section">
|
||||
- <div class="warning">
|
||||
- <?php p($l->t('This community release of Nextcloud is unsupported and instant notifications are unavailable.')); ?>
|
||||
- </div>
|
||||
- </div>
|
||||
-<?php endif; ?>
|
||||
|
||||
<div id="personal-settings" data-federation-enabled="<?php p($_['federationEnabled'] ? 'true' : 'false') ?>"
|
||||
data-lookup-server-upload-enabled="<?php p($_['lookupServerUploadEnabled'] ? 'true' : 'false') ?>">
|
||||
diff -3ur a/nextcloud/core/Controller/LoginController.php b/nextcloud/core/Controller/LoginController.php
|
||||
--- a/nextcloud/core/Controller/LoginController.php 2022-10-21 16:18:20.610870426 +0200
|
||||
+++ b/nextcloud/core/Controller/LoginController.php 2022-10-21 16:19:52.921615072 +0200
|
||||
@@ -147,12 +147,6 @@
|
||||
}
|
||||
|
||||
$loginMessages = $this->session->get('loginMessages');
|
||||
- if (!$this->manager->isFairUseOfFreePushService()) {
|
||||
- if (!is_array($loginMessages)) {
|
||||
- $loginMessages = [[], []];
|
||||
- }
|
||||
- $loginMessages[1][] = $this->l10n->t('This community release of Nextcloud is unsupported and push notifications are limited.');
|
||||
- }
|
||||
if (is_array($loginMessages)) {
|
||||
[$errors, $messages] = $loginMessages;
|
||||
$this->initialStateService->provideInitialState('core', 'loginMessages', $messages);
|
Loading…
Reference in a new issue