This commit is contained in:
Ivan Jurišić 2023-02-24 09:09:49 +01:00
commit 77bd2e44bd
27 changed files with 524 additions and 0 deletions

86
LICENSE Normal file
View File

@ -0,0 +1,86 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.
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 this service 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.
To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

22
README.md Normal file
View File

@ -0,0 +1,22 @@
## Instalation from repository
```
wget -qO - https://apt.jurisic.org/Release.key | gpg --dearmor | sudo dd of=/usr/share/keyrings/jurisic-keyring.gpg
echo "deb [ signed-by=/usr/share/keyrings/jurisic-keyring.gpg ] https://apt.jurisic.org/debian/ $(lsb_release -cs) main contrib non-free" | sudo tee /etc/apt/sources.list.d/jurisic.list
sudo apt update
sudo apt install nextcloud-server
```
## Requirements for buld packages
```
sudo apt-get install build-essential fakeroot devscripts
```
## Self build package
```
git clone https://git.jurisic.org/ijurisic/nextcloud-deb.git
cd nextcloud-deb
uscan
cd ../nextcloud-server-<current_version>
dch -n
dpkg-buildpackage -rfakeroot
```

30
debian/apache/nextcloud.conf vendored Normal file
View 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
View 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
View 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
View File

@ -0,0 +1 @@
10

1
debian/conffiles vendored Normal file
View File

@ -0,0 +1 @@
/var/www/nextcloud/.htaccess

29
debian/control vendored Normal file
View 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
View 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
View File

@ -0,0 +1 @@
nextcloud-server

2
debian/files vendored Normal file
View 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
View 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
View 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
View File

@ -0,0 +1 @@
conf debian/apache/nextcloud.conf

1
debian/nextcloud-server.cron.d vendored Normal file
View 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
View File

@ -0,0 +1 @@
override_dh_fixperms dh_fixperms

21
debian/nextcloud-server.install vendored Normal file
View 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
View 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

View 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
View 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

View 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
View 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
View File

@ -0,0 +1,3 @@
misc:Recommends=apache2 ( >= 2.4.6-4~ ) | httpd
misc:Depends=
misc:Pre-Depends=

26
debian/rules vendored Executable file
View 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
View File

@ -0,0 +1 @@
3.0 (quilt)

2
debian/source/lintian-overrides vendored Normal file
View File

@ -0,0 +1,2 @@
source-is-missing

3
debian/watch vendored Normal file
View File

@ -0,0 +1,3 @@
version=4
opts="pgpmode=none" https://download.nextcloud.com/server/releases/nextcloud-(23.*)\.zip debian uupdate