]>
Commit | Line | Data |
---|---|---|
e72cbdeb | 1 | Summary: A GNOME firewall tool |
5d3ecdad | 2 | Summary(pl.UTF-8): Narzędzie do konfiguracji firewalla działające w środowisku GNOME |
e72cbdeb | 3 | Name: firestarter |
f7aecd61 | 4 | Version: 1.0.3 |
2b72d641 | 5 | Release: 7 |
e72cbdeb | 6 | License: GPL |
1e69c53d | 7 | Group: X11/Applications/Networking |
13869911 | 8 | Source0: http://downloads.sourceforge.net/firestarter/%{name}-%{version}.tar.gz |
f7aecd61 | 9 | # Source0-md5: f46860a9e16dac4b693bd05f16370b03 |
59d7364a | 10 | Source1: %{name}.init |
6f1c8838 | 11 | Patch0: %{name}-desktop.patch |
12 | Patch1: %{name}-locale_names.patch | |
13 | Patch2: %{name}-script.patch | |
580a7da6 | 14 | URL: http://www.fs-security.com/ |
631153db | 15 | BuildRequires: autoconf >= 2.50 |
29c38a1c | 16 | BuildRequires: automake |
cf4ed9a7 | 17 | BuildRequires: gettext-tools |
f0aacc85 | 18 | BuildRequires: gnome-common |
c5050b0c | 19 | BuildRequires: gtk+2-devel >= 1:2.0.0 |
580a7da6 | 20 | BuildRequires: intltool |
631153db JB |
21 | BuildRequires: libgnome-devel >= 2.0.0 |
22 | BuildRequires: libgnomeui-devel >= 2.0.0 | |
29c38a1c | 23 | BuildRequires: libtool |
580a7da6 | 24 | BuildRequires: pkgconfig |
13869911 | 25 | BuildRequires: rpmbuild(macros) >= 1.268 |
5e5d9d0f | 26 | BuildRequires: sed >= 4.0 |
59d7364a | 27 | Requires(post,preun): /sbin/chkconfig |
631153db | 28 | Requires: iptables |
13869911 | 29 | Requires: rc-scripts |
d8d82e54 | 30 | # sr@Latn vs. sr@latin |
31 | Conflicts: glibc-misc < 6:2.7 | |
e72cbdeb | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ec6c8d00 | 33 | |
34 | %description | |
e72cbdeb | 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. | |
ec6c8d00 | 39 | |
265e816c JR |
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. | |
0ed468b1 | 46 | |
ec6c8d00 | 47 | %prep |
e72cbdeb | 48 | %setup -q |
6f1c8838 | 49 | %patch0 -p1 |
974d6a33 | 50 | %patch1 -p1 |
c8874312 | 51 | %patch2 -p1 |
52 | ||
53 | mv -f po/{no,nb}.po | |
29c38a1c | 54 | |
ec6c8d00 | 55 | %build |
13869911 | 56 | %{__intltoolize} |
784ce0ff | 57 | %{__libtoolize} |
7e57022d | 58 | %{__aclocal} |
032e5d85 | 59 | %{__autoconf} |
60 | %{__automake} | |
29c38a1c | 61 | %configure |
5e5d9d0f | 62 | %{__sed} -i 's/xml::\/etc\//xml::\$PREFIX\/etc\//' Makefile |
be8b3ca8 | 63 | %{__make} |
ec6c8d00 | 64 | |
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
59d7364a | 67 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d} |
a2727537 | 68 | install -d $RPM_BUILD_ROOT%{_sbindir} |
ec6c8d00 | 69 | |
e008282b | 70 | %{__make} install \ |
e72cbdeb | 71 | DESTDIR=$RPM_BUILD_ROOT \ |
b5effb35 | 72 | Applicationsdir=%{_desktopdir} |
e72cbdeb | 73 | |
59d7364a | 74 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/firestarter |
13869911 | 75 | cp -a firestarter.pam $RPM_BUILD_ROOT/etc/pam.d/firestarter |
b0c9c708 JB |
76 | |
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 | |
6c994240 | 98 | |
13869911 | 99 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/firestarter |
a2727537 | 100 | |
13869911 ER |
101 | # TODO: use .desktop magic for this |
102 | cat <<'EOF' > $RPM_BUILD_ROOT%{_bindir}/firestarter | |
103 | #!/bin/sh | |
e017c9bc | 104 | if [ -x %{_bindir}/gksudo ] ; then |
13869911 | 105 | exec gksudo -g %{_sbindir}/firestarter |
a2727537 | 106 | elif [ -x %{_bindir}/kdesu ] ; then |
13869911 | 107 | exec kdesu %{_sbindir}/firestarter |
a2727537 | 108 | else |
13869911 ER |
109 | exec %{_sbindir}/firestarter |
110 | fi | |
111 | EOF | |
a2727537 | 112 | |
d8d82e54 | 113 | [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ |
114 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} | |
be8b3ca8 | 115 | %find_lang %{name} --with-gnome |
ec6c8d00 | 116 | |
b0c9c708 JB |
117 | %clean |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
9cfc76e7 | 120 | %post |
6c994240 | 121 | %gconf_schema_install firestarter.schemas |
974d6a33 | 122 | %update_desktop_database_post |
59d7364a | 123 | /sbin/chkconfig --add firestarter |
13869911 | 124 | %service firestarter restart |
9cfc76e7 | 125 | |
126 | %preun | |
13869911 ER |
127 | if [ "$1" = 0 ]; then |
128 | %gconf_schema_uninstall firestarter.schemas | |
129 | %service firestarter stop | |
59d7364a | 130 | /sbin/chkconfig --del firestarter |
9cfc76e7 | 131 | fi |
132 | ||
3fae7238 | 133 | %postun |
974d6a33 | 134 | %update_desktop_database_postun |
135 | ||
d8242463 | 136 | %files -f %{name}.lang |
e72cbdeb | 137 | %defattr(644,root,root,755) |
1dbd2656 | 138 | %doc README ChangeLog AUTHORS TODO CREDITS |
e72cbdeb | 139 | %attr(755,root,root) %{_bindir}/firestarter |
a2727537 | 140 | %attr(755,root,root) %{_sbindir}/firestarter |
13869911 | 141 | %attr(754,root,root) /etc/rc.d/init.d/firestarter |
b0c9c708 | 142 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/firestarter |
13869911 | 143 | %{_sysconfdir}/gconf/schemas/firestarter.schemas |
b5effb35 | 144 | %{_desktopdir}/firestarter.desktop |
13869911 | 145 | %{_pixmapsdir}/firestarter.png |
6c994240 | 146 | %{_datadir}/%{name} |
3fae7238 KK |
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-* |