[packages/dokuwiki/dev-2023-04-04: 1/9] Up to 2023-04-04

glen glen at pld-linux.org
Sat Apr 29 00:04:40 CEST 2023


commit 137ac30f51c5a0a6870b0f28f234a43da58fbe68
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Wed Apr 5 15:40:07 2023 +0300

    Up to 2023-04-04
    
    - https://www.dokuwiki.org/changes#release_2023-04-04_jack_jackrum

 dokuwiki-http_auth-option.patch | 14 +++++++-------
 dokuwiki.spec                   | 13 ++++++++-----
 2 files changed, 15 insertions(+), 12 deletions(-)
---
diff --git a/dokuwiki.spec b/dokuwiki.spec
index e79a25d..537a598 100644
--- a/dokuwiki.spec
+++ b/dokuwiki.spec
@@ -1,4 +1,4 @@
-%define		subver	2022-07-31a
+%define		subver	2023-04-04
 %define		ver		%(echo %{subver} | tr -d -)
 #define		snap	1
 #define		rc_	1
@@ -7,12 +7,12 @@ Summary:	PHP-based Wiki webapplication
 Summary(pl.UTF-8):	Aplikacja WWW Wiki oparta na PHP
 Name:		dokuwiki
 Version:	%{ver}
-Release:	2
+Release:	1
 License:	GPL v2
 Group:		Applications/WWW
 # Source0Download: https://download.dokuwiki.org/archive
-Source0:	https://download.dokuwiki.org/src/dokuwiki/%{name}-%{subver}.tgz
-# Source0-md5:	4459ea99e3a4ce2b767482f505724dcc
+Source0:	https://github.com/dokuwiki/dokuwiki/releases/download/release-%{subver}/dokuwiki-%{subver}.tgz
+# Source0-md5:	a112952394f3d4b76efb9dc2f985f99f
 Source1:	%{name}-apache.conf
 Source2:	%{name}-lighttpd.conf
 Source3:	http://glen.alkohol.ee/pld/jude.png
@@ -148,7 +148,6 @@ find -name _dummy | xargs %{__rm}
 %{__rm} {conf,inc,bin,data}/.htaccess
 %{__rm} vendor/.htaccess
 %{__rm} lib/plugins/styling/.travis.yml
-%{__rm} -r lib/plugins/testing
 %{__rm} -r lib/plugins/*/_test
 
 # we just don't package deleted files, these get removed automatically on rpm upgrades
@@ -163,6 +162,9 @@ find -name _dummy | xargs %{__rm}
 install -d vendor/geshi/geshi/src
 %{__ln} -snf %{php_data_dir}/geshi.php vendor/geshi/geshi/src/geshi.php
 
+# generic vendor cleanup
+%{__rm} -v vendor/*/*/composer.*
+
 # use system simplepie package
 #%{__rm} inc/SimplePie.php
 
@@ -380,6 +382,7 @@ exit 0
 %{_appdir}/vendor/simplepie/simplepie
 %{_appdir}/vendor/splitbrain/php-archive
 %{_appdir}/vendor/splitbrain/php-cli
+%{_appdir}/vendor/splitbrain/php-jsstrip
 %{_appdir}/vendor/splitbrain/slika
 
 %dir %{_appdir}/lib
diff --git a/dokuwiki-http_auth-option.patch b/dokuwiki-http_auth-option.patch
index 3b8fbbe..462b139 100644
--- a/dokuwiki-http_auth-option.patch
+++ b/dokuwiki-http_auth-option.patch
@@ -10,14 +10,14 @@
  $conf['securecookie'] = 1;               //never send HTTPS cookies via HTTP
  $conf['remote']      = 0;                //Enable/disable remote interfaces
  $conf['remoteuser']  = '!!not set!!';    //user/groups that have access to remote interface (comma separated). leave empty to allow all users
---- dokuwiki-2018-04-22c.org/inc/auth.php	2020-05-01 12:38:20.000000000 +0200
-+++ dokuwiki-2018-04-22c/inc/auth.php	2022-09-27 22:46:31.557879706 +0200
-@@ -84,7 +84,7 @@ function auth_setup() {
+--- dokuwiki-2023-04-04/inc/auth.php~	2023-04-04 19:21:21.000000000 +0300
++++ dokuwiki-2023-04-04/inc/auth.php	2023-04-05 15:43:33.873377532 +0300
+@@ -75,7 +75,7 @@
      }
  
      // if no credentials were given try to use HTTP auth (for SSO)
--    if(!$INPUT->str('u') && empty($_COOKIE[DOKU_COOKIE]) && !empty($_SERVER['PHP_AUTH_USER'])) {
-+    if($conf['http_auth'] && !$INPUT->str('u') && empty($_COOKIE[DOKU_COOKIE]) && !empty($_SERVER['PHP_AUTH_USER'])) {
-         $INPUT->set('u', $_SERVER['PHP_AUTH_USER']);
-         $INPUT->set('p', $_SERVER['PHP_AUTH_PW']);
+-    if (!$INPUT->str('u') && empty($_COOKIE[DOKU_COOKIE]) && !empty($INPUT->server->str('PHP_AUTH_USER'))) {
++    if ($conf['http_auth'] && !$INPUT->str('u') && empty($_COOKIE[DOKU_COOKIE]) && !empty($INPUT->server->str('PHP_AUTH_USER'))) {
+         $INPUT->set('u', $INPUT->server->str('PHP_AUTH_USER'));
+         $INPUT->set('p', $INPUT->server->str('PHP_AUTH_PW'));
          $INPUT->set('http_credentials', true);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dokuwiki.git/commitdiff/270ed101a49f8380b85b74e94b8c831cf6db5b19



More information about the pld-cvs-commit mailing list