packages: hdapsd/hdapsd.init, hdapsd/hdapsd.spec - up to 20090401; switch t...
arekm
arekm at pld-linux.org
Sun Jun 14 18:30:21 CEST 2009
Author: arekm Date: Sun Jun 14 16:30:21 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- up to 20090401; switch to maintained version
---- Files affected:
packages/hdapsd:
hdapsd.init (1.7 -> 1.8) , hdapsd.spec (1.10 -> 1.11)
---- Diffs:
================================================================
Index: packages/hdapsd/hdapsd.init
diff -u packages/hdapsd/hdapsd.init:1.7 packages/hdapsd/hdapsd.init:1.8
--- packages/hdapsd/hdapsd.init:1.7 Fri Mar 27 08:19:32 2009
+++ packages/hdapsd/hdapsd.init Sun Jun 14 18:30:16 2009
@@ -10,8 +10,8 @@
# Source function library.
. /etc/rc.d/init.d/functions
-HDAPS_DEVICE="hda"
-HDAPS_SENSITIVITY=15
+HDAPS_DEVICE=""
+HDAPS_SENSITIVITY=""
# Configuration file.
[ -f /etc/sysconfig/hdapsd ] && . /etc/sysconfig/hdapsd
@@ -34,7 +34,7 @@
fi;
fi;
- daemon hdapsd -d ${HDAPS_DEVICE} -s ${HDAPS_SENSITIVITY} ${HDAPS_OPTIONS} -b
+ daemon hdapsd ${HDAPS_DEVICE:+-d ${HDAPS_DEVICE}} ${HDAPS_SENSITIVITY:+-s ${HDAPS_SENSITIVITY}} ${HDAPS_OPTIONS} -b -l
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/hdapsd
}
================================================================
Index: packages/hdapsd/hdapsd.spec
diff -u packages/hdapsd/hdapsd.spec:1.10 packages/hdapsd/hdapsd.spec:1.11
--- packages/hdapsd/hdapsd.spec:1.10 Fri Mar 27 08:18:06 2009
+++ packages/hdapsd/hdapsd.spec Sun Jun 14 18:30:16 2009
@@ -1,5 +1,5 @@
# $Revision$, $Date$
-%define snap 20081004
+%define snap 20090401
Summary: HardDrive Active Protection System
Summary(pl.UTF-8): HDAPS - system aktywnej ochrony dysku twardego
Name: hdapsd
@@ -7,11 +7,11 @@
Release: 0.%{snap}.1
License: GPL v2
Group: Applications/System
-Source0: http://www.zen24593.zen.co.uk/hdaps/hdapsd-20081004.c
-# Source0-md5: f38893ce27cf921ad87644de70ccc135
+Source0: http://dl.sourceforge.net/sourceforge/hdaps/hdapsd-20090401.tar.gz
+# Source0-md5: 897cee8b0192febd127470f3e9506aeb
Source1: %{name}.init
Source2: %{name}.sysconfig
-URL: http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS
+URL: http://hdaps.sourceforge.net/
BuildRequires: rpmbuild(macros) >= 1.268
Requires(post,preun): /sbin/chkconfig
Requires: rc-scripts
@@ -43,16 +43,19 @@
uderzeniu o podłoże.
%prep
-%setup -q -c -T
+%setup -q -n %{name}-%{snap}
%build
-%{__cc} %{rpmcflags} %{rpmldflags} %{SOURCE0} -o %{name}
+%configure
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/{sysconfig,rc.d/init.d}}
+install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
-install %{name} $RPM_BUILD_ROOT%{_sbindir}
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
@@ -71,9 +74,11 @@
%files
%defattr(644,root,root,755)
+%doc README ChangeLog AUTHORS
%attr(754,root,root) %{_sbindir}/*
%attr(754,root,root) /etc/rc.d/init.d/%{name}
%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%{_mandir}/man8/hdapsd.8*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -81,6 +86,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.11 2009/06/14 16:30:16 arekm
+- up to 20090401; switch to maintained version
+
Revision 1.10 2009/03/27 07:18:06 glen
- up to 20081004
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/hdapsd/hdapsd.init?r1=1.7&r2=1.8&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/hdapsd/hdapsd.spec?r1=1.10&r2=1.11&f=u
More information about the pld-cvs-commit
mailing list