Logoj0ke.net Open Build Service > Projects > hardware:flashcache > flashcache > Changes
Sign Up | Log In

Changes of Revision 12

[-] Changed flashcache.changes
 
1
@@ -1,4 +1,9 @@
2
 -------------------------------------------------------------------
3
+Sun Jan  8 12:41:01 UTC 2012 - cs@linux-administrator.com
4
+
5
+- added boot.flashcache 
6
+
7
+-------------------------------------------------------------------
8
 Sun Jan  8 10:31:12 UTC 2012 - cs@linux-administrator.com
9
 
10
 - initial build 
11
[-] Changed flashcache.spec ^
49
 
1
@@ -5,7 +5,8 @@
2
 License:   GPL
3
 Release:   74
4
 Group:     System/Kernel
5
-Source:        %{name}-%{version}.tar.bz2
6
+Source0:   %{name}-%{version}.tar.bz2
7
+Source1:   boot.flashcache
8
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
9
 BuildRequires: kernel-source kernel-syms module-init-tools
10
 %suse_kernel_module_package ec2 xenpae vmi um
11
@@ -17,6 +18,7 @@
12
 Group: System/Base
13
 License: GPL v2 or later
14
 Summary: Utilities
15
+Requires: device-mapper mdadm udev
16
 
17
 %description utils
18
 Utilities for setting up a write-back block cache
19
@@ -66,6 +68,7 @@
20
 pushd source/src/utils
21
 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
22
 popd
23
+install -D -m0755 %{S:1} %{buildroot}%{_initdir}/boot.flashcache
24
 
25
 %post
26
 /sbin/depmod -a
27
@@ -73,10 +76,21 @@
28
 %postun
29
 /sbin/depmod -a
30
 
31
+%post utils
32
+if [ $1 == 1 ] ; then
33
+/sbin/chkconfig boot.flashcache B
34
+fi
35
+
36
+%preun utils
37
+if [ $1 == 0 ] ; then
38
+/sbin/chkconfig boot.flashcache off
39
+fi
40
+
41
 %files utils
42
 %defattr(-,root,root,-)
43
 /sbin/flashcache_create
44
 /sbin/flashcache_destroy
45
 /sbin/flashcache_load
46
+{_initdir}/boot.flashcache
47
 
48
 %changelog
49