-
Notifications
You must be signed in to change notification settings - Fork 0
/
ged.spec
330 lines (263 loc) · 12.3 KB
/
ged.spec
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
%define __perl_requires /bin/false
Summary: Generic Event Dispatcher
Name:ged
Version:1.5
Release:10.eon
Source: https://github.com/EyesOfNetworkCommunity/%{name}/archive/master.tar.gz#/%{name}-%{version}.tar.gz
BuildRoot:/tmp/%{name}-%{version}
Group:Applications/Base
Packager: http://generic-ed.sourceforge.net
License:GPL
BuildRequires: gcc >= 4.0.0
BuildRequires: pkgconfig
BuildRequires: libgenerics-devel >= 1.2-1
BuildRequires: libgcrypt-devel
BuildRequires: mysql-devel >= 5.0.3
BuildRequires: glib2-devel
BuildRequires: zlib-devel
#BuildRequires: db4-devel
Requires: libgenerics >= 1.2-1
Requires: openssl
Requires: libgcrypt
Requires: glib2
Requires: zlib
%description
GED is a wire designed to handle templated data transmission over HTTP in distributed networks.
%package mysql
Summary: Generic Event Dispatcher MySQL backend
License: GPL
Group: Applications/Base
Requires: %{name} = %{version}
Requires: mariadb-server
%description mysql
GED is a wire designed to handle templated data transmission over HTTP in distributed networks.
This is the mysql GED backend.
#%package bdb
#Summary: Generic Event Dispatcher Berkeley backend
#License: GPL
#Group: Applications/Base
#
#Requires: %{name} = %{version}
#Requires: db4
#%description bdb
#GED is a wire designed to handle templated data transmission over HTTP in distributed networks.
#This is the berkeley GED backend.
%package devel
Summary: Generic Event Dispatcher
License: GPL
Group: Applications/Base
Requires: %{name} = %{version}
Requires: libgenerics-devel >= 1.2
Requires: libgcrypt-devel
Requires: mysql-devel >= 5.0.0
Requires: glib2-devel
Requires: zlib-devel
#Requires: db4-devel
Requires: openssl-devel
%description devel
GED is a wire designed to handle templated data transmission over HTTP in distributed networks.
This is the devel part as you may want to write your own backend.
%prep
%setup -q -n %{name}-master
%build
make
%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/bin
mkdir -p ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/etc/ssl/easy-rsa
mkdir -p ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/etc/bkd
mkdir -p ${RPM_BUILD_ROOT}/etc/cron.d
mkdir -p ${RPM_BUILD_ROOT}/etc/httpd/conf.d
mkdir -p ${RPM_BUILD_ROOT}/usr/lib64/pkgconfig
mkdir -p ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/lib64
mkdir -p ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/man/man8
mkdir -p ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/scripts
mkdir -p ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/var/www/
mkdir -p ${RPM_BUILD_ROOT}%{_unitdir}
install -m 640 etc.in/ged2rss ${RPM_BUILD_ROOT}/etc/cron.d/
install -m 640 etc.in/purge_ged ${RPM_BUILD_ROOT}/etc/cron.d/
install -m 640 etc.in/ged_rss.conf ${RPM_BUILD_ROOT}/etc/httpd/conf.d/
install -m 666 etc.in/*.cfg ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/etc
install -m 666 etc.in/bkd/gedmysql.cfg ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/etc/bkd
install -m 666 etc.in/bkd/geddummy.cfg ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/etc/bkd
install -m 755 ged ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/bin
install -m 755 gedq ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/bin
install -m 755 gedbackup ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/bin
install -m 755 gedrestore ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/bin
install -m 655 %{name}dummy-%{version}.so %{name}mysql-%{version}.so ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/lib64
install -m 655 lib%{name}-%{version}.* lib%{name}q-%{version}.* ${RPM_BUILD_ROOT}/usr/lib64
install -m 644 etc.in/bkd/*.sql ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/etc/bkd
install -m 644 gedq.8.gz ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/man/man8
install -m 744 ssl/mk* ssl/check* ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/etc/ssl
install -m 744 ssl/easy-rsa/* ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/etc/ssl/easy-rsa
install -m 755 scripts/* ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/scripts
mkdir -p ${RPM_BUILD_ROOT}/usr/include/ged
install -m 644 inc/* ${RPM_BUILD_ROOT}/usr/include/ged
install -m 644 %{name}-%{version}.pc ${RPM_BUILD_ROOT}/usr/lib64/pkgconfig
install -m 644 var/www/index.html ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/var/www/
install -m 644 etc.in/gedd.service $RPM_BUILD_ROOT/%{_unitdir}/gedd.service
%post
mkdir -p ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/var/cache
chmod 777 ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/var/cache
mkdir -p ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/var/lib
chmod 777 ${RPM_BUILD_ROOT}/srv/eyesofnetwork/%{name}/var/lib
ln -s /srv/eyesofnetwork/%{name} /srv/eyesofnetwork/%{name}
if [ ! -f /srv/eyesofnetwork/%{name}/etc/ssl/ca.crt ]; then
cd /srv/eyesofnetwork/%{name}/etc/ssl
./mkgedsrvcerts.sh geds
./mkgedclicerts.sh gedc
cd -
fi
%systemd_post gedd.service
%preun
%systemd_preun gedd.service
%postun
%systemd_postun_with_restart gedd.service
%clean
rm -rf ${RPM_BUILD_ROOT}
rm -rf /tmp/%{name}
%files
%config(noreplace) /srv/eyesofnetwork/%{name}/etc/ged.cfg
%config(noreplace) /srv/eyesofnetwork/%{name}/etc/gedq.cfg
%config(noreplace) /srv/eyesofnetwork/%{name}/etc/gedp.cfg
%config(noreplace) /srv/eyesofnetwork/%{name}/etc/gedt.cfg
%config(noreplace) /srv/eyesofnetwork/%{name}/etc/bkd/geddummy.cfg
%{_unitdir}/gedd.service
/srv/eyesofnetwork/%{name}/etc/ssl
/etc/cron.d/ged2rss
/etc/cron.d/purge_ged
/etc/httpd/conf.d/ged_rss.conf
/srv/eyesofnetwork/%{name}/lib64/geddummy-%{version}.so
/srv/eyesofnetwork/%{name}/bin/ged
/srv/eyesofnetwork/%{name}/bin/gedq
/srv/eyesofnetwork/%{name}/bin/gedbackup
/srv/eyesofnetwork/%{name}/bin/gedrestore
/srv/eyesofnetwork/%{name}/man/man8/gedq.8.gz
/srv/eyesofnetwork/%{name}/scripts/
/srv/eyesofnetwork/%{name}/var/www/index.html
/usr/lib64/libged-%{version}.so
/usr/lib64/libged-%{version}.a
/usr/lib64/libgedq-%{version}.so
/usr/lib64/libgedq-%{version}.a
#%files bdb
#%config(noreplace) /srv/eyesofnetwork/%{name}/etc/bkd/gedhdb.cfg
#/srv/eyesofnetwork/%{name}/lib64/gedhdb-%{version}.so
%files mysql
%config(noreplace) /srv/eyesofnetwork/%{name}/etc/bkd/gedmysql.cfg
/srv/eyesofnetwork/%{name}/lib64/gedmysql-%{version}.so
/srv/eyesofnetwork/%{name}/etc/bkd/ged-init.sql
%files devel
/usr/include/ged
/usr/lib64/pkgconfig/%{name}-%{version}.pc
%changelog
* Tue Nov 28 2017 Jean-Philippe Levy <[email protected]> - 1.5.10
- Update for EyesOfNetwork 5.2
* Wed May 04 2016 Jean-Philippe Levy <[email protected]> - 1.5.9
- Add systemd service
- Fix do not copy gedhdb.cfg
- Fix ged_rss.conf
* Wed May 04 2016 Michael Aubertin <[email protected]> - 1.5-8
- Patch Nagios relation file script
- Add daily purge with Problem MGT
* Tue Apr 19 2016 Michael Aubertin <[email protected]> - 1.5-7
- With Eric Belhomme :)
- Replace TYPE by ENGINE and build against EON5 (centos7)
- Remove Berkeley DB Backend
- Replace Nagios Scripts
* Mon Jan 13 2014 Jeremie Bernard <[email protected]> - 1.5.6
- Fix casting variables for 64 Bits arch.
* Sat Jun 29 2013 Michael Aubertin <[email protected]> - 1.5.5
- Remove glib forgetted dependencies.
- Fix ged2rss group bug.
* Wed Jun 26 2013 Michael Aubertin <[email protected]> - 1.5.4
- Add GED Rss feature per user and per filter but the service group.
* Sat Jun 08 2013 Michael Aubertin <[email protected]> - 1.5.3
- Add Ged 2 RSS XML feature :)
* Fri Jun 07 2013 Michael Aubertin <[email protected]> - 1.5.2
- Compile against 64Bit with fPIC translation.
- Port to glib2 compliance GString
* Sat Jul 07 2012 Michael Aubertin <[email protected]> - 1.5.1
- Backport 1.4.11 patch
- 1.4.11 Correcting minor state bug when unspecified massive drop.
* Mon Jun 25 2012 Michael Aubertin <[email protected]> - 1.5.0
- Adding Time To Own Flags handling feature
* Wed May 30 2012 Jeremie Bernard <[email protected]> - 1.4.10
- Handling my database issue regarding mysql backend.
* Fri May 11 2012 Michael Aubertin <[email protected]> - 1.4.9
- Hacking script for migration facilities
- Fixing 0 addition in case of uncomplete gedq -push packet.
- Change ack default time in conf file
- Remove sync as default in gedt.cfg
* Mon Apr 23 2012 Michael Aubertin <[email protected]> - 1.4.8
- Fixing end of heap segfault in CChunk object in case of null argument packet dropping.
* Wed Apr 18 2012 Michael Aubertin <[email protected]> - 1.4.7
- Allow compatibility of sync queue between 1.2.12 and 1.4 series.
* Mon Apr 16 2012 Michael Aubertin <[email protected]> - 1.4.6
- Fixing gedq version number
* Wed Apr 04 2012 Michael Aubertin <[email protected]> - 1.4.5
- Fixing duplicate id in case of multiple cross migration queue packet
* Mon Apr 02 2012 Michael Aubertin <[email protected]> - 1.4.4
- Fixing duplicate id using multiple SYNC queue.
- Set AUTO_INCREMENT to all data packet tables.
* Fri Mar 30 2012 Michael Aubertin <[email protected]> - 1.4.3
- Fixing last id record major bug... Yeeeha !!!!
* Mon Mar 19 2012 Michael Aubertin <[email protected]> - 1.4.2
- Fixing SLA usec bug.
* Fri Mar 9 2012 Michael Aubertin <[email protected]> - 1.4.1
- Multiple optimisation. MySQL 5.5 compliant. Multi-table handling
* Tue Oct 4 2011 Jeremie Bernard <[email protected]> - 1.2.12
- Daemonization patch (tty detach : pgrp)
* Sun Oct 2 2011 Jeremie Bernard <[email protected]> - 1.2.11
- Backend config cache is no more written when finalizing (but when initializing)
- CREATE TABLE has been added the IF NOT EXISTS option which is permissive
- DROP TABLE has been added the IF EXIXTS option which is permissive
* Wed Sep 14 2011 Jeremie Bernard <[email protected]> - 1.2.10
- MySQL backend query execution error handling modification
* Wed May 19 2010 Jeremie Bernard <[email protected]> - 1.2.9
- TTL backend nrecords queue inc patch
* Wed May 12 2010 Jeremie Bernard <[email protected]> - 1.2.8
- potential TTL backend dead threads while forking patch
* Fri Apr 9 2010 Jeremie Bernard <[email protected]> - 1.2.7
- mysql filters (< > ' ") options addon
* Tue Feb 9 2010 Jeremie Bernard <[email protected]> - 1.2.6
- connect option replaces bind to specify gedq and gedt targets
- bind option remains but now forces source interface to be used
* Thu Feb 4 2010 Jeremie Bernard <[email protected]> - 1.2.5
- gcrypt init statement and pthread protection (to avoid recurent warning logs)
* Mon Jan 18 2010 Jeremie Bernard <[email protected]> - 1.2.4
- static mysql varchar 255 => varchar N option (mysql > 5.0.3 required)
- mysql ' " < > filtering
* Wed Nov 25 2009 Jeremie Bernard <[email protected]> - 1.2.3
- mysql mode no backslash escapes option addon
* Sat May 30 2009 Jeremie Bernard <[email protected]> - 1.2.2
- nosync flag implementation
- performance inc, light xml format option
- local file socket bindings
- ged/gedq communication improvement
- history queue gedq drop id list arg
- mysql backend proposal
* Fri Feb 20 2009 Jeremie Bernard <[email protected]> - 1.2.1
- non root low port binding enabling
- ged/gedq security enhencement (peer data and request access notion)
- gedq sem patch (exception catch in ctx constructor)
- xml output update (root version attr, content key spec, content meta spec)
- xml recover patch (empty fields specifics)
- backend config cache flush once loaded
- async mode patch
- user meta data implementation (push/update requests specifics)
- update request reverse sync
- gedq utf8 filtering
- history queue record id addon and drop specific request modification
- ged daemon mode
- mysql backend temporary removed
* Tue Dec 30 2008 Jeremie Bernard <[email protected]> - 1.2.0
- lzo removal, zlib use instead
- http/s tunnel implementation
- proxy basic and ntlm auth handling
* Sun Sep 14 2008 Jeremie Bernard <[email protected]> - 1.1
- xml output tree update
- packages split (backends)
* Thu Nov 29 2007 Jeremie Bernard <[email protected]> - 1.1
- simple http proxy passthru
* Mon Sep 03 2007 Jeremie Bernard <[email protected]> - 1.0b
- first beta package including mysql and hash berkeley backends