@OLDPACKAGE@-config
+ for i in secrets.inc vhost-list.inc vhost-main.inc vhost-projects.inc ; do
+ if [ ! -e /etc/gforge/httpd.conf.d/$i ] ; then
+ cp /usr/share/gforge/etc/httpd.conf.d-fhs/$i /etc/gforge/httpd.conf.d/$i
+ if [ $i = "secrets.inc" ] ; then
+ chmod 700 $i
+ fi
+ PATH=/usr/share/gforge/bin:$PATH manage-apache-config.sh install
+ mv /etc/gforge/httpd.conf.d/$i.generated /etc/gforge/httpd.conf.d/$i
+ fi
+ done
+
+ touch /var/lib/gforge/etc/httpd.vhosts
+
db_stop
# Setup our FRS
# Rename config files
mv $(CURDIR)/debian/$(OLDPACKAGE)-common/etc/fusionforge/config.ini-fhs $(CURDIR)/debian/$(OLDPACKAGE)-common/etc/fusionforge/config.ini
- mv $(CURDIR)/debian/$(OLDPACKAGE)-web-apache2/etc/gforge/httpd.conf.d-fhs $(CURDIR)/debian/$(OLDPACKAGE)-web-apache2/etc/gforge/httpd.conf.d
+ cp -r $(CURDIR)/debian/$(OLDPACKAGE)-web-apache2/usr/share/gforge/etc/httpd.conf.d-fhs $(CURDIR)/debian/$(OLDPACKAGE)-web-apache2/etc/gforge/httpd.conf.d
+# Remove those that need to be generated at install time
+ rm $(CURDIR)/debian/$(OLDPACKAGE)-web-apache2/etc/gforge/httpd.conf.d/secrets.inc
+ rm $(CURDIR)/debian/$(OLDPACKAGE)-web-apache2/etc/gforge/httpd.conf.d/vhost-list.inc
+ rm $(CURDIR)/debian/$(OLDPACKAGE)-web-apache2/etc/gforge/httpd.conf.d/vhost-main.inc
+ rm $(CURDIR)/debian/$(OLDPACKAGE)-web-apache2/etc/gforge/httpd.conf.d/vhost-projects.inc
# Remove Windows files
rm -rf $(CURDIR)/debian/$(OLDPACKAGE)-web-apache2/usr/share/*/www/scm/viewvc/windows
www/index_std.php etc/gforge/custom/
utils/install-apache.sh usr/share/gforge/bin/
utils/manage-apache-config.sh usr/share/gforge/bin/
-etc/httpd.conf.d-fhs etc/gforge/
+etc/httpd.conf.d-fhs usr/share/gforge/etc/