%global _hardened_build 1 # This file is automagically generated by ./configure. Don't mess with it # by hand unless you know what you're doing. --A.L.Lambert # I'm not sure I know what I'm doing here, but I'm doing fine so far. ;) --bta Summary: An incremental logfile reader #Vendor: A.L.Lambert Name: retail Version: 1.0.1 Release: 3%{?dist} License: GPLv2+ Group: Applications/Text Source: http://xjack.org/retail/download/%{name}-%{version}.tar.gz Patch0: retail-change-manpage-path.patch Patch1: retail-fix-manpage-warnings.patch Patch2: retail-fix-compilation.patch Patch3: retail-no-fixed-cflags.patch BuildRequires: gcc autoconf libtool %description This program is my attempt to write an intelligent incremental logfile reading utility. Other such utilities exist, but I could find none that would handle changing/dynamic logfiles to my satisfaction. So, having an itch of my own, I scratched it. This code is the result. In summary, something like the following, if run as a cronjob: retail /var/log/messages | mail youremail@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. Please check out the doc/* directory for more information on the things you can/can't do with retail (like how to do them :). %prep %autosetup -p2 %build export CFLAGS="%{optflags} -fpic" export LDFLAGS="${LDFLAGS} -pie -z relro -z now" %make_build %install %make_install %files %defattr(-,root,root) %doc README COPYING TODO CREDITS ChangeLog /usr/bin/retail /usr/share/man/man1/retail.1.gz %changelog * Mon Jan 10 2022 Bussi Andrea - 1.0.1-3 - rebuilt for Fedora 35 and rawhide. - use distro optflags, ask for a hardened build. - compile with -fpic, link with -pie. * Mon Oct 28 2019 Bussi Andrea - 1.0.1-2 - rebuilt for COPR, fixing rpmlint warnings. * Tue Mar 18 2003 A.L.Lambert - 1.0.0 is getting ready for initial release! WOOHOO!!!! - - Still probably a few days off, but we're there as far as coding goes. - Now to write that friggin documentation. :)