]> git.pld-linux.org Git - packages/firestarter.git/blobdiff - firestarter.spec
- rel. 3 to rebuild with openssl 0.9.8b
[packages/firestarter.git] / firestarter.spec
index e6215e82055e8bafd1bf6ba73bc9f18d4f78440f..d577d593c9e3f1e2580a7ffa3c6b3ac8b09dec1d 100644 (file)
-%define name   firestarter
-%define version 0.2.2
-%define release 1
-%define prefix  /usr
-
-Summary: A firewall tool GNOME
-Name: %{name}
-Version: %{version}
-Release: %{release}
-Copyright: GPL
-Group: Applications/Internet
-URL: http://firestarter.sourceforge.net
-
-Source: http://download.sourceforge.com/firestarter/firestarter-%{version}.tar.gz
-BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
-
-Docdir: %{prefix}/doc
-
-Requires: gtk+ >= 1.2.5
-Requires: gnome-libs >= 1.0.55
-Requires: ipchains >= 1.3.9
+Summary:       A GNOME firewall tool
+Summary(pl):   Narzêdzie do konfiguracji firewalla dzia³aj±ce w ¶rodowisku GNOME
+Name:          firestarter
+Version:       1.0.3
+Release:       3
+License:       GPL
+Group:         X11/Applications/Networking
+Source0:       http://dl.sourceforge.net/firestarter/%{name}-%{version}.tar.gz
+# Source0-md5: f46860a9e16dac4b693bd05f16370b03
+Source1:       %{name}.init
+Patch0:                %{name}-desktop.patch
+Patch1:                %{name}-locale_names.patch
+Patch2:                %{name}-script.patch
+URL:           http://www.fs-security.com/
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
+BuildRequires: gettext-devel
+BuildRequires: gtk+2-devel >= 1:2.0.0
+BuildRequires: intltool
+BuildRequires: libgnome-devel >= 2.0.0
+BuildRequires: libgnomeui-devel >= 2.0.0
+BuildRequires: libtool
+BuildRequires: pkgconfig
+BuildRequires: sed >= 4.0
+Requires(post,preun):  /sbin/chkconfig
+Requires:      iptables
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-FireStarter is an easy-to-use, yet powerful, Linux firewall tool for GNOME.
-Use it to quickly set up a secure environment using the firewall creation
-wizard, or use it's monitoring and administrating features with your old
-firewall scripts.
+FireStarter is an easy-to-use, yet powerful, Linux firewall tool for
+GNOME. Use it to quickly set up a secure environment using the
+firewall creation wizard, or use it's monitoring and administrating
+features with your old firewall scripts.
+
+%description -l pl
+FireStarter jest ³atwym w u¿yciu, lecz potê¿nym narzêdziem do
+konfiguracji firewalla dzia³aj±cym w ¶rodowisku GNOME. Mo¿esz go u¿yæ,
+by szybko stworzyæ bezpieczne ¶rodowisko korzystaj±c z kreatora
+tworzenia firewalla, lub skorzystaæ z jego mo¿liwo¶ci monitorowania i
+administrowania wraz z istniej±cymi regu³ami firewalla.
 
 %prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
-%setup
+mv -f po/{no,nb}.po
 
 %build
-CFLAGS="-O2" 
-%ifarch i586
-CFLAGS="-O2 -mpentium -march=pentium" 
-%endif
-%ifarch i686
-CFLAGS="-O2 -mpentiumpro -march=pentiumpro" 
-%endif
-./configure --prefix=%{prefix}
-make
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure
+%{__sed} -i 's/xml::\/etc\//xml::\$PREFIX\/etc\//' Makefile
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make prefix=$RPM_BUILD_ROOT%{prefix} install
+install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d}
+install -d $RPM_BUILD_ROOT%{_sbindir}
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       Applicationsdir=%{_desktopdir}
+
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/firestarter
+install firestarter.pam $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/firestarter
 
-%files
-%defattr(-,root,root)
-%doc README ChangeLog AUTHORS TODO COPYING CREDITS
-%attr(755,root,root) %{prefix}/bin/firestarter
-%{prefix}/share/gnome/apps/Internet/firestarter.desktop
-%{prefix}/share/pixmaps/*
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/inbound
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/configuration
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/events-filter-hosts
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/events-filter-ports
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/firestarter.sh
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/firewall
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/sysctl-tuning
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/user-pre
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/user-post
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/inbound/allow-from
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/inbound/allow-service
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/inbound/forward
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/inbound/setup
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound/allow-from
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound/allow-service
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound/allow-to
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound/deny-from
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound/deny-service
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound/deny-to
+touch $RPM_BUILD_ROOT%{_sysconfdir}/firestarter/outbound/setup
+
+mv $RPM_BUILD_ROOT%{_bindir}/firestarter $RPM_BUILD_ROOT%{_sbindir}
+
+echo -e "#!/bin/sh
+if [ -x %{_bindir}/gksudo ] ; then
+       gksudo -g %{_sbindir}/firestarter
+elif [ -x %{_bindir}/kdesu ] ; then
+       kdesu %{_sbindir}/firestarter
+else
+       %{_sbindir}/firestarter
+fi" > $RPM_BUILD_ROOT%{_bindir}/firestarter
+
+%find_lang %{name} --with-gnome
 
 %clean
-rm -r $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%gconf_schema_install firestarter.schemas
+%update_desktop_database_post
+/sbin/chkconfig --add firestarter
+if [ -f /var/lock/subsys/firestarter ]; then
+       /etc/rc.d/init.d/firestarter restart 1>&2
+else
+       echo "Run \"/etc/rc.d/init.d/firestarter start\" to start firestarter."
+fi
+
+%preun
+if [ $1 = 0 ]; then
+    %gconf_schema_uninstall firestarter.schemas
+       if [ -f /var/lock/subsys/firestarter ]; then
+               /etc/rc.d/init.d/firestarter stop 1>&2
+       fi
+       /sbin/chkconfig --del firestarter
+fi
+
+%postun
+%update_desktop_database_postun
 
-%changelog
-* Mon May 29 2000 Tomas Junnonen
-- First spec file
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc README ChangeLog AUTHORS TODO CREDITS
+%attr(755,root,root) %{_bindir}/firestarter
+%attr(755,root,root) %{_sbindir}/firestarter
+%attr(754,root,root) /etc/rc.d/init.d/*
+%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/firestarter
+%{_desktopdir}/firestarter.desktop
+%{_datadir}/%{name}
+%{_pixmapsdir}/*
+%dir %attr(700,root,root) %{_sysconfdir}/%{name}
+%dir %attr(700,root,root) %{_sysconfdir}/%{name}/inbound
+%dir %attr(700,root,root) %{_sysconfdir}/%{name}/outbound
+%config(noreplace) %attr(700,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/firestarter.sh
+%config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/inbound/*
+%config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/outbound/*
+%config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/configuration
+%config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/events-filter-*
+%config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/firewall
+%config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/non-routables
+%config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/sysctl-tuning
+%config(noreplace) %attr(440,root,root) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/user-*
+%{_sysconfdir}/gconf/schemas/*
This page took 0.091356 seconds and 4 git commands to generate.