# HG changeset patch
# User carl
# Date 1134865029 28800
# Node ID c2a2e35a85ac53223d3f5aadf8c709705cbcce1c
# Parent a9b52f657f08458a3de908d6cc671db493614fb4
final documentation, rpm builds properly
diff -r a9b52f657f08 -r c2a2e35a85ac Makefile.am
--- a/Makefile.am Thu Dec 15 16:20:17 2005 -0800
+++ b/Makefile.am Sat Dec 17 16:17:09 2005 -0800
@@ -3,7 +3,7 @@
hack_SCRIPTS = syslog2iptables
sysconf_DATA = syslog2iptables.conf
CLEANFILES = syslog2iptables xml/syslog2iptables xml/Makefile
-EXTRA_DIST = syslog2iptables.rc syslog2iptables.conf syslog2iptables.spec xml/*
+EXTRA_DIST = syslog2iptables.rc syslog2iptables.conf syslog2iptables.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/s*)
syslog2iptables: $(srcdir)/syslog2iptables.rc
rm -f syslog2iptables
diff -r a9b52f657f08 -r c2a2e35a85ac html/Makefile.am
--- a/html/Makefile.am Thu Dec 15 16:20:17 2005 -0800
+++ b/html/Makefile.am Sat Dec 17 16:17:09 2005 -0800
@@ -1,1 +1,3 @@
-EXTRA_DIST = $(wildcard *.html) $(wildcard *.pdf)
+htmldir = ${datadir}/doc/@PACKAGE@-@VERSION@
+html_DATA = $(wildcard *.html) $(wildcard *.pdf)
+EXTRA_DIST = $(html_DATA)
diff -r a9b52f657f08 -r c2a2e35a85ac src/syslogconfig.cpp
diff -r a9b52f657f08 -r c2a2e35a85ac syslog2iptables.spec.in
--- a/syslog2iptables.spec.in Thu Dec 15 16:20:17 2005 -0800
+++ b/syslog2iptables.spec.in Sat Dec 17 16:17:09 2005 -0800
@@ -52,7 +52,9 @@
includedir=$RPM_BUILD_ROOT%{_includedir} \
sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
mv -f $RPM_BUILD_ROOT%{_sysconfdir}/syslog2iptables $RPM_BUILD_ROOT/etc/rc.d/init.d
+mv AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
%clean
@@ -64,8 +66,6 @@
%post
/sbin/chkconfig --add @PACKAGE@
-/sbin/chkconfig @PACKAGE@ on
-/sbin/service @PACKAGE@ start || :
%preun
@@ -77,13 +77,15 @@
%files
-%doc AUTHORS COPYING ChangeLog NEWS README
%defattr(-,root,root)
%{_sbindir}/*
-%{_mandir}/*
+%doc %{_mandir}/*
+%docdir %{_datadir}/doc/@PACKAGE@-@VERSION@
+%{_datadir}/doc/@PACKAGE@-@VERSION@
%config(noreplace) %{_sysconfdir}/@PACKAGE@.conf
/etc/rc.d/init.d/@PACKAGE@
+# %doc AUTHORS COPYING ChangeLog NEWS README
%changelog
* Thu Dec 08 2005 Carl Byington 1.0
diff -r a9b52f657f08 -r c2a2e35a85ac xml/syslog2iptables.in
--- a/xml/syslog2iptables.in Thu Dec 15 16:20:17 2005 -0800
+++ b/xml/syslog2iptables.in Sat Dec 17 16:17:09 2005 -0800
@@ -3,10 +3,9 @@
Packages
The various source and binary packages are available at http://www.five-ten-sg.com/syslog2iptables/packages
-
- The most recent documentation is available at http://www.five-ten-sg.com/syslog2iptables/
+ url="http://www.five-ten-sg.com/@PACKAGE@/packages">http://www.five-ten-sg.com/@PACKAGE@/packages
+ The most recent documentation is available at http://www.five-ten-sg.com/@PACKAGE@/
@@ -57,9 +56,19 @@
Each ip address has an associated leaky bucket, which leaks one
token per second. Once the bucket contains more than a configurable
- number of tokens, that ip address is added to the INPUT chain with a
- DROP target. When the bucket is drained to zero, that ip address is
- removed from the INPUT chain.
+ threshold number of tokens, that ip address is added to the INPUT chain
+ with a DROP target. When the bucket is drained to zero, that ip address
+ is removed from the INPUT chain.
+
+ The discussion has focused on syslog files, but any ascii text
+ file can be used, so long as some other process appends lines to that
+ file, and those lines containing hostname or ip addresses can be matched
+ with some regular expression.
+
+ Considering syslog files in particular, these are normally rotated
+ via logrotate. @PACKAGE@ properly detects and
+ handles this case by closing the old file, and reopening the newly
+ created file.
@@ -95,7 +104,8 @@
The configuration file is documented in
@PACKAGE@.conf 5
- .
+ . Any change to the config file will cause it to be
+ reloaded within three minutes.