rpms/firehol/F-11 firehol-1.273-noautostart.patch, NONE, 1.1 firehol.spec, NONE, 1.1 sources, 1.1, 1.2

Jussi Lehtola jussilehtola at fedoraproject.org
Thu Sep 24 06:48:28 UTC 2009


Author: jussilehtola

Update of /cvs/pkgs/rpms/firehol/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7985/F-11

Modified Files:
	sources 
Added Files:
	firehol-1.273-noautostart.patch firehol.spec 
Log Message:
Import in Fedora.

firehol-1.273-noautostart.patch:
 firehol.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE firehol-1.273-noautostart.patch ---
diff -up firehol-1.273/firehol.sh.orig firehol-1.273/firehol.sh
--- firehol-1.273/firehol.sh.orig	2008-07-31 04:23:40.000000000 +0300
+++ firehol-1.273/firehol.sh	2009-09-22 16:38:37.115801635 +0300
@@ -2,7 +2,7 @@
 #
 # Startup script to implement /etc/firehol/firehol.conf pre-defined rules.
 #
-# chkconfig: 2345 99 92
+# chkconfig: - 20 80
 #
 # description: creates stateful iptables packet filtering firewalls.
 #


--- NEW FILE firehol.spec ---
Summary:	A powerful yet easy to use iptables frontend
Name:		firehol
Version:	1.273
Release:	5%{?dist}
License:	GPLv2+
Group:		Applications/Internet
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
# Don't start the firewall automatically
Patch0:		firehol-1.273-noautostart.patch

URL:		http://firehol.sourceforge.net
BuildArch:	noarch
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

Requires:	bash >= 2.04
Requires:	fileutils >= 4.0.36
Requires:	gawk >= 3.0
Requires:	grep >= 2.4.2
Requires:	iproute >= 2.2.4
Requires:	iptables >= 1.2.4
Requires:	kernel >= 2.4
Requires:	less
Requires:	modutils >= 2.4.13
Requires:	net-tools >= 1.57
Requires:	sed >= 3.02
Requires:	sh-utils >= 2.0
Requires:	textutils >= 2.0.11
Requires:	util-linux >= 2.11

Requires(post):		chkconfig
Requires(preun):	chkconfig
Requires(preun):	initscripts
Requires(postun):	initscripts


%description
FireHOL is a generic firewall generator, meaning that you can design any kind
of local or routing stateful packet filtering firewalls with ease. Install
FireHOL if you want an easy way to configure stateful packet filtering
firewalls on Linux hosts and routers.

FireHOL uses an extremely simple but powerful way to define firewall rules
which it turns into complete stateful iptables firewalls.

You can run FireHOL with the 'helpme' argument, to get a configuration file for
the system run, which you can modify according to your needs. The default
configuration file will allow only client traffic on all interfaces.

%prep
%setup -q
%patch0 -p1 -b .noautostart

%build

%install
rm -rf %{buildroot}
install -D -p -m 755 firehol.sh %{buildroot}%{_initrddir}/firehol
install -D -p -m 640 examples/client-all.conf %{buildroot}/etc/firehol/firehol.conf

# Install man files
mkdir -p %{buildroot}%{_mandir}/man{1,5}
install -p -m 644 man/*.1 %{buildroot}/%{_mandir}/man1
install -p -m 644 man/*.5 %{buildroot}/%{_mandir}/man5

# Executables
mkdir -p %{buildroot}%{_libexecdir}/firehol
install -p -m 755 *.sh %{buildroot}%{_libexecdir}/firehol

# Install runtime directories
mkdir -p %{buildroot}%{_sysconfdir}/firehol/services
mkdir -p %{buildroot}%{_localstatedir}/spool/firehol


%post 
/sbin/chkconfig --add firehol

%preun
if [ $1 = 0 ] ; then
	/sbin/service firehol stop >/dev/null 2>&1
	/sbin/chkconfig --del firehol
fi

%postun
if [ "$1" -ge "1" ] ; then
	/sbin/service firehol condrestart >/dev/null 2>&1 || :
fi


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc README TODO COPYING ChangeLog WhatIsNew examples doc
%dir %{_sysconfdir}/firehol
%config(noreplace) %{_sysconfdir}/firehol/firehol.conf
%{_initrddir}/firehol
%{_libexecdir}/firehol
%{_mandir}/man1/*.1.gz
%{_mandir}/man5/*.5.gz
%{_sysconfdir}/firehol/services
%{_localstatedir}/spool/firehol


%changelog
* Tue Sep 22 2009 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.273-5
- Use patch instead of sed in %%prep phase.

* Fri May 15 2009 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.273-4
- Spec file cleanups.

* Wed Oct 15 2008 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.273-3
- Use _initrddir.
- pre and post fixes.
- Disable automatical startup.

* Sun Oct 05 2008 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.273-2
- Fix rights of the config file.

* Sun Oct 05 2008 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.273-1
- First release.


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/firehol/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	24 Sep 2009 04:33:23 -0000	1.1
+++ sources	24 Sep 2009 06:48:28 -0000	1.2
@@ -0,0 +1 @@
+cbbe1ba21cf44955827d5c906a55aa21  firehol-1.273.tar.bz2




More information about the fedora-extras-commits mailing list