added the sample httpd/dav config file to the spec file
This commit is contained in:
parent
3e4b807fbb
commit
53455a7d0d
@ -22,6 +22,7 @@ INSTALLATION
|
|||||||
* Initialize the mysql database using /etc/codepot/codepot.mysql.
|
* Initialize the mysql database using /etc/codepot/codepot.mysql.
|
||||||
* Configure /etc/httpd/conf.d/codepot.conf
|
* Configure /etc/httpd/conf.d/codepot.conf
|
||||||
* Configure /etc/codepot/codepot.ini
|
* Configure /etc/codepot/codepot.ini
|
||||||
|
* Restart httpd
|
||||||
|
|
||||||
Here is how to install Codepot into the standard locations under Ubuntu Linux.
|
Here is how to install Codepot into the standard locations under Ubuntu Linux.
|
||||||
|
|
||||||
@ -59,12 +60,12 @@ INSTALLATION
|
|||||||
$ mkdir -p /var/lib/codepot/svnrepo /var/lib/codepot/files
|
$ mkdir -p /var/lib/codepot/svnrepo /var/lib/codepot/files
|
||||||
$ mkdir -p /var/cache/codepot /var/log/codepot
|
$ mkdir -p /var/cache/codepot /var/log/codepot
|
||||||
|
|
||||||
* Customize CFGDIR/codepot.ini based on CFGDIR/codepot.ini-dist.
|
* Customize CFGDIR/codepot.ini
|
||||||
|
|
||||||
* Initialize database using CFGDIR/codepot.mysql
|
* Initialize database using CFGDIR/codepot.mysql
|
||||||
|
|
||||||
* Configure apache web server ahthentication for subversion webdav access
|
* Configure apache web server authentication for subversion webdav access
|
||||||
using CFGDIR/codepot.a2ldap or CFGDIR/codepot.a2mysql
|
based on CFGDIR/codepot.httpd
|
||||||
|
|
||||||
* To enable SSL
|
* To enable SSL
|
||||||
$ sudo a2enmod ssl
|
$ sudo a2enmod ssl
|
||||||
|
@ -44,9 +44,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
/usr/sbin/codepot-user
|
/usr/sbin/codepot-user
|
||||||
|
|
||||||
%config(noreplace) /etc/codepot/codepot.ini
|
%config(noreplace) /etc/codepot/codepot.ini
|
||||||
%config(noreplace) /etc/httpd/conf.d/codepot.conf
|
|
||||||
/etc/codepot/codepot.mysql
|
/etc/codepot/codepot.mysql
|
||||||
/etc/codepot/codepot.a2ldap
|
/etc/codepot/codepot.a2ldap
|
||||||
|
/etc/codepot/codepot.httpd
|
||||||
/etc/codepot/start-commit
|
/etc/codepot/start-commit
|
||||||
/etc/codepot/pre-commit
|
/etc/codepot/pre-commit
|
||||||
/etc/codepot/post-commit
|
/etc/codepot/post-commit
|
||||||
@ -70,10 +70,17 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
[ $1 -eq 0 ] && {
|
||||||
|
# install the httpd configuration file for the first installation
|
||||||
|
install -D -m 0644 %{_sysconfdir}/codepot/codepot.httpd %{_sysconfdir}/httpd/conf.d/codepot.conf
|
||||||
|
}
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
[ $1 -eq 0 ] && {
|
||||||
|
rm -f %{_sysconfdir}/httpd/conf.d/codepot.conf
|
||||||
|
}
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
cfgdir=$(CFGDIR)
|
cfgdir=$(CFGDIR)
|
||||||
cfg_DATA = codepot.ini codepot.mysql codepot.a2ldap
|
cfg_DATA = codepot.ini codepot.mysql codepot.a2ldap codepot.httpd
|
||||||
cfg_SCRIPTS = start-commit pre-commit post-commit pre-revprop-change post-revprop-change
|
cfg_SCRIPTS = start-commit pre-commit post-commit pre-revprop-change post-revprop-change
|
||||||
|
|
||||||
perldir=$(CFGDIR)/perl/Codepot
|
perldir=$(CFGDIR)/perl/Codepot
|
||||||
@ -8,9 +8,3 @@ 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"
|
|
||||||
|
@ -150,7 +150,7 @@ sharedstatedir = @sharedstatedir@
|
|||||||
sysconfdir = @sysconfdir@
|
sysconfdir = @sysconfdir@
|
||||||
target_alias = @target_alias@
|
target_alias = @target_alias@
|
||||||
wwwdir = @wwwdir@
|
wwwdir = @wwwdir@
|
||||||
cfg_DATA = codepot.ini codepot.mysql codepot.a2ldap
|
cfg_DATA = codepot.ini codepot.mysql codepot.a2ldap codepot.httpd
|
||||||
cfg_SCRIPTS = start-commit pre-commit post-commit pre-revprop-change post-revprop-change
|
cfg_SCRIPTS = start-commit pre-commit post-commit pre-revprop-change post-revprop-change
|
||||||
perldir = $(CFGDIR)/perl/Codepot
|
perldir = $(CFGDIR)/perl/Codepot
|
||||||
perl_SCRIPTS = perl/Codepot/AccessHandler.pm perl/Codepot/AuthenHandler.pm
|
perl_SCRIPTS = perl/Codepot/AccessHandler.pm perl/Codepot/AuthenHandler.pm
|
||||||
@ -343,8 +343,6 @@ info-am:
|
|||||||
|
|
||||||
install-data-am: install-cfgDATA install-cfgSCRIPTS \
|
install-data-am: install-cfgDATA install-cfgSCRIPTS \
|
||||||
install-perlSCRIPTS
|
install-perlSCRIPTS
|
||||||
@$(NORMAL_INSTALL)
|
|
||||||
$(MAKE) $(AM_MAKEFLAGS) install-data-hook
|
|
||||||
|
|
||||||
install-exec-am:
|
install-exec-am:
|
||||||
|
|
||||||
@ -372,26 +370,18 @@ ps-am:
|
|||||||
|
|
||||||
uninstall-am: uninstall-cfgDATA uninstall-cfgSCRIPTS uninstall-info-am \
|
uninstall-am: uninstall-cfgDATA uninstall-cfgSCRIPTS uninstall-info-am \
|
||||||
uninstall-perlSCRIPTS
|
uninstall-perlSCRIPTS
|
||||||
@$(NORMAL_INSTALL)
|
|
||||||
$(MAKE) $(AM_MAKEFLAGS) uninstall-hook
|
|
||||||
|
|
||||||
.PHONY: all all-am check check-am clean clean-generic distclean \
|
.PHONY: all all-am check check-am clean clean-generic distclean \
|
||||||
distclean-generic distdir dvi dvi-am html html-am info info-am \
|
distclean-generic distdir dvi dvi-am html html-am info info-am \
|
||||||
install install-am install-cfgDATA install-cfgSCRIPTS \
|
install install-am install-cfgDATA install-cfgSCRIPTS \
|
||||||
install-data install-data-am install-data-hook install-exec \
|
install-data install-data-am install-exec install-exec-am \
|
||||||
install-exec-am install-info install-info-am install-man \
|
install-info install-info-am install-man install-perlSCRIPTS \
|
||||||
install-perlSCRIPTS install-strip installcheck installcheck-am \
|
install-strip installcheck installcheck-am installdirs \
|
||||||
installdirs maintainer-clean maintainer-clean-generic \
|
maintainer-clean maintainer-clean-generic mostlyclean \
|
||||||
mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
|
mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \
|
||||||
uninstall-am uninstall-cfgDATA uninstall-cfgSCRIPTS \
|
uninstall-cfgDATA uninstall-cfgSCRIPTS uninstall-info-am \
|
||||||
uninstall-hook uninstall-info-am uninstall-perlSCRIPTS
|
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.
|
# 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.
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
.NOEXPORT:
|
.NOEXPORT:
|
||||||
|
Loading…
Reference in New Issue
Block a user