Browse code

Merge branch 'master' of ssh://git.sip-router.org/sip-router

Matthew Williams authored on 23/01/2013 19:27:54
Showing 30 changed files
... ...
@@ -216,7 +216,7 @@ create function todomain (pdid varchar(64)) returns varchar(128)
216 216
 READS SQL DATA
217 217
 begin
218 218
     declare tdomain varchar(128) default NULL;
219
-	select domain into tdomain from domain where did=pdid and 
219
+	select domain into tdomain from uid_domain where did=pdid and 
220 220
         canonical(flags) limit 1;
221 221
 	return tdomain;
222 222
 end
... ...
@@ -238,7 +238,7 @@ create function todid (pdomain varchar(128)) returns varchar(64)
238 238
 READS SQL DATA
239 239
 begin
240 240
     declare tdid varchar(64) default NULL;
241
-    select did into tdid from domain where domain=pdomain and 
241
+    select did into tdid from uid_domain where domain=pdomain and 
242 242
         active(flags) limit 1;
243 243
 	return tdid;
244 244
 end
... ...
@@ -124,7 +124,7 @@ begin
124 124
         set tdid = todid(substr(puri FROM i + 1));
125 125
 	    set puri = left(puri, i - 1);
126 126
 	end if;
127
-	select uid into tuid from uri where scheme=tscheme and
127
+	select uid into tuid from uid_uri where scheme=tscheme and
128 128
         username=puri and did=tdid and active(flags);
129 129
 	return tuid;
130 130
 end
