[med-svn] [Git][med-team/civetweb][master] Hardening + manpage

Andreas Tille gitlab at salsa.debian.org
Tue Sep 15 08:59:50 BST 2020



Andreas Tille pushed to branch master at Debian Med / civetweb


Commits:
0ba29103 by Andreas Tille at 2020-09-15T09:56:50+02:00
Hardening + manpage

- - - - -


4 changed files:

- + debian/civetweb.1
- + debian/createmanpages
- + debian/manpages
- debian/rules


Changes:

=====================================
debian/civetweb.1
=====================================
@@ -0,0 +1,144 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.47.16.
+.TH CIVETWEB "1" "September 2020" "civetweb 1.12" "User Commands"
+.SH NAME
+civetweb \- embeddable web server with optional CGI, SSL and Lua support
+.SH DESCRIPTION
+CivetWeb v1.12, built on Sep 14 2020
+.SS "Usage:"
+.IP
+Start server with a set of options:
+.IP
+civetweb [config_file]
+civetweb [\-option value ...]
+.IP
+Run as client:
+.IP
+civetweb \fB\-C\fR url
+.IP
+Show system information:
+.IP
+civetweb \fB\-I\fR
+.IP
+Add user/change password:
+.IP
+civetweb \fB\-A\fR <htpasswd_file> <realm> <user> <passwd>
+.IP
+Remove user:
+.IP
+civetweb \fB\-R\fR <htpasswd_file> <realm> <user>
+.SS "OPTIONS:"
+.HP
+\fB\-listening_ports\fR 8080
+.HP
+\fB\-num_threads\fR 50
+.HP
+\fB\-run_as_user\fR <empty>
+.HP
+\fB\-tcp_nodelay\fR 0
+.HP
+\fB\-max_request_size\fR 16384
+.HP
+\fB\-linger_timeout_ms\fR <empty>
+.HP
+\fB\-connection_queue\fR 20
+.HP
+\fB\-listen_backlog\fR 200
+.HP
+\fB\-allow_sendfile_call\fR yes
+.HP
+\fB\-throttle\fR <empty>
+.HP
+\fB\-access_log_file\fR <empty>
+.HP
+\fB\-error_log_file\fR <empty>
+.HP
+\fB\-enable_keep_alive\fR no
+.HP
+\fB\-request_timeout_ms\fR 30000
+.HP
+\fB\-keep_alive_timeout_ms\fR 500
+.HP
+\fB\-decode_url\fR yes
+.HP
+\fB\-document_root\fR <empty>
+.HP
+\fB\-cgi_pattern\fR **.cgi$|**.pl$|**.php$
+.HP
+\fB\-cgi_environment\fR <empty>
+.HP
+\fB\-put_delete_auth_file\fR <empty>
+.HP
+\fB\-cgi_interpreter\fR <empty>
+.HP
+\fB\-protect_uri\fR <empty>
+.HP
+\fB\-authentication_domain\fR mydomain.com
+.HP
+\fB\-enable_auth_domain_check\fR yes
+.HP
+\fB\-ssi_pattern\fR **.shtml$|**.shtm$
+.HP
+\fB\-enable_directory_listing\fR yes
+.HP
+\fB\-global_auth_file\fR <empty>
+.HP
+\fB\-index_files\fR index.xhtml,index.html,index.htm,index.cgi,index.shtml,index.php
+.HP
+\fB\-access_control_list\fR <empty>
+.HP
+\fB\-extra_mime_types\fR <empty>
+.HP
+\fB\-ssl_certificate\fR <empty>
+.HP
+\fB\-ssl_certificate_chain\fR <empty>
+.HP
+\fB\-url_rewrite_patterns\fR <empty>
+.HP
+\fB\-hide_files_patterns\fR <empty>
+.HP
+\fB\-ssl_verify_peer\fR no
+.HP
+\fB\-ssl_ca_path\fR <empty>
+.HP
+\fB\-ssl_ca_file\fR <empty>
+.HP
+\fB\-ssl_verify_depth\fR 9
+.HP
+\fB\-ssl_default_verify_paths\fR yes
+.HP
+\fB\-ssl_cipher_list\fR <empty>
+.HP
+\fB\-ssl_protocol_version\fR 0
+.HP
+\fB\-ssl_short_trust\fR no
+.HP
+\fB\-access_control_allow_origin\fR *
+.HP
+\fB\-access_control_allow_methods\fR *
+.HP
+\fB\-access_control_allow_headers\fR *
+.HP
+\fB\-error_pages\fR <empty>
+.HP
+\fB\-static_file_max_age\fR 3600
+.HP
+\fB\-static_file_cache_control\fR <empty>
+.HP
+\fB\-strict_transport_security_max_age\fR <empty>
+.HP
+\fB\-additional_header\fR <empty>
+.HP
+\fB\-allow_index_script_resource\fR no
+.HP
+\fB\-title\fR <empty>
+.HP
+\fB\-icon\fR <empty>
+.HP
+\fB\-website\fR <empty>
+.HP
+\fB\-add_domain\fR <empty>
+.HP
+\fB\-hide_tray\fR <empty>
+.SH AUTHOR
+ This manpage was written by Andreas Tille for the Debian distribution and
+ can be used for any other usage of the program.


=====================================
debian/createmanpages
=====================================
@@ -0,0 +1,28 @@
+#!/bin/sh
+MANDIR=debian
+mkdir -p $MANDIR
+
+VERSION=`dpkg-parsechangelog | awk '/^Version:/ {print $2}' | sed -e 's/^[0-9]*://' -e 's/-.*//' -e 's/[+~]dfsg$//'`
+NAME=`grep "^Description:" debian/control | sed 's/^Description: *//' | head -n1`
+PROGNAME=`grep "^Package:" debian/control | sed 's/^Package: *//' | head -n1`
+
+AUTHOR=".SH AUTHOR\n \
+This manpage was written by $DEBFULLNAME for the Debian distribution and\n \
+can be used for any other usage of the program.\
+"
+
+# If program name is different from package name or title should be
+# different from package short description change this here
+progname=${PROGNAME}
+help2man --no-info --no-discard-stderr --help-option=" -h" \
+         --name="$NAME" \
+            --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
+echo $AUTHOR >> $MANDIR/${progname}.1
+
+echo "$MANDIR/*.1" > debian/manpages
+
+cat <<EOT
+Please enhance the help2man output.
+The following web page might be helpful in doing so:
+    http://liw.fi/manpages/
+EOT


=====================================
debian/manpages
=====================================
@@ -0,0 +1 @@
+debian/*.1


=====================================
debian/rules
=====================================
@@ -4,7 +4,7 @@
 export LC_ALL=C.UTF-8
 
 # for hardening you might like to uncomment this:
-# export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
 CMAKE_EXTRA_FLAGS += \
         -DCMAKE_BUILD_TYPE=None \



View it on GitLab: https://salsa.debian.org/med-team/civetweb/-/commit/0ba291031d70fae30cacbc7d5eb7befd476ac40d

-- 
View it on GitLab: https://salsa.debian.org/med-team/civetweb/-/commit/0ba291031d70fae30cacbc7d5eb7befd476ac40d
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200915/42b04050/attachment-0001.html>


More information about the debian-med-commit mailing list