view @ 42:d9ae11033b4b stable-1-9

Add default config to firewall systems that send bounces to non-existant accounts. Switch to Mercurial source control. Update spec file for fedora packaging.
author Carl Byington <>
date Fri, 21 Mar 2008 14:02:32 -0700
parents ee9553116dbf
children ba0259c9e411
line wrap: on
line source

%define localstatedir   /var/lib

Summary:            Syslog to iptables dynamic firewall
Name:               @PACKAGE@
Version:            @VERSION@
Release:            1%{?dist}
License:            GPLv3+
Group:              System Environment/Daemons
Source:   {name}/packages/%{name}-%{version}.tar.gz
BuildRoot:          %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
URL:      {name}/
AutoReqProv:        no

Requires(post,preun):   /sbin/chkconfig
Requires(post,preun):   /sbin/service
Requires:               iptables
Requires:               coreutils
BuildRequires:          gcc gcc-c++
Requires:     ,,,,

This is a simple adaptive firewall.  It maintains the INPUT chain
of the iptables firewall set based on syslog entries.

%setup -q

make %{?_smp_mflags}

mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
mv -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}        $RPM_BUILD_ROOT/etc/rc.d/init.d



/sbin/chkconfig --add %{name}

[ $1 = 0 ] && /sbin/service %{name} stop || :

[ $1 = 0 ] && /sbin/chkconfig --del %{name}

%docdir %{_datadir}/doc/%{name}-%{version}
%config(noreplace) %{_sysconfdir}/%{name}.conf

* Fri Mar 21 2008 Carl Byington <> - 1.9
- changes for Fedora packaging guidelines

* Thu Aug 30 2007 Carl Byington <> - 1.5
- Fix pre/post scripts

* Thu Dec 08 2005 Carl Byington <> - 1.0
- initial revision based on dnsbl spec file
- and