Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server-packages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Galliart <bgallia@gmail.com>2020-01-23 11:08:10 +0300
committerGiacomo Sanchietti <giacomo.sanchietti@nethesis.it>2020-01-23 11:08:09 +0300
commit28c93c6d3227f4f64c1ebb801c1c9e6e45154945 (patch)
treedf301c5e5c351d576583a98c947279a21d5096d4
parent117eeb63bb302f62c5b2bd338bf0eb1378e6654d (diff)
Updated to Nextcloud 16.0.7 (#54)
Added End of Life notices for PHP 7.1 and upcoming date for Nextcloud v16 Added more details to readme file Added tar.bz2 validity checking using Nextcloud provided hashes and GPG key Added conflict checking to make sure user isn't trying to upgrade from a version previous to v15 since Nextcloud does not support skipping major versions Signed-off-by: B Galliart <bgallia@gmail.com>
-rw-r--r--centos/README.md77
-rw-r--r--centos/nextcloud.spec68
2 files changed, 135 insertions, 10 deletions
diff --git a/centos/README.md b/centos/README.md
index 3ed839c..a51adc3 100644
--- a/centos/README.md
+++ b/centos/README.md
@@ -1,8 +1,41 @@
Nextcloud
=========
+
+NextCloud 16 End of Life Notice
+-------------------------------
+NextCloud 16 is End of Life as of April 2020
+
+There will no longer be security or maintenance fixes provided.
+
+It is important to plan an upgrade schedule to NextCloud version 17
+accordingly.
+
+NextCloud does not support skipping major versions when upgrading.
+To keep the database schema current, it is important to run the
+upgrade (such as through the OCC CLI) for each major version.
+
+
+PHP 7.1 End of Life Notice
+--------------------------
+As of December 2019, the primary PHP project will no longer be releasing
+security updates for PHP version 7.1.
+
+It is recommended you plan accordingly to upgrade to using PHP 7.2.
+
+The RPM dependencies have also been updated accordingly.
+
+It is possible to have both PHP 7.1 and PHP 7.2 installed from the Software Collection at the same time. However, the NextCloud RPM is configured to use the PHP FPM on localhost port 9000. If PHP 7.1 FPM is still using the port, that is the version of PHP that will be used.
+
+
+About
+-----
+
This repository can be used to build a very basic RPM suited for CentOS 7.
-It uses Apache 2.4 with PHP-FPM to avoid conflicts with existing PHP 5.4 applications.
+It uses Apache 2.4 with PHP-FPM to avoid conflicts with existing
+PHP 5.4 applications. This also allows running Apache with a
+multi-threaded MPM while using mod_php a multi-threaded MPM is
+not recommended.
The package has been built following official Nextcloud documentation and
guidelines about strong directory permissions. See: https://docs.nextcloud.org/
@@ -14,6 +47,24 @@ After the installation, the administrator should take care of the following:
* if needed, install and configure MariaDB/MySQL database
* configure Nextcloud following the official documentation
+
+Building RPM
+------------
+
+Before building the RPM, you should make sure that rpm-build and
+rpmdevtools packages are installed. This can be done by running:
+
+ yum -y install rpm-build rpmdevtools
+
+Then download the required source files by running:
+
+ spectool -g -R nextcloud.spec
+
+And finally building the nextcloud RPM by running:
+
+ rpmbuild -bb nextcloud.spec
+
+
Dependencies
------------
@@ -25,18 +76,29 @@ The following dependencies are installed:
* PHP packages for builtin apps (php-ldap)
* PHP packages for MariaDB/MySQL connection
-You need to enable EPEL repository.
+You need to enable EPEL and SCL repositories.
+
+On CentOS this can be done by running:
+
+ yum -y install epel-release centos-release-scl
+
+On Red Hat Enterprise Linux run:
+
+ yum -y install epel-release
+ yum-config-manager --enable rhel-server-rhscl-7-rpms
-The administrator can enable extra features installing following RPMs (from centos-sclo-sclo repository):
+The administrator can enable extra features installing following RPMs
+(from centos-sclo-sclo repository):
+
+ * sclo-php72-php-smbclient
+ * sclo-php72-php-imap
-* sclo-php72-php-smbclient
-* rh-php72-php-imap
SELinux
-------
-It's all on your own, please follow official documentation if you have SELinux enabled
-(which is the default on CentOS 7).
+It's all on your own, please follow official documentation if you have SELinux enabled (which is the default on CentOS 7).
+
Alternatives RPMs
-----------------
@@ -44,3 +106,4 @@ Alternatives RPMs
If PHP-FPM doesn't fit your environment, please see also @mbevc1 packages:
https://github.com/mbevc1/nextcloud
+
diff --git a/centos/nextcloud.spec b/centos/nextcloud.spec
index 4015445..66db98e 100644
--- a/centos/nextcloud.spec
+++ b/centos/nextcloud.spec
@@ -13,12 +13,17 @@
Summary: Nextcloud package
Name: nextcloud
-Version: 16.0.5
+Version: 16.0.7
Release: 1%{?dist}
License: GPL
Source: https://download.nextcloud.com/server/releases/nextcloud-%{version}.tar.bz2
-Source1: nextcloud.conf
-Source2: nextcloud-fpm.conf
+Source1: https://raw.githubusercontent.com/nextcloud/server-packages/v16/centos/nextcloud.conf
+Source2: https://raw.githubusercontent.com/nextcloud/server-packages/v16/centos/nextcloud-fpm.conf
+Source3: https://nextcloud.com/nextcloud.asc
+Source4: https://download.nextcloud.com/server/releases/nextcloud-%{version}.tar.bz2.asc
+Source5: https://download.nextcloud.com/server/releases/nextcloud-%{version}.tar.bz2.md5
+Source6: https://download.nextcloud.com/server/releases/nextcloud-%{version}.tar.bz2.sha256
+Source7: https://download.nextcloud.com/server/releases/nextcloud-%{version}.tar.bz2.sha512
BuildArch: noarch
URL: https://nextcloud.com/
@@ -42,6 +47,8 @@ Requires: rh-php72-php-ldap
# Required php packages for MariaDB
Requires: rh-php72-php-pdo_mysql
+# NextCloud does not support skipping a major version number
+Conflicts: nextcloud < 15
%description
Nextcloud files and configuration.
@@ -51,6 +58,17 @@ nc_dir: %{nc_dir}
nc_data_dir: %{nc_data_dir}
nc_config_dir: %{nc_config_dir}
+%prep
+cd %{_sourcedir}
+/usr/bin/md5sum -c %{SOURCE5}
+if [ $? -ne 0 ] ; then echo md5sum did not match ; exit 1 ; fi
+/usr/bin/sha256sum -c %{SOURCE6}
+if [ $? -ne 0 ] ; then echo sha256sum did not match ; exit 1 ; fi
+/usr/bin/sha512sum -c %{SOURCE7}
+if [ $? -ne 0 ] ; then echo sha512sum did not match ; exit 1 ; fi
+/usr/bin/gpg --import %{SOURCE3}
+/usr/bin/gpg --verify %{SOURCE4} %{SOURCE0}
+if [ $? -ne 0 ] ; then echo gpg signature did not match ; exit 1 ; fi
%install
rm -rf %{buildroot}
@@ -71,6 +89,47 @@ mkdir -p %{buildroot}/etc/opt/rh/rh-php72/php-fpm.d/
cp %{SOURCE2} %{buildroot}/etc/opt/rh/rh-php72/php-fpm.d/nextcloud.conf
+%post
+YM=$(date +%Y%m)
+if [ $YM -ge 202003 ] ; then
+cat << EOF
+
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+NextCloud v16 End of Life Notice
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+This NextCloud version is stated End of Life as of April 2020
+
+There will no longer be security or maintenance fixes provided.
+
+It is important to plan an upgrade schedule to NextCloud version 16
+accordingly.
+
+NextCloud does not support skipping major versions. To keep the
+database schema current, it is important to run the upgrade (such as
+through the OCC CLI) for each major version.
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+
+EOF
+fi
+/usr/bin/systemctl status rh-php71-php-fpm > /dev/null
+if [ $? -eq 0 ] ; then
+cat << EOF
+
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+PHP 7.1 End of Life Notice
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+This system is still running the rh-php71-php-fpm service.
+
+As of December 2019, the primary PHP project will no longer be releasing
+security updates for PHP version 7.1.
+
+It is recommended you plan accordingly to upgrade to using PHP 7.2.
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+
+EOF
+fi
+
+
%files
%defattr(0640,root,%{nc_group},0750)
%dir %attr(0755,root,%{nc_group}) %{nc_dir}
@@ -103,6 +162,9 @@ cp %{SOURCE2} %{buildroot}/etc/opt/rh/rh-php72/php-fpm.d/nextcloud.conf
%changelog
+* Wed Jan 22 2020 B Galliart <ben@steadfast.net> - 16.0.7-1
+- Update to release 16.0.7
+
* Thu Sep 02 2019 Giacomo Sanchietti <giacomo.sanchietti@nethesis.it>- 16.0.4-1
- Update to release 16.0.4