]> git.pld-linux.org Git - packages/firestarter.git/blobdiff - firestarter.spec
- moved to %{_sbindir} (requires root privileges)
[packages/firestarter.git] / firestarter.spec
index 50f948f0aefb78a262447effd921044692f8ceec..d951401859f59ddc865002dea57fbb9f005ab401 100644 (file)
 Summary:       A GNOME firewall tool
+Summary(pl):   Narzêdzie do konfiguracji firewalla dzia³aj±ce w ¶rodowisku GNOME
 Name:          firestarter
-Version:       0.2.2
-Release:       1
+Version:       1.0.3
+Release:       0.4
 License:       GPL
-Group:         Applications/Internet
-Source0:       http://download.sourceforge.com/firestarter/firestarter-%{version}.tar.gz
-URL:           http://firestarter.sourceforge.net/
+Group:         X11/Applications/Networking
+Source0:       http://dl.sourceforge.net/firestarter/%{name}-%{version}.tar.gz
+# Source0-md5: f46860a9e16dac4b693bd05f16370b03
+Source1:       %{name}.init
+Patch0:                %{name}-acfix.patch
+Patch1:                %{name}-desktop.patch
+Patch2:                %{name}-locale_names.patch
+URL:           http://www.fs-security.com/
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
 BuildRequires: gettext-devel
-BuildRequires: gtk+-devel >= 1.2.5
-BuildRequires: gnome-core-devel
-BuildRequires: gnome-libs-devel >= 1.0.55
-Requires:      ipchains >= 1.3.9
+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)
 
-%define                _prefix         /usr/X11R6
-
 %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.
 
+%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 -p0 # really required?
+%patch1 -p1
+%patch2 -p1
+
+mv -f po/{no,nb}.po
 
 %build
-gettextize --copy --force
-LDFLAGS="-s"; export LDFLAGS
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
 %configure
+%{__sed} -i 's/xml::\/etc\//xml::\$PREFIX\/etc\//' Makefile
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d}
+install -d $RPM_BUILD_ROOT%{_sbindir}
 
-make install \
+%{__make} install \
        DESTDIR=$RPM_BUILD_ROOT \
-       Productivitydir=%{_applnkdir}/System
+       Applicationsdir=%{_desktopdir}
+
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/firestarter
+install firestarter.pam $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/firestarter
+
+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
 
-gzip -9nf README ChangeLog AUTHORS TODO CREDITS
+mv $RPM_BUILD_ROOT%{_bindir}/firestarter $RPM_BUILD_ROOT%{_sbindir}
 
-#%find_lang %{name}
+echo -e "#!/bin/sh
+if [ -x %{_bindir}/gnomesu ] ; then
+       gnomesu %{_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
 
-%files
-# -f %{name}.lang
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc *gz
+%doc README ChangeLog AUTHORS TODO CREDITS
 %attr(755,root,root) %{_bindir}/firestarter
-%{_applnkdir}/System/firestarter.desktop
-%{_datadir}/pixmaps/*
+%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.082161 seconds and 4 git commands to generate.