added the sample httpd/dav configuration file

This commit is contained in:
2014-05-20 01:55:47 +00:00
parent 714ab2d78e
commit 3e4b807fbb
8 changed files with 83 additions and 22 deletions

View File

@ -1,10 +1,16 @@
cfgdir=$(CFGDIR)
cfg_DATA = codepot.ini codepot.mysql codepot.a2ldap
cfg_DATA = codepot.ini codepot.mysql codepot.a2ldap
cfg_SCRIPTS = start-commit pre-commit post-commit pre-revprop-change post-revprop-change
perldir=$(CFGDIR)/perl/Codepot
perl_SCRIPTS=perl/Codepot/AccessHandler.pm perl/Codepot/AuthenHandler.pm
EXTRA_DIST = $(cfg_DATA) $(cfg_SCRIPTS) $(perl_SCRIPTS)
EXTRA_DIST = $(cfg_DATA) $(cfg_SCRIPTS) $(perl_SCRIPTS)
install-data-hook:
$(INSTALL) -D -m 0644 "@abs_top_builddir@/etc/codepot.httpd" "$(DESTDIR)@sysconfdir@/httpd/conf.d/codepot.conf"
uninstall-hook:
$(RM) -f "$(DESTDIR)@sysconfdir@/httpd/conf.d/codepot.conf"

View File

