]> git.pld-linux.org Git - packages/drupal.git/commitdiff
- add apache config
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 18 May 2005 13:52:52 +0000 (13:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    drupal.spec -> 1.2

drupal.spec

index 481d99937b8485de02157f6fcb18246e9400c027..7f69f5a174cb4449177240e7cfac32f142288901 100644 (file)
@@ -1,12 +1,13 @@
 Summary:       Open source content management platform
 Name:          drupal
 Version:       4.6.0
-Release:       0.1
+Release:       0.2
 Epoch:         0
 License:       GPL
 Group:         Applications/WWW
 Source0:       http://drupal.org/files/projects/%{name}-%{version}.tar.gz
 # Source0-md5: cba80c4f511284b09d6a0a2def5cb250
+Source1:       %{name}.conf
 URL:           http://drupal.org/
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -52,12 +53,30 @@ cp -a themes misc $RPM_BUILD_ROOT%{_appdir}/htdocs
 cp -a cron.php $RPM_BUILD_ROOT%{_appdir}
 cp -a includes modules scripts sites $RPM_BUILD_ROOT%{_appdir}
 
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache-%{name}.conf
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%triggerin -- apache1 >= 1.3.33-2
+%apache_config_install -v 1 -c %{_sysconfdir}/apache-%{name}.conf
+
+%triggerun -- apache1 >= 1.3.33-2
+%apache_config_uninstall -v 1
+
+%triggerin -- apache >= 2.0.0
+%apache_config_install -v 2 -c %{_sysconfdir}/apache-%{name}.conf
+
+%triggerun -- apache >= 2.0.0
+%apache_config_uninstall -v 2
+
 %files
 %defattr(644,root,root,755)
 %doc *.txt database
+
+%attr(750,root,http) %dir %{_sysconfdir}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache-%{name}.conf
+
 %dir %{_appdir}
 %{_appdir}/*.php
 %{_appdir}/htdocs
This page took 0.139017 seconds and 4 git commands to generate.