File: filtergen.spec.in

package info (click to toggle)
filtergen 0.12.4-5.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,600 kB
  • ctags: 982
  • sloc: ansic: 3,501; sh: 1,912; yacc: 684; lex: 306; makefile: 209
file content (63 lines) | stat: -rw-r--r-- 1,505 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Summary: packet filter generator for various firewall systems
Name: @PACKAGE@
Version: @VERSION@
Release: 1
License: GPL
Group: Applications/System
URL: http://spacepants.org/src/filtergen
Packager: Jamie Wilkinson <jaq@spacepants.org>

Source: http://spacepants.org/src/filtergen/download/%name-%version.tar.gz

Buildroot: %{_tmppath}/%{name}-root
BuildPrereq: rpm-build gcc flex make

%description
filtergen is a packet filter generator.  It compiles a fairly high-level
description language into iptables, ipchains, or ipfilter rules (and has
bits of support for Cisco IOS access lists).


%prep
%setup -q

./configure

%build
make CFLAGS="${RPM_OPT_FLAGS}"

%install
rm -rf $RPM_BUILD_ROOT
make PREFIX=${RPM_BUILD_ROOT}/usr BINDIR=${RPM_BUILD_ROOT}/sbin install

%post
/sbin/chkconfig --add filtergen
/sbin/chkconfig filtergen off

%preun
/sbin/service filtergen accept
/sbin/chkconfig --del filtergen

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/sbin/filtergen
/etc/init.d/filtergen
/etc/filter/
%{_mandir}/*
%doc HISTORY HONESTY README TODO tests/*.filter

%changelog
* Wed Mar 10 2004 Jamie Wilkinson <jaq@spacepants.org> - 0.12-1
- New upstream release.

* Wed Nov 13 2002 Matthew Kirkwood <matthew@hairy.beasts.org> 0.11-1
- Release 0.11, rename init script from "filter" to "filtergen"

* Mon Sep  2 2002 Matthew Kirkwood <matthew@hairy.beasts.org> 0.10-1
- Add new sample and documentation stuff

* Sun Aug 18 2002 Wil Cooley <wcooley@nakedape.cc> 0.8-1
- Initial RPM creation