Skip to content
Newer
Older
100644 155 lines (122 sloc) 4.34 KB
a0b813c Reworked how man pages are generated. Now, man pages in the client an…
Damien Stuart authored Jul 11, 2010
1 %define _prefix /usr
2 %define _bindir /usr/bin
3 %define _sbindir /usr/sbin
4 %define _includedir /usr/include
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
5 %ifarch x86_64
6 %define _libdir /usr/lib64
7 %else
8 %define _libdir /usr/lib
9 %endif
a0b813c Reworked how man pages are generated. Now, man pages in the client an…
Damien Stuart authored Jul 11, 2010
10 %define _sysconfdir /etc
11 %define _localstatedir /var
12 %define _infodir /usr/share/info
13 %define _mandir /usr/share/man
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
14
15 Name: fwknop
690fe25 @mrash added CREDITS file, bumped software version, added ChangeLog files
authored Dec 5, 2011
16 Version: 2.0rc5
4c995c1 Almost all he conf variables have a default value if they are not the…
Damien Stuart authored Jul 15, 2010
17 # Uncomment this when the version becomes 2.0.0 (without the rcX).
18 #Epoch: 1
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
19 Release: 1%{?dist}
2e03fea Minor cleanup on the spec file.
Damien Stuart authored Jul 7, 2010
20 Summary: Firewall Knock Operator client. An implementation of Single Packet Authorization.
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
21
22 Group: Applications/Internet
23 License: GPL
24 URL: http://www.cipherdyne.org/fwknop/
25 Source0: fwknop-%{version}.tar.gz
26 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
27
9c2cd26 Fixed issue with spaces in in access.conf comma-separated values. Fix…
Damien Stuart authored Jul 31, 2010
28 BuildRequires: gpg, gpgme-devel, libpcap-devel, gdbm-devel
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with…
Damien Stuart authored Jul 8, 2010
29
30 Requires: libfko
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
31
32
33 %package -n libfko
225e364 Additional docs and classes added to the fko python module. Minor twe…
Damien Stuart authored Dec 5, 2010
34 Version: 0.0.3
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
35 Summary: The fwknop library
36 Group: Development/Libraries
9c2cd26 Fixed issue with spaces in in access.conf comma-separated values. Fix…
Damien Stuart authored Jul 31, 2010
37 Requires: gpg, gpgme
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
38
39 %package -n libfko-devel
225e364 Additional docs and classes added to the fko python module. Minor twe…
Damien Stuart authored Dec 5, 2010
40 Version: 0.0.3
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
41 Summary: The fwknop library header and API docs
42 Group: Development/Libraries
43 Requires: libfko
44
45 %package server
2e03fea Minor cleanup on the spec file.
Damien Stuart authored Jul 7, 2010
46 Summary: The Firewall Knock Operator server. An implementation of Single Packet Authorization.
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
47 Group: System Environment/Daemons
8cfa222 Fixed some misplaced dependencies in the fwknop.spec file.
Damien Stuart authored Jul 16, 2010
48 Requires: libfko, libpcap, gdbm, iptables
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
49
50
51 %description
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with…
Damien Stuart authored Jul 8, 2010
52 Fwknop implements an authorization scheme known as Single Packet Authorization
53 (SPA) for Linux systems running iptables. This mechanism requires only a
54 single encrypted and non-replayed packet to communicate various pieces of
55 information including desired access through an iptables policy. The main
56 application of this program is to use iptables in a default-drop stance to
57 protect services such as SSH with an additional layer of security in order
58 to make the exploitation of vulnerabilities (both 0-day and unpatched code)
59 much more difficult.
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
60
61 %description -n libfko
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with…
Damien Stuart authored Jul 8, 2010
62 The Firewall Knock Operator library, libfko, provides the Single Packet
35abc34 @mrash minor typo fix: fwkop -> fwknop
authored Sep 12, 2011
63 Authorization implementation and API for the other fwknop components.
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
64
65 %description -n libfko-devel
66 This is the libfko development header and API documentation.
67
68 %description server
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with…
Damien Stuart authored Jul 8, 2010
69 The Firewall Knock Operator server component for the FireWall Knock Operator,
70 and is responsible for monitoring Single Packet Authorization (SPA) packets
71 that are generated by fwknop clients, modifying a firewall or acl policy to
72 allow the desired access after decrypting a valid SPA packet, and removing
73 access after a configurable timeout.
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
74
75 %prep
76 %setup -q
77
78
79 %build
80 ./configure \
81 --prefix=%{_prefix} \
82 --sysconfdir=%{_sysconfdir} \
83 --localstatedir=%{_localstatedir} \
84 --libdir=%{_libdir} \
85 --with-gpgme
86
87 make %{?_smp_mflags}
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91 make install DESTDIR=$RPM_BUILD_ROOT
ce6fe8c Tweaks to the fwknop.spec file
Damien Stuart authored Oct 21, 2010
92 install -D ./extras/fwknop.init.redhat ${RPM_BUILD_ROOT}/etc/rc.d/init.d/fwknopd
781218e Bumped version to rc3 (even though we may go straight to release) and…
Damien Stuart authored Oct 31, 2010
93 # Just in case...
e07ccdd @damienstuart Added the cmd_opts.h file to server and client's Makefile.am so they …
damienstuart authored Sep 10, 2011
94 [ -d "${RPM_BUILD_ROOT}/usr/share/info" ] \
225e364 Additional docs and classes added to the fko python module. Minor twe…
Damien Stuart authored Dec 5, 2010
95 || mkdir -p ${RPM_BUILD_ROOT}/usr/share/info
e07ccdd @damienstuart Added the cmd_opts.h file to server and client's Makefile.am so they …
damienstuart authored Sep 10, 2011
96 [ -f "${RPM_BUILD_ROOT}/usr/share/info/dir" ] \
97 || touch ${RPM_BUILD_ROOT}/usr/share/info/dir
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with…
Damien Stuart authored Jul 8, 2010
102 %post -n libfko-devel
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
103 /sbin/ldconfig
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with…
Damien Stuart authored Jul 8, 2010
104 /sbin/install-info %{_infodir}/libfko.info* %{_infodir}/dir
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
105
ce6fe8c Tweaks to the fwknop.spec file
Damien Stuart authored Oct 21, 2010
106 %post -n fwknop-server
107 /sbin/chkconfig --add fwknopd
108 /sbin/chkconfig fwknopd off
109
110 %preun -n fwknop-server
111 /sbin/chkconfig --del fwknopd
112
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with…
Damien Stuart authored Jul 8, 2010
113 %preun -n libfko-devel
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
114 if [ "$1" = 0 ]; then
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with…
Damien Stuart authored Jul 8, 2010
115 /sbin/install-info --delete %{_infodir}/libfko.info* %{_infodir}/dir
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
116 fi
117
ce6fe8c Tweaks to the fwknop.spec file
Damien Stuart authored Oct 21, 2010
118 %postun -n libfko
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
119 /sbin/ldconfig
120
121 %files
122 %defattr(-,root,root,-)
123 %attr(0755,root,root) %{_bindir}/fwknop
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with…
Damien Stuart authored Jul 8, 2010
124 %attr(0644,root,root) %{_mandir}/man8/fwknop.8*
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
125 %exclude %{_infodir}/dir
126
127 %files -n libfko
128 %defattr(-,root,root,-)
129 %attr(0644,root,root) %{_libdir}/libfko.*
130
131 %files -n libfko-devel
132 %defattr(-,root,root,-)
133 %attr(0644,root,root) %{_includedir}/fko.h
134 %attr(0644,root,root) %{_infodir}/libfko.info*
135
136 %files server
137 %defattr(-,root,root,-)
138 %attr(0755,root,root) %{_sbindir}/fwknopd
ce6fe8c Tweaks to the fwknop.spec file
Damien Stuart authored Oct 21, 2010
139 %attr(0755,root,root) /etc/rc.d/init.d/fwknopd
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with…
Damien Stuart authored Jul 8, 2010
140 %attr(0644,root,root) %{_mandir}/man8/fwknopd.8*
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
141 %config(noreplace) %attr(0600,root,root) %{_sysconfdir}/fwknop/fwknopd.conf
142 %config(noreplace) %attr(0600,root,root) %{_sysconfdir}/fwknop/access.conf
143
144 %changelog
8cfa222 Fixed some misplaced dependencies in the fwknop.spec file.
Damien Stuart authored Jul 16, 2010
145 * Thu Jul 15 2010 Damien Stuart <dstuart@dstuart.org>
146 - Fixed some misplaced depenencies (moved gpgpme from server to libfko).
147
9d2a4c2 Fixed autoconf config so libfko and fwknop client are not linked with…
Damien Stuart authored Jul 8, 2010
148 * Wed Jul 7 2010 Damien Stuart <dstuart@dstuart.org>
149 - Made the post and preun steps specific to libfko-devel.
8cfa222 Fixed some misplaced dependencies in the fwknop.spec file.
Damien Stuart authored Jul 16, 2010
150
a80b392 Fixed another oops in the spec file.
Damien Stuart authored Jul 8, 2010
151 * Tue Jul 6 2010 Damien Stuart <dstuart@dstuart.org>
152 - Initial RPMification.
2a67766 Added fwknop.spec for rpm builds. Removed the server post install hoo…
Damien Stuart authored Jul 7, 2010
153
8cfa222 Fixed some misplaced dependencies in the fwknop.spec file.
Damien Stuart authored Jul 16, 2010
154 ###EOF###
Something went wrong with that request. Please try again.