SPECS: iwatch.spec (NEW) - init

wolvverine wolvverine at pld-linux.org
Mon Dec 24 06:15:35 CET 2007


Author: wolvverine                   Date: Mon Dec 24 05:15:35 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- init

---- Files affected:
SPECS:
   iwatch.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/iwatch.spec
diff -u /dev/null SPECS/iwatch.spec:1.1
--- /dev/null	Mon Dec 24 06:15:35 2007
+++ SPECS/iwatch.spec	Mon Dec 24 06:15:30 2007
@@ -0,0 +1,67 @@
+# $Revision$, $Date$
+#TODO -init file, config file
+#
+Summary:	iWatch - tools to check filesystem integrity
+Summary(pl.UTF-8):	iWatch - narzędzie do sprawdzania integralności plików
+Name:		iwatch
+Version:	0.2.1
+Release:	0.1
+License:	GPL
+Group:		Applications
+Source0:	http://dl.sourceforge.net/sourceforge/iwatch/%{name}-%{version}.tgz
+# Source0-md5:	b92e7a9b5912684f5e21ef38e22910b6
+URL:		http://iwatch.sourceforge.net/
+BuildRequires:	rpmbuild(macros) >= 1.228
+Requires(post,preun):	/sbin/chkconfig
+Requires:	kernel >= 2.6.13
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+iWatch is written in Perl and based on inotify, a file change
+notification system, a kernel feature that allows applications to
+request the monitoring of a set of files against a list of events.
+
+%prep
+%setup -q
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/%{name},%{_datadir}/%{name}}
+
+install iwatch $RPM_BUILD_ROOT%{_bindir}
+install iwatch.dtd $RPM_BUILD_ROOT%{_datadir}/%{name}
+install iwatch.xml $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add %{name}
+%service %{name} restart
+
+%preun
+if [ "$1" = "0" ]; then
+	%service -q %{name} stop
+	/sbin/chkconfig --del %{name}
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING ChangeLog README iwatch.xml.example
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.xml
+%attr(755,root,root) %{_bindir}/%{name}
+%{_datadir}/%{name}
+%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  2007-12-24 05:15:30  wolvverine
+- init
+
+
================================================================


More information about the pld-cvs-commit mailing list