@ -37,8 +37,9 @@ PRE_UNINSTALL = :
POST_UNINSTALL = :
subdir = etc
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
$(srcdir)/codepot.a2ldap.in $(srcdir)/codepot.ini.in \
$(srcdir)/post-commit.in $(srcdir)/post-revprop-change.in \
$(srcdir)/codepot.a2ldap.in $(srcdir)/codepot.httpd.in \
$(srcdir)/codepot.ini.in $(srcdir)/post-commit.in \
$(srcdir)/post-revprop-change.in \
$(srcdir)/pre-revprop-change.in $(srcdir)/start-commit.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/ac/m4/as-ac-expand.m4 \
@ -47,8 +48,9 @@ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/./config.h
CONFIG_CLEAN_FILES = codepot.ini codepot.a2ldap start-commit \
post-commit pre-revprop-change post-revprop-change
CONFIG_CLEAN_FILES = codepot.ini codepot.a2ldap codepot.httpd \
start-commit post-commit pre-revprop-change \
post-revprop-change
am__installdirs = "$(DESTDIR)$(cfgdir)" "$(DESTDIR)$(perldir)" \
"$(DESTDIR)$(cfgdir)"
cfgSCRIPT_INSTALL = $(INSTALL_SCRIPT)
@ -148,11 +150,11 @@ sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
wwwdir = @wwwdir@
cfg_DATA = codepot.ini codepot.mysql codepot.a2ldap
cfg_DATA = codepot.ini codepot.mysql codepot.a2ldap
cfg_SCRIPTS = start-commit pre-commit post-commit pre-revprop-change post-revprop-change
perldir = $(CFGDIR)/perl/Codepot
perl_SCRIPTS = perl/Codepot/AccessHandler.pm perl/Codepot/AuthenHandler.pm
EXTRA_DIST = $(cfg_DATA) $(cfg_SCRIPTS) $(perl_SCRIPTS)
EXTRA_DIST = $(cfg_DATA) $(cfg_SCRIPTS) $(perl_SCRIPTS)
all: all-am
.SUFFIXES:
@ -189,6 +191,8 @@ codepot.ini: $(top_builddir)/config.status $(srcdir)/codepot.ini.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
codepot.a2ldap: $(top_builddir)/config.status $(srcdir)/codepot.a2ldap.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
codepot.httpd: $(top_builddir)/config.status $(srcdir)/codepot.httpd.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
start-commit: $(top_builddir)/config.status $(srcdir)/start-commit.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
post-commit: $(top_builddir)/config.status $(srcdir)/post-commit.in
@ -339,6 +343,8 @@ info-am:
install-data-am: install-cfgDATA install-cfgSCRIPTS \
install-perlSCRIPTS
@$(NORMAL_INSTALL)
$(MAKE) $(AM_MAKEFLAGS) install-data-hook
install-exec-am:
@ -366,18 +372,26 @@ ps-am:
uninstall-am: uninstall-cfgDATA uninstall-cfgSCRIPTS uninstall-info-am \
uninstall-perlSCRIPTS
@$(NORMAL_INSTALL)
$(MAKE) $(AM_MAKEFLAGS) uninstall-hook
.PHONY: all all-am check check-am clean clean-generic distclean \
distclean-generic distdir dvi dvi-am html html-am info info-am \
install install-am install-cfgDATA install-cfgSCRIPTS \
install-data install-data-am install-exec install-exec-am \
install-info install-info-am install-man install-perlSCRIPTS \
install-strip installcheck installcheck-am installdirs \
maintainer-clean maintainer-clean-generic mostlyclean \
mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \
uninstall-cfgDATA uninstall-cfgSCRIPTS uninstall-info-am \
uninstall-perlSCRIPTS
install-data install-data-am install-data-hook install-exec \
install-exec-am install-info install-info-am install-man \
install-perlSCRIPTS install-strip installcheck installcheck-am \
installdirs maintainer-clean maintainer-clean-generic \
mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
uninstall-am uninstall-cfgDATA uninstall-cfgSCRIPTS \
uninstall-hook uninstall-info-am uninstall-perlSCRIPTS
install-data-hook:
$(INSTALL) -D -m 0644 "@abs_top_builddir@/etc/codepot.httpd" "$(DESTDIR)@sysconfdir@/httpd/conf.d/codepot.conf"
uninstall-hook:
$(RM) -f "$(DESTDIR)@sysconfdir@/httpd/conf.d/codepot.conf"
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -0,0 +1,24 @@
#
# This file contains sample configuration to enable subversion
# webdav access. The actual configuration can be more complex
# than this file depending on your requirement.
#
<Location "/svn">
DAV svn
SVNParentPath "@DEPOTDIR@/svnrepo"
#SVNListParentPath on
PerlAccessHandler Codepot::AccessHandler
PerlAuthenHandler Codepot::AuthenHandler
PerlSetEnv CODEPOT_CONFIG_FILE /etc/codepot/codepot.ini
# Uncomment SSLRequireSSL below to disallow non-SSL access.
# Note that SSL must be enabled site-wide to use it.
# SSLRequireSSL
AuthType Basic
AuthName "@PACKAGE@"
require valid-user
</Location>

View File

@ -37,7 +37,7 @@ database_prefix = ""
;------------------------------------------------------------------------------
ldap_server_uri = "ldap://127.0.0.1:389"
ldap_server_protocol_version = "3"
ldap_auth_mode 1
ldap_auth_mode = 2
ldap_userid_format = "cn=${userid},ou=users,dc=codepot,dc=org"
ldap_password_format = "${password}"
ldap_admin_binddn = "cn=admin,dc=codepot,dc=org"
@ -74,7 +74,7 @@ https_compulsory = "no"
https_url = "https://${SERVER_NAME}${REQUEST_URI}"
;------------------------------------------------------------------------------
; API base URL
; API base URL (Deprecated as of v0.1.2. Not useful anymore)
;------------------------------------------------------------------------------
api_base_url = "http://127.0.0.1"
@ -93,8 +93,8 @@ svn_base_url = "${REQUEST_PROTOCOL}://${SERVER_NAME}:${SERVER_PORT}/svn"
;------------------------------------------------------------------------------
; Login model to use.
;------------------------------------------------------------------------------
login_model = "LdapLoginModel"
#login_model = "DbLoginModel"
#login_model = "LdapLoginModel"
login_model = "DbLoginModel"
;------------------------------------------------------------------------------
; Comma separated list of system administrator IDs