[521] | 1 | Name: firestarter |
---|
| 2 | Version: 1.0.3 |
---|
| 3 | Release: 3%{?_dist_release} |
---|
| 4 | #Epoch: 0 |
---|
| 5 | Summary: The Firestarter firewall tool for GNOME |
---|
| 6 | Summary(ja): GNOME デスクトップ用のファイヤーウォールツール |
---|
| 7 | |
---|
| 8 | Group: Applications/Internet |
---|
| 9 | License: GPL |
---|
| 10 | URL: http://www.fs-security.com |
---|
| 11 | Source0: http://firestarter.sourceforge.net/beta/1.0/firestarter-%{version}.tar.gz |
---|
| 12 | Patch0: firestarter_set_lang_c.patch |
---|
| 13 | Patch1: firestarter_permit_pam_console.patch |
---|
| 14 | Patch2: firestarter_update_ja_po.patch |
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 16 | |
---|
| 17 | BuildRequires: glib2-devel >= 0:2.4 |
---|
| 18 | BuildRequires: gtk2-devel >= 0:2.4 |
---|
| 19 | BuildRequires: gnome-vfs2-devel >= 0:2.6.0 |
---|
| 20 | BuildRequires: libglade2-devel >= 0:2.3.6 |
---|
| 21 | BuildRequires: libgnomeui-devel |
---|
| 22 | BuildRequires: perl-XML-Parser |
---|
| 23 | BuildRequires: gettext |
---|
| 24 | BuildRequires: desktop-file-utils |
---|
| 25 | |
---|
| 26 | Requires: iptables |
---|
| 27 | Requires: usermode-gtk |
---|
| 28 | Requires: gtk2 >= 2.4.0 |
---|
| 29 | Requires: gnome-vfs2 => 2.6.0 |
---|
| 30 | Requires(post): GConf2 |
---|
| 31 | Requires(preun): GConf2 |
---|
| 32 | |
---|
| 33 | %description |
---|
| 34 | Firestarter is an easy-to-use, yet powerful, Linux firewall tool for GNOME. |
---|
| 35 | Use it to quickly set up a secure environment using the firewall creation |
---|
| 36 | wizard, or use it's monitoring and administrating features with your old |
---|
| 37 | firewall scripts. |
---|
| 38 | |
---|
| 39 | %description -l ja |
---|
| 40 | Firestarter は使いやすくて強力な GNOME デスクトップ用のファイヤーウォール |
---|
| 41 | ツールです。ファイヤーウォール設定ウィザードを使って安全な環境をすぐに |
---|
| 42 | 設定することもできれば、既存のファイヤーウォールスクリプトを監視し、また |
---|
| 43 | 管理することもできます。 |
---|
| 44 | |
---|
| 45 | %prep |
---|
| 46 | %setup -q -n firestarter-%{version} |
---|
| 47 | %patch0 -p1 |
---|
| 48 | %patch1 -p1 |
---|
| 49 | %patch2 -p1 |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | %build |
---|
| 53 | %configure |
---|
| 54 | make %{?_smp_mflags} |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %install |
---|
| 58 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 59 | mkdir -p ${RPM_BUILD_ROOT}/%{_bindir} |
---|
| 60 | mkdir -p ${RPM_BUILD_ROOT}/%{_sbindir} |
---|
| 61 | mkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter |
---|
| 62 | mkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/inbound |
---|
| 63 | mkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound |
---|
| 64 | export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
---|
| 65 | make install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 66 | |
---|
| 67 | mv ${RPM_BUILD_ROOT}/%{_bindir}/firestarter ${RPM_BUILD_ROOT}/%{_sbindir} |
---|
| 68 | ln -s %{_bindir}/consolehelper ${RPM_BUILD_ROOT}/%{_bindir}/firestarter |
---|
| 69 | |
---|
| 70 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/configuration |
---|
| 71 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/events-filter-hosts |
---|
| 72 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/events-filter-ports |
---|
| 73 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/firestarter.sh |
---|
| 74 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/firewall |
---|
| 75 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/sysctl-tuning |
---|
| 76 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/user-pre |
---|
| 77 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/user-post |
---|
| 78 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/inbound/allow-from |
---|
| 79 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/inbound/allow-service |
---|
| 80 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/inbound/forward |
---|
| 81 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/inbound/setup |
---|
| 82 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/allow-from |
---|
| 83 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/allow-service |
---|
| 84 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/allow-to |
---|
| 85 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/deny-from |
---|
| 86 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/deny-service |
---|
| 87 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/deny-to |
---|
| 88 | touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/setup |
---|
| 89 | |
---|
| 90 | %find_lang %{name} |
---|
| 91 | |
---|
| 92 | install -p -D -m0644 firestarter.pam ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/firestarter |
---|
| 93 | install -p -D -m0644 firestarter.console ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps/firestarter |
---|
| 94 | install -p -D -m0755 fedora.init ${RPM_BUILD_ROOT}%{_initrddir}/firestarter |
---|
| 95 | |
---|
| 96 | rm -f ${RPM_BUILD_ROOT}%{_datadir}/gnome/apps/Internet/firestarter.desktop |
---|
| 97 | desktop-file-install --vendor fedora \ |
---|
| 98 | --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ |
---|
| 99 | --add-category X-Fedora \ |
---|
| 100 | firestarter.desktop |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | %clean |
---|
| 104 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 105 | |
---|
| 106 | |
---|
| 107 | %post |
---|
| 108 | export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)" |
---|
| 109 | gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null |
---|
| 110 | if [ "$1" = "1" ]; then |
---|
| 111 | /sbin/chkconfig --level 0123456 iptables off 2>/dev/null || : |
---|
| 112 | /sbin/chkconfig --add firestarter |
---|
| 113 | /sbin/chkconfig firestarter on |
---|
| 114 | fi |
---|
| 115 | |
---|
| 116 | |
---|
| 117 | %preun |
---|
| 118 | if [ "$1" = "0" ]; then |
---|
| 119 | export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)" |
---|
| 120 | gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null |
---|
| 121 | |
---|
| 122 | /sbin/chkconfig iptables reset 2>/dev/null || : |
---|
| 123 | /sbin/service firestarter stop >/dev/null 2>&1 |
---|
| 124 | /sbin/chkconfig --del firestarter |
---|
| 125 | fi |
---|
| 126 | |
---|
| 127 | |
---|
| 128 | %postun |
---|
| 129 | if [ "$1" = "0" ]; then |
---|
| 130 | if [ -e /etc/dhclient-exit-hooks ]; then |
---|
| 131 | grep -v 'sh %{_sysconfdir}/firestarter/firewall.sh start' < /etc/dhclient-exit-hooks > /etc/dhclient-exit-hooks.tmp |
---|
| 132 | mv /etc/dhclient-exit-hooks.tmp /etc/dhclient-exit-hooks |
---|
| 133 | fi |
---|
| 134 | fi |
---|
| 135 | |
---|
| 136 | |
---|
| 137 | %files -f %{name}.lang |
---|
| 138 | %defattr(-,root,root,-) |
---|
| 139 | %doc README ChangeLog AUTHORS TODO COPYING CREDITS |
---|
| 140 | %attr(755,root,root) %{_sbindir}/firestarter |
---|
| 141 | %{_bindir}/firestarter |
---|
| 142 | %config %{_initrddir}/firestarter |
---|
| 143 | %{_sysconfdir}/gconf/schemas/firestarter.schemas |
---|
| 144 | %{_sysconfdir}/pam.d/firestarter |
---|
| 145 | %{_sysconfdir}/security/console.apps/%{name} |
---|
| 146 | %dir %attr(700,root,root) %{_sysconfdir}/firestarter |
---|
| 147 | %dir %attr(700,root,root) %{_sysconfdir}/firestarter/inbound |
---|
| 148 | %dir %attr(700,root,root) %{_sysconfdir}/firestarter/outbound |
---|
| 149 | %config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/configuration |
---|
| 150 | %config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/events-filter-hosts |
---|
| 151 | %config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/events-filter-ports |
---|
| 152 | %config(missingok,noreplace) %attr(700,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/firestarter.sh |
---|
| 153 | %config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/firewall |
---|
| 154 | %config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/sysctl-tuning |
---|
| 155 | %config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/user-pre |
---|
| 156 | %config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/user-post |
---|
| 157 | %config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/inbound/* |
---|
| 158 | %config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/outbound/* |
---|
| 159 | %{_sysconfdir}/firestarter/non-routables |
---|
| 160 | %{_datadir}/applications/fedora-firestarter.desktop |
---|
| 161 | %{_datadir}/pixmaps/* |
---|
| 162 | %{_datadir}/firestarter/* |
---|
| 163 | |
---|
| 164 | %changelog |
---|
| 165 | * Sat Jun 06 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.3-3 |
---|
| 166 | - spec in UTF-8 |
---|
| 167 | |
---|
| 168 | * Sat Apr 05 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.0.3-2 |
---|
| 169 | - apply new versioning policy. |
---|
| 170 | |
---|
| 171 | * Wed Aug 17 2005 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.0.3-1vl2 |
---|
| 172 | - add patch1 to permit console users execute directly. |
---|
| 173 | - add patch2 (update ja.po). |
---|
| 174 | |
---|
| 175 | * Mon Aug 15 2005 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.0.3-1vl1 |
---|
| 176 | - comment out Epoch tag. |
---|
| 177 | - add patch0.(firestarter.sh script does't work with LANG=ja_JP.eucJP) |
---|
| 178 | - add japanese summary & description. |
---|
| 179 | |
---|
| 180 | * Wed Sep 15 2004 Tomas Junnonen <majix@sci.fi> |
---|
| 181 | * Don't uninstall schema in preun if we're doing an upgrade |
---|
| 182 | |
---|
| 183 | * Fri Sep 10 2004 Tomas Junnonen <majix@sci.fi> |
---|
| 184 | - Reintroduced gtk and gnome-vfs dependencies to keep package from installing |
---|
| 185 | on old distros where shared libraries detection doesn't work |
---|
| 186 | |
---|
| 187 | * Sun Sep 05 2004 Tomas Junnonen <majix@sci.fi> |
---|
| 188 | - New libglade2-devel dependency |
---|
| 189 | - Added glade data files to files section |
---|
| 190 | |
---|
| 191 | * Mon Aug 30 2004 Tomas Junnonen <majix@sci.fi> |
---|
| 192 | - Removed ipchains check |
---|
| 193 | - Updated dhclient-exit-hooks hook |
---|
| 194 | - Init script renamed |
---|
| 195 | |
---|
| 196 | * Sun Aug 29 2004 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.9-0.fdr.0.1.b1 |
---|
| 197 | - 0.9.9b1. |
---|
| 198 | |
---|
| 199 | * Thu May 06 2004 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.3-0.fdr.2 |
---|
| 200 | - GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 (#1570) |
---|
| 201 | |
---|
| 202 | * Tue May 04 2004 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.3-0.fdr.1 |
---|
| 203 | - Update to 0.9.3. |
---|
| 204 | - Install/Uninstall schemas in post/preun. |
---|
| 205 | - Req(post,preun) GConf2. |
---|
| 206 | |
---|
| 207 | * Wed Oct 01 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.2-0.fdr.9 |
---|
| 208 | - Removed aesthetic comments. |
---|
| 209 | - Corrected permissions of source files. |
---|
| 210 | - Brought spec more in line with current template. |
---|
| 211 | |
---|
| 212 | * Wed Aug 13 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.2-0.fdr.8 |
---|
| 213 | - Added patch to reconginze Linux 2.6 kernels. |
---|
| 214 | - Added patch to fix crash on KDE3 tray updates. |
---|
| 215 | |
---|
| 216 | * Wed Aug 06 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.2-0.fdr.7 |
---|
| 217 | - For %%{_sysconfdir}/firestarter now using verify, not ghost. |
---|
| 218 | |
---|
| 219 | * Tue Aug 05 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.2-0.fdr.6 |
---|
| 220 | - Cleanup is now done in postun (rather than post, which is silly). |
---|
| 221 | |
---|
| 222 | * Sat Aug 02 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.2-0.fdr.5 |
---|
| 223 | - Remove firestarter references from /etc/dhclient-exit-hooks in post. |
---|
| 224 | |
---|
| 225 | * Mon Jul 28 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.2-0.fdr.4 |
---|
| 226 | - Fixed Pam typo. |
---|
| 227 | - ghost config files. |
---|
| 228 | |
---|
| 229 | * Thu Jul 24 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.2-0.fdr.3 |
---|
| 230 | - Req usermode-gtk. |
---|
| 231 | - Wrapped post script. |
---|
| 232 | - pam_xauth entry -> optional. |
---|
| 233 | |
---|
| 234 | * Fri Jul 18 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.2-0.fdr.2 |
---|
| 235 | - Readded Epoch: 0. |
---|
| 236 | - Split pam.d and console.apps files into separate SOURCE files. |
---|
| 237 | - Removed hard-coded paths. |
---|
| 238 | - Added explicit epochs. |
---|
| 239 | - Added Req iptables. |
---|
| 240 | - Package now owns %%{_sysconfdir}/firestarter. |
---|
| 241 | |
---|
| 242 | * Fri Jun 13 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0.9.2-0.fdr.1 |
---|
| 243 | - Updated to 0.9.2. |
---|
| 244 | - Removed Epoch:0. |
---|
| 245 | - buildroot -> RPM_BUILD_ROOT. |
---|
| 246 | |
---|
| 247 | * Tue Apr 01 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.1-0.fdr.7 |
---|
| 248 | - Added desktop-file-utils to BuildRequires. |
---|
| 249 | - Changed category to X-Fedora-Extra. |
---|
| 250 | - Added Epoch:0. |
---|
| 251 | |
---|
| 252 | * Tue Mar 25 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0.9.1-0.fdr.6 |
---|
| 253 | - removed %postun. |
---|
| 254 | |
---|
| 255 | * Tue Mar 25 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0.9.1-0.fdr.5 |
---|
| 256 | - Moved menu entry to System Tools. |
---|
| 257 | - removed redundant ldconfig. |
---|
| 258 | - removed extra chkconfig. |
---|
| 259 | |
---|
| 260 | * Mon Mar 24 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0.9.1-0.fdr.4 |
---|
| 261 | - Made the .desktop file an external file. |
---|
| 262 | - corrected BuildRequires. |
---|
| 263 | - corrected %files |
---|
| 264 | |
---|
| 265 | * Wed Mar 08 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0.9.1-0.fdr.3 |
---|
| 266 | - Cleaned up spec |
---|
| 267 | |
---|
| 268 | * Wed Mar 05 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0.9.1-0.fdr.2 |
---|
| 269 | - Cleaned up spec |
---|
| 270 | |
---|
| 271 | * Wed Feb 26 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0.9.1-1.fedora.1 |
---|
| 272 | - Initial Fedora release (0.9.1). |
---|
| 273 | |
---|
| 274 | * Tue Aug 06 2002 Tomas Junnonen <majix@sci.fi> |
---|
| 275 | - Updated requirements to GNOME2 level |
---|
| 276 | - Removed all requirements related to the documentation generation |
---|
| 277 | |
---|
| 278 | * Tue Jun 25 2002 Paul Drain <pd@cipherfunk.org> |
---|
| 279 | - Merged some compatible cleanups from the FreshRPMS (http://freshrpms.net) |
---|
| 280 | specfile. |
---|
| 281 | |
---|
| 282 | * Wed Apr 24 2002 Paul Drain <pd@cipherfunk.org> |
---|
| 283 | - build dependancy cleanups |
---|
| 284 | |
---|
| 285 | * Mon Apr 22 2002 Paul Drain <pd@cipherfunk.org> |
---|
| 286 | - gnome-doc-tools is no longer required to build the RPM |
---|
| 287 | |
---|
| 288 | * Tue Jan 08 2002 Roy-Magne Mo <rmo@sunnmore.net> |
---|
| 289 | - Clean up specfile, and use rpm4 macros |
---|
| 290 | - Remove docuementation tools as requirements |
---|
| 291 | - Add gnome-doc-tools and then some as buildprereq |
---|
| 292 | - Add initscripts to prereq |
---|
| 293 | - used %makeinstall macro instead of old make install |
---|
| 294 | - no use specifying runlevels at the commandline, this |
---|
| 295 | should be specified in the initscripts itself |
---|
| 296 | - Added gnome-core as requirements |
---|
| 297 | |
---|
| 298 | * Mon Jan 07 2002 Tomas Junnonen <majix@sci.fi> |
---|
| 299 | - preun now doesn't explicitly delete the init script, |
---|
| 300 | caused problem with package upgrades. |
---|
| 301 | - Moved the init scripts to external files |
---|
| 302 | |
---|
| 303 | * Tue Oct 23 2001 Paul Drain <pd@cipherfunk.org> |
---|
| 304 | - Added sgmltools and openjade to build requirements |
---|
| 305 | |
---|
| 306 | * Tue Oct 16 2001 Paul Drain <pd@cipherfunk.org> |
---|
| 307 | - Updated build dependancies |
---|
| 308 | |
---|
| 309 | * Mon Jul 09 2001 Paul Drain <pd@cipherfunk.org> |
---|
| 310 | - Fixed documentation directory |
---|
| 311 | - Added sysconfdir variable instead of hardcoding /etc |
---|
| 312 | |
---|
| 313 | * Thu Jun 01 2000 Tomas Junnonen <majix@sci.fi> |
---|
| 314 | - Significant changes to allow use of consolehelper |
---|
| 315 | |
---|
| 316 | * Wed May 31 2000 Tomas Junnonen <majix@sci.fi> |
---|
| 317 | - Fixed problem with CFLAGS and LDADD usage of " and ` |
---|
| 318 | |
---|
| 319 | * Mon May 29 2000 Tomas Junnonen <majix@sci.fi> |
---|
| 320 | - First spec file |
---|