📄 firestarter.spec.in
字号:
Name: firestarterVersion: @VERSION@Release: 1Epoch: 0Summary: The Firestarter firewall tool for GNOMEGroup: Applications/InternetLicense: GPLURL: http://www.fs-security.comSource0: http://firestarter.sourceforge.net/beta/1.0/firestarter-%{version}.tar.gzBuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)BuildRequires: glib2-devel >= 0:2.4BuildRequires: gtk2-devel >= 0:2.4BuildRequires: gnome-vfs2-devel >= 0:2.6.0BuildRequires: libglade2-devel >= 0:2.3.6BuildRequires: libgnomeui-develBuildRequires: perl-XML-ParserBuildRequires: gettextBuildRequires: desktop-file-utilsRequires: iptablesRequires: usermode-gtkRequires: gtk2 >= 2.4.0Requires: gnome-vfs2 => 2.6.0Requires(post): GConf2Requires(preun): GConf2%descriptionFirestarter is an easy-to-use, yet powerful, Linux firewall tool for GNOME.Use it to quickly set up a secure environment using the firewall creationwizard, or use it's monitoring and administrating features with your oldfirewall scripts.%prep%setup -q -n firestarter-%{version}%build%configuremake %{?_smp_mflags}%installrm -rf ${RPM_BUILD_ROOT}mkdir -p ${RPM_BUILD_ROOT}/%{_bindir}mkdir -p ${RPM_BUILD_ROOT}/%{_sbindir}mkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestartermkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/inboundmkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outboundexport GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1make install DESTDIR=${RPM_BUILD_ROOT}mv ${RPM_BUILD_ROOT}/%{_bindir}/firestarter ${RPM_BUILD_ROOT}/%{_sbindir}ln -s %{_bindir}/consolehelper ${RPM_BUILD_ROOT}/%{_bindir}/firestartertouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/configurationtouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/events-filter-hoststouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/events-filter-portstouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/firestarter.shtouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/firewalltouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/sysctl-tuningtouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/user-pretouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/user-posttouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/inbound/allow-fromtouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/inbound/allow-servicetouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/inbound/forwardtouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/inbound/setuptouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/allow-fromtouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/allow-servicetouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/allow-totouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/deny-fromtouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/deny-servicetouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/deny-totouch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/setup%find_lang %{name}install -p -D -m0644 firestarter.pam ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/firestarter install -p -D -m0644 firestarter.console ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps/firestarterinstall -p -D -m0755 fedora.init ${RPM_BUILD_ROOT}%{_initrddir}/firestarterrm -f ${RPM_BUILD_ROOT}%{_datadir}/gnome/apps/Internet/firestarter.desktopdesktop-file-install --vendor fedora \ --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ --add-category X-Fedora \ firestarter.desktop %cleanrm -rf ${RPM_BUILD_ROOT}%postexport GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)"gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/nullif [ "$1" = "1" ]; then /sbin/chkconfig --level 0123456 iptables off 2>/dev/null || : /sbin/chkconfig --add firestarter /sbin/chkconfig firestarter onfi%preunif [ "$1" = "0" ]; then export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)" gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null /sbin/chkconfig iptables reset 2>/dev/null || : /sbin/service firestarter stop >/dev/null 2>&1 /sbin/chkconfig --del firestarterfi%postunif [ "$1" = "0" ]; then if [ -e /etc/dhclient-exit-hooks ]; then grep -v 'sh %{_sysconfdir}/firestarter/firewall.sh start' < /etc/dhclient-exit-hooks > /etc/dhclient-exit-hooks.tmp mv /etc/dhclient-exit-hooks.tmp /etc/dhclient-exit-hooks fifi%files -f %{name}.lang%defattr(-,root,root,-)%doc README ChangeLog AUTHORS TODO COPYING CREDITS%attr(755,root,root) %{_sbindir}/firestarter%{_bindir}/firestarter%config %{_initrddir}/firestarter%{_sysconfdir}/gconf/schemas/firestarter.schemas%{_sysconfdir}/pam.d/firestarter%{_sysconfdir}/security/console.apps/%{name}%dir %attr(700,root,root) %{_sysconfdir}/firestarter%dir %attr(700,root,root) %{_sysconfdir}/firestarter/inbound%dir %attr(700,root,root) %{_sysconfdir}/firestarter/outbound%config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/configuration%config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/events-filter-hosts%config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/events-filter-ports%config(missingok,noreplace) %attr(700,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/firestarter.sh%config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/firewall%config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/sysctl-tuning%config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/user-pre%config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/user-post%config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/inbound/*%config(missingok,noreplace) %attr(400,root,root) %verify(not md5 mode mtime size) %{_sysconfdir}/firestarter/outbound/*%{_sysconfdir}/firestarter/non-routables%{_datadir}/applications/fedora-firestarter.desktop%{_datadir}/pixmaps/*%{_datadir}/firestarter/*%changelog* Wed Sep 15 2004 Tomas Junnonen <majix@sci.fi>* Don't uninstall schema in preun if we're doing an upgrade* Fri Sep 10 2004 Tomas Junnonen <majix@sci.fi>- Reintroduced gtk and gnome-vfs dependencies to keep package from installing on old distros where shared libraries detection doesn't work* Sun Sep 05 2004 Tomas Junnonen <majix@sci.fi>- New libglade2-devel dependency- Added glade data files to files section* Mon Aug 30 2004 Tomas Junnonen <majix@sci.fi>- Removed ipchains check- Updated dhclient-exit-hooks hook- Init script renamed* Sun Aug 29 2004 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.9-0.fdr.0.1.b1- 0.9.9b1.* Thu May 06 2004 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.3-0.fdr.2- GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 (#1570)* Tue May 04 2004 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.3-0.fdr.1- Update to 0.9.3.- Install/Uninstall schemas in post/preun.- Req(post,preun) GConf2.* Wed Oct 01 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.2-0.fdr.9- Removed aesthetic comments.- Corrected permissions of source files.- Brought spec more in line with current template.* Wed Aug 13 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.2-0.fdr.8- Added patch to reconginze Linux 2.6 kernels.- Added patch to fix crash on KDE3 tray updates.* Wed Aug 06 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.2-0.fdr.7- For %%{_sysconfdir}/firestarter now using verify, not ghost.* Tue Aug 05 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.2-0.fdr.6- Cleanup is now done in postun (rather than post, which is silly).* Sat Aug 02 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.2-0.fdr.5- Remove firestarter references from /etc/dhclient-exit-hooks in post.* Mon Jul 28 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.2-0.fdr.4- Fixed Pam typo.- ghost config files.* Thu Jul 24 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.2-0.fdr.3- Req usermode-gtk.- Wrapped post script.- pam_xauth entry -> optional.* Fri Jul 18 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.2-0.fdr.2- Readded Epoch: 0.- Split pam.d and console.apps files into separate SOURCE files.- Removed hard-coded paths.- Added explicit epochs.- Added Req iptables.- Package now owns %%{_sysconfdir}/firestarter.* Fri Jun 13 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0.9.2-0.fdr.1- Updated to 0.9.2.- Removed Epoch:0.- buildroot -> RPM_BUILD_ROOT.* Tue Apr 01 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0:0.9.1-0.fdr.7- Added desktop-file-utils to BuildRequires.- Changed category to X-Fedora-Extra.- Added Epoch:0.* Tue Mar 25 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0.9.1-0.fdr.6- removed %postun.* Tue Mar 25 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0.9.1-0.fdr.5- Moved menu entry to System Tools.- removed redundant ldconfig.- removed extra chkconfig.* Mon Mar 24 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0.9.1-0.fdr.4- Made the .desktop file an external file.- corrected BuildRequires.- corrected %files* Wed Mar 08 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0.9.1-0.fdr.3- Cleaned up spec* Wed Mar 05 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0.9.1-0.fdr.2- Cleaned up spec* Wed Feb 26 2003 Phillip Compton <pcompton[AT]proteinmedia.com> 0.9.1-1.fedora.1- Initial Fedora release (0.9.1). * Tue Aug 06 2002 Tomas Junnonen <majix@sci.fi>- Updated requirements to GNOME2 level- Removed all requirements related to the documentation generation* Tue Jun 25 2002 Paul Drain <pd@cipherfunk.org>- Merged some compatible cleanups from the FreshRPMS (http://freshrpms.net) specfile. * Wed Apr 24 2002 Paul Drain <pd@cipherfunk.org>- build dependancy cleanups* Mon Apr 22 2002 Paul Drain <pd@cipherfunk.org>- gnome-doc-tools is no longer required to build the RPM* Tue Jan 08 2002 Roy-Magne Mo <rmo@sunnmore.net>- Clean up specfile, and use rpm4 macros- Remove docuementation tools as requirements- Add gnome-doc-tools and then some as buildprereq- Add initscripts to prereq- used %makeinstall macro instead of old make install- no use specifying runlevels at the commandline, this should be specified in the initscripts itself- Added gnome-core as requirements* Mon Jan 07 2002 Tomas Junnonen <majix@sci.fi>- preun now doesn't explicitly delete the init script, caused problem with package upgrades.- Moved the init scripts to external files * Tue Oct 23 2001 Paul Drain <pd@cipherfunk.org>- Added sgmltools and openjade to build requirements* Tue Oct 16 2001 Paul Drain <pd@cipherfunk.org>- Updated build dependancies* Mon Jul 09 2001 Paul Drain <pd@cipherfunk.org>- Fixed documentation directory- Added sysconfdir variable instead of hardcoding /etc* Thu Jun 01 2000 Tomas Junnonen <majix@sci.fi>- Significant changes to allow use of consolehelper* Wed May 31 2000 Tomas Junnonen <majix@sci.fi>- Fixed problem with CFLAGS and LDADD usage of " and `* Mon May 29 2000 Tomas Junnonen <majix@sci.fi>- First spec file
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -