From b3722503332f0fbaa6013a6aab3f0fed24cbb243 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 17 Dec 2015 15:54:29 +0200 Subject: First pass over INSTALL, some file renames --- etc/brep-apache2.conf | 94 +++++++++++++++++++++++++-------------------------- etc/brep-module.conf | 41 ++++++++++++++++++++++ etc/brep.conf | 41 ---------------------- etc/buildfile | 2 +- 4 files changed, 88 insertions(+), 90 deletions(-) create mode 100644 etc/brep-module.conf delete mode 100644 etc/brep.conf (limited to 'etc') diff --git a/etc/brep-apache2.conf b/etc/brep-apache2.conf index bd8cd0c..189216c 100644 --- a/etc/brep-apache2.conf +++ b/etc/brep-apache2.conf @@ -1,49 +1,47 @@ -# The brep.conf file can be included once into Apache configuration file in -# the section or in the main server context. +# Paste the following fragment into your section (it is the same +# as what you find in the INSTALL file). # -LoadModule brep_module modules/mod_brep.so -LoadModule alias_module modules/mod_alias.so - -# Alternatively, if loading the modules in another place, make sure they -# are loaded. -# - - Error "mod_brep is not loaded" - - - - Error "mod_alias is not loaded" - - -# To use a repository root other than /pkg/, replace all occurrences of -# /pkg/ with the desired alternative root (use '/' for webserver root). -# -brep-root /pkg/ -brep-db-host localhost -brep-db-port 5432 -brep-search-results 10 -brep-search-pages 5 -brep-package-description 500 -brep-package-changes 5000 -brep-verbosity 0 - -# To override brep module options place them into the separate configuration -# file, suppressing the "brep-" prefix. -# -#brep-conf /path/to/brep-site.conf - -SetHandler brep - -# Location of the brep static content (CSS files). -# -Alias /pkg/@/ /usr/share/brep/static/ - - - Require all granted - - -# Serve repository files from the repository root path. For example: -# -# http://example.org/pkg/1/... -> /path/to/repo/1/... -# -#AliasMatch ^/pkg/(\d+)/(.+) /path/to/repo/$1/$2 + + # Load the brep module. + # + LoadModule brep_module /home/brep/install/libexec/brep/mod_brep.so + SetHandler brep + + # Repository root. This is the part of the URL between the host name + # and the start of the repository. For example, root value /pkg/ means + # the repository URL is http://example.org/pkg/. Specify / to use the + # web server root (e.g., http://example.org/). If using a different + # repository root, don't forget to also change Alias directives below. + # + brep-root /pkg/ + + # Brep module configuration. If you prefer, you can paste the contents + # of this file here. However, you will need to prefix every option with + # 'brep-'. + # + brep-conf /home/brep/config/brep-module.conf + + # Static brep content (CSS files). + # + + Error "mod_alias is not enabled" + + + # Note: trailing slashes are important! + # + Alias /pkg/@/ /home/brep/install/share/brep/www/ + + + Require all granted + + + # You can also serve the repository files from the repository root. + # For example: + # + # http://example.org/pkg/1/... -> /path/to/repo/1/... + # + #AliasMatch ^/pkg/(\d+)/(.+) /path/to/repo/$1/$2 + # + # + # Require all granted + # diff --git a/etc/brep-module.conf b/etc/brep-module.conf new file mode 100644 index 0000000..26767d6 --- /dev/null +++ b/etc/brep-module.conf @@ -0,0 +1,41 @@ +# Configuration file for the brep module (note: this is not an apache2 .conf +# file but it can be converted to one by prefixing all the options with brep-). +# See brep(1) for detailed description of each configuration option. Commented +# out options indicate their default values. +# + +# Number of results per page. +# +# search-results 10 + + +# Number of pages in navigation (pager). +# +# search-pages 5 + + +# Number of package description characters to display in brief pages. +# +# package-description 500 + + +# Number of package changes characters to display in brief pages. +# +# package-changes 5000 + + +# Database connection configuration. By default, brep will try to connect to +# the local instance of PostgreSQL with the operating system-default mechanism +# (Unix-domain socket, etc) and use operating system (login) user name and the +# database called 'brep'. See brep(1) for details. +# +# db-user +# db-password +# db-name brep +# db-host +# db-port + + +# Trace verbosity. Disabled by default. +# +# verbosity 1 diff --git a/etc/brep.conf b/etc/brep.conf deleted file mode 100644 index 26767d6..0000000 --- a/etc/brep.conf +++ /dev/null @@ -1,41 +0,0 @@ -# Configuration file for the brep module (note: this is not an apache2 .conf -# file but it can be converted to one by prefixing all the options with brep-). -# See brep(1) for detailed description of each configuration option. Commented -# out options indicate their default values. -# - -# Number of results per page. -# -# search-results 10 - - -# Number of pages in navigation (pager). -# -# search-pages 5 - - -# Number of package description characters to display in brief pages. -# -# package-description 500 - - -# Number of package changes characters to display in brief pages. -# -# package-changes 5000 - - -# Database connection configuration. By default, brep will try to connect to -# the local instance of PostgreSQL with the operating system-default mechanism -# (Unix-domain socket, etc) and use operating system (login) user name and the -# database called 'brep'. See brep(1) for details. -# -# db-user -# db-password -# db-name brep -# db-host -# db-port - - -# Trace verbosity. Disabled by default. -# -# verbosity 1 diff --git a/etc/buildfile b/etc/buildfile index ea96623..fc192b6 100644 --- a/etc/buildfile +++ b/etc/buildfile @@ -6,4 +6,4 @@ define conf: file conf{*}: extension = conf conf{*}: install = data/etc -./: conf{brep} +./: conf{brep-module brep-apache2} -- cgit v1.1