1 Summary: A GNOME firewall tool
2 Summary(pl.UTF-8): Narzędzie do konfiguracji firewalla działające w środowisku GNOME
7 Group: X11/Applications/Networking
8 Source0: http://downloads.sourceforge.net/firestarter/%{name}-%{version}.tar.gz
9 # Source0-md5: f46860a9e16dac4b693bd05f16370b03
11 Patch0: %{name}-desktop.patch
12 Patch1: %{name}-locale_names.patch
13 Patch2: %{name}-script.patch
14 URL: http://www.fs-security.com/
15 BuildRequires: autoconf >= 2.50
16 BuildRequires: automake
17 BuildRequires: gettext-tools
18 BuildRequires: gnome-common
19 BuildRequires: gtk+2-devel >= 1:2.0.0
20 BuildRequires: intltool
21 BuildRequires: libgnome-devel >= 2.0.0
22 BuildRequires: libgnomeui-devel >= 2.0.0
23 BuildRequires: libtool
24 BuildRequires: pkgconfig
25 BuildRequires: rpmbuild(macros) >= 1.268
26 BuildRequires: sed >= 4.0
27 Requires(post,preun): /sbin/chkconfig
30 # sr@Latn vs. sr@latin
31 Conflicts: glibc-misc < 6:2.7
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 FireStarter is an easy-to-use, yet powerful, Linux firewall tool for
36 GNOME. Use it to quickly set up a secure environment using the
37 firewall creation wizard, or use it's monitoring and administrating
38 features with your old firewall scripts.
40 %description -l pl.UTF-8
41 FireStarter jest łatwym w użyciu, lecz potężnym narzędziem do
42 konfiguracji firewalla działającym w środowisku GNOME. Możesz go użyć,
43 by szybko stworzyć bezpieczne środowisko korzystając z kreatora
44 tworzenia firewalla, lub skorzystać z jego możliwości monitorowania i
45 administrowania wraz z istniejącymi regułami firewalla.
62 %{__sed} -i 's/xml::\/etc\//xml::\$PREFIX\/etc\//' Makefile
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d}
68 install -d $RPM_BUILD_ROOT%{_sbindir}
71 DESTDIR=$RPM_BUILD_ROOT \
72 Applicationsdir=%{_desktopdir}
74 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/firestarter
75 cp -a firestarter.pam $RPM_BUILD_ROOT/etc/pam.d/firestarter
77 install -d $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/inbound
78 install -d $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound
79 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/configuration
80 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/events-filter-hosts
81 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/events-filter-ports
82 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/firestarter.sh
83 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/firewall
84 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/sysctl-tuning
85 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/user-pre
86 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/user-post
87 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/inbound/allow-from
88 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/inbound/allow-service
89 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/inbound/forward
90 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/inbound/setup
91 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound/allow-from
92 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound/allow-service
93 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound/allow-to
94 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound/deny-from
95 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound/deny-service
96 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound/deny-to
97 touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound/setup
99 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/firestarter
101 # TODO: use .desktop magic for this
102 cat <<'EOF' > $RPM_BUILD_ROOT%{_bindir}/firestarter
104 if [ -x %{_bindir}/gksudo ] ; then
105 exec gksudo -g %{_sbindir}/firestarter
106 elif [ -x %{_bindir}/kdesu ] ; then
107 exec kdesu %{_sbindir}/firestarter
109 exec %{_sbindir}/firestarter
113 [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
114 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
115 %find_lang %{name} --with-gnome
118 rm -rf $RPM_BUILD_ROOT
121 %gconf_schema_install firestarter.schemas
122 %update_desktop_database_post
123 /sbin/chkconfig --add firestarter
124 %service firestarter restart
127 if [ "$1" = 0 ]; then
128 %gconf_schema_uninstall firestarter.schemas
129 %service firestarter stop
130 /sbin/chkconfig --del firestarter
134 %update_desktop_database_postun
136 %files -f %{name}.lang
137 %defattr(644,root,root,755)
138 %doc README ChangeLog AUTHORS TODO CREDITS
139 %attr(755,root,root) %{_bindir}/firestarter
140 %attr(755,root,root) %{_sbindir}/firestarter
141 %attr(754,root,root) /etc/rc.d/init.d/firestarter
142 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/firestarter
143 %{_sysconfdir}/gconf/schemas/firestarter.schemas
144 %{_desktopdir}/firestarter.desktop
145 %{_pixmapsdir}/firestarter.png
147 %dir %attr(700,root,root) %{_sysconfdir}/%{name}
148 %dir %attr(700,root,root) %{_sysconfdir}/%{name}/inbound
149 %dir %attr(700,root,root) %{_sysconfdir}/%{name}/outbound
150 %config(noreplace) %attr(700,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/firestarter.sh
151 %config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/inbound/*
152 %config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/outbound/*
153 %config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/configuration
154 %config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/events-filter-*
155 %config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/firewall
156 %config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/non-routables
157 %config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/sysctl-tuning
158 %config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/user-*