]> git.pld-linux.org Git - packages/cowiki.git/commitdiff
- let the application cache be in /var/lib/cowiki
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 20 Feb 2005 22:16:16 +0000 (22:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cowiki.spec -> 1.3

cowiki.spec

index 683cb6308f7cde2cbda72b3d54684aa15292c57e..fad5f0313f25a7ed5c5e932a003518b439e84e1f 100644 (file)
@@ -9,7 +9,7 @@
 %else
 %define _source http://cowiki.org/download/%{name}-%{version}.tar.gz
 %endif
-%define _rel 0.17
+%define _rel 0.20
 
 Summary:       Web collaboration tool
 Name:          cowiki
@@ -51,16 +51,18 @@ mv htdocs/.htaccess .
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}}
+install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir},/var/lib/%{name}}
 
 cp -a htdocs includes $RPM_BUILD_ROOT%{_appdir}
 
 sed -e '
-    s/CHECK_INTERVAL = .*/CHECK_INTERVAL = "-1"/
-    s/RETURN_PATH = .*/RETURN_PATH = "your.bounce.email@localhost"/
-    s/ABUSE_PATH = .*/ABUSE_PATH = "abuse@localhost"/
-    s/ROOT_PASSWD = .*/ROOT_PASSWD = "XXX"/
-    s/LOOKUP_DNS = .*/LOOKUP_DNS = off/
+    s,CHECK_INTERVAL = .*,CHECK_INTERVAL = "-1",
+    s,RETURN_PATH = .*,RETURN_PATH = "your.bounce.email@localhost",
+    s,ABUSE_PATH = .*,ABUSE_PATH = "abuse@localhost",
+    s,ROOT_PASSWD = .*,ROOT_PASSWD = "XXX",
+    s,LOOKUP_DNS = .*,LOOKUP_DNS = off,
+    s,TEMP = .*,TEMP = "/var/lib/%{name}/",
+
 ' core.conf-dist > $RPM_BUILD_ROOT%{_sysconfdir}/core.conf
 echo -e '\n; vim: ft=dosini' >> $RPM_BUILD_ROOT%{_sysconfdir}/core.conf
 
@@ -101,8 +103,9 @@ fi
 
 if [ "$1" = 1 ]; then
 %banner %{name} -e <<EOF
-Install the database using the appropriate "misc/database/*.sql" schema
-Configure the coWiki in %{_sysconfdir}/core.conf
+Install the database using the appropriate "misc/database/*.sql" schema.
+You must setup authorization and root password in:
+- %{_sysconfdir}/core.conf
 
 EOF
 fi
@@ -123,6 +126,10 @@ if [ "$1" = "0" ]; then
                        /etc/rc.d/init.d/httpd restart 1>&2
                fi
        fi
+
+       # nuke cache
+       # FIXME could suffer too many arguments error
+       rm -f /var/lib/%{name}/*
 fi
 
 %files
@@ -134,3 +141,4 @@ fi
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/core.conf
 %{_appdir}
+%dir %attr(770,root,http) /var/lib/%{name}
This page took 0.06364 seconds and 4 git commands to generate.