Summary(pl): Narzêdzie do konfiguracji firewalla dzia³aj±ce w ¶rodowisku GNOME
Name: firestarter
Version: 1.0.3
-Release: 0.4
+Release: 2
License: GPL
Group: X11/Applications/Networking
Source0: http://dl.sourceforge.net/firestarter/%{name}-%{version}.tar.gz
# Source0-md5: f46860a9e16dac4b693bd05f16370b03
Source1: %{name}.init
-Patch0: %{name}-acfix.patch
-Patch1: %{name}-desktop.patch
-Patch2: %{name}-locale_names.patch
+Patch0: %{name}-desktop.patch
+Patch1: %{name}-locale_names.patch
+Patch2: %{name}-script.patch
URL: http://www.fs-security.com/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
BuildRequires: sed >= 4.0
Requires(post,preun): /sbin/chkconfig
Requires: iptables
+Requires: gksu
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
-#%patch0 -p0 # really required?
+%patch0 -p1
%patch1 -p1
%patch2 -p1
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d}
+install -d $RPM_BUILD_ROOT%{_sbindir}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound/deny-to
touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound/setup
+mv $RPM_BUILD_ROOT%{_bindir}/firestarter $RPM_BUILD_ROOT%{_sbindir}
+
+echo -e "#!/bin/sh
+if [ -x %{_bindir}/gnomesu ] ; then
+ gnomesu %{_sbindir}/firestarter
+elif [ -x %{_bindir}/kdesu ] ; then
+ kdesu %{_sbindir}/firestarter
+else
+ %{_sbindir}/firestarter
+fi" > $RPM_BUILD_ROOT%{_bindir}/firestarter
+
%find_lang %{name} --with-gnome
%clean
%defattr(644,root,root,755)
%doc README ChangeLog AUTHORS TODO CREDITS
%attr(755,root,root) %{_bindir}/firestarter
+%attr(755,root,root) %{_sbindir}/firestarter
%attr(754,root,root) /etc/rc.d/init.d/*
%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/firestarter
%{_desktopdir}/firestarter.desktop
%{_datadir}/%{name}
%{_pixmapsdir}/*
-
%dir %attr(700,root,root) %{_sysconfdir}/%{name}
%dir %attr(700,root,root) %{_sysconfdir}/%{name}/inbound
%dir %attr(700,root,root) %{_sysconfdir}/%{name}/outbound
%config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/non-routables
%config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/sysctl-tuning
%config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/user-*
-
%{_sysconfdir}/gconf/schemas/*