fwbuilder/fwbuilder.spec

184 lines
6.6 KiB
RPMSpec
Raw Permalink Normal View History

Name: fwbuilder
Version: 5.3.7
Release: 3mamba
Summary: Firewall Builder
Group: Network/Security
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.fwbuilder.org
Source: https://github.com/fwbuilder/fwbuilder.git/v%{version}/fwbuilder-%{version}.tar.bz2
Source1: %{name}.png
Source2: %{name}2.png
Patch0: fwbuilder-5.1.0.3599-gcc-4.8.patch
Patch1: fwbuilder-5.3.7-runqmake.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libGL-devel
BuildRequires: libgcc
BuildRequires: liblzma-devel
BuildRequires: libnetsnmp-devel
BuildRequires: libopenssl-devel
BuildRequires: libqt5-devel
BuildRequires: libstdc++6-devel
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libnetsnmp-devel >= 5.9
BuildRequires: libsigc++-devel >= 1.0.4
BuildRequires: libgdk-pixbuf >= 0.22.0
Requires: iptables >= 1.2.8
Provides: libfwbuilder
Obsoletes: libfwbuilder
Provides: libfwbuilder-devel
Obsoletes: libfwbuilder-devel
BuildRoot: %{_tmppath}/%{name}-build
%description
Firewall Builder is multi-platform firewall configuration and management tool. It consists of a GUI and set of policy compilers for various firewall platforms. Firewall Builder uses object-oriented approach, it helps administrator maintain a database of network objects and allows policy editing using simple drag-and-drop operations. Firewall Builder currently supports iptables, ipfilter, OpenBSD PF and Cisco PIX. Technical summary of features supported by the policy compilers for all platforms can be found in the section "Modules" (see menu on the left).
Being truly vendor-neutral, Firewall Builder can generate configuration file for any supported target firewall platform from the same policy created in its GUI. This provides for both consistent policy management solution for heterogeneous environments and possible migration path.
Firewall Builder allows for management of multiple firewalls using the same network object database. Change made to an object is immediately reflected in the policy of all firewalls using this object. Administrator only needs to recompile and install policies on actual firewall machines.
In Firewall Builder, administrator works with an abstraction of firewall policy and NAT rules; software effectively "hides" specifics of particular target firewall platform and helps administrator focus on implementation of security policy. Backend software components, or policy compilers, can deduct many parameters of policy rules using information available through network and service objects and therefore generate fairly complex code for the target firewall, thus relieving administrator from having to remember all its details and limitations. Policy compilers can also run sanity checks on firewall rules and make sure typical errors are caught before generated policy is deployed.
%debug_package
%prep
%setup -q
#%patch0 -p1
%patch1 -p1
export QTDIR=
./autogen.sh \
--with-qmake=qmake-qt5
%build
export QTDIR=
%configure \
--with-qmake=qmake-qt5 \
--enable-auto-docdir \
--prefix=%{_prefix} \
--with-iconsdir=%{_datadir}/pixmaps \
--with-templatedir=%{_datadir}/%{name} \
--without-distcc
##WARNING: icns.path is not defined: install target not created
%make all
%install
[ %{buildroot} != / ] && rm -rf %{buildroot}
%makeinstall QTDIR=%{_qt5_prefix} INSTALL_ROOT=%{buildroot}
rm -fr %{buildroot}%{_docdir}/%{name}-%{version}
#Icon
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/fwbuilder.png
# Create the system menu entry
#mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Firewall Builder
Name[de_DE]=Firewall erstellen
Name[it]=Firewall Builder
Comment=Design and Manage Firewall Rules
Comment[it]=Modellazione regole del firewall
Comment[de_DE]=Erstellen von Firewall Filter Bedingungen
GenericName=Firewall configuration and management tool
GenericName[de_DE]=TFirewall-Konfiguration und Management-Tool
GenericName[it]=Tool di management per firewall
Exec=/usr/bin/fwbuilder
Icon=/usr/share/icons/hicolor/72x72/apps/fwbuilder.png
Terminal=0
Type=Application
Categories=Qt;System;Settings;Security;
X-KDE-StartupNotify=false
X-KDE-RootOnly=true
X-KDE-SubstituteUID=true
X-KDE-Username=root
EOF
#%find_lang %{name}
%clean
[[ "%{buildroot}" ]] && rm -rf %{buildroot}
#%post
#if [ $1 -eq 1 ]; then
# new install
#fi
#%preun
#if [ $1 -eq 0 ]; then
#erase
#fi
#%postun
#if [ $1 -eq 1 ]; then
# upgrade
# %{_initrddir}/iptables restart
#fi
#-f %{name}.lang
%files
%defattr(-,root,root)
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/fwbuilder
%{_datadir}/fwbuilder/*
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/icons/hicolor/*x*/apps/fwbuilder.png
%{_mandir}/man1/fwb*.1*
%changelog
* Sun Dec 13 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.3.7-3mamba
- rebuilt with net-snmp 5.9 and debug package
* Tue Jan 02 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 5.3.7-2mamba
- rebuild with qt5
* Sat Dec 23 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 5.3.7-1mamba
- update to 5.3.7
* Fri Dec 16 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 5.3.6-1mamba
- update to 5.3.6
* Tue May 27 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 5.1.0.3599-2mamba
- rebuilt with libnetsnmp 5.7.2
* Wed Jun 05 2013 Automatic Build System <autodist@mambasoft.it> 5.1.0.3599-1mamba
- automatic version update by autodist
* Fri Oct 22 2010 Automatic Build System <autodist@mambasoft.it> 3.0.6-3mamba
- automatic rebuild by autodist
* Sun Aug 08 2010 Automatic Build System <autodist@mambasoft.it> 3.0.6-2mamba
- automatic rebuild by autodist
* Fri Aug 28 2009 Automatic Build System <autodist@mambasoft.it> 3.0.6-1mamba
- automatic update by autodist
* Thu Jul 09 2009 Automatic Build System <autodist@mambasoft.it> 3.0.5-1mamba
- automatic update by autodist
* Thu Oct 09 2008 gil <puntogil@libero.it> 3.0.1-1mamba
- update to 3.0.1
* Sat Jul 19 2008 gil <puntogil@libero.it> 2.1.19-1mamba
- update to 2.1.19
* Fri Mar 31 2006 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 2.0.10-2qilnx
- added desktop file
* Thu Mar 30 2006 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 2.0.10-1qilnx
- update to version 2.0.10 by autospec
* Wed Nov 26 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.0-1qilnx
- new version rebuild
* Mon Oct 06 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.11-1qilnx
- first build