Hello community, here is the log from the commit of package logdigest for openSUSE:Factory checked in at 2013-12-23 12:34:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/logdigest (Old) and /work/SRC/openSUSE:Factory/.logdigest.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "logdigest" Changes: -------- --- /work/SRC/openSUSE:Factory/logdigest/logdigest.changes 2011-12-13 11:49:04.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.logdigest.new/logdigest.changes 2013-12-23 12:34:43.000000000 +0100 @@ -1,0 +2,7 @@ +Sat Dec 21 20:10:49 UTC 2013 - [email protected] + +- split logtail binary out of main package to avoid running + logdigest via cron if only the logtail tool is required +- clean up spec file + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ logdigest.spec ++++++ --- /var/tmp/diff_new_pack.hrOLPm/_old 2013-12-23 12:34:43.000000000 +0100 +++ /var/tmp/diff_new_pack.hrOLPm/_new 2013-12-23 12:34:43.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package logdigest # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,62 +15,61 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: logdigest -Url: http://sourceforge.net/projects/logdigest Version: 0.2.4 Release: 0 Summary: Mail Digests of System Log Files to the System Administrator License: GPL-2.0+ Group: System/Monitoring -BuildRequires: automake -PreReq: /bin/chmod /bin/touch -#Source: http://www.cmdline.net/logdigest/logdigest-%{version}.tar.bz2 +Url: http://sourceforge.net/projects/logdigest Source: http://dfn.dl.sourceforge.net/sourceforge/logdigest/logdigest-%{version}.tar.bz2 Source1: logdigest-all-ignores-autogeneration -#Patch: logdigest-0.1.7-ignores.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} >= 1010 +BuildRequires: automake +Requires: logtail +Requires(post): /bin/chmod +Requires(post): /bin/touch # procinfo is needed when EXTENDED_STATS=yes -Recommends: cron procinfo -%endif +Recommends: cron +Recommends: procinfo +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Logdigest, run by cron at night, greps through system log files -(var/log/messages, /var/log/mail, etc.) to find "interesting" content. +(/var/log/messages, /var/log/mail, etc.) to find "interesting" content. -Lines matching the regular expressions in /etc/logdigest are simply -ignored. More expressions can be added to /etc/logdigest/ignore.local. +Lines matching the regular expressions in /etc/logdigest/ignore are simply +ignored. More expressions can be added to %{_sysconfdir}/logdigest/ignore.local. See /etc/logdigest/config for some general settings. The results are mailed to the sysadmin daily. +%package -n logtail +Summary: Helper application to analyze logfiles +Group: System/Monitoring - -Authors: --------- - Peter Poeml <[email protected]> - Craig H. Rowland <[email protected]> +%description -n logtail +Print log file lines that have not been read %prep -%setup -n logdigest-%{version} -#%patch -p1 +%setup -q -n logdigest-%{version} %build -export CFLAGS="$RPM_OPT_FLAGS" +export CFLAGS="%{optflags}" aclocal autoconf automake --add-missing -./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --with-tmpdir=/var/lib/logdigest -make +./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --with-tmpdir=%{_localstatedir}/lib/logdigest +make %{?_smp_mflags} %install -make DESTDIR=$RPM_BUILD_ROOT install +make DESTDIR=%{buildroot} install %{?_smp_mflags} -mkdir -p %{buildroot}/usr/share/logdigest -cp -p %{S:1} %{buildroot}/usr/share/logdigest/ +mkdir -p %{buildroot}%{_datadir}/logdigest +cp -p %{SOURCE1} %{buildroot}%{_datadir}/logdigest/ -mkdir -p %{buildroot}/etc/cron.d -cat >%{buildroot}/etc/cron.d/logdigest-all-ignores-autogeneration <<-EOF +mkdir -p %{buildroot}%{_sysconfdir}/cron.d +cat >%{buildroot}%{_sysconfdir}/cron.d/logdigest-all-ignores-autogeneration <<-EOF # Cron snippet which concatenates the ignore files into a single file # /etc/logdigest/ignores.autogenerated, pruned by spaces. # @@ -87,7 +86,7 @@ test -e $i.local || { touch $i.local; chmod 600 $i.local; } done # -/usr/share/logdigest/logdigest-all-ignores-autogeneration +%{_datadir}/logdigest/logdigest-all-ignores-autogeneration %preun # update? @@ -103,14 +102,17 @@ %files %defattr(-,root,root) -%doc README AUTHORS COPYING ChangeLog INSTALL NEWS TODO BUGS VERSION -%dir /etc/logdigest -%config(noreplace) /etc/logdigest/* -/usr/bin/logtail -/var/lib/logdigest -/etc/cron.daily/logdigest -%config %attr(640,root,root) /etc/cron.d/logdigest-all-ignores-autogeneration -%dir /usr/share/logdigest -%attr(755,root,root) /usr/share/logdigest/logdigest-all-ignores-autogeneration +%doc README AUTHORS COPYING ChangeLog TODO VERSION +%dir %{_sysconfdir}/logdigest +%config(noreplace) %{_sysconfdir}/logdigest/* +%{_localstatedir}/lib/logdigest +%{_sysconfdir}/cron.daily/logdigest +%config %attr(640,root,root) %{_sysconfdir}/cron.d/logdigest-all-ignores-autogeneration +%dir %{_datadir}/logdigest +%attr(755,root,root) %{_datadir}/logdigest/logdigest-all-ignores-autogeneration + +%files -n logtail +%defattr(-,root,root) +%{_bindir}/logtail %changelog -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
