]> git.pld-linux.org Git - packages/filtergen.git/blob - filtergen.spec
- attr(755) for filtergen binary
[packages/filtergen.git] / filtergen.spec
1 Summary:        Simple packet filter generator
2 Name:           filter
3 Version:        0.3
4 Release:        1
5 License:        GPL
6 Group:  Networking/Utilities
7 Source0:        http://hairy.beasts.org/filter/%{name}-%{version}.tar.gz
8 Source1:        %{name}.conf
9 Patch0:         %{name}-equalsigns.patch
10 URL:            http://hairy.beasts.org/filter/
11 BuildRequires:  flex
12 Provides:       firewall
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 This tool is for generating packet filtering rules from a fairly high-
17 level description language.  It doesn't support all of the whizz-bang
18 features of the latest and greatest packet filters, but supports a
19 decent subset which is sufficient for typical workstation.
20
21 It currently supports only Linux iptables and ipchains.  Cisco IOS has
22 been begun, but is incomplete.  Darren Reed's ipfilter may be supported
23 at some stage.  It doesn't generate optimal rulesets, and has a few
24 limitations which need to be removed, but is still a useful tool.
25
26 Please read HONESTY file!
27
28 %prep
29 %setup  -q
30 %patch0 -p1
31
32 %build
33 %{__make}
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37
38 install -d $RPM_BUILD_ROOT/{%{_sbindir},%{_sysconfdir}/%{name}}
39 cp filtergen $RPM_BUILD_ROOT/%{_sbindir}
40 cp %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/simple.conf
41
42 gzip -9nf README HONESTY HISTORY TODO tests/*
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc README.gz HONESTY.gz HISTORY.gz TODO.gz
50 %doc tests
51 %attr(755,root,root) %{_sbindir}/filtergen
52 %{_sysconfdir}/%{name}/simple.conf
This page took 0.046085 seconds and 4 git commands to generate.