# Initial work for 4.8 by JL Bond Consulting
# Reworked for 5.1 by Alain Peyrat <aljeux@free.fr>
#
-# TODO: Generate a random password to avoid sites with default pass.
-
+# Copyright (C) 2010 Alain Peyrat
+#
# Global Definitions
%define dbname gforge
%define httpdgroup apache
%define fforge_admin fforgeadmin
-%define fforge_passwd fforgeadmin
-%define GFORGE_DIR %{_datadir}/gforge
-%define GFORGE_CONF_DIR %{_sysconfdir}/gforge
-%define GFORGE_LANG_DIR %{_datadir}/locale
-%define GFORGE_VAR_LIB %{_var}/lib/gforge
+%define FORGE_DIR %{_datadir}/gforge
+%define FORGE_CONF_DIR %{_sysconfdir}/gforge
+%define FORGE_LANG_DIR %{_datadir}/locale
+%define FORGE_VAR_LIB %{_var}/lib/gforge
%define reloadhttpd() /etc/init.d/httpd httpd reload >/dev/null 2>&1
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Packager: Alain Peyrat <aljeux@free.fr>
-# requirements as derived from fusionforge-install-1-deps.php script
Requires: httpd, mod_dav_svn, mod_ssl, php, php-pgsql, php-gd, php-mbstring, mailman
Requires: postgresql, postgresql-libs, postgresql-server, postgresql-contrib
-Requires: postfix, openssh, inetd, which, liberation-fonts
+Requires: postfix, openssh, inetd, which
Requires: /bin/sh, /bin/bash
Requires: perl, perl-DBI, perl-HTML-Parser, perl-Text-Autoformat, perl-Mail-Sendmail, perl-Sort-Versions
Requires: cronolog
-Requires: php-jpgraph php-gd
-#update sys_path_to_jpgraph in gforge.conf if you remove this line
-#Requires: /var/www/jpgraph/jpgraph.php
+Requires: php-jpgraph
+Requires: /var/www/jpgraph-1.19/jpgraph.php
#Requires: libnss-pgsql >= 1.4
-Requires: mailman
Requires: gettext
-Requires: htmlpurifier >= 4.0.0
+Requires: php-htmlpurifier >= 4.0.0
Requires: sed
Requires: coreutils
Requires: /usr/bin/newaliases
+Requires: php-pear-HTTP_WebDAV_Server
+Requires: php-pecl-zip
# BuildRequires: sed, perl
web/FTP hosting, release management, etc. All these services are
integrated into one web site and managed through a web interface.
-%package aselectextauth
+%package plugin-aselectextauth
Summary: A-select external authentication for FusionForge
Group: Development/Tools
Requires: %{name} >= %{version}, php, postgresql
-%description aselectextauth
-A system for authenticating users in fusionforge. A-Select is a framework
+%description plugin-aselectextauth
+A system plugin for authenticating users in fusionforge. A-Select is a framework
where users can be authenticated by several means with Authentication
Service Providers.
which have indexed it. You can define search engines you want to use in
the configuration file.
+%package plugin-forumml
+Summary: Mailman to forums plugin for FusionForge
+Group: Development/Tools
+Requires: %{name} >= %{version}, php
+%description plugin-forumml
+ForumML integes mailing lists as forums in FusionForge
+
%package plugin-fckeditor
Summary: FCKEditor plugin for FusionForge
Group: Development/Tools
%description plugin-gravatar
This plugin adds faces images to FusionForge users using the gravatar service.
+%package plugin-hudson
+Summary: Hudson continous integration plugin for FusionForge
+Group: Development/Tools
+Requires: %{name} >= %{version}, php
+%description plugin-hudson
+This plugin adds hudson integration to FusionForge.
+
%package plugin-ldapextauth
Summary: external LDAP authentication for FusionForge plugin
Group: Development/Tools
-Requires: %{name} >= %{version}, php
+Requires: %{name} >= %{version}, php, php-ldap
%description plugin-ldapextauth
This plugin provides LDAP authentication capability for FusionForge.
%description plugin-online_help
This is a online_help plugin within FusionForge.
+%package plugin-oslc
+Summary: OSLC plugin for FusionForge
+Group: Development/Tools
+Requires: %{name} >= %{version}, php, php-ZendFramework > 1.10
+%description plugin-oslc
+OSLC-CM compatible plugin for FusionForge tracker system.
+OSLC-CM is a standard specification for APIs in Change Management
+applications. It is based on Web technologies such as REST, RDF, or AJAX.
+This package provides an OSLC-CM V2 compatible plugin for FusionForge
+tracker system.
+
%package plugin-projects_hierarchy
Summary: projects_hierarchy plugin for FusionForge
Group: Development/Tools
This is a plugin to integrate DARCS version control system with FusionForge
%package plugin-scmgit
-Summary: Bazaar version control plugin for FusionForge
+Summary: Git version control plugin for FusionForge
Group: Development/Tools
-Requires: %{name} >= %{version}, php, git
+Requires: %{name} >= %{version}, php, git, gitweb
%description plugin-scmgit
-This is a plugin to integrate Bazaar version control system with FusionForge
+This is a plugin to integrate Git version control system with FusionForge
%package plugin-scmhg
Summary: Mercurial (hg) version control plugin for FusionForge
%description plugin-globalsearch
globalsearch plugin for FusionForge.
+%package plugin-mailman
+Summary: Mailman plugin for FusionForge
+Group: Development/Tools
+Requires: %{name} >= %{version}, php
+%description plugin-mailman
+Mailman plugin for FusionForge.
+
%package plugin-mantisbt
Summary: mantisbt plugin for FusionForge
Group: Development/Tools
%{__install} -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
%{__install} -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/cron.d
%{__install} -m 755 -d $RPM_BUILD_ROOT/bin
-%{__install} -m 755 -d $RPM_BUILD_ROOT%{GFORGE_DIR}
-%{__install} -m 755 -d $RPM_BUILD_ROOT%{GFORGE_DIR}/lib
-%{__install} -m 755 -d $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}
-%{__install} -m 755 -d $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/httpd.d
-%{__install} -m 755 -d $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/httpd.conf.d
-%{__install} -m 755 -d $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/config.ini.d
-%{__install} -m 755 -d $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/plugins
-%{__install} -m 755 -d $RPM_BUILD_ROOT%{GFORGE_LANG_DIR}
-%{__install} -m 755 -d $RPM_BUILD_ROOT%{GFORGE_VAR_LIB}
-%{__install} -m 755 -d $RPM_BUILD_ROOT%{GFORGE_VAR_LIB}/upload
-%{__install} -m 755 -d $RPM_BUILD_ROOT%{GFORGE_VAR_LIB}/scmtarballs
-%{__install} -m 755 -d $RPM_BUILD_ROOT%{GFORGE_VAR_LIB}/scmsnapshots
-%{__install} -m 755 -d $RPM_BUILD_ROOT%{GFORGE_VAR_LIB}/homedirs
-%{__install} -m 755 -d $RPM_BUILD_ROOT%{GFORGE_VAR_LIB}/dumps
-%{__install} -m 755 -d $RPM_BUILD_ROOT%{GFORGE_VAR_LIB}/chroot/scmrepos/svn
-%{__install} -m 755 -d $RPM_BUILD_ROOT%{GFORGE_VAR_LIB}/chroot/scmrepos/cvs
+%{__install} -m 755 -d $RPM_BUILD_ROOT%{FORGE_DIR}
+%{__install} -m 755 -d $RPM_BUILD_ROOT%{FORGE_DIR}/lib
+%{__install} -m 755 -d $RPM_BUILD_ROOT%{FORGE_CONF_DIR}
+%{__install} -m 755 -d $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/httpd.d
+%{__install} -m 755 -d $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/httpd.conf.d
+%{__install} -m 755 -d $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/config.ini.d
+%{__install} -m 755 -d $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/plugins
+%{__install} -m 755 -d $RPM_BUILD_ROOT%{FORGE_LANG_DIR}
+%{__install} -m 755 -d $RPM_BUILD_ROOT%{FORGE_VAR_LIB}
+%{__install} -m 755 -d $RPM_BUILD_ROOT%{FORGE_VAR_LIB}/upload
+%{__install} -m 755 -d $RPM_BUILD_ROOT%{FORGE_VAR_LIB}/scmtarballs
+%{__install} -m 755 -d $RPM_BUILD_ROOT%{FORGE_VAR_LIB}/scmsnapshots
+%{__install} -m 755 -d $RPM_BUILD_ROOT%{FORGE_VAR_LIB}/homedirs
+%{__install} -m 755 -d $RPM_BUILD_ROOT%{FORGE_VAR_LIB}/dumps
+%{__install} -m 755 -d $RPM_BUILD_ROOT%{FORGE_VAR_LIB}/chroot/scmrepos/svn
+%{__install} -m 755 -d $RPM_BUILD_ROOT%{FORGE_VAR_LIB}/chroot/scmrepos/cvs
%{__install} -m 755 -d $RPM_BUILD_ROOT/home/groups
# mock mediawiki directory because we symlink GForge skin to Monobook
%{__install} -m 755 -d $RPM_BUILD_ROOT/usr/share/mediawiki/skins
/usr/bin/find . -type f | xargs grep -l ${1} | xargs %{__sed} -i -e "s+${1}+${2}+g"
}
-# we need to fix up the fusionforge-install-3-db.php script to ref %{GFORGE_DIR}
-search_and_replace "/opt/gforge" "%{GFORGE_DIR}"
+# we need to fix up the fusionforge-install-3-db.php script to ref %{FORGE_DIR}
+search_and_replace "/opt/gforge" "%{FORGE_DIR}"
# installing gforge
-%{__cp} -a * $RPM_BUILD_ROOT/%{GFORGE_DIR}/
+%{__cp} -a * $RPM_BUILD_ROOT/%{FORGE_DIR}/
# create project vhost space symlink
-%{__ln_s} /home/groups $RPM_BUILD_ROOT/%{GFORGE_VAR_LIB}/homedirs/groups
+%{__ln_s} /home/groups $RPM_BUILD_ROOT/%{FORGE_VAR_LIB}/homedirs/groups
# install restricted shell for cvs accounts
%{__cp} -a plugins/scmcvs/bin/cvssh.pl $RPM_BUILD_ROOT/bin/
# Fix configuration files entries (various sys_* variables)
-%{__cp} -a etc/local.inc.example $RPM_BUILD_ROOT/%{GFORGE_CONF_DIR}/local.inc
-%{__sed} -i -e "s!/path/to/gforge!%{GFORGE_DIR}!g" $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/local.inc
-%{__sed} -i -e "s/\$sys_dbname=.*/\$sys_dbname='%{dbname}';/g" $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/local.inc
-%{__sed} -i -e "s/\$sys_dbuser=.*/\$sys_dbuser='%{dbuser}';/g" $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/local.inc
-%{__sed} -i -e "s/\$sys_apache_user=.*/\$sys_apache_user='%{httpduser}';/g" $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/local.inc
-%{__sed} -i -e "s/\$sys_apache_group=.*/\$sys_apache_group='%{httpdgroup}';/g" $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/local.inc
-%{__sed} -i -e "s|\$sys_plugins_path=.*|\$sys_plugins_path=\"%{GFORGE_DIR}/plugins\";|g" $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/local.inc
-%{__sed} -i -e "s|\$sys_upload_dir=.*|\$sys_upload_dir=\"\$sys_var_path/upload\";|g" $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/local.inc
-%{__sed} -i -e "s|\$sys_urlroot=.*|\$sys_urlroot=\"%{GFORGE_DIR}/www\";|g" $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/local.inc
+#%{__cp} -a etc/local.inc.example $RPM_BUILD_ROOT/%{FORGE_CONF_DIR}/local.inc
+#%{__sed} -i -e "s!/path/to/gforge!%{FORGE_DIR}!g" $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/local.inc
+#%{__sed} -i -e "s!/path/to/jpgraph!/var/www/jpgraph-1.19!g" $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/local.inc
+#%{__sed} -i -e "s/\$sys_dbname=.*/\$sys_dbname='%{dbname}';/g" $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/local.inc
+#%{__sed} -i -e "s/\$sys_dbuser=.*/\$sys_dbuser='%{dbuser}';/g" $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/local.inc
+#%{__sed} -i -e "s/\$sys_apache_user=.*/\$sys_apache_user='%{httpduser}';/g" $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/local.inc
+#%{__sed} -i -e "s/\$sys_apache_group=.*/\$sys_apache_group='%{httpdgroup}';/g" $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/local.inc
+#%{__sed} -i -e "s|\$sys_plugins_path=.*|\$sys_plugins_path=\"%{FORGE_DIR}/plugins\";|g" $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/local.inc
+#%{__sed} -i -e "s|\$sys_upload_dir=.*|\$sys_upload_dir=\"\$sys_var_path/upload\";|g" $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/local.inc
+#%{__sed} -i -e "s|\$sys_urlroot=.*|\$sys_urlroot=\"%{FORGE_DIR}/www\";|g" $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/local.inc
# Replace sys_localinc, sys_gfdbname, sys_gfdbuser
-%{__cp} -a etc/httpd.secrets.example $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/httpd.secrets
-%{__sed} -i -e "s|sys_localinc.*$|sys_localinc %{GFORGE_CONF_DIR}/local.inc|g" $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/httpd.secrets
-%{__sed} -i -e "s|sys_gfdbname.*$|sys_gfdbname %{dbname}|g" $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/httpd.secrets
-%{__sed} -i -e "s|sys_gfdbuser.*$|sys_gfdbname %{dbuser}|g" $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/httpd.secrets
+#%{__cp} -a etc/httpd.secrets.example $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/httpd.secrets
+#%{__sed} -i -e "s|sys_localinc.*$|sys_localinc %{FORGE_CONF_DIR}/local.inc|g" $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/httpd.secrets
+#%{__sed} -i -e "s|sys_gfdbname.*$|sys_gfdbname %{dbname}|g" $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/httpd.secrets
+#%{__sed} -i -e "s|sys_gfdbuser.*$|sys_gfdbname %{dbuser}|g" $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/httpd.secrets
# Apache configuration file
-%{__cp} -a etc/gforge-httpd.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/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/gforge.conf
+#%{__cp} -a etc/gforge-httpd.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/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/gforge.conf
# install fusionforge crontab
%{__install} -m 644 packaging/cron.d/cron.fusionforge $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/%{name}
-%{__install} -m 644 deb-specific/sqlhelper.pm $RPM_BUILD_ROOT%{GFORGE_DIR}/lib/sqlhelper.pm
+%{__install} -m 644 deb-specific/sqlhelper.pm $RPM_BUILD_ROOT%{FORGE_DIR}/lib/sqlhelper.pm
# Install locale files in Redhat standard location
-%{__cp} -a locales/* $RPM_BUILD_ROOT/%{GFORGE_LANG_DIR}/
-
-# create symlink for jpgraph
-%{__ln_s} /usr/share/jpgraph $RPM_BUILD_ROOT%{GFORGE_DIR}/jpgraph
+%{__cp} -a locales/* $RPM_BUILD_ROOT/%{FORGE_LANG_DIR}/
-%{__rm} -f $RPM_BUILD_ROOT%{GFORGE_DIR}/utils/fusionforge-shell-postgresql.spec
+%{__rm} -f $RPM_BUILD_ROOT%{FORGE_DIR}/utils/fusionforge-shell-postgresql.spec
-%{__rm} -f $RPM_BUILD_ROOT%{GFORGE_DIR}/COPYING.php
-%{__rm} -fr $RPM_BUILD_ROOT/%{GFORGE_DIR}/packaging
-%{__rm} -fr $RPM_BUILD_ROOT/%{GFORGE_DIR}/deb-specific
-%{__rm} -fr $RPM_BUILD_ROOT/%{GFORGE_DIR}/rpm-specific
-%{__rm} -fr $RPM_BUILD_ROOT/%{GFORGE_DIR}/plugins/*/packaging
-%{__rm} -fr $RPM_BUILD_ROOT/%{GFORGE_DIR}/plugins/*/*.spec
+%{__rm} -f $RPM_BUILD_ROOT%{FORGE_DIR}/COPYING.php
+%{__rm} -fr $RPM_BUILD_ROOT/%{FORGE_DIR}/packaging
+%{__rm} -fr $RPM_BUILD_ROOT/%{FORGE_DIR}/deb-specific
+%{__rm} -fr $RPM_BUILD_ROOT/%{FORGE_DIR}/rpm-specific
+%{__rm} -fr $RPM_BUILD_ROOT/%{FORGE_DIR}/plugins/*/packaging
+%{__rm} -fr $RPM_BUILD_ROOT/%{FORGE_DIR}/plugins/*/*.spec
### Plugin setup ###
-%{__cp} $RPM_BUILD_ROOT%{GFORGE_DIR}/plugins/*/etc/*.ini $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/config.ini.d/
-%{__cp} $RPM_BUILD_ROOT%{GFORGE_DIR}/plugins/*/etc/cron.d/* $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/
-%{__cp} -rp $RPM_BUILD_ROOT%{GFORGE_DIR}/plugins/*/etc/plugins/* $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/plugins/
-%{__rm} -f $RPM_BUILD_ROOT%{GFORGE_DIR}/plugins/README
+%{__cp} $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/*/etc/*.ini $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/config.ini.d/
+%{__cp} $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/*/etc/cron.d/* $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/
+%{__cp} $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/*/etc/httpd.d/* $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/httpd.d/
+%{__cp} -rp $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/*/etc/plugins/* $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/plugins/
+%{__rm} -f $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/README
# plugin: aselectextauth
# plugin: cvstracker
# delete stuff that is clearly outdated/obsolete so we don't package this and confuse others
-%{__rm} -f $RPM_BUILD_ROOT%{GFORGE_DIR}/plugins/cvstracker/httpd.conf
-%{__rm} -f $RPM_BUILD_ROOT%{GFORGE_DIR}/plugins/cvstracker/Makefile
-%{__rm} -rf $RPM_BUILD_ROOT%{GFORGE_DIR}/plugins/cvstracker/rpm-specific
+%{__rm} -f $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/cvstracker/httpd.conf
+%{__rm} -f $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/cvstracker/Makefile
+%{__rm} -rf $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/cvstracker/rpm-specific
# plugin: externalsearch
# plugin: fckeditor
+# plugin: forumml
+%{__ln_s} ../../plugins/forumml/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/forumml
+
+# plugin: hudson
+%{__ln_s} ../../plugins/hudson/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/hudson
+
# plugin: ldapextauth
-%{__rm} -rf $RPM_BUILD_ROOT%{GFORGE_DIR}/plugins/ldapextauth/rpm-specific
+%{__rm} -rf $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/ldapextauth/rpm-specific
# plugin: mantis
# plugin: mediawiki
# create symlink for apache configuration for mediawiki plugin
## first, delete the php_admin_value include_path
-%{__sed} -i -e "/^.*php_admin_value[[:space:]]*include_path.*/d" $RPM_BUILD_ROOT%{GFORGE_DIR}/plugins/mediawiki/etc/httpd.d/61plugin-mediawiki
-%{__ln_s} %{GFORGE_DIR}/plugins/mediawiki/etc/httpd.d/61plugin-mediawiki $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/httpd.d/03mediawiki.conf
+%{__sed} -i -e "/^.*php_admin_value[[:space:]]*include_path.*/d" $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/mediawiki/etc/httpd.d/61plugin-mediawiki
+%{__ln_s} %{FORGE_DIR}/plugins/mediawiki/etc/httpd.d/61plugin-mediawiki $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/httpd.d/03mediawiki.conf
# this is pre-activated, so create the config symlink
-#%{__ln_s} %{GFORGE_DIR}/plugins/mediawiki/etc/plugins/mediawiki $RPM_BUILD_ROOT%{GFORGE_CONF_DIR}/plugins/mediawiki
+#%{__ln_s} %{FORGE_DIR}/plugins/mediawiki/etc/plugins/mediawiki $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/plugins/mediawiki
# create symlinks to use MonoBook as the GForge skin
%{__ln_s} monobook $RPM_BUILD_ROOT/usr/share/mediawiki/skins/gforge
%{__ln_s} MonoBook.deps.php $RPM_BUILD_ROOT/usr/share/mediawiki/skins/GForge.deps.php
%{__ln_s} MonoBook.php $RPM_BUILD_ROOT/usr/share/mediawiki/skins/GForge.php
# sort out the GForge skin files and remove obsolete code
-%{__rm} -rf $RPM_BUILD_ROOT%{GFORGE_DIR}/plugins/mediawiki/mediawiki-skin
-%{__rm} -rf $RPM_BUILD_ROOT%{GFORGE_DIR}/plugins/mediawiki/usr/share/gforge
-%{__rm} -rf $RPM_BUILD_ROOT%{GFORGE_DIR}/plugins/mediawiki/usr/share/mediawiki/skins
+%{__rm} -rf $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/mediawiki/mediawiki-skin
+%{__rm} -rf $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/mediawiki/usr/share/gforge
+%{__rm} -rf $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/mediawiki/usr/share/mediawiki/skins
# insert our own LocalSettings.php
-#%{__cp} -f %{SOURCE2} $RPM_BUILD_ROOT%{GFORGE_DIR}/plugins/mediawiki/usr/share/mediawiki/LocalSettings.php
+#%{__cp} -f %{SOURCE2} $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/mediawiki/usr/share/mediawiki/LocalSettings.php
# insert our own README file
-%{__cp} -f %{SOURCE1} $RPM_BUILD_ROOT%{GFORGE_DIR}/plugins/mediawiki/README.jlbond
+%{__cp} -f %{SOURCE1} $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/mediawiki/README.jlbond
# plugin: online_help
# plugin: scmccase
# plugin: scmcvs
-%{__ln_s} ../../plugins/scmcvs $RPM_BUILD_ROOT%{GFORGE_DIR}/www/plugins/scmcvs
+%{__ln_s} ../../plugins/scmcvs $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/scmcvs
%{__install} -m 644 plugins/scmcvs/cron.d/%{name}-plugin-scmcvs $RPM_BUILD_ROOT%{_sysconfdir}/cron.d
# plugin: scmdarcs
# plugin: scmsvn
# this is pre-activated, so create the config symlink
-%{__ln_s} ../../plugins/scmsvn $RPM_BUILD_ROOT%{GFORGE_DIR}/www/plugins/scmsvn
+%{__ln_s} ../../plugins/scmsvn/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/scmsvn
# plugin: scmgit
-%{__ln_s} ../../plugins/scmgit $RPM_BUILD_ROOT%{GFORGE_DIR}/www/plugins/scmgit
+%{__ln_s} ../../plugins/scmgit/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/scmgit
+%{__install} -m 755 -d $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/scmgit/www/cgi-bin
+%{__ln_s} /usr/share/gitweb/gitweb.cgi $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/scmgit/www/cgi-bin/gitweb.cgi
+%{__ln_s} /usr/share/gitweb/static/gitweb.css $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/scmgit/www/gitweb.css
+%{__ln_s} /usr/share/gitweb/static/gitweb.js $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/scmgit/www/gitweb.js
# plugin: scmhg
%{__install} -m 644 plugins/svntracker/rpm-specific/cron.d/gforge-plugin-svntracker $RPM_BUILD_ROOT%{_sysconfdir}/cron.d
# plugin: blocks
-%{__ln_s} ../../plugins/blocks/www/ $RPM_BUILD_ROOT%{GFORGE_DIR}/www/plugins/blocks
+%{__ln_s} ../../plugins/blocks/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/blocks
# plugin: extratabs
-%{__ln_s} ../../plugins/extratabs/www/ $RPM_BUILD_ROOT%{GFORGE_DIR}/www/plugins/extratabs
+%{__ln_s} ../../plugins/extratabs/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/extratabs
# plugin: wiki
-%{__ln_s} ../plugins/wiki/www/ $RPM_BUILD_ROOT%{GFORGE_DIR}/www/wiki
+%{__ln_s} ../plugins/wiki/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/wiki
+
+# plugin: oslc
+%{__ln_s} ../../plugins/oslc/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/oslc
# plugin: projectlabels
-%{__ln_s} ../../plugins/projectlabels/www/ $RPM_BUILD_ROOT%{GFORGE_DIR}/www/plugins/projectlabels
+%{__ln_s} ../../plugins/projectlabels/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/projectlabels
# plugin: contribtracker
-%{__ln_s} ../../plugins/contribtracker/www/ $RPM_BUILD_ROOT%{GFORGE_DIR}/www/plugins/contribtracker
+%{__ln_s} ../../plugins/contribtracker/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/contribtracker
# plugin: globalsearch
-%{__ln_s} ../../plugins/globalsearch/www/ $RPM_BUILD_ROOT%{GFORGE_DIR}/www/plugins/globalsearch
+%{__ln_s} ../../plugins/globalsearch/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/globalsearch
+
+# plugin: mailman
+%{__ln_s} ../../plugins/mailman/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/mailman
# plugin: mantisbt
-%{__ln_s} ../../plugins/mantisbt/www/ $RPM_BUILD_ROOT%{GFORGE_DIR}/www/plugins/mantisbt
+%{__ln_s} ../../plugins/mantisbt/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/mantisbt
### END OF PLUGIN SETUP ###
if [ `/usr/bin/getent passwd | /bin/cut -d: -f1 | /bin/grep -c %{gfuser}` -eq 0 ] ; then
echo "Did not find existing fusionforge user. Adding fusionforge group and user..." >>/var/log/%{name}-install.log 2>&1
/usr/sbin/groupadd -r %{gfgroup}
- /usr/sbin/useradd -r -g %{gfgroup} -d %{GFORGE_DIR} -s /bin/bash -c "FusionForge User" %{gfuser}
+ /usr/sbin/useradd -r -g %{gfgroup} -d %{FORGE_DIR} -s /bin/bash -c "FusionForge User" %{gfuser}
fi
fi
FFORGE_DB=%{dbname}
FFORGE_USER=%{dbuser}
FFORGE_ADMIN_USER=%{fforge_admin}
- FFORGE_ADMIN_PASSWORD=%{fforge_passwd}
+ FFORGE_ADMIN_PASSWORD=$(/bin/dd if=/dev/urandom bs=32 count=1 2>/dev/null | /usr/bin/sha1sum | cut -c1-8)
export FFORGE_DB FFORGE_USER FFORGE_ADMIN_USER FFORGE_ADMIN_PASSWORD
- /usr/bin/php %{GFORGE_DIR}/fusionforge-install-3-db.php >>/var/log/%{name}-install.log 2>&1
+ /usr/bin/php %{FORGE_DIR}/fusionforge-install-3-db.php >>/var/log/%{name}-install.log 2>&1
else
echo "Database %{dbname} already exists. Will not proceed with database setup." >>/var/log/%{name}-install.log 2>&1
- echo "Please see %{GFORGE_DIR}/fusionforge-install-3-db.php and run it manually" >>/var/log/%{name}-install.log 2>&1
+ echo "Please see %{FORGE_DIR}/fusionforge-install-3-db.php and run it manually" >>/var/log/%{name}-install.log 2>&1
echo "if deemed necessary." >>/var/log/%{name}-install.log 2>&1
fi
- /usr/bin/php %{GFORGE_DIR}/db/upgrade-db.php >>/var/log/%{name}-install.log 2>&1
- /usr/bin/php %{GFORGE_DIR}/fusionforge-install-4-config.php >>/var/log/%{name}-install.log 2>&1
+ /usr/bin/php %{FORGE_DIR}/db/upgrade-db.php >>/var/log/%{name}-install.log 2>&1
HOSTNAME=`hostname -f`
- %{__sed} -i -e "s!gforge.company.com!$HOSTNAME!g" %{GFORGE_CONF_DIR}/local.inc
- %{__sed} -i -e "s!gforge.company.com!$HOSTNAME!g" /etc/httpd/conf.d/gforge.conf
+ #%{__sed} -i -e "s!gforge.company.com!$HOSTNAME!g" %{FORGE_CONF_DIR}/local.inc
+ #%{__sed} -i -e "s!gforge.company.com!$HOSTNAME!g" /etc/httpd/conf.d/gforge.conf
+
+# ====================
+ # Installation from scratch, let's generate initial config files
+ if [ ! -e %{FORGE_CONF_DIR}/config.ini.d ] ; then
+ mkdir -p %{FORGE_CONF_DIR}/config.ini.d
+ fi
+ if [ ! -e %{FORGE_CONF_DIR}/config.ini.d/rpm-install.ini ] ; then
+ cat > %{FORGE_CONF_DIR}/config.ini.d/rpm-install.ini <<EOF
+; This file was generated by the RPM installation system.
+; You can edit the values here or move them to other files.
+
+[core]
+forge_name=FusionForge
+web_host=$HOSTNAME
+EOF
+ fi
+ if [ ! -e %{FORGE_CONF_DIR}/config.ini.d/rpm-install-secrets.ini ] ; then
+ t=$(mktemp %{FORGE_CONF_DIR}/config.ini.d/rpm-install-secrets.ini.XXXXXX)
+ if [ "$pw" = "" ] ; then
+ if [ -c /dev/urandom ]; then # ...using /dev/urandom when possible
+ pw=$(dd if=/dev/urandom count=1 bs=16 2> /dev/null | md5sum | cut -c-32)
+ else # ...or something else if need be.
+ pw=$(date +"%s:%N" | md5sum | cut -c-32)
+ fi
+ fi
+
+ cat > $t <<EOF
+; This file was generated by the RPM installation system.
+; You can edit the values here or move them to other files.
+; These values should not go into world-readable files!
+
+[core]
+database_host=""
+database_name=%{dbname}
+database_user=%{dbuser}
+database_port=5432
+#database_password=$pw
+EOF
+ mv $t %{FORGE_CONF_DIR}/config.ini.d/rpm-install-secrets.ini
+ fi
+# ====================
+
+ /usr/bin/php %{FORGE_DIR}/fusionforge-install-4-config.php >>/var/log/%{name}-install.log 2>&1
/etc/init.d/httpd restart >/dev/null 2>&1
# generate random hash for session_key
HASH=$(/bin/dd if=/dev/urandom bs=32 count=1 2>/dev/null | /usr/bin/sha1sum | cut -c1-40)
- %{__sed} -i -e "s/sys_session_key = 'foobar'/sys_session_key = '$HASH'/g" %{GFORGE_CONF_DIR}/local.inc
+ #%{__sed} -i -e "s/sys_session_key = 'foobar'/sys_session_key = '$HASH'/g" %{FORGE_CONF_DIR}/local.inc
# add noreply mail alias
echo "noreply: /dev/null" >> /etc/aliases
/usr/bin/newaliases >/dev/null 2>&1
- # display message about default admin account
- echo ""
- echo "You can now connect to your FusionForge installation using:"
- echo ""
- echo " http://$HOSTNAME/"
- echo ""
- echo "The default fusionforge administrator account and password is:"
- echo ""
- echo "Account Name = %{fforge_admin}"
- echo "Password = %{fforge_passwd}"
- #echo "Please change it to something appropriate upon initial login."
- # give user a few seconds to read the message
- sleep 10
+ if [ $ret -ne 0 ] ; then
+ # display message about default admin account
+ echo ""
+ echo "You can now connect to your FusionForge installation using:"
+ echo ""
+ echo " http://$HOSTNAME/"
+ echo ""
+ echo "The default fusionforge administrator account and password is:"
+ echo ""
+ echo "Account Name = %{fforge_admin}"
+ echo "Password = $FFORGE_ADMIN_PASSWORD"
+ #echo "Please change it to something appropriate upon initial login."
+ # give user a few seconds to read the message
+ sleep 10
+ fi
else
- /usr/bin/php %{GFORGE_DIR}/db/upgrade-db.php >>/var/log/%{name}-upgrade.log 2>&1
+ /usr/bin/php %{FORGE_DIR}/db/upgrade-db.php >>/var/log/%{name}-upgrade.log 2>&1
fi
%preun
fi
fi
-%post aselectextauth
-/usr/bin/psql -U %{dbuser} %{dbname} -f %{GFORGE_DIR}/plugins/aselectextauth/db/install_aselectextauth.psql
+%post plugin-aselectextauth
+/usr/bin/psql -U %{dbuser} %{dbname} -f %{FORGE_DIR}/plugins/aselectextauth/db/install_aselectextauth.psql
-%preun aselectextauth
-/usr/bin/psql -U %{dbuser} %{dbname} -f %{GFORGE_DIR}/plugins/aselectextauth/db/uninstall_aselectextauth.psql
+%preun plugin-aselectextauth
+/usr/bin/psql -U %{dbuser} %{dbname} -f %{FORGE_DIR}/plugins/aselectextauth/db/uninstall_aselectextauth.psql
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
%defattr(-, root, root)
%doc AUTHORS* CHANGES COPYING INSTALL* NEWS README*
%doc docs/*
-%attr(0660, %{httpduser}, gforge) %config(noreplace) %{GFORGE_CONF_DIR}/local.inc
-%attr(0640, %{httpduser}, %{httpdgroup}) %config(noreplace) %{_sysconfdir}/httpd/conf.d/gforge.conf
+#%attr(0660, %{httpduser}, gforge) %config(noreplace) %{FORGE_CONF_DIR}/local.inc
+#%attr(0640, %{httpduser}, %{httpdgroup}) %config(noreplace) %{_sysconfdir}/httpd/conf.d/gforge.conf
%attr(0644, root, root) %{_sysconfdir}/cron.d/%{name}
-%attr(0775, %{httpduser}, %{httpdgroup}) %dir %{GFORGE_VAR_LIB}/upload
-%attr(755, root, %{httpdgroup}) %dir %{GFORGE_DIR}
-# Files under %{GFORGE_DIR}
-%{GFORGE_DIR}/AUTHORS*
-%{GFORGE_DIR}/CHANGES
-%{GFORGE_DIR}/COPYING
-%{GFORGE_DIR}/INSTALL*
-%{GFORGE_DIR}/NEWS
-%{GFORGE_DIR}/README*
-%{GFORGE_DIR}/fusionforge.spec
-%{GFORGE_DIR}/fusionforge-install*
-%{GFORGE_DIR}/gforge-restricted.sh
-%{GFORGE_DIR}/install.sh
-%{GFORGE_DIR}/install-common.inc
-%{GFORGE_DIR}/jpgraph
-# Directories under %{GFORGE_DIR}
-%{GFORGE_DIR}/backend
-%{GFORGE_DIR}/common
-%{GFORGE_DIR}/contrib
-%{GFORGE_DIR}/cronjobs
-%{GFORGE_DIR}/db
-%{GFORGE_DIR}/docs
-%{GFORGE_DIR}/etc
-%{GFORGE_DIR}/image-sources
-%{GFORGE_DIR}/lib
-%{GFORGE_DIR}/locales
-%{GFORGE_DIR}/monitor
-%{GFORGE_DIR}/translations
-%{GFORGE_DIR}/utils
-%{GFORGE_DIR}/setup
-%dir %{GFORGE_DIR}/www
-# files under %{GFORGE_DIR}/www
-%{GFORGE_DIR}/www/*.php
-%{GFORGE_DIR}/www/users
-%{GFORGE_DIR}/www/favicon.ico
-%{GFORGE_DIR}/www/projects
-# directories under %{GFORGE_DIR}/www
-%{GFORGE_DIR}/www/account
-%{GFORGE_DIR}/www/activity
-%{GFORGE_DIR}/www/admin
-%{GFORGE_DIR}/www/developer
-%{GFORGE_DIR}/www/docman
-%{GFORGE_DIR}/www/export
-%{GFORGE_DIR}/www/forum
-%{GFORGE_DIR}/www/frs
-%{GFORGE_DIR}/www/images
-%{GFORGE_DIR}/www/include
-%{GFORGE_DIR}/www/jscook
-%{GFORGE_DIR}/www/js
-%{GFORGE_DIR}/www/mail
-%{GFORGE_DIR}/www/my
-%{GFORGE_DIR}/www/new
-%{GFORGE_DIR}/www/news
-%{GFORGE_DIR}/www/people
-%{GFORGE_DIR}/www/pm
-%{GFORGE_DIR}/www/project
-%{GFORGE_DIR}/www/register
-%{GFORGE_DIR}/www/reporting
-%{GFORGE_DIR}/www/scm
-%{GFORGE_DIR}/www/scripts
-%{GFORGE_DIR}/www/search
-%{GFORGE_DIR}/www/snippet
-%{GFORGE_DIR}/www/soap
-%{GFORGE_DIR}/www/softwaremap
-%{GFORGE_DIR}/www/squal
-%{GFORGE_DIR}/www/stats
-%{GFORGE_DIR}/www/survey
-%{GFORGE_DIR}/www/tabber
-%{GFORGE_DIR}/www/themes
-%{GFORGE_DIR}/www/top
-%{GFORGE_DIR}/www/tracker
-%{GFORGE_DIR}/www/trove
-%{GFORGE_DIR}/www/widgets
-#%{GFORGE_DIR}/www/plugins/online_help
-#%{GFORGE_DIR}/www/plugins/projects_hierarchy
-#%{GFORGE_DIR}/www/plugins/quota_management
-%dir %{GFORGE_DIR}/plugins
-%{GFORGE_DIR}/plugins/env.inc.php
-#%{GFORGE_DIR}/plugins/online_help
-#%{GFORGE_DIR}/plugins/projects_hierarchy
-#%{GFORGE_DIR}/plugins/quota_management
-%{GFORGE_LANG_DIR}
-%dir %{GFORGE_CONF_DIR}
-%config(noreplace) %{GFORGE_CONF_DIR}/httpd.secrets
-%dir %{GFORGE_CONF_DIR}/httpd.d
-%dir %attr(0775,root,%{httpdgroup}) %{GFORGE_CONF_DIR}/plugins
-%dir %{GFORGE_VAR_LIB}/scmtarballs
-%dir %{GFORGE_VAR_LIB}/scmsnapshots
-%dir %{GFORGE_VAR_LIB}/dumps
-%{GFORGE_VAR_LIB}/homedirs
+%attr(0775, %{httpduser}, %{httpdgroup}) %dir %{FORGE_VAR_LIB}/upload
+%attr(755, root, %{httpdgroup}) %dir %{FORGE_DIR}
+# Files under %{FORGE_DIR}
+%{FORGE_DIR}/AUTHORS*
+%{FORGE_DIR}/CHANGES
+%{FORGE_DIR}/COPYING
+%{FORGE_DIR}/INSTALL*
+%{FORGE_DIR}/NEWS
+%{FORGE_DIR}/README*
+%{FORGE_DIR}/fusionforge.spec
+%{FORGE_DIR}/fusionforge-install*
+%{FORGE_DIR}/gforge-restricted.sh
+%{FORGE_DIR}/install.sh
+%{FORGE_DIR}/install-common.inc
+# Directories under %{FORGE_DIR}
+%{FORGE_DIR}/backend
+%{FORGE_DIR}/common
+#%{FORGE_DIR}/contrib
+%{FORGE_DIR}/cronjobs
+%{FORGE_DIR}/db
+%{FORGE_DIR}/docs
+%{FORGE_DIR}/etc
+%{FORGE_DIR}/image-sources
+%{FORGE_DIR}/lib
+%{FORGE_DIR}/locales
+%{FORGE_DIR}/monitor
+%{FORGE_DIR}/translations
+%{FORGE_DIR}/utils
+#%{FORGE_DIR}/setup
+%dir %{FORGE_DIR}/www
+# files under %{FORGE_DIR}/www
+%{FORGE_DIR}/www/*.php
+%{FORGE_DIR}/www/users
+%{FORGE_DIR}/www/favicon.ico
+%{FORGE_DIR}/www/projects
+# directories under %{FORGE_DIR}/www
+%{FORGE_DIR}/www/account
+%{FORGE_DIR}/www/activity
+%{FORGE_DIR}/www/admin
+%{FORGE_DIR}/www/developer
+%{FORGE_DIR}/www/docman
+%{FORGE_DIR}/www/export
+%{FORGE_DIR}/www/forum
+%{FORGE_DIR}/www/frs
+%{FORGE_DIR}/www/images
+%{FORGE_DIR}/www/include
+%{FORGE_DIR}/www/jscook
+%{FORGE_DIR}/www/js
+%{FORGE_DIR}/www/mail
+%{FORGE_DIR}/www/my
+%{FORGE_DIR}/www/new
+%{FORGE_DIR}/www/news
+%{FORGE_DIR}/www/people
+%{FORGE_DIR}/www/pm
+%{FORGE_DIR}/www/project
+%{FORGE_DIR}/www/register
+%{FORGE_DIR}/www/reporting
+%{FORGE_DIR}/www/scm
+%{FORGE_DIR}/www/scripts
+%{FORGE_DIR}/www/search
+%{FORGE_DIR}/www/snippet
+%{FORGE_DIR}/www/soap
+%{FORGE_DIR}/www/softwaremap
+%{FORGE_DIR}/www/squal
+%{FORGE_DIR}/www/stats
+%{FORGE_DIR}/www/survey
+%{FORGE_DIR}/www/tabber
+%{FORGE_DIR}/www/themes
+%{FORGE_DIR}/www/top
+%{FORGE_DIR}/www/tracker
+%{FORGE_DIR}/www/trove
+%{FORGE_DIR}/www/widgets
+#%{FORGE_DIR}/www/plugins/online_help
+#%{FORGE_DIR}/www/plugins/projects_hierarchy
+#%{FORGE_DIR}/www/plugins/quota_management
+%dir %{FORGE_DIR}/plugins
+%{FORGE_DIR}/plugins/env.inc.php
+#%{FORGE_DIR}/plugins/online_help
+#%{FORGE_DIR}/plugins/projects_hierarchy
+#%{FORGE_DIR}/plugins/quota_management
+%{FORGE_LANG_DIR}
+%dir %{FORGE_CONF_DIR}
+#%config(noreplace) %{FORGE_CONF_DIR}/httpd.secrets
+%dir %{FORGE_CONF_DIR}/httpd.d
+%dir %attr(0775,root,%{httpdgroup}) %{FORGE_CONF_DIR}/plugins
+%dir %{FORGE_VAR_LIB}/scmtarballs
+%dir %{FORGE_VAR_LIB}/scmsnapshots
+%dir %{FORGE_VAR_LIB}/dumps
+%{FORGE_VAR_LIB}/homedirs
/home/groups
/bin/cvssh.pl
-%files aselectextauth
-%{GFORGE_DIR}/plugins/aselectextauth
+%files plugin-aselectextauth
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/aselectextauth.ini
+%{FORGE_DIR}/plugins/aselectextauth
%files plugin-cvssyncmail
-%{GFORGE_DIR}/plugins/cvssyncmail
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/cvssyncmail.ini
+%{FORGE_DIR}/plugins/cvssyncmail
%files plugin-cvstracker
-%{GFORGE_DIR}/plugins/cvstracker
-%{GFORGE_DIR}/www/plugins/cvstracker
-%attr(-,%{httpduser},%{httpdgroup}) %{GFORGE_CONF_DIR}/plugins/cvstracker
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/cvstracker.ini
+%{FORGE_DIR}/plugins/cvstracker
+%{FORGE_DIR}/www/plugins/cvstracker
+%attr(-,%{httpduser},%{httpdgroup}) %{FORGE_CONF_DIR}/plugins/cvstracker
%files plugin-externalsearch
-%config(noreplace) %{GFORGE_CONF_DIR}/plugins/externalsearch/
-%config(noreplace) %{GFORGE_CONF_DIR}/config.ini.d/externalsearch.ini
-%{GFORGE_DIR}/plugins/externalsearch
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/externalsearch/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/externalsearch.ini
+%{FORGE_DIR}/plugins/externalsearch
%files plugin-fckeditor
-%{GFORGE_DIR}/plugins/fckeditor
-%{GFORGE_DIR}/www/plugins/fckeditor
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/fckeditor.ini
+%{FORGE_DIR}/plugins/fckeditor
+%{FORGE_DIR}/www/plugins/fckeditor
+
+%files plugin-forumml
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/forumml.ini
+%{FORGE_DIR}/plugins/forumml
+%{FORGE_DIR}/www/plugins/forumml
%files plugin-gravatar
-%{GFORGE_DIR}/plugins/gravatar
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/gravatar.ini
+%{FORGE_DIR}/plugins/gravatar
+
+%files plugin-hudson
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/hudson/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/hudson.ini
+%{FORGE_CONF_DIR}/httpd.d/62plugin-hudson
+%{FORGE_DIR}/plugins/hudson
+%{FORGE_DIR}/www/plugins/hudson
%files plugin-ldapextauth
-%config(noreplace) %{GFORGE_CONF_DIR}/plugins/ldapextauth/
-%{GFORGE_DIR}/plugins/ldapextauth
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/ldapextauth/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/ldapextauth.ini
+%{FORGE_DIR}/plugins/ldapextauth
%files plugin-mantis
-%config(noreplace) %{GFORGE_CONF_DIR}/plugins/mantis/
-%config(noreplace) %{GFORGE_CONF_DIR}/config.ini.d/mantis.ini
-%{GFORGE_DIR}/plugins/mantis
-%{GFORGE_DIR}/www/plugins/mantis
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/mantis/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/mantis.ini
+%{FORGE_DIR}/plugins/mantis
+%{FORGE_DIR}/www/plugins/mantis
%files plugin-mediawiki
-%config(noreplace) %{GFORGE_CONF_DIR}/config.ini.d/mediawiki.ini
-%config(noreplace) %{GFORGE_CONF_DIR}/httpd.d/03mediawiki.conf
-%{GFORGE_DIR}/plugins/mediawiki/
-%{GFORGE_DIR}/www/plugins/mediawiki
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/mediawiki.ini
+%config(noreplace) %{FORGE_CONF_DIR}/httpd.d/03mediawiki.conf
+%{FORGE_CONF_DIR}/httpd.d/61plugin-mediawiki
+%{FORGE_DIR}/plugins/mediawiki/
+%{FORGE_DIR}/www/plugins/mediawiki
/usr/share/mediawiki/skins/gforge
/usr/share/mediawiki/skins/GForge.deps.php
/usr/share/mediawiki/skins/GForge.php
%files plugin-online_help
-%{GFORGE_DIR}/plugins/online_help
-%{GFORGE_DIR}/www/plugins/online_help
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/online_help.ini
+%{FORGE_DIR}/plugins/online_help
+%{FORGE_DIR}/www/plugins/online_help
+
+%files plugin-oslc
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/oslc/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/oslc.ini
+%{FORGE_CONF_DIR}/httpd.d/plugin-oslc.inc
+%{FORGE_DIR}/plugins/oslc
+%{FORGE_DIR}/www/plugins/oslc
%files plugin-projects_hierarchy
-%{GFORGE_DIR}/plugins/projects_hierarchy
-%{GFORGE_DIR}/www/plugins/projects_hierarchy
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/projects_hierarchy.ini
+%{FORGE_DIR}/plugins/projects_hierarchy
+%{FORGE_DIR}/www/plugins/projects_hierarchy
%files plugin-quota_management
-%{GFORGE_DIR}/plugins/quota_management
-%{GFORGE_DIR}/www/plugins/quota_management
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/quota_management.ini
+%{FORGE_DIR}/plugins/quota_management
+%{FORGE_DIR}/www/plugins/quota_management
%files plugin-scmarch
-%config(noreplace) %{GFORGE_CONF_DIR}/plugins/scmarch/
-%config(noreplace) %{GFORGE_CONF_DIR}/config.ini.d/scmarch.ini
-%{GFORGE_DIR}/plugins/scmarch
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/scmarch/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/scmarch.ini
+%{FORGE_DIR}/plugins/scmarch
%files plugin-scmbzr
-%config(noreplace) %{GFORGE_CONF_DIR}/plugins/scmbzr/
-%config(noreplace) %{GFORGE_CONF_DIR}/config.ini.d/scmbzr.ini
-%{GFORGE_DIR}/plugins/scmbzr
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/scmbzr/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/scmbzr.ini
+%{FORGE_DIR}/plugins/scmbzr
%files plugin-scmdarcs
-%config(noreplace) %{GFORGE_CONF_DIR}/plugins/scmdarcs/
-%config(noreplace) %{GFORGE_CONF_DIR}/config.ini.d/scmdarcs.ini
-%{GFORGE_DIR}/plugins/scmdarcs
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/scmdarcs/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/scmdarcs.ini
+%{FORGE_DIR}/plugins/scmdarcs
%files plugin-scmgit
-%config(noreplace) %{GFORGE_CONF_DIR}/plugins/scmgit/
-%config(noreplace) %{GFORGE_CONF_DIR}/config.ini.d/scmgit.ini
-%{GFORGE_DIR}/plugins/scmgit
-%{GFORGE_DIR}/www/plugins/scmgit
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/scmgit/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/scmgit.ini
+%{FORGE_DIR}/plugins/scmgit
+%{FORGE_DIR}/www/plugins/scmgit
%files plugin-scmhg
-%config(noreplace) %{GFORGE_CONF_DIR}/plugins/scmhg/
-%config(noreplace) %{GFORGE_CONF_DIR}/config.ini.d/scmhg.ini
-%{GFORGE_DIR}/plugins/scmhg
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/scmhg/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/scmhg.ini
+%{FORGE_DIR}/plugins/scmhg
%files plugin-scmccase
-%config(noreplace) %{GFORGE_CONF_DIR}/plugins/scmccase/
-%config(noreplace) %{GFORGE_CONF_DIR}/config.ini.d/scmccase.ini
-%{GFORGE_DIR}/plugins/scmccase
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/scmccase/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/scmccase.ini
+%{FORGE_DIR}/plugins/scmccase
%files plugin-scmcvs
-%config(noreplace) %{GFORGE_CONF_DIR}/plugins/scmcvs/
-%config(noreplace) %{GFORGE_CONF_DIR}/config.ini.d/scmcvs.ini
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/scmcvs/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/scmcvs.ini
%{_sysconfdir}/cron.d/%{name}-plugin-scmcvs
-%{GFORGE_DIR}/plugins/scmcvs
-%{GFORGE_DIR}/www/plugins/scmcvs
-%{GFORGE_VAR_LIB}/chroot/scmrepos/cvs
+%{FORGE_CONF_DIR}/httpd.d/30virtualcvs
+%{FORGE_CONF_DIR}/httpd.d/31virtualcvs.ssl
+%{FORGE_DIR}/plugins/scmcvs
+%{FORGE_DIR}/www/plugins/scmcvs
+%{FORGE_VAR_LIB}/chroot/scmrepos/cvs
%files plugin-scmsvn
-%config(noreplace) %{GFORGE_CONF_DIR}/plugins/scmsvn/
-%config(noreplace) %{GFORGE_CONF_DIR}/config.ini.d/scmsvn.ini
-%{GFORGE_DIR}/plugins/scmsvn
-%{GFORGE_DIR}/www/plugins/scmsvn
-%{GFORGE_VAR_LIB}/chroot/scmrepos/svn
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/scmsvn/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/scmsvn.ini
+%{FORGE_DIR}/plugins/scmsvn
+%{FORGE_DIR}/www/plugins/scmsvn
+%{FORGE_VAR_LIB}/chroot/scmrepos/svn
%files plugin-svncommitemail
-%{GFORGE_DIR}/plugins/svncommitemail
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/svncommitemail.ini
+%{FORGE_DIR}/plugins/svncommitemail
%files plugin-svntracker
-%config(noreplace) %{GFORGE_CONF_DIR}/plugins/svntracker/
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/svntracker/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/svntracker.ini
%{_sysconfdir}/cron.d/gforge-plugin-svntracker
-%{GFORGE_DIR}/plugins/svntracker
-%{GFORGE_DIR}/www/plugins/svntracker
+%{FORGE_DIR}/plugins/svntracker
+%{FORGE_DIR}/www/plugins/svntracker
%files plugin-blocks
-%config(noreplace) %{GFORGE_CONF_DIR}/plugins/blocks/
-%config(noreplace) %{GFORGE_CONF_DIR}/config.ini.d/blocks.ini
-%{GFORGE_DIR}/plugins/blocks
-%{GFORGE_DIR}/www/plugins/blocks
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/blocks/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/blocks.ini
+%{FORGE_DIR}/plugins/blocks
+%{FORGE_DIR}/www/plugins/blocks
%files plugin-extratabs
-%{GFORGE_DIR}/plugins/extratabs
-%{GFORGE_DIR}/www/plugins/extratabs
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/extratabs.ini
+%{FORGE_DIR}/plugins/extratabs
+%{FORGE_DIR}/www/plugins/extratabs
%files plugin-wiki
-%config(noreplace) %{GFORGE_CONF_DIR}/plugins/wiki/
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/wiki/
%{_sysconfdir}/cron.d/cron.wiki
-%{GFORGE_DIR}/plugins/wiki
-%{GFORGE_DIR}/www/wiki
+%{FORGE_CONF_DIR}/httpd.d/03wiki.conf
+%{FORGE_DIR}/plugins/wiki
+%{FORGE_DIR}/www/wiki
%files plugin-projectlabels
-%{GFORGE_DIR}/plugins/projectlabels
-%{GFORGE_DIR}/www/plugins/projectlabels
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/projectlabels.ini
+%{FORGE_DIR}/plugins/projectlabels
+%{FORGE_DIR}/www/plugins/projectlabels
%files plugin-contribtracker
-%{GFORGE_DIR}/plugins/contribtracker
-%{GFORGE_DIR}/www/plugins/contribtracker
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/contribtracker.ini
+%{FORGE_DIR}/plugins/contribtracker
+%{FORGE_DIR}/www/plugins/contribtracker
%files plugin-globalsearch
-%{GFORGE_DIR}/plugins/globalsearch
-%{GFORGE_DIR}/www/plugins/globalsearch
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/globalsearch.ini
+%{FORGE_DIR}/plugins/globalsearch
+%{FORGE_DIR}/www/plugins/globalsearch
+
+%files plugin-mailman
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/mailman/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/mailman.ini
+%{FORGE_CONF_DIR}/httpd.d/plugin-oslc.inc
+%{FORGE_CONF_DIR}/httpd.d/62plugin-list-mailman
+%{FORGE_CONF_DIR}/httpd.d/200list.vhost
+%{FORGE_CONF_DIR}/httpd.d/20list
+%{FORGE_CONF_DIR}/httpd.d/20zlist.vhost
+%{FORGE_CONF_DIR}/httpd.d/21list.vhost.ssl
+%{FORGE_DIR}/plugins/mailman
+%{FORGE_DIR}/www/plugins/mailman
%files plugin-mantisbt
-%config(noreplace) %{GFORGE_CONF_DIR}/plugins/mantisbt/
-%{GFORGE_DIR}/plugins/mantisbt
-%{GFORGE_DIR}/www/plugins/mantisbt
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/mantisbt/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/mantisbt.ini
+%{FORGE_DIR}/plugins/mantisbt
+%{FORGE_DIR}/www/plugins/mantisbt
%changelog
* Fri May 28 2010 - Alain Peyrat <aljeux@free.fr> - 5.0.50-1