firestarter-vl.spec 12 KB

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