Logoj0ke.net Open Build Service > Projects > stresslinux > hddtemp > Changes
Sign Up | Log In

Changes of Revision 7

[+] Deleted hddtemp.changes
[-] Changed hddtemp.spec ^
x
 
1
@@ -11,27 +11,71 @@
2
 Autoreqprov:    on
3
 Version:        0.3
4
 %define ref        beta15
5
-Release:        20
6
+Release:        45
7
 URL:            http://hddtemp.sourceforge.net
8
 Summary:        Advanced Web Statistics
9
 Source:         %name-%{version}-%{ref}.tar.bz2
10
 Source1:   hddtemp.db
11
+Source2:   hddtemp.init
12
+Source3:   hddtemp.sysconfig
13
+Source4:   hddtemp-db.patch
14
+Patch0:        hddtemp_0.3-beta15-45.diff.bz2
15
+
16
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
17
 
18
 %description
19
+hddtemp is tool that gives you the temperature of your hard drive by
20
+reading S.M.A.R.T. information.
21
+
22
+%description -l de
23
+htddtemp ist ein Tool zum auslesen der Festplattentemperatur aus den
24
+S.M.A.R.T Informationenen.
25
 
26
 
27
 
28
 %prep
29
 %setup -n %name-%{version}-%{ref}
30
+%patch0 -p1
31
 
32
 %build
33
 %configure
34
-make CFLAGS="$RPM_OPT_FLAGS"
35
+%__make CFLAGS="$RPM_OPT_FLAGS"
36
 
37
 %install
38
-%makeinstall
39
+%__make DESTDIR=%{buildroot} install
40
 %__install -D -m644 %{S:1} %{buildroot}/usr/share/misc/hddtemp.db
41
+%__patch -p0 %{buildroot}/usr/share/misc/hddtemp.db %{S:4}
42
+%__install -D -m755 %{S:2} %{buildroot}%{_initdir}/%{name}
43
+
44
+%if 0%{?suse_version}
45
+%__install -D -m644 %{S:3} %{buildroot}/var/adm/fillup-templates/sysconfig.%{name}
46
+%else
47
+%__install -D -m644 %{S:3} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
48
+%endif
49
+
50
+%post
51
+if [ ! -f /etc/bash.bashrc.local ] ; then
52
+        echo PATH=\$PATH:/usr/sbin >> /etc/bash.bashrc.local
53
+else
54
+        CAT=`cat /etc/bash.bashrc.local | grep /usr/sbin`
55
+        if [ "$CAT" != "PATH=\$PATH:/usr/sbin" ] ; then
56
+                echo PATH=\$PATH:/usr/sbin >> /etc/bash.bashrc.local
57
+        fi
58
+fi
59
+case "$1" in
60
+        1) # new install
61
+       %fillup_and_insserv 
62
+        ;;
63
+        2) # upgrade/reinstall
64
+                %restart_on_update %{name}
65
+        ;;
66
+esac
67
+
68
+%preun
69
+if [ "$1" = "0" ]; then # remove
70
+        %stop_on_removal %{name}
71
+fi
72
+
73
 
74
 %clean
75
 rm -rf $RPM_BUILD_ROOT
76
@@ -42,7 +86,17 @@
77
 %{_datadir}/locale/*/LC_MESSAGES/hddtemp.mo
78
 %{_mandir}/man8/hddtemp.8*
79
 %{_datadir}/misc/hddtemp.db
80
+%if 0%{?suse_version}
81
+/var/adm/fillup-templates/sysconfig.%{name}
82
+%else
83
+%{_sysconfdir}/sysconfig/%{name}
84
+%endif
85
 
86
 %changelog
87
+* Sun Aug 08 2009 Carsten Schoene <cs@linux-administrator.com> - 0.3.beta15-45
88
+- added initscript
89
+- added sysconfig file
90
+- added patch from debian (manpage and other small fixes)
91
+
92
 * Sat Aug 01 2009 Carsten Schoene <cs@linux-administrator.com> - 0.3.beta15-20
93
 - include hddtemp.db
94
[+] Added hddtemp-db.patch ^
[+] Added hddtemp_0.3-beta15-45.diff.bz2 ^
[+] Added hddtemp.init ^
[+] Added hddtemp.sysconfig ^