Author: glen Date: Tue Jul 18 21:43:57 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - requires lockfile-progs - permissions and user
---- Files affected: SPECS: logcheck.spec (1.30 -> 1.31) ---- Diffs: ================================================================ Index: SPECS/logcheck.spec diff -u SPECS/logcheck.spec:1.30 SPECS/logcheck.spec:1.31 --- SPECS/logcheck.spec:1.30 Tue Jul 18 22:57:59 2006 +++ SPECS/logcheck.spec Tue Jul 18 23:43:52 2006 @@ -2,7 +2,7 @@ Summary: Mails anomalies in the system logfiles to the administrator Name: logcheck Version: 1.2.46 -Release: 0.1 +Release: 0.7 License: GPL Group: Applications/System Source0: http://ftp.debian.org/debian/pool/main/l/logcheck/%{name}_%{version}.tar.gz @@ -20,6 +20,7 @@ Requires: %{name}-database = %{version}-%{release} Requires: /usr/sbin/sendmail Requires: crondaemon +Requires: lockfile-progs Requires: logtail = %{version}-%{release} BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -66,7 +67,7 @@ %prep %setup -q -#%patch0 -p1 # TODO +%patch0 -p1 %install rm -rf $RPM_BUILD_ROOT @@ -78,14 +79,19 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/%{name} mv $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}}/logtail -touch $RPM_BUILD_ROOT%{_sysconfdir}/header.txt # TODO + +cat <<'EOF'> $RPM_BUILD_ROOT%{_sysconfdir}/header.txt +This email is sent by logcheck. If you wish to no-longer receive it, +you can either deinstall the logcheck package or modify its +configuration file (/etc/logcheck/logcheck.conf). +EOF %clean rm -rf $RPM_BUILD_ROOT %pre %groupadd -g 173 %{name} -%useradd -u 173 -d /var/lib/%{name} -g adm -c "Logcheck User" %{name} +%useradd -u 173 -d /var/lib/%{name} -g logcheck -c "Logcheck User" %{name} %postun if [ "$1" = "0" ]; then @@ -110,8 +116,8 @@ %attr(640,root,logcheck) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/header.txt %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name} %attr(755,root,root) %{_sbindir}/logcheck -%dir %attr(750,logcheck,root) /var/lib/logcheck -%dir %attr(755,logcheck,logcheck) /var/lock/logcheck +%dir %attr(770,root,logcheck) /var/lib/logcheck +%dir %attr(770,root,logcheck) /var/lock/logcheck %files database %defattr(644,root,root,755) @@ -132,6 +138,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.31 2006/07/18 21:43:52 glen +- requires lockfile-progs +- permissions and user + Revision 1.30 2006/07/18 20:57:59 glen - switched to debian source - ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/logcheck.spec?r1=1.30&r2=1.31&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
