--- /dev/null
+;
+; This is the main file that defines configuration of FusionForge (since 5.1)
+;
+; See the documentation in the wiki for more details :
+; https://fusionforge.org/plugins/mediawiki/wiki/fusionforge/index.php/Configuration#Configuration_files
+;
+
+[core]
+forge_name = FusionForge
+
+source_path = /usr/share/gforge/src
+binary_path = /usr/share/gforge/bin
+plugins_path = /usr/share/gforge/src/plugins
+data_path = /var/lib/gforge
+config_path = /etc/gforge
+log_path = /var/log/gforge
+
+
+; look at files in /etc/gforge/config.ini.d/ for more options
+extra_config_dirs = "$core/config_path/config.ini.d"
%{__cp} -a plugins/scmcvs/bin/cvssh.pl $RPM_BUILD_ROOT/bin/
# Apache configuration file
-%{__cp} -a etc/httpd.conf.d-fhs/* $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/httpd.conf.d/
+%{__cp} -a etc/httpd.conf.d-fhsrh/* $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/httpd.conf.d/
%{__cp} -a etc/config.ini.d/defaults.ini $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/config.ini.d/
-%{__cp} -a etc/config.ini-fhs $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/config.ini
-%{__cp} -a etc/httpd.conf-fhs $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/z-gforge.conf
+%{__cp} -a etc/config.ini-fhsrh $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/config.ini
+%{__cp} -a etc/httpd.conf-fhsrh $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/z-gforge.conf
#%{__cp} -a etc/gforge-httpd.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/z-gforge.conf
#%{__sed} -i -e 's|.*php_value[[:space:]]*include_path.*$|\tphp_value\tinclude_path ".:/usr/share/gforge/www/include:/usr/share/gforge:/etc/gforge:/usr/share/gforge/common:/usr/share/gforge/www:/usr/share/gforge/plugins"|' $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/z-gforge.conf
See ../README.httpd-conf-d-flavours for more details
+-- OlivierBerger
+EOF
+
+ # FHS like paths (for Redhat packages, etc.)
+ mkdir -p httpd.conf.d-fhsrh
+ for i in httpd.conf.d/*.inc httpd.conf.d/*.conf ; do
+ sed -e 's,{core/config_path},/etc/gforge,g' \
+ -e 's,{core/source_path},/usr/share/gforge/src,g' \
+ -e 's,{core/data_path},/var/lib/gforge,g' \
+ -e 's,{core/log_path},/var/log/gforge,g' \
+ -e 's,{core/chroot},/var/lib/gforge/chroot,g' \
+ -e 's,{core/custom_path},/etc/gforge/custom,g' \
+ -e 's,{core/url_prefix},/,g' \
+ -e 's,{core/groupdir_prefix},/var/lib/gforge/chroot/home/groups,g' \
+ -e 's,{mediawiki/src_path},/usr/share/mediawiki,g' \
+ -e 's,{scmsvn/repos_path},/var/lib/gforge/chroot/scmrepos/svn,g' \
+ $i > httpd.conf.d-fhsrh/$(basename $i)
+ done
+ message="FHS like paths"
+ cat > httpd.conf.d-fhsrh/README.generated <<EOF
+Attention developers : contents of this directory are *generated
+files* for $message.
+
+See ../README.httpd-conf-d-flavours for more details
+
-- OlivierBerger
EOF