]> git.pld-linux.org Git - packages/firestarter.git/blob - firestarter.spec
- todo added
[packages/firestarter.git] / firestarter.spec
1
2 # todo:
3 # - init.d file
4 # - pam file
5
6 Summary:        A GNOME firewall tool
7 Summary(pl):    Narzêdzie do konfiguracji firewalla dzia³aj±ce w ¶rodowisku GNOME
8 Name:           firestarter
9 Version:        1.0.3
10 Release:        0.1     
11 License:        GPL
12 Group:          X11/Applications/Networking
13 Source0:        http://dl.sourceforge.net/firestarter/%{name}-%{version}.tar.gz
14 # Source0-md5:  f46860a9e16dac4b693bd05f16370b03
15 Patch0:         %{name}-acfix.patch
16 Patch1:         %{name}-desktop.patch
17 Patch2:         %{name}-locale_names.patch
18 URL:            http://firestarter.sourceforge.net/
19 BuildRequires:  autoconf >= 2.50
20 BuildRequires:  automake
21 BuildRequires:  gettext-devel
22 BuildRequires:  gtk+2-devel >= 1:2.0.0
23 BuildRequires:  libgnome-devel >= 2.0.0
24 BuildRequires:  libgnomeui-devel >= 2.0.0
25 BuildRequires:  libtool
26 BuildRequires:  sed >= 4.0
27 Requires:       iptables
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 FireStarter is an easy-to-use, yet powerful, Linux firewall tool for
32 GNOME. Use it to quickly set up a secure environment using the
33 firewall creation wizard, or use it's monitoring and administrating
34 features with your old firewall scripts.
35
36 %description -l pl
37 FireStarter jest ³atwym w u¿yciu, lecz potê¿nym narzêdziem do
38 konfiguracji firewalla dzia³aj±cym w ¶rodowisku GNOME. Mo¿esz go u¿yæ,
39 by szybko stworzyæ bezpieczne ¶rodowisko korzystaj±c z kreatora
40 tworzenia firewalla, lub skorzystaæ z jego mo¿liwo¶ci monitorowania i
41 administrowania wraz z istniej±cymi regu³ami firewalla.
42
43 %prep
44 %setup -q
45 #%patch0 -p0 # really required?
46 %patch1 -p1
47 %patch2 -p1
48
49 mv -f po/{no,nb}.po
50
51 %build
52 %{__libtoolize}
53 %{__aclocal}
54 %{__autoconf}
55 %{__automake}
56 %configure
57 %{__sed} -i 's/xml::\/etc\//xml::\$PREFIX\/etc\//' Makefile
58 %{__make}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62
63 %{__make} install \
64         DESTDIR=$RPM_BUILD_ROOT \
65         Applicationsdir=%{_desktopdir}
66
67 install -d ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/inbound/
68 install -d ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/
69 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/configuration
70 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/events-filter-hosts
71 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/events-filter-ports
72 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/firestarter.sh
73 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/firewall
74 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/sysctl-tuning
75 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/user-pre
76 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/user-post
77 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/inbound/allow-from
78 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/inbound/allow-service
79 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/inbound/forward
80 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/inbound/setup
81 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/allow-from
82 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/allow-service
83 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/allow-to
84 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/deny-from
85 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/deny-service
86 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/deny-to
87 touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/firestarter/outbound/setup
88
89 %find_lang %{name} --with-gnome
90
91 %post
92 %gconf_schema_install firestarter.schemas
93 %update_desktop_database_post
94
95 %preun
96 if [ $1 = 0 ]; then
97     %gconf_schema_uninstall firestarter.schemas
98 fi
99
100 %postun 
101 %update_desktop_database_postun
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %files -f %{name}.lang
107 %defattr(644,root,root,755)
108 %doc README ChangeLog AUTHORS TODO CREDITS
109 %attr(755,root,root) %{_bindir}/firestarter
110 %{_desktopdir}/firestarter.desktop
111 %{_datadir}/%{name}
112 %{_pixmapsdir}/*
113 %dir %{_sysconfdir}/%{name}
114 %config(noreplace) %{_sysconfdir}/%{name}/*
115 %{_sysconfdir}/gconf/schemas/*
This page took 0.074915 seconds and 3 git commands to generate.