merged libfwbuilder into fwbuilder as src/libfwbuilder; unit tests do not work yet

This commit is contained in:
Vadim Kurland
2010-12-25 20:12:30 -08:00
parent a6e6bfa2ac
commit 2417543eba
61 changed files with 1567 additions and 8446 deletions
+106
View File
@@ -0,0 +1,106 @@
# .spec file for statically linked fwbuilder rpm for CentOS 5.2
%define name fwbuilder
%define version 4.1.4
%define release 999999
%if "%_vendor" == "MandrakeSoft"
%define guigroup System/Configuration/Networking
%define compgroup System/Configuration/Networking
%else
%define guigroup Applications/System
%define compgroup Applications/System
%endif
Summary: Firewall Builder
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
License: GPL2
Vendor: NetCitadel LLC., http://sourceforge.net/project/showfiles.php?group_id=5314
Group: %{guigroup}
Url: http://www.fwbuilder.org/
Source: http://prdownloads.sourceforge.net/fwbuilder/%{name}-%{version}.tar.gz
Packager: Vadim Kurland <vadim@fwbuilder.org>
Buildroot: %{_tmppath}/%{name}-%{version}-root
Requires: libfwbuilder = @REQUIRED_LIBFWBUILDER_VERSION@
BuildRequires: libfwbuilder-devel = @REQUIRED_LIBFWBUILDER_VERSION@
BuildRequires: libxml2-devel, libxslt-devel, openssl-devel
Obsoletes: fwbuilder-ipt, fwbuilder-pf, fwbuilder-ipf, fwbuilder-ipfw, fwbuilder-pix, fwbuilder-iosacl, fwbuilder-cisco
Docdir: /usr/share/doc
%description
Firewall Builder consists of a GUI and set of policy compilers for
various firewall platforms. It helps users maintain a database of
objects and allows policy editing using simple drag-and-drop
operations. GUI generates firewall description in the form of XML
file, which compilers then interpret and generate platform-specific
code. Several algorithms are provided for automated network objects
discovery and bulk import of data. The GUI and policy compilers are
completely independent, this provides for a consistent abstract model
and the same GUI for different firewall platforms.
%prep
%setup
./autogen.sh
%build
%configure --with-qtdir=/opt/qt44
make -j5 all
%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
make INSTALL_ROOT="${RPM_BUILD_ROOT}/" install
rm -fr $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir /usr/share/fwbuilder-%version
/usr/share/fwbuilder-%version
/usr/bin/fwbuilder
/usr/bin/fwbedit
/usr/bin/fwb_iosacl
/usr/bin/fwb_ipf
/usr/bin/fwb_ipfw
/usr/bin/fwb_ipt
/usr/bin/fwb_pf
/usr/bin/fwb_pix
/usr/bin/fwb_procurve_acl
/usr/bin/transfer_secuwall
%doc doc/AUTHORS
%doc doc/COPYING
%doc doc/Credits
%doc doc/ChangeLog
%doc doc/PatchAcceptancePolicy.txt
%doc doc/README.floppyfw
%doc doc/README.iosacl
%doc doc/README.ipf
%doc doc/README.ipfw
%doc doc/README.ipt
%doc doc/README.pf
%doc doc/README.pix
%doc doc/README.pix_routing
%doc doc/README.routing
%doc doc/README.policy_import
%doc doc/README.iosacl
%doc doc/FWBuilder-Routing-LICENSE.txt
%{_mandir}/man1/fwbuilder.1*
%{_mandir}/man1/fwbedit.1*
%{_mandir}/man1/fwb_iosacl.1*
%{_mandir}/man1/fwb_ipf.1*
%{_mandir}/man1/fwb_ipfw.1*
%{_mandir}/man1/fwb_ipt.1*
%{_mandir}/man1/fwb_pf.1*
%{_mandir}/man1/fwb_pix.1*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/%name.png
+106
View File
@@ -0,0 +1,106 @@
# .spec file for statically linked fwbuilder rpm for CentOS 5.2
%define name fwbuilder
%define version @VERSION@
%define release @RELEASE_NUM@
%if "%_vendor" == "MandrakeSoft"
%define guigroup System/Configuration/Networking
%define compgroup System/Configuration/Networking
%else
%define guigroup Applications/System
%define compgroup Applications/System
%endif
Summary: Firewall Builder
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
License: GPL2
Vendor: NetCitadel LLC., http://sourceforge.net/project/showfiles.php?group_id=5314
Group: %{guigroup}
Url: http://www.fwbuilder.org/
Source: http://prdownloads.sourceforge.net/fwbuilder/%{name}-%{version}.tar.gz
Packager: Vadim Kurland <vadim@fwbuilder.org>
Buildroot: %{_tmppath}/%{name}-%{version}-root
Requires: libfwbuilder = @REQUIRED_LIBFWBUILDER_VERSION@
BuildRequires: libfwbuilder-devel = @REQUIRED_LIBFWBUILDER_VERSION@
BuildRequires: libxml2-devel, libxslt-devel, openssl-devel
Obsoletes: fwbuilder-ipt, fwbuilder-pf, fwbuilder-ipf, fwbuilder-ipfw, fwbuilder-pix, fwbuilder-iosacl, fwbuilder-cisco
Docdir: /usr/share/doc
%description
Firewall Builder consists of a GUI and set of policy compilers for
various firewall platforms. It helps users maintain a database of
objects and allows policy editing using simple drag-and-drop
operations. GUI generates firewall description in the form of XML
file, which compilers then interpret and generate platform-specific
code. Several algorithms are provided for automated network objects
discovery and bulk import of data. The GUI and policy compilers are
completely independent, this provides for a consistent abstract model
and the same GUI for different firewall platforms.
%prep
%setup
./autogen.sh
%build
%configure --with-qtdir=/opt/qt44
make -j5 all
%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
make INSTALL_ROOT="${RPM_BUILD_ROOT}/" install
rm -fr $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir /usr/share/fwbuilder-%version
/usr/share/fwbuilder-%version
/usr/bin/fwbuilder
/usr/bin/fwbedit
/usr/bin/fwb_iosacl
/usr/bin/fwb_ipf
/usr/bin/fwb_ipfw
/usr/bin/fwb_ipt
/usr/bin/fwb_pf
/usr/bin/fwb_pix
/usr/bin/fwb_procurve_acl
/usr/bin/transfer_secuwall
%doc doc/AUTHORS
%doc doc/COPYING
%doc doc/Credits
%doc doc/ChangeLog
%doc doc/PatchAcceptancePolicy.txt
%doc doc/README.floppyfw
%doc doc/README.iosacl
%doc doc/README.ipf
%doc doc/README.ipfw
%doc doc/README.ipt
%doc doc/README.pf
%doc doc/README.pix
%doc doc/README.pix_routing
%doc doc/README.routing
%doc doc/README.policy_import
%doc doc/README.iosacl
%doc doc/FWBuilder-Routing-LICENSE.txt
%{_mandir}/man1/fwbuilder.1*
%{_mandir}/man1/fwbedit.1*
%{_mandir}/man1/fwb_iosacl.1*
%{_mandir}/man1/fwb_ipf.1*
%{_mandir}/man1/fwb_ipfw.1*
%{_mandir}/man1/fwb_ipt.1*
%{_mandir}/man1/fwb_pf.1*
%{_mandir}/man1/fwb_pix.1*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/%name.png
+9
View File
@@ -0,0 +1,9 @@
Package: fwbuilder
Conflicts: fwbuilder (<=4.1.1-1), fwbuilder-common, fwbuilder-bsd, fwbuilder-linux, fwbuilder-doc
Replaces: fwbuilder (<=4.1.1-1), fwbuilder-common, fwbuilder-bsd, fwbuilder-linux, fwbuilder-doc
Priority: extra
Section: checkinstall
Maintainer: vadim@fwbuilder.org
Version: 4.1.4-999999
Depends: libfwbuilder, libqt4-gui (>= 4.3.0), libxml2, libxslt1.1, libsnmp | libsnmp15
Description: Firewall Builder GUI and policy compilers
+9
View File
@@ -0,0 +1,9 @@
Package: fwbuilder
Conflicts: fwbuilder (<=4.1.1-1), fwbuilder-common, fwbuilder-bsd, fwbuilder-linux, fwbuilder-doc
Replaces: fwbuilder (<=4.1.1-1), fwbuilder-common, fwbuilder-bsd, fwbuilder-linux, fwbuilder-doc
Priority: extra
Section: checkinstall
Maintainer: vadim@fwbuilder.org
Version: @VERSION@-@RELEASE_NUM@
Depends: libfwbuilder, libqt4-gui (>= 4.3.0), libxml2, libxslt1.1, libsnmp | libsnmp15
Description: Firewall Builder GUI and policy compilers
+108
View File
@@ -0,0 +1,108 @@
%define name fwbuilder
%define version 4.1.4
%define release 999999
%if "%_vendor" == "MandrakeSoft"
%define guigroup System/Configuration/Networking
%define compgroup System/Configuration/Networking
%else
%define guigroup Applications/System
%define compgroup Applications/System
%endif
Summary: Firewall Builder
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
License: GPL2
Vendor: NetCitadel LLC., http://sourceforge.net/project/showfiles.php?group_id=5314
Group: %{guigroup}
Url: http://www.fwbuilder.org/
Source: http://prdownloads.sourceforge.net/fwbuilder/%{name}-%{version}.tar.gz
Packager: Vadim Kurland <vadim@fwbuilder.org>
Buildroot: %{_tmppath}/%{name}-%{version}-root
Requires: libfwbuilder = @REQUIRED_LIBFWBUILDER_VERSION@-%{release}
BuildRequires: libfwbuilder-devel = @REQUIRED_LIBFWBUILDER_VERSION@-%{release}
BuildRequires: libxml2-devel, libxslt-devel, openssl-devel
%if "%_vendor" == "suse"
BuildRequires: qt-devel
%else
BuildRequires: qt4-devel
%endif
Obsoletes: fwbuilder-ipt, fwbuilder-pf, fwbuilder-ipf, fwbuilder-ipfw, fwbuilder-pix, fwbuilder-iosacl, fwbuilder-cisco
Docdir: /usr/share/doc
%description
Firewall Builder consists of a GUI and set of policy compilers for
various firewall platforms. It helps users maintain a database of
objects and allows policy editing using simple drag-and-drop
operations. GUI generates firewall description in the form of XML
file, which compilers then interpret and generate platform-specific
code. Several algorithms are provided for automated network objects
discovery and bulk import of data. The GUI and policy compilers are
completely independent, this provides for a consistent abstract model
and the same GUI for different firewall platforms.
%prep
%setup
./autogen.sh
%build
%configure
make -j5 all
%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
make INSTALL_ROOT="${RPM_BUILD_ROOT}/" install
rm -fr $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir /usr/share/fwbuilder-%version
/usr/share/fwbuilder-%version
/usr/bin/fwbuilder
/usr/bin/fwbedit
/usr/bin/fwb_iosacl
/usr/bin/fwb_ipf
/usr/bin/fwb_ipfw
/usr/bin/fwb_ipt
/usr/bin/fwb_pf
/usr/bin/fwb_pix
/usr/bin/fwb_procurve_acl
/usr/bin/transfer_secuwall
%doc doc/AUTHORS
%doc doc/COPYING
%doc doc/Credits
%doc doc/ChangeLog
%doc doc/PatchAcceptancePolicy.txt
%doc doc/README.floppyfw
%doc doc/README.iosacl
%doc doc/README.ipf
%doc doc/README.ipfw
%doc doc/README.ipt
%doc doc/README.pf
%doc doc/README.pix
%doc doc/README.pix_routing
%doc doc/README.routing
%doc doc/README.policy_import
%doc doc/README.iosacl
%doc doc/FWBuilder-Routing-LICENSE.txt
%{_mandir}/man1/fwbuilder.1*
%{_mandir}/man1/fwbedit.1*
%{_mandir}/man1/fwb_iosacl.1*
%{_mandir}/man1/fwb_ipf.1*
%{_mandir}/man1/fwb_ipfw.1*
%{_mandir}/man1/fwb_ipt.1*
%{_mandir}/man1/fwb_pf.1*
%{_mandir}/man1/fwb_pix.1*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/%name.png
+108
View File
@@ -0,0 +1,108 @@
%define name fwbuilder
%define version @VERSION@
%define release @RELEASE_NUM@
%if "%_vendor" == "MandrakeSoft"
%define guigroup System/Configuration/Networking
%define compgroup System/Configuration/Networking
%else
%define guigroup Applications/System
%define compgroup Applications/System
%endif
Summary: Firewall Builder
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
License: GPL2
Vendor: NetCitadel LLC., http://sourceforge.net/project/showfiles.php?group_id=5314
Group: %{guigroup}
Url: http://www.fwbuilder.org/
Source: http://prdownloads.sourceforge.net/fwbuilder/%{name}-%{version}.tar.gz
Packager: Vadim Kurland <vadim@fwbuilder.org>
Buildroot: %{_tmppath}/%{name}-%{version}-root
Requires: libfwbuilder = @REQUIRED_LIBFWBUILDER_VERSION@-%{release}
BuildRequires: libfwbuilder-devel = @REQUIRED_LIBFWBUILDER_VERSION@-%{release}
BuildRequires: libxml2-devel, libxslt-devel, openssl-devel
%if "%_vendor" == "suse"
BuildRequires: qt-devel
%else
BuildRequires: qt4-devel
%endif
Obsoletes: fwbuilder-ipt, fwbuilder-pf, fwbuilder-ipf, fwbuilder-ipfw, fwbuilder-pix, fwbuilder-iosacl, fwbuilder-cisco
Docdir: /usr/share/doc
%description
Firewall Builder consists of a GUI and set of policy compilers for
various firewall platforms. It helps users maintain a database of
objects and allows policy editing using simple drag-and-drop
operations. GUI generates firewall description in the form of XML
file, which compilers then interpret and generate platform-specific
code. Several algorithms are provided for automated network objects
discovery and bulk import of data. The GUI and policy compilers are
completely independent, this provides for a consistent abstract model
and the same GUI for different firewall platforms.
%prep
%setup
./autogen.sh
%build
%configure
make -j5 all
%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
make INSTALL_ROOT="${RPM_BUILD_ROOT}/" install
rm -fr $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir /usr/share/fwbuilder-%version
/usr/share/fwbuilder-%version
/usr/bin/fwbuilder
/usr/bin/fwbedit
/usr/bin/fwb_iosacl
/usr/bin/fwb_ipf
/usr/bin/fwb_ipfw
/usr/bin/fwb_ipt
/usr/bin/fwb_pf
/usr/bin/fwb_pix
/usr/bin/fwb_procurve_acl
/usr/bin/transfer_secuwall
%doc doc/AUTHORS
%doc doc/COPYING
%doc doc/Credits
%doc doc/ChangeLog
%doc doc/PatchAcceptancePolicy.txt
%doc doc/README.floppyfw
%doc doc/README.iosacl
%doc doc/README.ipf
%doc doc/README.ipfw
%doc doc/README.ipt
%doc doc/README.pf
%doc doc/README.pix
%doc doc/README.pix_routing
%doc doc/README.routing
%doc doc/README.policy_import
%doc doc/README.iosacl
%doc doc/FWBuilder-Routing-LICENSE.txt
%{_mandir}/man1/fwbuilder.1*
%{_mandir}/man1/fwbedit.1*
%{_mandir}/man1/fwb_iosacl.1*
%{_mandir}/man1/fwb_ipf.1*
%{_mandir}/man1/fwb_ipfw.1*
%{_mandir}/man1/fwb_ipt.1*
%{_mandir}/man1/fwb_pf.1*
%{_mandir}/man1/fwb_pix.1*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/%name.png