SPECS: retail.spec (NEW) - initial revision - logtail replacement

baggins baggins at pld-linux.org
Tue May 13 15:14:16 CEST 2008


Author: baggins                      Date: Tue May 13 13:14:16 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial revision
- logtail replacement

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

---- Diffs:

================================================================
Index: SPECS/retail.spec
diff -u /dev/null SPECS/retail.spec:1.1
--- /dev/null	Tue May 13 15:14:16 2008
+++ SPECS/retail.spec	Tue May 13 15:14:11 2008
@@ -0,0 +1,71 @@
+# $Revision$, $Date$
+Summary:	An incremental logfile reader
+Summary(pl.UTF-8):	Przyrostowy czytnik logów
+Name:		retail
+Version:	1.0.1
+Release:	1
+License:	GPL
+Group:		Applications/Text
+Source0:	http://www.xjack.org/retail/download/%{name}-%{version}.tar.gz
+# Source0-md5:	a4ec84367d74efd13a68b7728d69dd80
+URL:		http://www.xjack.org/retail/
+BuildRequires:	autoconf
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This program is an attempt to write an intelligent incremental logfile
+reading utility.
+
+In summary, something like the following, if run as a cronjob:
+retail /var/log/messages | mail youremail at yourdomain.com
+Will get you all the new entries which happen to show up in your
+system log.  In addition, it will attempt to intelligently cope with any
+changes to the file in question, by verifying that the data at it's last known
+position has not changed, and if it has it will search out that same data
+wherever in the file it now resides.  Should this be also impossible, it will
+resort to rewinding to the beginning of the file and reading the entire thing.
+
+%description -l pl.UTF-8
+Przyrostowy czytnik logów.
+
+%prep
+%setup -q
+
+%build
+%{__autoconf}
+%configure
+%{__make} \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+
+%{__make} install \
+        DESTDIR=$RPM_BUILD_ROOT
+
+# provide also logtail for older apps
+ln -sf retail $RPM_BUILD_ROOT%{_bindir}/logtail
+
+mv $RPM_BUILD_ROOT%{_prefix}/man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README COPYING TODO INSTALL CREDITS ChangeLog
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man1/*
+
+%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  2008-05-13 13:14:11  baggins
+- initial revision
+- logtail replacement
+
================================================================


More information about the pld-cvs-commit mailing list