Search
j0ke.net Open Build Service
>
Projects
>
ha
:
firewall
>
packetbl
> packetbl.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File packetbl.spec of Package packetbl (Revision 11)
Currently displaying revision
11
,
show latest
%define pkgversion 0.6-beta4 Name: packetbl Version: 0.6.4 Release: 1 Summary: Packet Blacklist License: GPL Group: System Url: http://www.rjmsoftware.org/?q=node/4 Source0: %{name}-%{pkgversion}.tar.bz2 %if 0%{?suse_version} Source1: %{name}-suse.init %else Source1: %{name}-rh.init %endif Patch0: %{name}-DESTDIR.patch Patch1: %{name}-write-pid.patch #Patch2: %{name}-0.7-beta1_void-return.patch BuildRoot: %{_tmppath}/%{name}-%{pkgversion}-root # for 0.6.x BuildRequires: dotconf-devel # for 0.7.x #BuildRequires: libconfig-devel BuildRequires: firedns-devel BuildRequires: iptables-devel BuildRequires: libnetfilter_queue-devel BuildRequires: libnfnetlink-devel %description Packetbl checks IP addresses of incoming connections against RBLs and uses Netfilter/iptables to block them if they're listed. %prep %setup -n %{name}-%{pkgversion} %patch0 %patch1 ##patch2 %build %configure --with-firedns --with-stats --with-stats-socket=/var/run/packetbl/packetbl.sock %__make %install %__make DESTDIR=%{buildroot} install %__install -d %{buildroot}/var/run/packetbl %__install -d %{buildroot}%{_sbindir} %__install -D %{S:1} %{buildroot}%{_sysconfdir}/init.d/packetbl cd %{buildroot}%{_sbindir} ln -sf ../..%{_sysconfdir}/init.d/packetbl rcpacketbl %clean rm -rf %{buildroot} %preun %if 0%{?suse_version} %stop_on_removal %endif %postun %if 0%{?suse_version} %insserv_cleanup %endif %files %defattr(-,root,root) %doc AUTHORS README %config(noreplace) %{_sysconfdir}/packetbl.conf %{_sysconfdir}/init.d/packetbl %{_sbindir}/rcpacketbl %{_bindir}/packetbl %{_bindir}/packetbl_getstat %dir /var/run/packetbl %changelog * Sun Jan 09 2011 Carsten Schoene <cs@linux-administrator.com> - 0.6-2 - added patch for writing pid file - added suse init script * Sun Jul 11 2010 Carsten Schoene <cs@linux-administrator.com> - 0.6-1 - initial package