Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 127 lines (96 sloc) 3.503 kb
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hook a...
Damien Stuart authored
1 %ifarch x86_64
2 %define _libdir /usr/lib64
3 %else
4 %define _libdir /usr/lib
5 %endif
6
7 Name: fwknop
8 Version: 2.0.0_beta_rc1
9 Release: 1%{?dist}
2e03fea Minor cleanup on the spec file.
Damien Stuart authored
10 Summary: Firewall Knock Operator client. An implementation of Single Packet Authorization.
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hook a...
Damien Stuart authored
11
12 Group: Applications/Internet
13 License: GPL
14 URL: http://www.cipherdyne.org/fwknop/
15 Source0: fwknop-%{version}.tar.gz
16 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
17
18 BuildRequires: gpgme-devel, libpcap-devel, gdbm-devel
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with li...
Damien Stuart authored
19
20 Requires: libfko
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hook a...
Damien Stuart authored
21
22
23 %package -n libfko
24 Version: 0.0.1
25 Summary: The fwknop library
26 Group: Development/Libraries
27
28 %package -n libfko-devel
29 Version: 0.0.1
30 Summary: The fwknop library header and API docs
31 Group: Development/Libraries
32 Requires: libfko
33
34 %package server
2e03fea Minor cleanup on the spec file.
Damien Stuart authored
35 Summary: The Firewall Knock Operator server. An implementation of Single Packet Authorization.
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hook a...
Damien Stuart authored
36 Group: System Environment/Daemons
2e03fea Minor cleanup on the spec file.
Damien Stuart authored
37 Requires: libfko gpgme, libpcap, gdbm, iptables
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hook a...
Damien Stuart authored
38
39
40 %description
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with li...
Damien Stuart authored
41 Fwknop implements an authorization scheme known as Single Packet Authorization
42 (SPA) for Linux systems running iptables. This mechanism requires only a
43 single encrypted and non-replayed packet to communicate various pieces of
44 information including desired access through an iptables policy. The main
45 application of this program is to use iptables in a default-drop stance to
46 protect services such as SSH with an additional layer of security in order
47 to make the exploitation of vulnerabilities (both 0-day and unpatched code)
48 much more difficult.
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hook a...
Damien Stuart authored
49
50 %description -n libfko
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with li...
Damien Stuart authored
51 The Firewall Knock Operator library, libfko, provides the Single Packet
52 Authorization implementation and API for the other fwkop components.
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hook a...
Damien Stuart authored
53
54 %description -n libfko-devel
55 This is the libfko development header and API documentation.
56
57 %description server
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with li...
Damien Stuart authored
58 The Firewall Knock Operator server component for the FireWall Knock Operator,
59 and is responsible for monitoring Single Packet Authorization (SPA) packets
60 that are generated by fwknop clients, modifying a firewall or acl policy to
61 allow the desired access after decrypting a valid SPA packet, and removing
62 access after a configurable timeout.
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hook a...
Damien Stuart authored
63
64 %prep
65 %setup -q
66
67
68 %build
69 ./configure \
70 --prefix=%{_prefix} \
71 --sysconfdir=%{_sysconfdir} \
72 --localstatedir=%{_localstatedir} \
73 --libdir=%{_libdir} \
74 --with-gpgme
75
76 make %{?_smp_mflags}
77
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81 make install DESTDIR=$RPM_BUILD_ROOT
82
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with li...
Damien Stuart authored
87 %post -n libfko-devel
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hook a...
Damien Stuart authored
88 /sbin/ldconfig
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with li...
Damien Stuart authored
89 /sbin/install-info %{_infodir}/libfko.info* %{_infodir}/dir
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hook a...
Damien Stuart authored
90
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with li...
Damien Stuart authored
91 %preun -n libfko-devel
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hook a...
Damien Stuart authored
92 if [ "$1" = 0 ]; then
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with li...
Damien Stuart authored
93 /sbin/install-info --delete %{_infodir}/libfko.info* %{_infodir}/dir
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hook a...
Damien Stuart authored
94 fi
95
96 %postun
97 /sbin/ldconfig
98
99 %files
100 %defattr(-,root,root,-)
101 %attr(0755,root,root) %{_bindir}/fwknop
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with li...
Damien Stuart authored
102 %attr(0644,root,root) %{_mandir}/man8/fwknop.8*
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hook a...
Damien Stuart authored
103 %exclude %{_infodir}/dir
104
105 %files -n libfko
106 %defattr(-,root,root,-)
107 %attr(0644,root,root) %{_libdir}/libfko.*
108
109 %files -n libfko-devel
110 %defattr(-,root,root,-)
111 %attr(0644,root,root) %{_includedir}/fko.h
112 %attr(0644,root,root) %{_infodir}/libfko.info*
113
114 %files server
115 %defattr(-,root,root,-)
116 %attr(0755,root,root) %{_sbindir}/fwknopd
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with li...
Damien Stuart authored
117 %attr(0644,root,root) %{_mandir}/man8/fwknopd.8*
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hook a...
Damien Stuart authored
118 %config(noreplace) %attr(0600,root,root) %{_sysconfdir}/fwknop/fwknopd.conf
119 %config(noreplace) %attr(0600,root,root) %{_sysconfdir}/fwknop/access.conf
120
121 %changelog
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with li...
Damien Stuart authored
122 * Wed Jul 7 2010 Damien Stuart <dstuart@dstuart.org>
123 - Made the post and preun steps specific to libfko-devel.
a80b392 Fixed another oops in the spec file.
Damien Stuart authored
124 * Tue Jul 6 2010 Damien Stuart <dstuart@dstuart.org>
125 - Initial RPMification.
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hook a...
Damien Stuart authored
126
Something went wrong with that request. Please try again.