... ...
@@ -1 +1 @@
1
-../../fedora/16/README
2 1
\ No newline at end of file
2
+../../fedora/17/README
3 3
\ No newline at end of file
... ...
@@ -1 +1 @@
1
-../../fedora/16/kamailio.spec
2 1
\ No newline at end of file
2
+../../fedora/17/kamailio.spec
3 3
\ No newline at end of file
4 4
deleted file mode 100644
... ...
@@ -1,67 +0,0 @@
1
-Building Kamailio RPMs for Enterprise Linux and Fedora
2
-
3
-This is a simple process:
4
-1) Create a clean appliance using BoxGrinder (always worth doing as it makes
5
-   sure your build appliance contains only standard versions of packages and
6
-   has all updates applied).
7
-2) Start the appliance and log in.
8
-3) Prepare the appliance for RPM builds
9
-4) Either:
10
-   a) Checkout the version of Kamailio you want to build from GIT (instructions
11
-      available on the Kamailio wiki at http://www.kamailio.org/wiki) and
12
-      create a release tar file, or
13
-   b) Download a release tar file from http://www.kamailio.org/pub/kamailio and
14
-      extract the correct kamailio.spec file from it
15
-5) Run "rpmbuild" to create the RPMs
16
-
17
-If you don't have BoxGrinder installed (http://boxgrinder.org/) you can do so in
18
-Fedora using the command:
19
-
20
-   # [sudo] yum install rubygem-boxgrinder-build
21
-
22
-Note: The host operating system you install BoxGrinder on does not have to be
23
-      same operating system flavour, architecture, or version as the appliance
24
-      you are creating.  It is entirely sensible to use an x86_64 Fedora host to
25
-      build an i386 CentOS appliance and i386 CentOS Kamailio RPMs.
26
-
27
-Example: Building Kamailio 3.4.x (master) x86_64 binary RPMs from GIT for
28
-         Fedora 17.
29
-
30
-This example assumes:
31
-- You have Internet connectivity
32
-- You have BoxGrinder, and libvirtd (and any management software required for
33
-  it) installed locally.
34
-- You have obtained the kamailio-build.appl file from pkg/kamailio/fedora/17
35
-  (either by download from http://git.sip-router.org/ or from a local
36
-  checkout of the code)
37
-- Your host operating system is x86_64.
38
-
39
-If you want to build a different version of Kamailio, a different set of RPMs
40
-(different rpmbuild options), or install and run the appliance on a remote
41
-(or different type of virtual) machine you should only need to make small
42
-changes to the commands in this example.
43
-
44
-1) Create a clean Fedora 17 x86_64 appliance using BoxGrinder:
45
-   # mkdir appliance
46
-   # cd appliance
47
-   # [sudo] boxgrinder-build \
48
-       [path to]/pkg/kamailio/fedora/17/kamailio-build.appl -d libvirt \
49
-       --delivery-config connection_uri:qemu:///system,\
50
-       image_delivery_uri:/var/lib/libvirt/images,overwrite:true,\
51
-       domain_type:kvm
52
-2) Start the appliance and log in:
53
-   - I prefer to use virt-manager for this.  The default username and password
54
-     for the appliance is "root" and "kamailio" respectively.
55
-3) Prepare the appliance for RPM builds:
56
-   # mkdir -p rpmbuild/SOURCES
57
-4) Checkout Kamailio 3.4.x (master) and create a release tar file:
58
-   # git clone --depth 1 git://git.sip-router.org/sip-router kamailio
59
-   # cd kamailio
60
-    Note: if not building master you want to do a "git checkout" after this
61
-   # git archive --output ../rpmbuild/SOURCES/kamailio-3.4.0_src.tar.gz \
62
-       --prefix=kamailio-3.4.0/ master
63
-5) Run "rpmbuild" to create the binary RPMs:
64
-   # rpmbuild -bb pkg/kamailio/fedora/17/kamailio.spec
65
-
66
-Once the build is complete the RPMs will be in ~/rpmbuild/RPMS/x86_64.
67 0
deleted file mode 100644
... ...
@@ -1,47 +0,0 @@
1
-name: "kamailio-build-fc16-#BASE_ARCH#"
2
-summary: "Fedora 16 image for building Kamailio #BASE_ARCH# RPMs"
3
-os:
4
-  name: fedora
5
-  version: 16
6
-  password: kamailio
7
-hardware:
8
-  memory: 1024
9
-  partitions:
10
-    "/":
11
-      size: 6
12
-packages:
13
-  - @core
14
-  - bison			# kamailio
15
-  - db4-devel			# kamailio-bdb
16
-  - expat-devel			# kamailio-xmpp
17
-  - flex			# kamailio
18
-  - GeoIP-devel			# kamailio-GeoIP
19
-  - gcc
20
-  - git
21
-  - glib-devel			# kamailio-purple
22
-  - hiredis-devel		# kamailio-redis
23
-  - json-c-devel		# kamailio-json
24
-  - libconfuse-devel		# kamailio-carrierroute
25
-  - libcurl-devel		# kamailio-utils, kamailio-presence
26
-  - libevent-devel		# kamailio-json
27
-  - libpurple-devel		# kamailio-purple
28
-  - libunistring-devel		# kamailio-websocket
29
-  - libxml2-devel		# kamailio-cdp, kamailio-cpl, kamailio-ims, kamailio-presence, kamailio-purple, kamailio-utils, kamailio-xhttp-pi, kamailio-xmlops, kamailio-xmlrpc
30
-  - lksctp-tools-devel		# kamailio
31
-  - lua-devel			# kamailio-lua
32
-  - make			# kamailio
33
-  - mod_perl-devel		# kamailio-perl
34
-  - mono-devel			# kamailio-mono
35
-  - mysql-devel			# kamailio-mysql
36
-  - net-snmp-devel		# kamailio-snmpstats
37
-  - openldap-devel		# kamailio-ldap
38
-  - openssl-devel		# kamailio
39
-  - pcre-devel			# kamailio-regex, kamailio-dialplan, kamailio-lcr
40
-  - postgresql-devel		# kamailio-postgresql
41
-  - python-devel		# kamailio-python
42
-  - radiusclient-ng-devel	# kamailio-radius
43
-  - redhat-rpm-config		# kamailio-debuginfo
44
-  - rpm-build
45
-  - sqlite-devel		# kamailio-sqlite
46
-  - unixODBC-devel		# kamailio-unixODBC
47
-  - zlib-devel			# kamailio-mysql
48 0
deleted file mode 100644
... ...
@@ -1,41 +0,0 @@
1
-name: "kamailio-fc16-#BASE_ARCH#"
2
-summary: "Fedora 16 image for installing Kamailio #BASE_ARCH# RPMs"
3
-os:
4
-  name: fedora
5
-  version: 16
6
-  password: kamailio
7
-hardware:
8
-  memory: 1024
9
-  partitions:
10
-    "/":
11
-      size: 2
12
-packages:
13
-  - @core
14
-  - db4				# kamailio-bdb
15
-  - expat			# kamailio-xmpp
16
-  - GeoIP			# kamailio-GeoIP
17
-  - glib			# kamailio-purple
18
-  - hiredis			# kamailio-redis
19
-  - json-c			# kamailio-json
20
-  - libconfuse			# kamailio-carrierroute
21
-  - libcurl			# kamailio-utils, kamailio-presence
22
-  - libevent			# kamailio-json
23
-  - libpurple			# kamailio-purple
24
-  - libunistring		# kamailio-websocket
25
-  - libxml2			# kamailio-cdp, kamailio-cpl, kamailio-ims, kamailio-presence, kamailio-purple, kamailio-utils, kamailio-xhttp-pi, kamailio-xmlops, kamailio-xmlrpc
26
-  - lksctp-tools		# kamailio
27
-  - mod_perl			# kamailio-perl
28
-  - mono-core			# kamailio-mono
29
-  - mysql-libs			# kamailio-mysql
30
-  - net-snmp-libs		# kamailio-snmpstats
31
-  - openldap			# kamailio-ldap
32
-  - openssl			# kamailio
33
-  - pcre			# kamailio-regex, kamailio-dialplan, kamailio-lcr
34
-  - perl-Authen-SASL		# kamailio-perl
35
-  - perl-LDAP			# kamailio-perl
36
-  - postgresql-libs		# kamailio-postgresql
37
-  - python			# kamailio-python
38
-  - radiusclient-ng		# kamailio-radius
39
-  - sqlite			# kamailio-sqlite
40
-  - unixODBC			# kamailio-unixODBC
41
-  - zlib			# kamailio-mysql
42 0
deleted file mode 100644
... ...
@@ -1,14 +0,0 @@
1
-[Unit]
2
-Description=Kamailio (OpenSER) - the Open Source SIP Server
3
-After=syslog.target network.target
4
-
5
-[Service]
6
-Type=forking
7
-EnvironmentFile=/etc/sysconfig/kamailio
8
-PIDFile=/var/run/kamailio.pid
9
-ExecStart=/usr/sbin/kamailio -P /var/run/kamailio.pid $OPTIONS
10
-ExecStopPost=/usr/bin/rm -f /var/run/kamailio.pid
11
-Restart=on-abort
12
-
13
-[Install]
14
-WantedBy=multi-user.target
15 0
deleted file mode 100644
... ...
@@ -1,1208 +0,0 @@
1
-%define name    kamailio
2
-%define ver     4.0.0
3
-%define rel     pre1%{dist}
4
-
5
-
6
-
7
-Summary:       Kamailio (former OpenSER) - the Open Source SIP Server
8
-Name:          %name
9
-Version:       %ver
10
-Release:       %rel
11
-Packager:      Peter Dunkley <peter@dunkley.me.uk>
12
-License:       GPL
13
-Group:         System Environment/Daemons
14
-Source:        http://kamailio.org/pub/kamailio/%{ver}/src/%{name}-%{ver}_src.tar.gz
15
-URL:           http://kamailio.org/
16
-Vendor:        kamailio.org
17
-BuildRoot:     %{_tmppath}/%{name}-%{ver}-buildroot
18
-Conflicts:     kamailio-mysql < %ver, kamailio-postgresql < %ver
19
-Conflicts:     kamailio-unixODBC < %ver, kamailio-bdb < %ver
20
-Conflicts:     kamailio-sqlite < %ver, kamailio-utils < %ver
21
-Conflicts:     kamailio-cpl < %ver, kamailio-snmpstats < %ver
22
-Conflicts:     kamailio-presence < %ver, kamailio-xmpp < %ver
23
-Conflicts:     kamailio-purple < %ver, kamailio-ldap < %ver
24
-Conflicts:     kamailio-xmlrpc < %ver, kamailio-perl < %ver, kamailio-lua < %ver
25
-Conflicts:     kamailio-python < %ver, kamailio-regex < %ver
26
-Conflicts:     kamailio-dialplan < %ver, kamailio-lcr < %ver
27
-Conflicts:     kamailio-xmlops < %ver, kamailio-cdp < %ver
28
-Conflicts:     kamailio-websocket < %ver, kamailio-xhttp-pi < %ver
29
-Conflicts:     kamailio-outbound < %ver, kamailio-ims < %ver
30
-%if 0%{?fedora}
31
-Conflicts:     kamailio-radius < %ver, kamailio-carrierroute < %ver
32
-Conflicts:     kamailio-redis < %ver, kamailio-json < %ver 
33
-Conflicts:     kamailio-mono < %ver, kamailio-GeoIP < %ver
34
-%endif
35
-Requires:      openssl lksctp-tools
36
-BuildRequires: bison flex gcc make redhat-rpm-config openssl-devel
37
-BuildRequires: lksctp-tools-devel
38
-
39
-%description
40
-Kamailio (former OpenSER) is an Open Source SIP Server released under GPL, able
41
-to handle thousands of call setups per second. Among features: asynchronous TCP,
42
-UDP and SCTP, secure communication via TLS for VoIP (voice, video); IPv4 and
43
-IPv6; SIMPLE instant messaging and presence with embedded XCAP server and MSRP
44
-relay; ENUM; DID and least cost routing; load balancing; routing fail-over;
45
-accounting, authentication and authorization; support for many backend systems
46
-such as MySQL, Postgres, Oracle, Radius, LDAP, Redis, Cassandra; XMLRPC control
47
-interface, SNMP monitoring. It can be used to build large VoIP servicing
48
-platforms or to scale up SIP-to-PSTN gateways, PBX systems or media servers
49
-like Asteriskâ„¢, FreeSWITCHâ„¢ or SEMS.
50
-
51
-
52
-%package mysql
53
-Summary:       MySQL database connectivity for Kamailio.
54
-Group:         System Environment/Daemons
55
-Requires:      mysql-libs, kamailio = %ver
56
-BuildRequires: mysql-devel zlib-devel
57
-
58
-%description mysql
59
-MySQL database connectivity for Kamailio.
60
-
61
-
62
-%package postgresql
63
-Summary:       PostgreSQL database connectivity for Kamailio.
64
-Group:         System Environment/Daemons
65
-Requires:      postgresql-libs, kamailio = %ver
66
-BuildRequires: postgresql-devel
67
-
68
-%description postgresql
69
-PostgreSQL database connectivity for Kamailio.
70
-
71
-
72
-%package unixODBC
73
-Summary:       unixODBC database connectivity for Kamailio.
74
-Group:         System Environment/Daemons
75
-Requires:      unixODBC, kamailio = %ver
76
-BuildRequires: unixODBC-devel
77
-
78
-%description unixODBC
79
-unixODBC database connectivity for Kamailio.
80
-
81
-
82
-%package bdb
83
-Summary:       Berkeley database connectivity for Kamailio.
84
-Group:         System Environment/Daemons
85
-Requires:      db4, kamailio = %ver
86
-BuildRequires: db4-devel
87
-
88
-%description bdb
89
-Berkeley database connectivity for Kamailio.
90
-
91
-
92
-%package sqlite
93
-Summary:       SQLite database connectivity for Kamailio.
94
-Group:         System Environment/Daemons
95
-Requires:      sqlite, kamailio = %ver
96
-BuildRequires: sqlite-devel
97
-
98
-%description sqlite
99
-SQLite database connectivity for Kamailio.
100
-
101
-
102
-%package utils
103
-Summary:       Non-SIP utitility functions for Kamailio.
104
-Group:         System Environment/Daemons
105
-Requires:      libcurl, libxml2, kamailio = %ver
106
-BuildRequires: libcurl-devel, libxml2-devel
107
-
108
-%description utils
109
-Non-SIP utitility functions for Kamailio.
110
-
111
-
112
-%package cpl
113
-Summary:       CPL (Call Processing Language) interpreter for Kamailio.
114
-Group:         System Environment/Daemons
115
-Requires:      libxml2, kamailio = %ver
116
-BuildRequires: libxml2-devel
117
-
118
-%description cpl
119
-CPL (Call Processing Language) interpreter for Kamailio.
120
-
121
-
122
-%package snmpstats
123
-Summary:       SNMP management interface (scalar statistics) for Kamailio.
124
-Group:         System Environment/Daemons
125
-%if 0%{?fedora}
126
-Requires:      net-snmp-agent-libs, kamailio = %ver
127
-%else
128
-Requires:      net-snmp-libs, kamailio = %ver
129
-%endif
130
-BuildRequires: net-snmp-devel
131
-
132
-%description snmpstats
133
-SNMP management interface (scalar statistics) for Kamailio.
134
-
135
-
136
-%package presence
137
-Summary:       SIP Presence (and RLS, XCAP, etc) support for Kamailio.
138
-Group:         System Environment/Daemons
139
-Requires:      libxml2, libcurl, kamailio = %ver, kamailio-xmpp = %ver
140
-BuildRequires: libxml2-devel, libcurl-devel
141
-
142
-%description presence
143
-SIP Presence (and RLS, XCAP, etc) support for Kamailio.
144
-
145
-
146
-%package xmpp
147
-Summary:       SIP/XMPP IM gateway for Kamailio.
148
-Group:         System Environment/Daemons
149
-Requires:      expat, kamailio = %ver
150
-BuildRequires: expat-devel
151
-
152
-%description xmpp
153
-SIP/XMPP IM gateway for Kamailio.
154
-
155
-
156
-%package ldap
157
-Summary:       LDAP search interface for Kamailio.
158
-Group:         System Environment/Daemons
159
-Requires:      openldap, kamailio = %ver
160
-BuildRequires: openldap-devel
161
-
162
-%description ldap
163
-LDAP search interface for Kamailio.
164
-
165
-
166
-%package xmlrpc
167
-Summary:       XMLRPC trasnport and encoding for Kamailio RPCs.
168
-Group:         System Environment/Daemons
169
-Requires:      libxml2, kamailio = %ver
170
-BuildRequires: libxml2-devel
171
-
172
-%description xmlrpc
173
-XMLRPC trasnport and encoding for Kamailio RPCs.
174
-
175
-
176
-%package perl
177
-Summary:       Perl extensions and database driver for Kamailio.
178
-Group:         System Environment/Daemons 
179
-Requires:      mod_perl, kamailio = %ver
180
-BuildRequires: mod_perl-devel
181
-
182
-%description perl
183
-Perl extensions and database driver for Kamailio.
184
-
185
-
186
-%package lua
187
-Summary:       Lua extensions for Kamailio.
188
-Group:         System Environment/Daemons
189
-Requires:      kamailio = %ver
190
-BuildRequires: lua-devel
191
-
192
-%description lua
193
-Lua extensions for Kamailio.
194
-
195
-
196
-%package python
197
-Summary:       Python extensions for Kamailio.
198
-Group:         System Environment/Daemons
199
-Requires:      python, kamailio = %ver
200
-BuildRequires: python-devel
201
-
202
-%description python
203
-Python extensions for Kamailio.
204
-
205
-
206
-%package regex
207
-Summary:       PCRE mtaching operations for Kamailio.
208
-Group:         System Environment/Daemons
209
-Requires:      pcre, kamailio = %ver
210
-BuildRequires: pcre-devel
211
-
212
-%description regex
213
-PCRE mtaching operations for Kamailio.
214
-
215
-
216
-%package dialplan
217
-Summary:       String translations based on rules for Kamailio.
218
-Group:         System Environment/Daemons
219
-Requires:      pcre, kamailio = %ver
220
-BuildRequires: pcre-devel
221
-
222
-%description dialplan
223
-String translations based on rules for Kamailio.
224
-
225
-
226
-%package lcr
227
-Summary:       Least cost routing for Kamailio.
228
-Group:         System Environment/Daemons
229
-Requires:      pcre, kamailio = %ver
230
-BuildRequires: pcre-devel
231
-
232
-%description lcr
233
-Least cost routing for Kamailio.
234
-
235
-
236
-%package xmlops
237
-Summary:       XML operation functions for Kamailio.
238
-Group:         System Environment/Daemons
239
-Requires:      libxml2, kamailio = %ver
240
-BuildRequires: libxml2-devel
241
-
242
-%description xmlops
243
-XML operation functions for Kamailio.
244
-
245
-
246
-%package websocket
247
-Summary:       WebSocket transport for Kamailio.
248
-Group:         System Environment/Daemons
249
-Requires:      libunistring, kamailio = %ver
250
-BuildRequires: libunistring-devel
251
-
252
-%description websocket
253
-WebSocket transport for Kamailio.
254
-
255
-
256
-%package xhttp-pi
257
-Summary:       Web-provisioning interface for Kamailio.
258
-Group:         System Environment/Daemons
259
-Requires:      libxml2, kamailio = %ver
260
-BuildRequires: libxml2-devel
261
-
262
-%description xhttp-pi
263
-Web-provisioning interface for Kamailio.
264
-
265
-
266
-%package outbound
267
-Summary:       Outbound (RFC 5626) support for Kamailio.
268
-Group:         System Environment/Daemons
269
-Requires:      openssl, kamailio = %ver
270
-BuildRequires: openssl-devel
271
-
272
-%description outbound
273
-RFC 5626, "Managing Client-Initiated Connections in the Session Initiation
274
-Protocol (SIP)" support for Kamailio.
275
-
276
-
277
-%package  purple
278
-Summary:  Multi-protocol IM and presence gateway module.
279
-Group:    System Environment/Daemons
280
-%if 0%{?fedora}
281
-Requires: glib, libpurple, libxml2, kamailio = %ver, kamailio-presence = %ver
282
-BuildRequires: glib-devel, libpurple-devel, libxml2-devel
283
-%else
284
-Requires: glib2, libpurple, libxml2, kamailio = %ver, kamailio-presence = %ver
285
-BuildRequires: glib2-devel, libpurple-devel, libxml2-devel
286
-%endif
287
-
288
-%description purple
289
-Multi-protocol IM and presence gateway module.
290
-
291
-
292
-%package  cdp
293
-Summary:  C Diameter Peer module and extensions module for Kamailio.
294
-Group:    System Environment/Daemons
295
-Requires: libxml2, kamailio = %ver
296
-BuildRequires: libxml2-devel
297
-
298
-%description cdp
299
-C Diameter Peer module and extensions module for Kamailio.
300
-
301
-
302
-%package  ims
303
-Summary:  IMS modules and extensions module for Kamailio.
304
-Group:    System Environment/Daemons
305
-Requires: libxml2, kamailio = %ver, kamailio-cdp = %ver
306
-BuildRequires: libxml2-devel
307
-
308
-%description ims
309
-IMS modules and extensions module for Kamailio.
310
-
311
-
312
-%if 0%{?fedora}
313
-%package radius
314
-Summary:       Radius AAA API for Kamailio.
315
-Group:         System Environment/Daemons
316
-Requires:      radiusclient-ng, kamailio = %ver
317
-BuildRequires: radiusclient-ng-devel
318
-
319
-%description radius
320
-Radius AAA API for Kamailio.
321
-
322
-
323
-%package carrierroute
324
-Summary:       Routing, balancing, and blacklisting for Kamailio.
325
-Group:         System Environment/Daemons
326
-Requires:      libconfuse, kamailio = %ver
327
-BuildRequires: libconfuse-devel
328
-
329
-%description carrierroute
330
-Routing, balancing, and blacklisting for Kamailio.
331
-
332
-
333
-%package redis
334
-Summary:       REDIS NoSQL database connector for Kamailio.
335
-Group:         System Environment/Daemons
336
-Requires:      hiredis, kamailio = %ver
337
-BuildRequires: hiredis-devel
338
-
339
-%description redis
340
-REDIS NoSQL database connector for Kamailio.
341
-
342
-
343
-%package json
344
-Summary:       json string operation and rpc support for Kamailio.
345
-Group:         System Environment/Daemons
346
-Requires:      json-c, libevent, kamailio = %ver
347
-BuildRequires: json-c-devel, libevent-devel
348
-
349
-%description json
350
-json string operation and rpc support for Kamailio.
351
-
352
-
353
-%package mono
354
-Summary:       Mono extensions for Kamailio.
355
-Group:         System Environment/Daemons
356
-Requires:      mono-core, kamailio = %ver
357
-BuildRequires: mono-devel
358
-
359
-%description mono
360
-Mono extensions for Kamailio.
361
-
362
-
363
-%package GeoIP
364
-Summary:       Max Mind GeoIP real-time query support for Kamailio.
365
-Group:         System Environment/Daemons
366
-Requires:      GeoIP, kamailio = %ver
367
-BuildRequires: GeoIP-devel
368
-
369
-%description GeoIP
370
-Max Mind GeoIP real-time query support for Kamailio.
371
-%endif
372
-
373
-
374
-
375
-%prep
376
-%setup -n %{name}-%{ver}
377
-
378
-
379
-
380
-%build
381
-make FLAVOUR=kamailio cfg prefix=/usr cfg_prefix=$RPM_BUILD_ROOT\
382
-	basedir=$RPM_BUILD_ROOT cfg_target=/%{_sysconfdir}/kamailio/\
383
-	modules_dirs="modules" SCTP=1 STUN=1
384
-make
385
-%if 0%{?fedora}
386
-make every-module skip_modules="auth_identity db_cassandra iptrtpproxy \
387
-	db_oracle memcached mi_xmlrpc osp" \
388
-	group_include="kstandard kmysql kpostgres kcpl kradius kunixodbc \
389
-	kxml kperl ksnmpstats kxmpp kcarrierroute kberkeley kldap kutils \
390
-	kpurple ktls kwebsocket kpresence klua kpython kgeoip ksqlite kjson \
391
-	kredis kmono koutbound kims" \
392
-	include_modules="cdp mangler print_lib xhttp_pi"
393
-%else
394
-make every-module skip_modules="auth_identity db_cassandra iptrtpproxy\
395
-	db_oracle memcached mi_xmlrpc osp" \
396
-	group_include="kstandard kmysql kpostgres kcpl kunixodbc \
397
-	kxml kperl ksnmpstats kxmpp kberkeley kldap kutils \
398
-	kpurple ktls kwebsocket kpresence klua kpython ksqlite \
399
-	koutbound kims" \
400
-	include_modules="cdp mangler print_lib xhttp_pi"
401
-%endif
402
-make utils
403
-
404
-
405
-
406
-%install
407
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
408
-
409
-make install
410
-%if 0%{?fedora}
411
-make install-modules-all skip_modules="auth_identity db_cassandra iptrtpproxy\
412
-	db_oracle memcached mi_xmlrpc osp" \
413
-	group_include="kstandard kmysql kpostgres kcpl kradius kunixodbc\
414
-	kxml kperl ksnmpstats kxmpp kcarrierroute kberkeley kldap kutils\
415
-	kpurple ktls kwebsocket kpresence klua kpython kgeoip ksqlite kjson\
416
-	kredis kmono koutbound kims" \
417
-	include_modules="cdp mangler print_lib xhttp_pi"
418
-
419
-mkdir -p $RPM_BUILD_ROOT/%{_unitdir}
420
-install -m644 pkg/kamailio/fedora/%{?fedora}/kamailio.service \
421
-		$RPM_BUILD_ROOT/%{_unitdir}/kamailio.service
422
-
423
-mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig
424
-install -m644 pkg/kamailio/fedora/%{?fedora}/kamailio.sysconfig \
425
-		$RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/kamailio
426
-%else
427
-make install-modules-all skip_modules="auth_identity db_cassandra iptrtpproxy\
428
-	db_oracle memcached mi_xmlrpc osp" \
429
-	group_include="kstandard kmysql kpostgres kcpl kunixodbc \
430
-	kxml kperl ksnmpstats kxmpp kberkeley kldap kutils \
431
-	kpurple ktls kwebsocket kpresence klua kpython ksqlite \
432
-	koutbound kims" \
433
-	include_modules="cdp mangler print_lib xhttp_pi"
434
-
435
-mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d
436
-install -m755 pkg/kamailio/centos/%{?centos}/kamailio.init \
437
-		$RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/kamailio
438
-
439
-mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig
440
-install -m644 pkg/kamailio/centos/%{?centos}/kamailio.sysconfig \
441
-		$RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/kamailio
442
-%endif
443
-
444
-
445
-
446
-%pre
447
-/usr/sbin/groupadd -r kamailio 2> /dev/null || :
448
-/usr/sbin/useradd -r -g kamailio -s /bin/false -c "Kamailio daemon" -d \
449
-		%{_libdir}/kamailio kamailio 2> /dev/null || :
450
-
451
-
452
-
453
-%clean
454
-rm -rf "$RPM_BUILD_ROOT"
455
-
456
-
457
-
458
-%post
459
-%if 0%{?fedora}
460
-/bin/systemctl --system daemon-reload
461
-%else
462
-/sbin/chkconfig --add kamailio
463
-%endif
464
-
465
-
466
-
467
-%preun
468
-if [ $1 = 0 ]; then
469
-%if 0%{?fedora}
470
-	/bin/systemctl stop kamailio.service
471
-	/bin/systemctl disable kamailio.service 2> /dev/null
472
-%else
473
-	/sbin/service kamailio stop > /dev/null 2>&1
474
-	/sbin/chkconfig --del kamailio
475
-%endif
476
-fi
477
-
478
-
479
-
480
-%postun
481
-%if 0%{?fedora}
482
-/bin/systemctl --system daemon-reload
483
-%endif
484
-
485
-
486
-
487
-%files
488
-%defattr(-,root,root)
489
-%dir %{_docdir}/kamailio
490
-%doc %{_docdir}/kamailio/AUTHORS
491
-%doc %{_docdir}/kamailio/NEWS
492
-%doc %{_docdir}/kamailio/INSTALL
493
-%doc %{_docdir}/kamailio/README
494
-%doc %{_docdir}/kamailio/README-MODULES
495
-
496
-%dir %{_docdir}/kamailio/modules
497
-%doc %{_docdir}/kamailio/modules/README.acc
498
-%doc %{_docdir}/kamailio/modules/README.alias_db
499
-%doc %{_docdir}/kamailio/modules/README.async
500
-%doc %{_docdir}/kamailio/modules/README.auth
501
-%doc %{_docdir}/kamailio/modules/README.auth_db
502
-%doc %{_docdir}/kamailio/modules/README.auth_diameter
503
-%doc %{_docdir}/kamailio/modules/README.avp
504
-%doc %{_docdir}/kamailio/modules/README.avpops
505
-%doc %{_docdir}/kamailio/modules/README.benchmark
506
-%doc %{_docdir}/kamailio/modules/README.blst
507
-%doc %{_docdir}/kamailio/modules/README.call_control
508
-%doc %{_docdir}/kamailio/modules/README.cfg_db
509
-%doc %{_docdir}/kamailio/modules/README.cfg_rpc
510
-%doc %{_docdir}/kamailio/modules/README.cfgutils
511
-%doc %{_docdir}/kamailio/modules/README.corex
512
-%doc %{_docdir}/kamailio/modules/README.counters
513
-%doc %{_docdir}/kamailio/modules/README.ctl
514
-%doc %{_docdir}/kamailio/modules/README.db_cluster
515
-%doc %{_docdir}/kamailio/modules/README.db_flatstore
516
-%doc %{_docdir}/kamailio/modules/README.db_text
517
-%doc %{_docdir}/kamailio/modules/README.db2_ops
518
-%doc %{_docdir}/kamailio/modules/README.debugger
519
-%doc %{_docdir}/kamailio/modules/README.dialog
520
-%doc %{_docdir}/kamailio/modules/README.dispatcher
521
-%doc %{_docdir}/kamailio/modules/README.diversion
522
-%doc %{_docdir}/kamailio/modules/README.dmq
523
-%doc %{_docdir}/kamailio/modules/README.domain
524
-%doc %{_docdir}/kamailio/modules/README.domainpolicy
525
-%doc %{_docdir}/kamailio/modules/README.drouting
526
-%doc %{_docdir}/kamailio/modules/README.enum
527
-%doc %{_docdir}/kamailio/modules/README.exec
528
-%doc %{_docdir}/kamailio/modules/README.group
529
-%doc %{_docdir}/kamailio/modules/README.htable
530
-%doc %{_docdir}/kamailio/modules/README.imc
531
-%doc %{_docdir}/kamailio/modules/README.ipops
532
-%doc %{_docdir}/kamailio/modules/README.kex
533
-%doc %{_docdir}/kamailio/modules/README.malloc_test
534
-%doc %{_docdir}/kamailio/modules/README.mangler
535
-%doc %{_docdir}/kamailio/modules/README.matrix
536
-%doc %{_docdir}/kamailio/modules/README.maxfwd
537
-%doc %{_docdir}/kamailio/modules/README.mediaproxy
538
-%doc %{_docdir}/kamailio/modules/README.mi_datagram
539
-%doc %{_docdir}/kamailio/modules/README.mi_fifo
540
-%doc %{_docdir}/kamailio/modules/README.mi_rpc
541
-%doc %{_docdir}/kamailio/modules/README.mqueue
542
-%doc %{_docdir}/kamailio/modules/README.msilo
543
-%doc %{_docdir}/kamailio/modules/README.msrp
544
-%doc %{_docdir}/kamailio/modules/README.mtree
545
-%doc %{_docdir}/kamailio/modules/README.nat_traversal
546
-%doc %{_docdir}/kamailio/modules/README.nathelper
547
-%doc %{_docdir}/kamailio/modules/README.p_usrloc
548
-%doc %{_docdir}/kamailio/modules/README.path
549
-%doc %{_docdir}/kamailio/modules/README.pdb
550
-%doc %{_docdir}/kamailio/modules/README.pdt
551
-%doc %{_docdir}/kamailio/modules/README.permissions
552
-%doc %{_docdir}/kamailio/modules/README.pike
553
-%doc %{_docdir}/kamailio/modules/README.pipelimit
554
-%doc %{_docdir}/kamailio/modules/README.prefix_route
555
-%doc %{_docdir}/kamailio/modules/README.print
556
-%doc %{_docdir}/kamailio/modules/README.print_lib
557
-%doc %{_docdir}/kamailio/modules/README.pv
558
-%doc %{_docdir}/kamailio/modules/README.qos
559
-%doc %{_docdir}/kamailio/modules/README.ratelimit
560
-%doc %{_docdir}/kamailio/modules/README.registrar
561
-%doc %{_docdir}/kamailio/modules/README.rr
562
-%doc %{_docdir}/kamailio/modules/README.rtimer
563
-%doc %{_docdir}/kamailio/modules/README.rtpproxy
564
-%doc %{_docdir}/kamailio/modules/README.sanity
565
-%doc %{_docdir}/kamailio/modules/README.sca
566
-%doc %{_docdir}/kamailio/modules/README.sdpops
567
-%doc %{_docdir}/kamailio/modules/README.seas
568
-%doc %{_docdir}/kamailio/modules/README.sipcapture
569
-%doc %{_docdir}/kamailio/modules/README.siptrace
570
-%doc %{_docdir}/kamailio/modules/README.siputils
571
-%doc %{_docdir}/kamailio/modules/README.sl
572
-%doc %{_docdir}/kamailio/modules/README.sms
573
-%doc %{_docdir}/kamailio/modules/README.speeddial
574
-%doc %{_docdir}/kamailio/modules/README.sqlops
575
-%doc %{_docdir}/kamailio/modules/README.sst
576
-%doc %{_docdir}/kamailio/modules/README.statistics
577
-%doc %{_docdir}/kamailio/modules/README.textops
578
-%doc %{_docdir}/kamailio/modules/README.textopsx
579
-%doc %{_docdir}/kamailio/modules/README.timer
580
-%doc %{_docdir}/kamailio/modules/README.tls
581
-%doc %{_docdir}/kamailio/modules/README.tm
582
-%doc %{_docdir}/kamailio/modules/README.tmrec
583
-%doc %{_docdir}/kamailio/modules/README.tmx
584
-%doc %{_docdir}/kamailio/modules/README.topoh
585
-%doc %{_docdir}/kamailio/modules/README.uac
586
-%doc %{_docdir}/kamailio/modules/README.uac_redirect
587
-%doc %{_docdir}/kamailio/modules/README.uid_auth_db
588
-%doc %{_docdir}/kamailio/modules/README.uid_avp_db
589
-%doc %{_docdir}/kamailio/modules/README.uid_domain
590
-%doc %{_docdir}/kamailio/modules/README.uid_gflags
591
-%doc %{_docdir}/kamailio/modules/README.uid_uri_db
592
-%doc %{_docdir}/kamailio/modules/README.uri_db
593
-%doc %{_docdir}/kamailio/modules/README.userblacklist
594
-%doc %{_docdir}/kamailio/modules/README.usrloc
595
-%doc %{_docdir}/kamailio/modules/README.xhttp
596
-%doc %{_docdir}/kamailio/modules/README.xhttp_rpc
597
-%doc %{_docdir}/kamailio/modules/README.xlog
598
-%doc %{_docdir}/kamailio/modules/README.xprint
599
-
600
-%dir %attr(-,kamailio,kamailio) %{_sysconfdir}/kamailio
601
-%config(noreplace) %{_sysconfdir}/kamailio/*
602
-%if 0%{?fedora}
603
-%config %{_unitdir}/*
604
-%else
605
-%config %{_sysconfdir}/rc.d/init.d/*
606
-%endif
607
-%config %{_sysconfdir}/sysconfig/*
608
-
609
-%dir %{_libdir}/kamailio
610
-%{_libdir}/kamailio/libbinrpc.so
611
-%{_libdir}/kamailio/libbinrpc.so.0
612
-%{_libdir}/kamailio/libbinrpc.so.0.1
613
-%{_libdir}/kamailio/libkcore.so
614
-%{_libdir}/kamailio/libkcore.so.1
615
-%{_libdir}/kamailio/libkcore.so.1.0
616
-%{_libdir}/kamailio/libkmi.so
617
-%{_libdir}/kamailio/libkmi.so.1
618
-%{_libdir}/kamailio/libkmi.so.1.0
619
-%{_libdir}/kamailio/libprint.so
620
-%{_libdir}/kamailio/libprint.so.1
621
-%{_libdir}/kamailio/libprint.so.1.2
622
-%{_libdir}/kamailio/libsrdb1.so
623
-%{_libdir}/kamailio/libsrdb1.so.1
624
-%{_libdir}/kamailio/libsrdb1.so.1.0
625
-%{_libdir}/kamailio/libsrdb2.so
626
-%{_libdir}/kamailio/libsrdb2.so.1
627
-%{_libdir}/kamailio/libsrdb2.so.1.0
628
-%{_libdir}/kamailio/libsrutils.so
629
-%{_libdir}/kamailio/libsrutils.so.1
630
-%{_libdir}/kamailio/libsrutils.so.1.0
631
-%{_libdir}/kamailio/libtrie.so
632
-%{_libdir}/kamailio/libtrie.so.1
633
-%{_libdir}/kamailio/libtrie.so.1.0
634
-
635
-%dir %{_libdir}/kamailio/modules
636
-%{_libdir}/kamailio/modules/acc.so
637
-%{_libdir}/kamailio/modules/alias_db.so
638
-%{_libdir}/kamailio/modules/auth.so
639
-%{_libdir}/kamailio/modules/auth_db.so
640
-%{_libdir}/kamailio/modules/auth_diameter.so
641
-%{_libdir}/kamailio/modules/async.so
642
-%{_libdir}/kamailio/modules/avp.so
643
-%{_libdir}/kamailio/modules/avpops.so
644
-%{_libdir}/kamailio/modules/benchmark.so
645
-%{_libdir}/kamailio/modules/blst.so
646
-%{_libdir}/kamailio/modules/call_control.so
647
-%{_libdir}/kamailio/modules/cfg_db.so
648
-%{_libdir}/kamailio/modules/cfg_rpc.so
649
-%{_libdir}/kamailio/modules/cfgutils.so
650
-%{_libdir}/kamailio/modules/corex.so
651
-%{_libdir}/kamailio/modules/counters.so
652
-%{_libdir}/kamailio/modules/ctl.so
653
-%{_libdir}/kamailio/modules/db_cluster.so
654
-%{_libdir}/kamailio/modules/db_text.so
655
-%{_libdir}/kamailio/modules/db_flatstore.so
656
-%{_libdir}/kamailio/modules/db2_ops.so
657
-%{_libdir}/kamailio/modules/debugger.so
658
-%{_libdir}/kamailio/modules/dialog.so
659
-%{_libdir}/kamailio/modules/dispatcher.so
660
-%{_libdir}/kamailio/modules/diversion.so
661
-%{_libdir}/kamailio/modules/dmq.so
662
-%{_libdir}/kamailio/modules/domain.so
663
-%{_libdir}/kamailio/modules/domainpolicy.so
664
-%{_libdir}/kamailio/modules/drouting.so
665
-%{_libdir}/kamailio/modules/enum.so
666
-%{_libdir}/kamailio/modules/exec.so
667
-%{_libdir}/kamailio/modules/group.so
668
-%{_libdir}/kamailio/modules/htable.so
669
-%{_libdir}/kamailio/modules/imc.so
670
-%{_libdir}/kamailio/modules/ipops.so
671
-%{_libdir}/kamailio/modules/kex.so
672
-%{_libdir}/kamailio/modules/malloc_test.so
673
-%{_libdir}/kamailio/modules/mangler.so
674
-%{_libdir}/kamailio/modules/matrix.so
675
-%{_libdir}/kamailio/modules/maxfwd.so
676
-%{_libdir}/kamailio/modules/mediaproxy.so
677
-%{_libdir}/kamailio/modules/mi_datagram.so
678
-%{_libdir}/kamailio/modules/mi_fifo.so
679
-%{_libdir}/kamailio/modules/mi_rpc.so
680
-%{_libdir}/kamailio/modules/mqueue.so
681
-%{_libdir}/kamailio/modules/msilo.so
682
-%{_libdir}/kamailio/modules/msrp.so
683
-%{_libdir}/kamailio/modules/mtree.so
684
-%{_libdir}/kamailio/modules/nat_traversal.so
685
-%{_libdir}/kamailio/modules/nathelper.so
686
-%{_libdir}/kamailio/modules/p_usrloc.so
687
-%{_libdir}/kamailio/modules/path.so
688
-%{_libdir}/kamailio/modules/pdb.so
689
-%{_libdir}/kamailio/modules/pdt.so
690
-%{_libdir}/kamailio/modules/permissions.so
691
-%{_libdir}/kamailio/modules/pike.so
692
-%{_libdir}/kamailio/modules/pipelimit.so
693
-%{_libdir}/kamailio/modules/prefix_route.so
694
-%{_libdir}/kamailio/modules/print.so
695
-%{_libdir}/kamailio/modules/print_lib.so
696
-%{_libdir}/kamailio/modules/pv.so
697
-%{_libdir}/kamailio/modules/qos.so
698
-%{_libdir}/kamailio/modules/ratelimit.so
699
-%{_libdir}/kamailio/modules/registrar.so
700
-%{_libdir}/kamailio/modules/rr.so
701
-%{_libdir}/kamailio/modules/rtimer.so
702
-%{_libdir}/kamailio/modules/rtpproxy.so
703
-%{_libdir}/kamailio/modules/sanity.so
704
-%{_libdir}/kamailio/modules/sca.so
705
-%{_libdir}/kamailio/modules/seas.so
706
-%{_libdir}/kamailio/modules/sipcapture.so
707
-%{_libdir}/kamailio/modules/siptrace.so
708
-%{_libdir}/kamailio/modules/siputils.so
709
-%{_libdir}/kamailio/modules/sl.so
710
-%{_libdir}/kamailio/modules/sdpops.so
711
-%{_libdir}/kamailio/modules/sms.so
712
-%{_libdir}/kamailio/modules/speeddial.so
713
-%{_libdir}/kamailio/modules/sqlops.so
714
-%{_libdir}/kamailio/modules/sst.so
715
-%{_libdir}/kamailio/modules/statistics.so
716
-%{_libdir}/kamailio/modules/textops.so
717
-%{_libdir}/kamailio/modules/textopsx.so
718
-%{_libdir}/kamailio/modules/timer.so
719
-%{_libdir}/kamailio/modules/tls.so
720
-%{_libdir}/kamailio/modules/tm.so
721
-%{_libdir}/kamailio/modules/tmrec.so
722
-%{_libdir}/kamailio/modules/tmx.so
723
-%{_libdir}/kamailio/modules/topoh.so
724
-%{_libdir}/kamailio/modules/uac.so
725
-%{_libdir}/kamailio/modules/uac_redirect.so
726
-%{_libdir}/kamailio/modules/uid_auth_db.so
727
-%{_libdir}/kamailio/modules/uid_avp_db.so
728
-%{_libdir}/kamailio/modules/uid_domain.so
729
-%{_libdir}/kamailio/modules/uid_gflags.so
730
-%{_libdir}/kamailio/modules/uid_uri_db.so
731
-%{_libdir}/kamailio/modules/uri_db.so
732
-%{_libdir}/kamailio/modules/userblacklist.so
733
-%{_libdir}/kamailio/modules/usrloc.so
734
-%{_libdir}/kamailio/modules/xhttp.so
735
-%{_libdir}/kamailio/modules/xhttp_rpc.so
736
-%{_libdir}/kamailio/modules/xlog.so
737
-%{_libdir}/kamailio/modules/xprint.so
738
-
739
-%{_sbindir}/kamailio
740
-%{_sbindir}/kamctl
741
-%{_sbindir}/kamdbctl
742
-%{_sbindir}/kamcmd
743
-
744
-%dir %{_libdir}/kamailio/kamctl
745
-%{_libdir}/kamailio/kamctl/kamctl.base
746
-%{_libdir}/kamailio/kamctl/kamctl.ctlbase
747
-%{_libdir}/kamailio/kamctl/kamctl.dbtext
748
-%{_libdir}/kamailio/kamctl/kamctl.fifo
749
-%{_libdir}/kamailio/kamctl/kamctl.ser
750
-%{_libdir}/kamailio/kamctl/kamctl.ser_mi
751
-%{_libdir}/kamailio/kamctl/kamctl.sqlbase
752
-%{_libdir}/kamailio/kamctl/kamctl.unixsock
753
-%{_libdir}/kamailio/kamctl/kamdbctl.base
754
-%{_libdir}/kamailio/kamctl/kamdbctl.dbtext
755
-
756
-%dir %{_libdir}/kamailio/kamctl/dbtextdb
757
-%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.py
758
-%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyc
759
-%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyo
760
-
761
-%{_mandir}/man5/*
762
-%if 0%{?fedora}
763
-%{_mandir}/man7/*
764
-%endif
765
-%{_mandir}/man8/*
766
-
767
-%dir %{_datadir}/kamailio
768
-%dir %{_datadir}/kamailio/dbtext
769
-%dir %{_datadir}/kamailio/dbtext/kamailio
770
-%{_datadir}/kamailio/dbtext/kamailio/*
771
-
772
-
773
-%files mysql
774
-%defattr(-,root,root)
775
-%doc %{_docdir}/kamailio/modules/README.db_mysql
776
-%{_libdir}/kamailio/modules/db_mysql.so
777
-%{_libdir}/kamailio/kamctl/kamctl.mysql
778
-%{_libdir}/kamailio/kamctl/kamdbctl.mysql
779
-%dir %{_datadir}/kamailio/mysql
780
-%{_datadir}/kamailio/mysql/*
781
-
782
-
783
-%files postgresql
784
-%defattr(-,root,root)
785
-%doc %{_docdir}/kamailio/modules/README.db_postgres
786
-%{_libdir}/kamailio/modules/db_postgres.so
787
-%{_libdir}/kamailio/kamctl/kamctl.pgsql
788
-%{_libdir}/kamailio/kamctl/kamdbctl.pgsql
789
-%dir %{_datadir}/kamailio/postgres
790
-%{_datadir}/kamailio/postgres/*
791
-
792
-
793
-%files unixODBC
794
-%defattr(-,root,root)
795
-%doc %{_docdir}/kamailio/modules/README.db_unixodbc
796
-%{_libdir}/kamailio/modules/db_unixodbc.so
797
-
798
-
799
-%files bdb
800
-%defattr(-,root,root)
801
-%doc %{_docdir}/kamailio/modules/README.db_berkeley
802
-%{_sbindir}/kambdb_recover
803
-%{_libdir}/kamailio/modules/db_berkeley.so
804
-%{_libdir}/kamailio/kamctl/kamctl.db_berkeley
805
-%{_libdir}/kamailio/kamctl/kamdbctl.db_berkeley
806
-%dir %{_datadir}/kamailio/db_berkeley
807
-%{_datadir}/kamailio/db_berkeley/*
808
-
809
-
810
-%files sqlite
811
-%defattr(-,root,root)
812
-%doc %{_docdir}/kamailio/modules/README.db_sqlite
813
-%{_libdir}/kamailio/modules/db_sqlite.so
814
-%{_libdir}/kamailio/kamctl/kamctl.sqlite
815
-%{_libdir}/kamailio/kamctl/kamdbctl.sqlite
816
-%dir %{_datadir}/kamailio/db_sqlite
817
-%{_datadir}/kamailio/db_sqlite/*
818
-
819
-
820
-%files utils
821
-%defattr(-,root,root)
822
-%{_docdir}/kamailio/modules/README.utils
823
-%{_libdir}/kamailio/modules/utils.so
824
-
825
-
826
-%files cpl
827
-%defattr(-,root,root)
828
-%{_docdir}/kamailio/modules/README.cpl-c
829
-%{_libdir}/kamailio/modules/cpl-c.so
830
-
831
-
832
-%files snmpstats
833
-%defattr(-,root,root)
834
-%{_docdir}/kamailio/modules/README.snmpstats
835
-%{_libdir}/kamailio/modules/snmpstats.so
836
-
837
-
838
-%files presence
839
-%defattr(-,root,root)
840
-%doc %{_docdir}/kamailio/modules/README.presence
841
-%doc %{_docdir}/kamailio/modules/README.presence_conference
842
-%doc %{_docdir}/kamailio/modules/README.presence_dialoginfo
843
-%doc %{_docdir}/kamailio/modules/README.presence_mwi
844
-%doc %{_docdir}/kamailio/modules/README.presence_profile
845
-%doc %{_docdir}/kamailio/modules/README.presence_reginfo
846
-%doc %{_docdir}/kamailio/modules/README.presence_xml
847
-%doc %{_docdir}/kamailio/modules/README.pua
848
-%doc %{_docdir}/kamailio/modules/README.pua_bla
849
-%doc %{_docdir}/kamailio/modules/README.pua_dialoginfo
850
-%doc %{_docdir}/kamailio/modules/README.pua_mi
851
-%doc %{_docdir}/kamailio/modules/README.pua_reginfo
852
-%doc %{_docdir}/kamailio/modules/README.pua_usrloc
853
-%doc %{_docdir}/kamailio/modules/README.pua_xmpp
854
-%doc %{_docdir}/kamailio/modules/README.rls
855
-%doc %{_docdir}/kamailio/modules/README.xcap_client
856
-%doc %{_docdir}/kamailio/modules/README.xcap_server
857
-%{_libdir}/kamailio/modules/presence.so
858
-%{_libdir}/kamailio/modules/presence_conference.so
859
-%{_libdir}/kamailio/modules/presence_dialoginfo.so
860
-%{_libdir}/kamailio/modules/presence_mwi.so
861
-%{_libdir}/kamailio/modules/presence_profile.so
862
-%{_libdir}/kamailio/modules/presence_reginfo.so
863
-%{_libdir}/kamailio/modules/presence_xml.so
864
-%{_libdir}/kamailio/modules/pua.so
865
-%{_libdir}/kamailio/modules/pua_bla.so
866
-%{_libdir}/kamailio/modules/pua_dialoginfo.so
867
-%{_libdir}/kamailio/modules/pua_mi.so
868
-%{_libdir}/kamailio/modules/pua_reginfo.so
869
-%{_libdir}/kamailio/modules/pua_usrloc.so
870
-%{_libdir}/kamailio/modules/pua_xmpp.so
871
-%{_libdir}/kamailio/modules/rls.so
872
-%{_libdir}/kamailio/modules/xcap_client.so
873
-%{_libdir}/kamailio/modules/xcap_server.so
874
-
875
-
876
-%files xmpp
877
-%defattr(-,root,root)
878
-%doc %{_docdir}/kamailio/modules/README.xmpp
879
-%{_libdir}/kamailio/modules/xmpp.so
880
-
881
-
882
-%files purple
883
-%defattr(-,root,root)
884
-%doc %{_docdir}/kamailio/modules/README.purple
885
-%{_libdir}/kamailio/modules/purple.so
886
-
887
-
888
-%files ldap
889
-%defattr(-,root,root)
890
-%doc %{_docdir}/kamailio/modules/README.db2_ldap
891
-%doc %{_docdir}/kamailio/modules/README.h350
892
-%doc %{_docdir}/kamailio/modules/README.ldap
893
-%{_libdir}/kamailio/modules/db2_ldap.so
894
-%{_libdir}/kamailio/modules/h350.so
895
-%{_libdir}/kamailio/modules/ldap.so
896
-
897
-
898
-%files xmlrpc
899
-%defattr(-,root,root)
900
-%doc %{_docdir}/kamailio/modules/README.xmlrpc
901
-%{_libdir}/kamailio/modules/xmlrpc.so
902
-
903
-
904
-%files perl
905
-%defattr(-,root,root)
906
-%doc %{_docdir}/kamailio/modules/README.app_perl
907
-%doc %{_docdir}/kamailio/modules/README.db_perlvdb
908
-%{_libdir}/kamailio/modules/app_perl.so
909
-%{_libdir}/kamailio/modules/db_perlvdb.so
910
-%dir %{_libdir}/kamailio/perl
911
-%{_libdir}/kamailio/perl/Kamailio.pm
912
-%dir %{_libdir}/kamailio/perl/Kamailio
913
-%{_libdir}/kamailio/perl/Kamailio/Constants.pm
914
-%{_libdir}/kamailio/perl/Kamailio/Message.pm
915
-%{_libdir}/kamailio/perl/Kamailio/VDB.pm
916
-%dir %{_libdir}/kamailio/perl/Kamailio/LDAPUtils
917
-%{_libdir}/kamailio/perl/Kamailio/LDAPUtils/LDAPConf.pm
918
-%{_libdir}/kamailio/perl/Kamailio/LDAPUtils/LDAPConnection.pm
919
-%dir %{_libdir}/kamailio/perl/Kamailio/Utils
920
-%{_libdir}/kamailio/perl/Kamailio/Utils/Debug.pm
921
-%{_libdir}/kamailio/perl/Kamailio/Utils/PhoneNumbers.pm
922
-%dir %{_libdir}/kamailio/perl/Kamailio/VDB
923
-%{_libdir}/kamailio/perl/Kamailio/VDB/Column.pm
924
-%{_libdir}/kamailio/perl/Kamailio/VDB/Pair.pm
925
-%{_libdir}/kamailio/perl/Kamailio/VDB/ReqCond.pm
926
-%{_libdir}/kamailio/perl/Kamailio/VDB/Result.pm
927
-%{_libdir}/kamailio/perl/Kamailio/VDB/VTab.pm
928
-%{_libdir}/kamailio/perl/Kamailio/VDB/Value.pm
929
-%dir %{_libdir}/kamailio/perl/Kamailio/VDB/Adapter
930
-%{_libdir}/kamailio/perl/Kamailio/VDB/Adapter/AccountingSIPtrace.pm
931
-%{_libdir}/kamailio/perl/Kamailio/VDB/Adapter/Alias.pm
932
-%{_libdir}/kamailio/perl/Kamailio/VDB/Adapter/Auth.pm
933
-%{_libdir}/kamailio/perl/Kamailio/VDB/Adapter/Describe.pm
934
-%{_libdir}/kamailio/perl/Kamailio/VDB/Adapter/Speeddial.pm
935
-%{_libdir}/kamailio/perl/Kamailio/VDB/Adapter/TableVersions.pm
936
-
937
-
938
-%files lua
939
-%defattr(-,root,root)
940
-%doc %{_docdir}/kamailio/modules/README.app_lua
941
-%{_libdir}/kamailio/modules/app_lua.so
942
-
943
-
944
-%files python
945
-%defattr(-,root,root)
946
-%doc %{_docdir}/kamailio/modules/README.app_python
947
-%{_libdir}/kamailio/modules/app_python.so
948
-
949
-
950
-%files regex
951
-%defattr(-,root,root)
952
-%doc %{_docdir}/kamailio/modules/README.regex
953
-%{_libdir}/kamailio/modules/regex.so
954
-
955
-
956
-%files dialplan
957
-%defattr(-,root,root)
958
-%doc %{_docdir}/kamailio/modules/README.dialplan
959
-%{_libdir}/kamailio/modules/dialplan.so
960
-
961
-
962
-%files lcr
963
-%defattr(-,root,root)
964
-%doc %{_docdir}/kamailio/modules/README.lcr
965
-%{_libdir}/kamailio/modules/lcr.so
966
-
967
-
968
-%files xmlops
969
-%defattr(-,root,root)
970
-%doc %{_docdir}/kamailio/modules/README.xmlops
971
-%{_libdir}/kamailio/modules/xmlops.so
972
-
973
-
974
-%files cdp
975
-%defattr(-,root,root)
976
-%doc %{_docdir}/kamailio/modules/README.cdp
977
-%{_libdir}/kamailio/modules/cdp.so
978
-%doc %{_docdir}/kamailio/modules/README.cdp_avp
979
-%{_libdir}/kamailio/modules/cdp_avp.so
980
-
981
-
982
-%files ims
983
-%defattr(-,root,root)
984
-%{_libdir}/kamailio/libkamailio_ims.so
985
-%{_libdir}/kamailio/libkamailio_ims.so.0
986
-%{_libdir}/kamailio/libkamailio_ims.so.0.1
987
-%doc %{_docdir}/kamailio/modules/README.dialog_ng
988
-%{_libdir}/kamailio/modules/dialog_ng.so
989
-%doc %{_docdir}/kamailio/modules/README.ims_auth
990
-%{_libdir}/kamailio/modules/ims_auth.so
991
-%doc %{_docdir}/kamailio/modules/README.ims_icscf
992
-%{_libdir}/kamailio/modules/ims_icscf.so
993
-%doc %{_docdir}/kamailio/modules/README.ims_isc
994
-%{_libdir}/kamailio/modules/ims_isc.so
995
-%doc %{_docdir}/kamailio/modules/README.ims_qos
996
-%{_libdir}/kamailio/modules/ims_qos.so
997
-#%doc %{_docdir}/kamailio/modules/README.ims_registrar_pcscf
998
-%{_libdir}/kamailio/modules/ims_registrar_pcscf.so
999
-#%doc %{_docdir}/kamailio/modules/README.ims_registrar_scscf
1000
-%{_libdir}/kamailio/modules/ims_registrar_scscf.so
1001
-%doc %{_docdir}/kamailio/modules/README.ims_usrloc_pcscf
1002
-%{_libdir}/kamailio/modules/ims_usrloc_pcscf.so
1003
-#%doc %{_docdir}/kamailio/modules/README.ims_usrloc_scscf
1004
-%{_libdir}/kamailio/modules/ims_usrloc_scscf.so
1005
-
1006
-
1007
-%files websocket
1008
-%defattr(-,root,root)
1009
-%doc %{_docdir}/kamailio/modules/README.websocket
1010
-%{_libdir}/kamailio/modules/websocket.so
1011
-
1012
-
1013
-%files xhttp-pi
1014
-%defattr(-,root,root)
1015
-%doc %{_docdir}/kamailio/modules/README.xhttp_pi
1016
-%{_libdir}/kamailio/modules/xhttp_pi.so
1017
-%dir %{_datadir}/kamailio/xhttp_pi
1018
-%{_datadir}/kamailio/xhttp_pi/*
1019
-
1020
-
1021
-%files outbound
1022
-%defattr(-,root,root)
1023
-%doc %{_docdir}/kamailio/modules/README.outbound
1024
-%{_libdir}/kamailio/modules/outbound.so
1025
-
1026
-
1027
-%if 0%{?fedora}
1028
-%files radius
1029
-%defattr(-,root,root)
1030
-%{_docdir}/kamailio/modules/README.acc_radius
1031
-%{_docdir}/kamailio/modules/README.auth_radius
1032
-%{_docdir}/kamailio/modules/README.misc_radius
1033
-%{_docdir}/kamailio/modules/README.peering
1034
-%{_libdir}/kamailio/modules/acc_radius.so
1035
-%{_libdir}/kamailio/modules/auth_radius.so
1036
-%{_libdir}/kamailio/modules/misc_radius.so
1037
-%{_libdir}/kamailio/modules/peering.so
1038
-
1039
-
1040
-%files carrierroute
1041
-%defattr(-,root,root)
1042
-%doc %{_docdir}/kamailio/modules/README.carrierroute
1043
-%{_libdir}/kamailio/modules/carrierroute.so
1044
-
1045
-
1046
-%files redis
1047
-%defattr(-,root,root)
1048
-%doc %{_docdir}/kamailio/modules/README.ndb_redis
1049
-%{_libdir}/kamailio/modules/ndb_redis.so
1050
-
1051
-
1052
-%files json
1053
-%defattr(-,root,root)
1054
-%doc %{_docdir}/kamailio/modules/README.json
1055
-%doc %{_docdir}/kamailio/modules/README.jsonrpc-c
1056
-%{_libdir}/kamailio/modules/json.so
1057
-%{_libdir}/kamailio/modules/jsonrpc-c.so
1058
-
1059
-
1060
-%files mono
1061
-%defattr(-,root,root)
1062
-%doc %{_docdir}/kamailio/modules/README.app_mono
1063
-%{_libdir}/kamailio/modules/app_mono.so
1064
-
1065
-
1066
-%files GeoIP
1067
-%defattr(-,root,root)
1068
-%doc %{_docdir}/kamailio/modules/README.geoip
1069
-%{_libdir}/kamailio/modules/geoip.so
1070
-%endif
1071
-
1072
-
1073
-
1074
-%changelog
1075
-* Sun Jan 20 2013 Peter Dunkley <peter@dunkley.me.uk>
1076
-  - Updated rel to pre1
1077
-  - Moved modules from modules_k/ to modules/
1078
-  - Renamed perl modules
1079
-* Fri Jan 11 2013 Peter Dunkley <peter@dunkley.me.uk>
1080
-  - Updated rel to pre0
1081
-* Thu Jan 10 2013 Peter Dunkley <peter@dunkley.me.uk>
1082
-  - More IMS updates
1083
-* Tue Jan 8 2013 Peter Dunkley <peter@dunkley.me.uk>
1084
-  - Changed dialog2 to dialog_ng
1085
-  - Renamed all IMS modules (prepended ims_)
1086
-* Sun Jan 6 2013 Peter Dunkley <peter@dunkley.me.uk>
1087
-  - Updated ver to 4.0.0 and rel to dev8
1088
-* Mon Dec 31 2012 Peter Dunkley <peter@dunkley.me.uk>
1089
-  - Added dialog2 and IMS modules to the build
1090
-* Fri Dec 21 2012 Peter Dunkley <peter@dunkley.me.uk>
1091
-  - Added db2_ldap, db2_ops, and timer to the build
1092
-  - Added uid_auth_db, uid_avp_db, uid_domain, uid_gflags, uid_uri_db, print,
1093
-    and print_lib to the build
1094
-* Thu Dec 13 2012 Peter Dunkley <peter@dunkley.me.uk>
1095
-  - Added xhttp_pi framework examples to the installation
1096
-  - Added xhttp_pi README to the installation
1097
-* Wed Dec 12 2012 Peter Dunkley <peter@dunkley.me.uk>
1098
-  - Added mangler module to the build
1099
-  - Tidied up make commands used to build and install
1100
-* Sun Dec 9 2012 Peter Dunkley <peter@dunkley.me.uk>
1101
-  - Updated rel to dev7
1102
-  - Added avp, sca, and xprint modules to the build
1103
-  - Moved xlog from modules_k to modules
1104
-* Fri Nov 9 2012 Peter Dunkley <peter@dunkley.me.uk>
1105
-  - Updated rel to dev5
1106
-* Tue Oct 30 2012 Peter Dunkley <peter@dunkley.me.uk>
1107
-  - Added xhttp_pi module to RPM builds
1108
-* Fri Oct 20 2012 Peter Dunkley <peter@dunkley.me.uk>
1109
-  - Set ownership of /etc/kamailio to kamailio.kamailio
1110
-  - Added installation of auth.7.gz for Fedora now that manpages are built for
1111
-    Fedora
1112
-  - Added "make utils" to the build section (when it's not there utils get
1113
-    built during the install - which isn't right)
1114
-  - SCTP and STUN now included in this build
1115
-  - Removed kamailio-tls package - tls module now in main kamailio RPM as that
1116
-    has openssl as a dependency for STUN
1117
-* Sun Sep 17 2012 Peter Dunkley <peter@dunkley.me.uk>
1118
-  - Added corex module to RPM builds
1119
-  - Updated rel to dev4
1120
-* Sun Aug 19 2012 Peter Dunkley <peter@dunkley.me.uk>
1121
-  - Updated rel to dev3
1122
-* Mon Aug 13 2012 Peter Dunkley <peter@dunkley.me.uk>
1123
-  - Added Outbound module
1124
-* Fri Jul 13 2012 Peter Dunkley <peter@dunkley.me.uk>
1125
-  - Updated rel to dev2
1126
-* Thu Jul 5 2012 Peter Dunkley <peter@dunkley.me.uk>
1127
-  - Added kamailio-cdp RPM for cdp and cdp_avp modules
1128
-* Tue Jul 3 2012 Peter Dunkley <peter@dunkley.me.uk>
1129
-  - Updates to websocket module
1130
-* Sat Jun 30 2012 Peter Dunkley <peter@dunkley.me.uk>
1131
-  - Updated rel to dev1
1132
-  - Removed %_sharedir and replaced with standard macro %_datadir
1133
-* Sat Jun 23 2012 Peter Dunkley <peter@dunkley.me.uk>
1134
-  - Added websocket module
1135
-* Mon Jun 11 2012 Peter Dunkley <peter@dunkley.me.uk>
1136
-  - Updated ver to 3.4.0 and rel to dev0
1137
-* Mon Jun 4 2012 Peter Dunkley <peter@dunkley.me.uk>
1138
-  - Added a number of %dir lines to make sure the RPMs are properly cleaned up
1139
-    on uninstall
1140
-* Sat Jun 2 2012 Peter Dunkley <peter@dunkley.me.uk>
1141
-  - Added %postun section to reload systemd on Fedora after uninstall
1142
-  - Added build requirement for redhat-rpm-config so debuginfo RPMs get built
1143
-* Fri Jun 1 2012 Peter Dunkley <peter@dunkley.me.uk>
1144
-  - Tweak to the pkg/kamailio/fedora directory structure
1145
-  - Tested with Fedora 17
1146
-* Thu May 31 2012 Peter Dunkley <peter@dunkley.me.uk>
1147
-  - Updated rel to pre3
1148
-  - Combined Fedora/CentOS .spec in preparation for Fedora 17
1149
-* Sun May 20 2012 Peter Dunkley <peter@dunkley.me.uk>
1150
-  - First version created for Kamailio 3.3.0. Based on spec-file for Fedora
1151
-    created by myself (in turn based on an older spec-file for CentOS created
1152
-    by Ovidiu Sas).
1153
-  - Tested with CentOS 6.2 x86_64.
1154
-  - Builds all Kamailio 3.3.0 modules (modules/modules_k) except:
1155
-    - modules/app_mono: Requires mono which is not in the CentOS 6 repo
1156
-    - modules/auth_identity: Conflicts with TLS unless statically linked (which
1157
-      requires changes to Makefile and is impractical for generic RPM building)
1158
-    - modules/db_cassandra: Requires Cassandra and Thrift which are not in the
1159
-      CentOS 6 repo
1160
-    - modules/geoip: Requires GeoIP which is not in the CentOS 6 repo
1161
-    - modules/iptrtpproxy: Needs local copy of iptables source to build
1162
-      (impractical for generic RPM building)
1163
-    - modules/json: Requires json-c whish is not in the CentOS 6 repo
1164
-    - modules/jsonrpc-c: Requires json-c whish is not in the CentOS 6 repo
1165
-    - modules/ndb_redis: Requires hiredis which is not in the CentOS 6 repo
1166
-    - modules/peering: Requires radiusclient-ng which is not in the CentOS 6
1167
-      repo
1168
-    - modules_k/acc_radius: Requires radiusclient-ng which is not in the CentOS
1169
-      6 repo
1170
-    - modules_k/auth_radius: Required radiusclient-ng which is not in the
1171
-      CentOS 6 repo
1172
-    - modules_k/carrierroute: Requires libconfuse which is not in the CentOS 6
1173
-      repo
1174
-    - modules_k/db_oracle: Requires Oracle which is not in the CentOS 6 repo
1175
-      (and is closed-source)
1176
-    - modules_k/memcached: Module compilation appears to require an older
1177
-      version of libmemcached-devel than the one in the CentOS 6 repo
1178
-    - modules_k/mi_xmlrpc: Requires libxmlrpc-c3 which is not in the CentOS 6
1179
-      repo
1180
-    - modules_k/misc_radius: Requires radiusclient-ng which is not in the
1181