-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfiltergen.spec.in
63 lines (47 loc) · 1.47 KB
/
filtergen.spec.in
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 <[email protected]>
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 <[email protected]> - 0.12-1
- New upstream release.
* Wed Nov 13 2002 Matthew Kirkwood <[email protected]> 0.11-1
- Release 0.11, rename init script from "filter" to "filtergen"
* Mon Sep 2 2002 Matthew Kirkwood <[email protected]> 0.10-1
- Add new sample and documentation stuff
* Sun Aug 18 2002 Wil Cooley <[email protected]> 0.8-1
- Initial RPM creation