Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
security:netfilter
iplist
iplist.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File iplist.spec of Package iplist
# # spec file for package iplist (Version 0.29) # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: iplist Version: 0.29 Release: 0 License: GNU General Public License (GPL) Summary: List based Packet Filter Group: Productivity/Networking/Security Url: http://iplist.sourceforge.net/ Source: http://prdownloads.sourceforge.net/iplist/iplist-%{version}.tar.bz2 Source1: ipblockUI.jar Source2: ipblock.init # PATCH-FIX-MISSING-OPTFLAGS Patch0: %{name}-0.29-Makefile.patch # PATCH-FIX-SYSCONFDIR Patch1: %{name}-0.29-sysconfdir.patch Patch2: iplist-0.29-types.diff Patch3: iplist-libsearch.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fastjar BuildRequires: gcc-c++ BuildRequires: pkgconfig, pkgconfig(libnetfilter_queue) BuildRequires: pcre-devel BuildRequires: update-desktop-files BuildRequires: zlib-devel %description iplist is a list based packet handler which uses the netfilter netlink-queue library (kernel 2.6.14 or later). It filters by IP-address and is optimized for thousands of IP-address ranges. %package gui Summary: List based Packet Filter Group: Productivity/Networking/Security Requires: %{name} = %{version} Requires: java >= 1.5 %description gui iplist is a list based packet handler which uses the netfilter netlink-queue library (kernel 2.6.14 or later). It filters by IP-address and is optimized for thousands of IP-address ranges. This package contains a Java based GUI to configure %{name}. %prep %setup -q -n %{name} #setup -q %patch0 -p1 %patch1 -p1 %patch -P 2 -P 3 -p1 %__cp -a %{S:1} . # some fixes for ipblock.conf %{__perl} -p -i -e 's|LOG_FILE=".*|LOG_FILE="/var/log/%{name}/ipblock"|' ipblock.conf %build export SUSE_ASNEEDED=0 make %{?_smp_flags} \ CPP="g++" \ OPTFLAGS="%{optflags}" %install %makeinstall %if 0%{?suse_version} # init script %__install -D -m 0755 %{S:2} %{buildroot}%{_initrddir}/ipblock %__ln_s %{_initrddir}/ipblock %{buildroot}%{_sbindir}/rcipblock # if-up.d script %__install -D -m 0755 suse/Z-ipblock \ %{buildroot}%{_sysconfdir}/sysconfig/network/scripts/ipblock %__install -d %{buildroot}%{_sysconfdir}/sysconfig/network/if-up.d %__ln_s %{_sysconfdir}/sysconfig/network/scripts/ipblock \ %{buildroot}%{_sysconfdir}/sysconfig/network/if-up.d/Z-ipblock # log DIR %__install -d %{buildroot}/var/log/%{name} # desktop file %suse_update_desktop_file -c ipblock IPblock "IP Blocker" "/usr/sbin/ipblock gui" ipblock System Monitor GTK System Network # no brp check %if 0%{?suse_version} <= 1110 export NO_BRP_CHECK_BYTECODE_VERSION=true %endif %endif %pre %preun %stop_on_removal ipblock %post %{fillup_and_insserv -f ipblock} %postun %restart_on_update ipblock %{insserv_cleanup} %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc COPYING %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/allow.p2p %config(noreplace) %{_sysconfdir}/%{name}/ipblock.conf %config(noreplace) %{_sysconfdir}/%{name}/ipblock.lists %{_initrddir}/ipblock %{_sysconfdir}/sysconfig/network/scripts/ipblock %{_sysconfdir}/sysconfig/network/if-up.d/Z-ipblock %{_sbindir}/ipblock %{_sbindir}/iplist %{_sbindir}/rcipblock %{_mandir}/man?/* %dir /var/cache/%{name} %dir /var/log/%{name} %files gui %defattr(-,root,root) %doc COPYING %{_datadir}/java/ipblockUI.jar %{_datadir}/applications/ipblock.desktop %{_datadir}/pixmaps/ipblock.png %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor