Группа :: Безопасность/Сети
Пакет: fwbuilder
Главная Изменения Спек Патчи Загрузить Bugs and FR
%define name fwbuilder
%define version 2.0.12
%define release alt2.M24.1
%define compgroup Security/Networking
Summary: Firewall Builder
Name: %name
Version: %version
Release: %release
License: GPL2
Group: %compgroup
Url: http://www.fwbuilder.org/
Source0: %name-%version.tar.gz
Source2: firewall_32x32.png
Packager: Evgenii Terechkov <evg at altlinux.ru>
Requires: libfwbuilder = %version, fwbuilder-ipt = %version
Obsoletes: %name-doc %name-devel
BuildPreReq: lib%name-devel = %version
BuildRequires: gcc-c++ XFree86-devel qt3-designer
%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.
%package pf
Summary: policy compiler for OpenBSD pf
Group: %compgroup
Provides: %name-pf = %version-%release
Requires: %name = %version
%description pf
Policy compiler for OpenBSD PF
%package ipf
Summary: policy compiler for ipfilter
Group: %compgroup
Provides: %name-ipf = %version-%release
Requires: %name = %version
%description ipf
Policy compiler for ipfilter
%package ipfw
Summary: policy compiler for ipfw
Group: %compgroup
Provides: %name-ipfw = %version-%release
Requires: %name = %version
%description ipfw
Policy compiler for ipfw
%package ipt
Summary: policy compiler for iptables
Group: %compgroup
Provides: %name-ipt = %version-%release
Requires: %name = %version
%description ipt
Policy compiler for iptables
%prep
%setup -q
%build
export QTDIR=%_libdir/qt3
%configure \
--enable-auto-docdir \
--prefix=%prefix \
--with-qtdir=%_libdir/qt3 \
--with-templatedir=%_datadir/%name
%make_build
%install
%make INSTALL_ROOT=%buildroot install
%__mkdir_p %buildroot%_menudir
%__cat > %buildroot%_menudir/%name <<EOF
?package(%name): needs="x11" \
section="Configuration/Networking" \
title="Firewall Builder" \
longtitle="Firewall Builder" \
command="%_bindir/%name" \
icon="%name.png"
EOF
%__install -pD -m644 src/gui/icons/firewall_16.png %buildroot%_miconsdir/%name.png
%__install -pD -m644 %SOURCE2 %buildroot%_iconsdir/%name.png
%__install -pD -m644 src/gui/icons/firewall_48.png %buildroot%_liconsdir/%name.png
%find_lang %name
%post
%update_menus
%postun
%clean_menus
%files -f %name.lang
%doc doc/AUTHORS doc/COPYING doc/Credits doc/ChangeLog doc/README.floppyfw doc/README.ipf
%doc doc/README.ipfw doc/README.ipt doc/README.pf doc/PatchAcceptancePolicy.txt
%_bindir/%name
%_bindir/fwblookup
%_bindir/fwbedit
%_bindir/fwb_install
%_bindir/fwb_compile_all
%_datadir/%name
%_menudir/%name
%_mandir/man1/%name.1*
%_mandir/man1/fwblookup.1*
%_mandir/man1/fwbedit.1*
%_mandir/man1/fwb_install.1*
%_mandir/man1/fwb_compile_all.1*
%_miconsdir/%name.png
%_iconsdir/%name.png
%_liconsdir/%name.png
%files pf
%_bindir/fwb_pf
%_mandir/man1/fwb_pf.1*
%files ipf
%_bindir/fwb_ipf
%_mandir/man1/fwb_ipf.1*
%files ipfw
%_bindir/fwb_ipfw
%_mandir/man1/fwb_ipfw.1*
%files ipt
%_bindir/fwb_ipt
%_mandir/man1/fwb_ipt.1*
%changelog
…
Полный changelog можно просмотреть здесь
%define version 2.0.12
%define release alt2.M24.1
%define compgroup Security/Networking
Summary: Firewall Builder
Name: %name
Version: %version
Release: %release
License: GPL2
Group: %compgroup
Url: http://www.fwbuilder.org/
Source0: %name-%version.tar.gz
Source2: firewall_32x32.png
Packager: Evgenii Terechkov <evg at altlinux.ru>
Requires: libfwbuilder = %version, fwbuilder-ipt = %version
Obsoletes: %name-doc %name-devel
BuildPreReq: lib%name-devel = %version
BuildRequires: gcc-c++ XFree86-devel qt3-designer
%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.
%package pf
Summary: policy compiler for OpenBSD pf
Group: %compgroup
Provides: %name-pf = %version-%release
Requires: %name = %version
%description pf
Policy compiler for OpenBSD PF
%package ipf
Summary: policy compiler for ipfilter
Group: %compgroup
Provides: %name-ipf = %version-%release
Requires: %name = %version
%description ipf
Policy compiler for ipfilter
%package ipfw
Summary: policy compiler for ipfw
Group: %compgroup
Provides: %name-ipfw = %version-%release
Requires: %name = %version
%description ipfw
Policy compiler for ipfw
%package ipt
Summary: policy compiler for iptables
Group: %compgroup
Provides: %name-ipt = %version-%release
Requires: %name = %version
%description ipt
Policy compiler for iptables
%prep
%setup -q
%build
export QTDIR=%_libdir/qt3
%configure \
--enable-auto-docdir \
--prefix=%prefix \
--with-qtdir=%_libdir/qt3 \
--with-templatedir=%_datadir/%name
%make_build
%install
%make INSTALL_ROOT=%buildroot install
%__mkdir_p %buildroot%_menudir
%__cat > %buildroot%_menudir/%name <<EOF
?package(%name): needs="x11" \
section="Configuration/Networking" \
title="Firewall Builder" \
longtitle="Firewall Builder" \
command="%_bindir/%name" \
icon="%name.png"
EOF
%__install -pD -m644 src/gui/icons/firewall_16.png %buildroot%_miconsdir/%name.png
%__install -pD -m644 %SOURCE2 %buildroot%_iconsdir/%name.png
%__install -pD -m644 src/gui/icons/firewall_48.png %buildroot%_liconsdir/%name.png
%find_lang %name
%post
%update_menus
%postun
%clean_menus
%files -f %name.lang
%doc doc/AUTHORS doc/COPYING doc/Credits doc/ChangeLog doc/README.floppyfw doc/README.ipf
%doc doc/README.ipfw doc/README.ipt doc/README.pf doc/PatchAcceptancePolicy.txt
%_bindir/%name
%_bindir/fwblookup
%_bindir/fwbedit
%_bindir/fwb_install
%_bindir/fwb_compile_all
%_datadir/%name
%_menudir/%name
%_mandir/man1/%name.1*
%_mandir/man1/fwblookup.1*
%_mandir/man1/fwbedit.1*
%_mandir/man1/fwb_install.1*
%_mandir/man1/fwb_compile_all.1*
%_miconsdir/%name.png
%_iconsdir/%name.png
%_liconsdir/%name.png
%files pf
%_bindir/fwb_pf
%_mandir/man1/fwb_pf.1*
%files ipf
%_bindir/fwb_ipf
%_mandir/man1/fwb_ipf.1*
%files ipfw
%_bindir/fwb_ipfw
%_mandir/man1/fwb_ipfw.1*
%files ipt
%_bindir/fwb_ipt
%_mandir/man1/fwb_ipt.1*
%changelog
…
Полный changelog можно просмотреть здесь