Search
j0ke.net Open Build Service
>
Projects
>
hardware
:
flashcache
>
flashcache
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 12
[-]
[+]
Changed
flashcache.changes
@@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Sun Jan 8 12:41:01 UTC 2012 - cs@linux-administrator.com + +- added boot.flashcache + +------------------------------------------------------------------- Sun Jan 8 10:31:12 UTC 2012 - cs@linux-administrator.com - initial build
[-]
[+]
Changed
flashcache.spec
^
@@ -5,7 +5,8 @@ License: GPL Release: 74 Group: System/Kernel -Source: %{name}-%{version}.tar.bz2 +Source0: %{name}-%{version}.tar.bz2 +Source1: boot.flashcache BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: kernel-source kernel-syms module-init-tools %suse_kernel_module_package ec2 xenpae vmi um @@ -17,6 +18,7 @@ Group: System/Base License: GPL v2 or later Summary: Utilities +Requires: device-mapper mdadm udev %description utils Utilities for setting up a write-back block cache @@ -66,6 +68,7 @@ pushd source/src/utils make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p" popd +install -D -m0755 %{S:1} %{buildroot}%{_initdir}/boot.flashcache %post /sbin/depmod -a @@ -73,10 +76,21 @@ %postun /sbin/depmod -a +%post utils +if [ $1 == 1 ] ; then +/sbin/chkconfig boot.flashcache B +fi + +%preun utils +if [ $1 == 0 ] ; then +/sbin/chkconfig boot.flashcache off +fi + %files utils %defattr(-,root,root,-) /sbin/flashcache_create /sbin/flashcache_destroy /sbin/flashcache_load +{_initdir}/boot.flashcache %changelog