SPECS: newsyslog.spec (NEW) - raw, based on openpkg spec
glen
glen at pld-linux.org
Wed Sep 5 15:56:52 CEST 2007
Author: glen Date: Wed Sep 5 13:56:52 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- raw, based on openpkg spec
---- Files affected:
SPECS:
newsyslog.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/newsyslog.spec
diff -u /dev/null SPECS/newsyslog.spec:1.1
--- /dev/null Wed Sep 5 15:56:52 2007
+++ SPECS/newsyslog.spec Wed Sep 5 15:56:47 2007
@@ -0,0 +1,63 @@
+# $Revision$, $Date$
+Summary: Logfile Rotation Tool
+Name: newsyslog
+Version: 1.1
+Release: 0.1
+License: BSD
+Group: Base
+URL: http://www.weird.com/~woods/projects/newsyslog.html
+Source0: ftp://ftp.weird.com/pub/local/%{name}-%{version}.tar.gz
+# Source0-md5: 022eb25d8ea236c07f6bcb0084b7e205
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Newsyslog is a program that is scheduled to run periodically by
+cron(8) for archiving log files. If a log file is determined to
+require archiving, newsyslog rearranges the files so that `logfile' is
+empty, `logfile.0' has the last period's logs in it, `logfile.1' has
+the next to last period's logs in it, and so on, up to a
+user-specified number of archived logs. The archived logs may also be
+compressed to save space. After all file operations are done newsyslog
+notifies the syslogd daemon, or optionally some log-file specific
+daemon, by sending a SIGHUP to the daemon process.
+
+%prep
+%setup -q
+
+%build
+%configure \
+ --with-newsyslog_conf=%{_sysconfdir}/newsyslog/newsyslog.conf \
+ --localstatedir=/var/lib/newsyslog \
+ --with-syslog_pid=/var/run/newsyslog/newsyslog.pid \
+ --with-gzip
+
+%{__make} newsyslog copy-dist-mans
+
+%install
+rm -rf $RPM_BUILD_ROOT
+# XXX patch Makefile.am
+%{__make} install \
+ htmlman_MANS= \
+ catman_MANS= \
+ catmandir=$RPM_BUILD_ROOT/tmp/cats \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.developers ToDo VERSION newsyslog.conf
+%attr(755,root,root) %{_bindir}/newsyslog
+%{_mandir}/man5/newsyslog.conf.5*
+%{_mandir}/man8/newsyslog.8*
+
+%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/09/05 13:56:47 glen
+- raw, based on openpkg spec
+
================================================================
More information about the pld-cvs-commit
mailing list