This commit is contained in:
30
debian/apache/nextcloud.conf
vendored
Normal file
30
debian/apache/nextcloud.conf
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
Alias /nextcloud "/var/www/nextcloud/"
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains; preload"
|
||||
</IfModule>
|
||||
|
||||
<Directory "/var/www/nextcloud">
|
||||
Options +FollowSymLinks
|
||||
AllowOverride All
|
||||
|
||||
<IfModule mod_dav.c>
|
||||
Dav off
|
||||
</IfModule>
|
||||
|
||||
SetEnv HOME /var/www/nextcloud
|
||||
SetEnv HTTP_HOME /var/www/nextcloud
|
||||
SetEnv htaccessWorking true
|
||||
|
||||
php_value upload_max_filesize 511M
|
||||
php_value post_max_size 511M
|
||||
php_value memory_limit 512M
|
||||
php_value mbstring.func_overload 0
|
||||
php_value default_charset 'UTF-8'
|
||||
php_value output_buffering 0
|
||||
|
||||
</Directory>
|
||||
|
||||
<Directory "/var/www/nextcloud/data/">
|
||||
Require all denied
|
||||
</Directory>
|
||||
9
debian/apache/occ
vendored
Executable file
9
debian/apache/occ
vendored
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ $(id -u) -eq 0 ] || [ $(id -u) -eq 33 ];then
|
||||
OPT="$@"
|
||||
su www-data -s /bin/sh -c "/usr/bin/php /var/www/nextcloud/occ $OPT"
|
||||
else
|
||||
echo "Please run as root"
|
||||
fi
|
||||
|
||||
54
debian/changelog
vendored
Normal file
54
debian/changelog
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
nextcloud-server (23.0.12-1~deb10) buster; urgency=medium
|
||||
|
||||
* New upstream release 23.0.12
|
||||
|
||||
-- Ivan Jurišić <ivan@jurisic.org> Wed, 18 Jan 2023 08:35:11 +0000
|
||||
|
||||
nextcloud-server (23.0.9-1~deb10) buster; urgency=medium
|
||||
|
||||
* New upstream release 23.0.9
|
||||
|
||||
-- Ivan Jurišić <ivan@jurisic.org> Mon, 12 Sep 2022 07:17:10 +0000
|
||||
|
||||
nextcloud-server (23.0.8-1~deb10) buster; urgency=medium
|
||||
|
||||
* New upstream release 23.0.8
|
||||
|
||||
-- Ivan Jurišić <ivan@jurisic.org> Mon, 29 Aug 2022 06:54:44 +0000
|
||||
|
||||
nextcloud-server (23.0.7-1~deb10) buster; urgency=medium
|
||||
|
||||
* New upstream release 23.0.7
|
||||
|
||||
-- Ivan Jurišić <ivan@jurisic.org> Tue, 19 Jul 2022 06:08:21 +0000
|
||||
|
||||
nextcloud-server (23.0.6-1~deb10) buster; urgency=medium
|
||||
|
||||
* New upstream release 23.0.6
|
||||
|
||||
-- Ivan Jurišić <ivan@jurisic.org> Thu, 23 Jun 2022 11:14:45 +0000
|
||||
|
||||
nextcloud-server (23.0.5-1~deb10) buster; urgency=medium
|
||||
|
||||
* New upstream release 23.0.5
|
||||
|
||||
-- Ivan Jurišić <ivan@jurisic.org> Wed, 15 Jun 2022 08:02:40 +0000
|
||||
|
||||
nextcloud-server (23.0.4-1~deb10) buster; urgency=medium
|
||||
|
||||
* New upstream release 23.0.4
|
||||
|
||||
-- Ivan Jurišić <ivan@jurisic.org> Mon, 25 Apr 2022 10:25:28 +0000
|
||||
|
||||
nextcloud-server (23.0.3-1~deb10) buster; urgency=medium
|
||||
|
||||
* New upstream release 23.0.3
|
||||
|
||||
-- Ivan Jurišić <ivan@jurisic.org> Wed, 23 Mar 2022 08:17:39 +0000
|
||||
|
||||
nextcloud-server (23.0.2-1~deb10) buster; urgency=medium
|
||||
|
||||
* New upstream release 23.0.2
|
||||
|
||||
-- Ivan Jurišić <ivan@jurisic.org> Tue, 22 Feb 2022 15:25:37 +0000
|
||||
|
||||
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@@ -0,0 +1 @@
|
||||
10
|
||||
1
debian/conffiles
vendored
Normal file
1
debian/conffiles
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/var/www/nextcloud/.htaccess
|
||||
29
debian/control
vendored
Normal file
29
debian/control
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
Source: nextcloud-server
|
||||
Section: net
|
||||
Priority: extra
|
||||
Maintainer: Ivan Jurišić <ivan@jurisic.org>
|
||||
Build-Depends: debhelper (>= 11), dh-apache2 | apache2-dev
|
||||
Standards-Version: 3.9.8
|
||||
Vcs-Browser: https://github.com/nextcloud/server
|
||||
Vcs-Git: https://github.com/nextcloud/server.git
|
||||
Homepage: https://www.nextcloud.com
|
||||
|
||||
Package: nextcloud-server
|
||||
Architecture: all
|
||||
Depends: apache2 | httpd, php, php-mysql , php-common,php-zip, php-mbstring, php-gd, php-xml, php-intl, php-curl, php-json, php-cli, php-imagick, php-ldap, php-pgsql, php-sqlite3, php-gmp, ${misc:Depends}
|
||||
Recommends: postgresql | mariadb-server | mysql-server , curl, ${misc:Recommends}
|
||||
Suggests: clamav | clamav-daemon, php-apcu, php-cgi
|
||||
Description: Nextcloud server: community-driven, free & open source
|
||||
Nextcloud is open source file sync and share software for everyone
|
||||
from individuals operating the free Nextcloud Server in the privacy
|
||||
of their own home, to large enterprises and service providers supported
|
||||
by the Nextcloud Enterprise Subscription.
|
||||
.
|
||||
Nextcloud provides a safe, secure, and compliant file synchronization
|
||||
and sharing solution on servers that you control.
|
||||
.
|
||||
You can share one or more files and folders on your computer,
|
||||
and synchronize them with your Nextcloud server. Place files in
|
||||
your local shared directories, and those files are immediately
|
||||
synchronized to the server and to other devices using the
|
||||
Nextcloud / ownCloud Desktop Sync Client, Android app, or iOS app.
|
||||
75
debian/copyright
vendored
Normal file
75
debian/copyright
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: nextcloud-server
|
||||
Source: https://www.nextcloud.com
|
||||
Files: *
|
||||
Copyright: 2018, Frank Karlitschek <frank@karlitschek.de>
|
||||
License: LGPL-3
|
||||
The GNU Affero General Public License is a free, copyleft license for
|
||||
software and other kinds of works, specifically designed to ensure
|
||||
cooperation with the community in the case of network server software.
|
||||
.
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
our General Public Licenses are intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users.
|
||||
.
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
.
|
||||
Developers that use our General Public Licenses protect your rights
|
||||
with two steps: (1) assert copyright on the software, and (2) offer
|
||||
you this License which gives you legal permission to copy, distribute
|
||||
and/or modify the software.
|
||||
.
|
||||
A secondary benefit of defending all users' freedom is that
|
||||
improvements made in alternate versions of the program, if they
|
||||
receive widespread use, become available for other developers to
|
||||
incorporate. Many developers of free software are heartened and
|
||||
encouraged by the resulting cooperation. However, in the case of
|
||||
software used on network servers, this result may fail to come about.
|
||||
The GNU General Public License permits making a modified version and
|
||||
letting the public access it on a server without ever releasing its
|
||||
source code to the public.
|
||||
.
|
||||
The GNU Affero General Public License is designed specifically to
|
||||
ensure that, in such cases, the modified source code becomes available
|
||||
to the community. It requires the operator of a network server to
|
||||
provide the source code of the modified version running there to the
|
||||
users of that server. Therefore, public use of a modified version, on
|
||||
a publicly accessible server, gives the public access to the source
|
||||
code of the modified version.
|
||||
.
|
||||
An older license, called the Affero General Public License and
|
||||
published by Affero, was designed to accomplish similar goals. This is
|
||||
a different license, not a version of the Affero GPL, but Affero has
|
||||
released a new version of the Affero GPL which permits relicensing under
|
||||
this license.
|
||||
.
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2019 Ivan Jurišić <ivan@jurisic.org>
|
||||
License: GPL-3.0+
|
||||
|
||||
License: GPL-3.0+
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This package is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
|
||||
1
debian/debhelper-build-stamp
vendored
Normal file
1
debian/debhelper-build-stamp
vendored
Normal file
@@ -0,0 +1 @@
|
||||
nextcloud-server
|
||||
2
debian/files
vendored
Normal file
2
debian/files
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
nextcloud-server_23.0.12-1~deb10_all.deb net extra
|
||||
nextcloud-server_23.0.12-1~deb10_amd64.buildinfo net extra
|
||||
10
debian/nextcloud-server.README.Debian
vendored
Normal file
10
debian/nextcloud-server.README.Debian
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
nextcloud-server for Debian
|
||||
----------------------------------
|
||||
|
||||
This package put nextcloud in /var/www/nextcloud directory by Documentation of Nextcloud,
|
||||
but by Debian Policy Manual (https://www.debian.org/doc/debian-policy) some stuff need to
|
||||
be adjusted.
|
||||
|
||||
Check TODO.Debian file for more info.
|
||||
|
||||
-- Ivan Jurišić <ivan@jurisic.org> Thu, 26 Sep 2019 09:34:27 +0000
|
||||
5
debian/nextcloud-server.TODO
vendored
Normal file
5
debian/nextcloud-server.TODO
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
Things that should be done:
|
||||
* Move config file in /etc/nextcloud
|
||||
* GUI package configure/reconfigure (to avoid finish installation with web browser)
|
||||
* Maybe migrate files from /var/www/nextcloud to /usr/share/nextcloud (app) and to
|
||||
/var/lib/nextcloud/data (data)
|
||||
1
debian/nextcloud-server.apache2
vendored
Normal file
1
debian/nextcloud-server.apache2
vendored
Normal file
@@ -0,0 +1 @@
|
||||
conf debian/apache/nextcloud.conf
|
||||
1
debian/nextcloud-server.cron.d
vendored
Normal file
1
debian/nextcloud-server.cron.d
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*/5 * * * * www-data /usr/bin/php -f /var/www/nextcloud/cron.php
|
||||
1
debian/nextcloud-server.debhelper.log
vendored
Normal file
1
debian/nextcloud-server.debhelper.log
vendored
Normal file
@@ -0,0 +1 @@
|
||||
override_dh_fixperms dh_fixperms
|
||||
21
debian/nextcloud-server.install
vendored
Normal file
21
debian/nextcloud-server.install
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
3rdparty var/www/nextcloud
|
||||
apps var/www/nextcloud
|
||||
config var/www/nextcloud
|
||||
core var/www/nextcloud
|
||||
lib var/www/nextcloud
|
||||
ocm-provider var/www/nextcloud
|
||||
ocs var/www/nextcloud
|
||||
ocs-provider var/www/nextcloud
|
||||
resources var/www/nextcloud
|
||||
themes var/www/nextcloud
|
||||
updater var/www/nextcloud
|
||||
*.php var/www/nextcloud
|
||||
*.html var/www/nextcloud
|
||||
*.txt var/www/nextcloud
|
||||
.htaccess var/www/nextcloud
|
||||
.user.ini var/www/nextcloud
|
||||
AUTHORS var/www/nextcloud
|
||||
COPYING var/www/nextcloud
|
||||
occ var/www/nextcloud
|
||||
debian/apache/nextcloud.conf etc/apache2/conf-available
|
||||
debian/apache/occ usr/sbin
|
||||
67
debian/nextcloud-server.postinst
vendored
Normal file
67
debian/nextcloud-server.postinst
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
#!/bin/sh
|
||||
# postinst script for nextcloud-server
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
set -e
|
||||
|
||||
# summary of how this script can be called:
|
||||
# * <postinst> `configure' <most-recently-configured-version>
|
||||
# * <old-postinst> `abort-upgrade' <new version>
|
||||
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
|
||||
# <new-version>
|
||||
# * <postinst> `abort-remove'
|
||||
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
|
||||
# <failed-install-package> <version> `removing'
|
||||
# <conflicting-package> <version>
|
||||
# for details, see https://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
export APACHE2_MAINTSCRIPT_HELPER_QUIET=1
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
|
||||
# Apache conf
|
||||
if [ "a2query -c nextcloud"=~"No conf matches nextcloud" ]; then
|
||||
a2enconf nextcloud || true
|
||||
apache2ctl restart || true
|
||||
fi
|
||||
|
||||
# Apache modules
|
||||
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
|
||||
. /usr/share/apache2/apache2-maintscript-helper
|
||||
apache2_invoke enmod rewrite || exit $?
|
||||
apache2_invoke enmod headers || exit $?
|
||||
apache2_invoke enmod env || exit $?
|
||||
apache2_invoke enmod dir || exit $?
|
||||
apache2_invoke enmod mime || exit $?
|
||||
fi
|
||||
|
||||
if [ "$(su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ status' | grep 'installed:' | cut -f2 -d ':' | xargs)" = "false" ]; then
|
||||
echo "Nextcloud is not configured, please use open web browser http://<your_server_ip>/nextcloud"
|
||||
echo "After configure please run su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ config:system:set --value true upgrade.disable-web'"
|
||||
elif [ "$(su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ status' | grep 'installed:' | cut -f2 -d ':' | xargs)" = "true" ]; then
|
||||
su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ upgrade'
|
||||
su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ config:system:set --value true upgrade.disable-web' > /dev/null || true
|
||||
else
|
||||
echo "Got unexpect answer, occ status can't to read satus of nextcloud. Check php installation."
|
||||
fi
|
||||
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
10
debian/nextcloud-server.postinst.debhelper
vendored
Normal file
10
debian/nextcloud-server.postinst.debhelper
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
# Automatically added by dh_apache2/UNDECLARED
|
||||
if true; then
|
||||
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
|
||||
. /usr/share/apache2/apache2-maintscript-helper
|
||||
for conf in nextcloud ; do
|
||||
apache2_invoke enconf $conf || exit 1
|
||||
done
|
||||
fi
|
||||
fi
|
||||
# End automatically added section
|
||||
37
debian/nextcloud-server.postrm
vendored
Normal file
37
debian/nextcloud-server.postrm
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
# postrm script for nextcloud-server
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
set -e
|
||||
|
||||
# summary of how this script can be called:
|
||||
# * <postrm> `remove'
|
||||
# * <postrm> `purge'
|
||||
# * <old-postrm> `upgrade' <new-version>
|
||||
# * <new-postrm> `failed-upgrade' <old-version>
|
||||
# * <new-postrm> `abort-install'
|
||||
# * <new-postrm> `abort-install' <old-version>
|
||||
# * <new-postrm> `abort-upgrade' <old-version>
|
||||
# * <disappearer's-postrm> `disappear' <overwriter>
|
||||
# <overwriter-version>
|
||||
# for details, see https://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
|
||||
case "$1" in
|
||||
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postrm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
13
debian/nextcloud-server.postrm.debhelper
vendored
Normal file
13
debian/nextcloud-server.postrm.debhelper
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# Automatically added by dh_apache2/UNDECLARED
|
||||
if [ "$1" = "purge" ] ; then
|
||||
if true; then
|
||||
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
|
||||
. /usr/share/apache2/apache2-maintscript-helper
|
||||
|
||||
for conf in nextcloud ; do
|
||||
apache2_invoke disconf $conf || exit 1
|
||||
done
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
# End automatically added section
|
||||
13
debian/nextcloud-server.prerm.debhelper
vendored
Normal file
13
debian/nextcloud-server.prerm.debhelper
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# Automatically added by dh_apache2/UNDECLARED
|
||||
if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ] ; then
|
||||
if true; then
|
||||
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
|
||||
. /usr/share/apache2/apache2-maintscript-helper
|
||||
|
||||
for conf in nextcloud ; do
|
||||
apache2_invoke disconf $conf || exit 1
|
||||
done
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
# End automatically added section
|
||||
3
debian/nextcloud-server.substvars
vendored
Normal file
3
debian/nextcloud-server.substvars
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
misc:Recommends=apache2 ( >= 2.4.6-4~ ) | httpd
|
||||
misc:Depends=
|
||||
misc:Pre-Depends=
|
||||
26
debian/rules
vendored
Executable file
26
debian/rules
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/make -f
|
||||
export DH_VERBOSE=0
|
||||
|
||||
%:
|
||||
dh $@ --with apache2
|
||||
|
||||
override_dh_strip_nondeterminism:
|
||||
|
||||
override_dh_fixperms:
|
||||
dh_fixperms
|
||||
mkdir -p debian/nextcloud-server/var/www/nextcloud/data
|
||||
mkdir -p debian/nextcloud-server/var/www/nextcloud/updater
|
||||
find debian/nextcloud-server/var/www/nextcloud -type f -print0 | xargs -0 chmod 0640
|
||||
find debian/nextcloud-server/var/www/nextcloud -type d -print0 | xargs -0 chmod 0750
|
||||
chmod 0644 debian/nextcloud-server/var/www/nextcloud/.htaccess
|
||||
chown -R root:www-data debian/nextcloud-server/var/www/nextcloud
|
||||
chown -R www-data:www-data debian/nextcloud-server/var/www/nextcloud/apps
|
||||
chown -R www-data:www-data debian/nextcloud-server/var/www/nextcloud/config
|
||||
chown -R www-data:www-data debian/nextcloud-server/var/www/nextcloud/data
|
||||
chown -R www-data:www-data debian/nextcloud-server/var/www/nextcloud/themes
|
||||
chown -R www-data:www-data debian/nextcloud-server/var/www/nextcloud/updater
|
||||
chown root:www-data debian/nextcloud-server/var/www/nextcloud/.htaccess
|
||||
chmod +x debian/nextcloud-server/var/www/nextcloud/occ
|
||||
chmod +x debian/apache/occ
|
||||
|
||||
|
||||
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
||||
2
debian/source/lintian-overrides
vendored
Normal file
2
debian/source/lintian-overrides
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
source-is-missing
|
||||
|
||||
3
debian/watch
vendored
Normal file
3
debian/watch
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
version=4
|
||||
opts="pgpmode=none" https://download.nextcloud.com/server/releases/nextcloud-(23.*)\.zip debian uupdate
|
||||
|
||||
Reference in New Issue
Block a user