mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
Add fix unescaped braces patch. This patch fixes the unescaped brace regex warnings, which break the usage of WebDAV CGI with Perl >= 5.26 as reported by Alexander Weber within #674772 and #658470. It is based on: https://github.com/DanRohde/webdavcgi/commit/04e79b7ecbaf3aae5ab813cd4fc0a009c72b1580 Apart from the version bump, the following enhancements were made: * Use EAPI 7 * Updated home page and external links of the WebDAV CGI project. * Depend on dev-perl/IO-Compress-Brotli, which is required for 1.1.2. * Fix unescaped braces (addresses #674772 and #658470) * Add note regarding systemd and setuid/setgid webdavwrapper * Using EROOT instead of ROOT for displaying installation paths * Removed no longer used eutils dependency Closes: https://bugs.gentoo.org/658470 Closes: https://bugs.gentoo.org/674772 Signed-off-by: Christian Affolter <c.affolter@purplehaze.ch> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
65 lines
2.6 KiB
Plaintext
65 lines
2.6 KiB
Plaintext
# Example Apache HTTP server configuration snippet for WebDAV CGI
|
|
#
|
|
# Add the following lines to the Apache HTTP virtual host which should run
|
|
# WebDAV CGI.
|
|
#
|
|
# WebDAV CGI will be accessible via http://www.example.com/webdav/ and uses
|
|
# basic HTTP authentication (by default). For this to work, you need to add all
|
|
# valid users to the AuthUserFile with the help of the htpasswd command:
|
|
#
|
|
# htpasswd -c /etc/webdavcgi-1.1/default/users.htpasswd user1
|
|
# htpasswd /etc/webdavcgi-1.1/default/users.htpasswd user2
|
|
#
|
|
# Note, that if you have the UID/GID wrapper enabled (USE=suid), WebDAV CGI will
|
|
# switch to the login user after a successful login, thus the users within the
|
|
# AuthType need to be present on the system as well.
|
|
#
|
|
# You probably want to review and change the following settings:
|
|
# - /webdavcgi should point to your desired webdavwrapper, which is either
|
|
# webdavwrapper, webdavwrapper-afs, webdavwrapper-krb or in case you disabled
|
|
# the UID/GID wrapper (USE=-suid), webdav.pl
|
|
#
|
|
# - The /webdav location
|
|
# If you change this location, make sure to reflect the new path within the
|
|
# WebDAV CGI configuration (WEBDAVCONF -> $VIRTUAL_BASE) as well.
|
|
#
|
|
# - The authentication provider and/or AuthUserFile
|
|
#
|
|
# - The HOMEURL environment variable. After a user logs out, the browser will
|
|
# be redirected to this URL.
|
|
#
|
|
# - The WEBDAVCONF environment variable has to point to your configuration
|
|
#
|
|
# For further information and other configuration possibilities consult the
|
|
# WebDAV CGI documentation and Apache HTTP server documentation:
|
|
# * https://danrohde.github.io/webdavcgi/doc.html
|
|
# * https://httpd.apache.org/docs/
|
|
#
|
|
ScriptAlias /webdavcgi "/usr/libexec/webdavcgi-1.1/cgi-bin/webdavwrapper"
|
|
ScriptAlias /webdav/logout "/usr/libexec/webdavcgi-1.1/cgi-bin/logout"
|
|
|
|
<Location /webdav>
|
|
Require all granted
|
|
# Disable the line above and enable the two lines below
|
|
# if you're still on Apache 2.2
|
|
#Order Allow,Deny
|
|
#Allow from all
|
|
</Location>
|
|
|
|
<Location /webdavcgi>
|
|
AuthType Basic
|
|
AuthName "WebDAV-CGI"
|
|
AuthUserFile /etc/webdavcgi-1.1/default/users.htpasswd
|
|
Require valid-user
|
|
# Also enable the following two lines if you're still on Apache 2.2
|
|
#Order Allow,Deny
|
|
#Allow from all
|
|
</Location>
|
|
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteRule ^/webdav/logout - [L,E=REALM:WebDAV-CGI,E=HOMEURL:/webdav,E=TIMEOUT:5]
|
|
|
|
RewriteRule ^/webdav /webdavcgi [PT,L,E=WEBDAVCONF:/etc/webdavcgi-1.1/default/webdav.conf,E=PERLLIB:/usr/share/webdavcgi-1.1/lib/perl,E=LOGOUTURL:/webdav/logout]
|