SPECS: hdapsd.spec (NEW) - new
arekm
arekm at pld-linux.org
Sun Mar 26 14:37:59 CEST 2006
Author: arekm Date: Sun Mar 26 12:37:59 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
hdapsd.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/hdapsd.spec
diff -u /dev/null SPECS/hdapsd.spec:1.1
--- /dev/null Sun Mar 26 14:37:59 2006
+++ SPECS/hdapsd.spec Sun Mar 26 14:37:54 2006
@@ -0,0 +1,62 @@
+# $Revision$, $Date$
+%define snap 20060322
+Summary: HardDrive Active Protection System
+Name: hdapsd
+Version: 0.1
+Release: 0.%{snap}.1
+License: GPL v2
+Group: Applications/System
+Source0: http://www.dresco.co.uk/hdaps/%{name}-%{snap}.c
+# Source0-md5: 26a6e0795624114cc15aa48ad8b6ca6b
+Source1: %{name}.init
+Source2: %{name}.sysconfig
+URL: http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS
+Requires(post,preun): /sbin/chkconfig
+Requires: rc-scripts
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+HardDrive Active Protection System.
+
+%prep
+%setup -q -c -T
+
+%build
+%{__cc} %{rpmcflags} %{rpmldflags} %{SOURCE0} -o %{name}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/{sysconfig,rc.d/init.d}}
+
+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}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add %{name}
+%service %{name} restart "%{name} daemon"
+
+%preun
+if [ "$1" = "0" ]; then
+ %service %{name} stop
+ /sbin/chkconfig --del %{name}
+fi
+
+%files
+%defattr(644,root,root,755)
+%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}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2006/03/26 12:37:54 arekm
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list