Browse code

pkg/kamailio/deb: use libradcli-dev for radius

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=822338

kamailio-radius-modules depends on libfreeradius-client
libfreeradius-client has been deprecated in favor of radcli[1]

(cherry picked from commit e0cb17c329c0f6fa03e55cf041d1ba2a97b6e64f)

Victor Seva authored on 03/05/2016 08:18:14
Showing 29 changed files
... ...
@@ -14,6 +14,10 @@ sed -i -e '/libxmlrpc-c3-dev/d' -e '/^Package: kamailio-xmlrpc-modules/,/^$/d' \
14 14
 sed -i -e 's/ mi_xmlrpc[ ,$]*/ /' ${DIST}/rules
15 15
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ mi_xmlrpc/' ${DIST}/rules
16 16
 
17
+# use old libfreeradius
18
+sed -i 's/libradcli-dev/libfreeradius-client-dev/' ${DIST}/control
19
+sed -i -e 's/RADCLI/FREERADIUS/' ${DIST}/rules
20
+
17 21
 # clean backports scripts
18 22
 rm -rf ${DIST}/backports
19 23
 exit 0
... ...
@@ -26,8 +26,8 @@ sed -i -e 's/ dnssec[ ,$]*/ /' ${DIST}/rules
26 26
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ dnssec/' ${DIST}/rules
27 27
 
28 28
 # use old radius-client-ng
29
-sed -i 's/libfreeradius-client-dev/libradiusclient-ng-dev/' ${DIST}/control
30
-sed -i -e '/FREERADIUS/d' ${DIST}/rules
29
+sed -i 's/libradcli-dev/libradiusclient-ng-dev/' ${DIST}/control
30
+sed -i -e '/RADCLI/d' ${DIST}/rules
31 31
 
32 32
 # use old json
33 33
 sed -i 's/libjson-c-dev/libjson0-dev/' ${DIST}/control
... ...
@@ -72,8 +72,8 @@ sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ mono/' ${DIST}/rules
72 72
 sed -i -e 's/db-util/db4.8-util/' ${DIST}/control
73 73
 
74 74
 # use old radius-client-ng
75
-sed -i 's/libfreeradius-client-dev/libradiusclient-ng-dev/' ${DIST}/control
76
-sed -i -e '/FREERADIUS/d' ${DIST}/rules
75
+sed -i 's/libradcli-dev/libradiusclient-ng-dev/' ${DIST}/control
76
+sed -i -e '/RADCLI/d' ${DIST}/rules
77 77
 
78 78
 # use old json
79 79
 sed -i 's/libjson-c-dev/libjson0-dev/' ${DIST}/control
... ...
@@ -19,6 +19,10 @@ sed -i -e '/libxmlrpc-c3-dev/d' -e '/^Package: kamailio-xmlrpc-modules/,/^$/d' \
19 19
 sed -i -e 's/ mi_xmlrpc[ ,$]*/ /' ${DIST}/rules
20 20
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ mi_xmlrpc/' ${DIST}/rules
21 21
 
22
+# use old libfreeradius
23
+sed -i 's/libradcli-dev/libfreeradius-client-dev/' ${DIST}/control
24
+sed -i -e 's/RADCLI/FREERADIUS/' ${DIST}/rules
25
+
22 26
 # clean backports scripts
23 27
 rm -rf ${DIST}/backports
24 28
 exit 0
... ...
@@ -32,8 +32,8 @@ sed -i -e 's/ dnssec[ ,$]*/ /' ${DIST}/rules
32 32
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ dnssec/' ${DIST}/rules
33 33
 
34 34
 # use old radius-client-ng
35
-sed -i 's/libfreeradius-client-dev/libradiusclient-ng-dev/' ${DIST}/control
36
-sed -i -e '/FREERADIUS/d' ${DIST}/rules
35
+sed -i 's/libradcli-dev/libradiusclient-ng-dev/' ${DIST}/control
36
+sed -i -e '/RADCLI/d' ${DIST}/rules
37 37
 
38 38
 # use old json
39 39
 sed -i 's/libjson-c-dev/libjson0-dev/' ${DIST}/control
... ...
@@ -18,7 +18,6 @@ Build-Depends: bison,
18 18
                libev-dev,
19 19
                libevent-dev,
20 20
                libexpat1-dev,
21
-               libfreeradius-client-dev,
22 21
                libgeoip-dev (>= 1.4.5),
23 22
                libhiredis-dev (>= 0.10.0),
24 23
                libjansson-dev,
... ...
@@ -34,6 +33,7 @@ Build-Depends: bison,
34 33
                libpq-dev,
35 34
                libpurple-dev,
36 35
                librabbitmq-dev,
36
+               libradcli-dev,
37 37
                libreadline-dev,
38 38
                libsasl2-dev,
39 39
                libsctp-dev,
... ...
@@ -1,2 +1 @@
1 1
 examples/*
2
-
... ...
@@ -19,9 +19,7 @@ include /usr/share/dpkg/buildflags.mk
19 19
 #export DH_VERBOSE=1
20 20
 
21 21
 export JAVA_HOME=/usr/lib/jvm/java-gcj
22
-
23
-# choose freeradius
24
-export FREERADIUS=1
22
+export RADCLI=1
25 23
 
26 24
 # modules not in the "main" kamailio package
27 25
 EXCLUDED_MODULES=
... ...
@@ -18,7 +18,6 @@ Build-Depends: bison,
18 18
                libev-dev,
19 19
                libevent-dev,
20 20
                libexpat1-dev,
21
-               libfreeradius-client-dev,
22 21
                libgeoip-dev (>= 1.4.5),
23 22
                libhiredis-dev (>= 0.10.0),
24 23
                libjansson-dev,
... ...
@@ -34,6 +33,7 @@ Build-Depends: bison,
34 33
                libpq-dev,
35 34
                libpurple-dev,
36 35
                librabbitmq-dev,
36
+               libfreeradius-client-dev,
37 37
                libreadline-dev,
38 38
                libsasl2-dev,
39 39
                libsctp-dev,
... ...
@@ -1,2 +1 @@
1 1
 examples/*
2
-
... ...
@@ -19,8 +19,6 @@ include /usr/share/dpkg/buildflags.mk
19 19
 #export DH_VERBOSE=1
20 20
 
21 21
 export JAVA_HOME=/usr/lib/jvm/java-gcj
22
-
23
-# choose freeradius
24 22
 export FREERADIUS=1
25 23
 
26 24
 # modules not in the "main" kamailio package
... ...
@@ -17,7 +17,6 @@ Build-Depends: bison,
17 17
                libev-dev,
18 18
                libevent-dev,
19 19
                libexpat1-dev,
20
-               libradiusclient-ng-dev,
21 20
                libgeoip-dev (>= 1.4.5),
22 21
                libhiredis-dev (>= 0.10.0),
23 22
                libjansson-dev,
... ...
@@ -32,6 +31,7 @@ Build-Depends: bison,
32 31
                libperl-dev,
33 32
                libpq-dev,
34 33
                libpurple-dev,
34
+               libradiusclient-ng-dev,
35 35
                libreadline-dev,
36 36
                libsasl2-dev,
37 37
                libsctp-dev,
... ...
@@ -1,2 +1 @@
1 1
 examples/*
2
-
... ...
@@ -20,8 +20,6 @@ include /usr/share/dpkg/buildflags.mk
20 20
 
21 21
 export JAVA_HOME=/usr/lib/jvm/java-gcj
22 22
 
23
-# choose freeradius
24
-
25 23
 # modules not in the "main" kamailio package
26 24
 EXCLUDED_MODULES=
27 25
 
... ...
@@ -18,7 +18,6 @@ Build-Depends: bison,
18 18
                libev-dev,
19 19
                libevent-dev,
20 20
                libexpat1-dev,
21
-               libfreeradius-client-dev,
22 21
                libgeoip-dev (>= 1.4.5),
23 22
                libhiredis-dev (>= 0.10.0),
24 23
                libjansson-dev,
... ...
@@ -34,6 +33,7 @@ Build-Depends: bison,
34 33
                libpq-dev,
35 34
                libpurple-dev,
36 35
                librabbitmq-dev,
36
+               libradcli-dev,
37 37
                libreadline-dev,
38 38
                libsasl2-dev,
39 39
                libsctp-dev,
... ...
@@ -1,2 +1 @@
1 1
 examples/*
2
-
... ...
@@ -19,9 +19,7 @@ include /usr/share/dpkg/buildflags.mk
19 19
 #export DH_VERBOSE=1
20 20
 
21 21
 export JAVA_HOME=/usr/lib/jvm/java-gcj
22
-
23
-# choose freeradius
24
-export FREERADIUS=1
22
+export RADCLI=1
25 23
 
26 24
 # modules not in the "main" kamailio package
27 25
 EXCLUDED_MODULES=
... ...
@@ -15,7 +15,6 @@ Build-Depends: bison,
15 15
                libev-dev,
16 16
                libevent-dev,
17 17
                libexpat1-dev,
18
-               libradiusclient-ng-dev,
19 18
                libgeoip-dev (>= 1.4.5),
20 19
                libjson0-dev,
21 20
                libldap2-dev,
... ...
@@ -26,6 +25,7 @@ Build-Depends: bison,
26 25
                libpcre3-dev,
27 26
                libperl-dev,
28 27
                libpq-dev,
28
+               libradiusclient-ng-dev,
29 29
                libreadline-dev,
30 30
                libsasl2-dev,
31 31
                libsnmp-dev,
... ...
@@ -1,2 +1 @@
1 1
 examples/*
2
-
... ...
@@ -18,8 +18,6 @@ DPKG_EXPORT_BUILDFLAGS = 1
18 18
 #export DH_VERBOSE=1
19 19
 
20 20
 
21
-# choose freeradius
22
-
23 21
 # modules not in the "main" kamailio package
24 22
 EXCLUDED_MODULES=
25 23
 
... ...
@@ -18,7 +18,6 @@ Build-Depends: bison,
18 18
                libev-dev,
19 19
                libevent-dev,
20 20
                libexpat1-dev,
21
-               libfreeradius-client-dev,
22 21
                libgeoip-dev (>= 1.4.5),
23 22
                libhiredis-dev (>= 0.10.0),
24 23
                libjansson-dev,
... ...
@@ -34,6 +33,7 @@ Build-Depends: bison,
34 33
                libpq-dev,
35 34
                libpurple-dev,
36 35
                librabbitmq-dev,
36
+               libradcli-dev,
37 37
                libreadline-dev,
38 38
                libsasl2-dev,
39 39
                libsctp-dev,
... ...
@@ -1,2 +1 @@
1 1
 examples/*
2
-
... ...
@@ -19,9 +19,7 @@ include /usr/share/dpkg/buildflags.mk
19 19
 #export DH_VERBOSE=1
20 20
 
21 21
 export JAVA_HOME=/usr/lib/jvm/java-gcj
22
-
23
-# choose freeradius
24
-export FREERADIUS=1
22
+export RADCLI=1
25 23
 
26 24
 # modules not in the "main" kamailio package
27 25
 EXCLUDED_MODULES=
... ...
@@ -17,7 +17,6 @@ Build-Depends: bison,
17 17
                libev-dev,
18 18
                libevent-dev,
19 19
                libexpat1-dev,
20
-               libfreeradius-client-dev,
21 20
                libgeoip-dev (>= 1.4.5),
22 21
                libhiredis-dev (>= 0.10.0),
23 22
                libjansson-dev,
... ...
@@ -33,6 +32,7 @@ Build-Depends: bison,
33 32
                libpq-dev,
34 33
                libpurple-dev,
35 34
                librabbitmq-dev,
35
+               libfreeradius-client-dev,
36 36
                libreadline-dev,
37 37
                libsasl2-dev,
38 38
                libsctp-dev,
... ...
@@ -1,2 +1 @@
1 1
 examples/*
2
-
... ...
@@ -19,8 +19,6 @@ include /usr/share/dpkg/buildflags.mk
19 19
 #export DH_VERBOSE=1
20 20
 
21 21
 export JAVA_HOME=/usr/lib/jvm/java-gcj
22
-
23
-# choose freeradius
24 22
 export FREERADIUS=1
25 23
 
26 24
 # modules not in the "main" kamailio package
... ...
@@ -17,7 +17,6 @@ Build-Depends: bison,
17 17
                libev-dev,
18 18
                libevent-dev,
19 19
                libexpat1-dev,
20
-               libradiusclient-ng-dev,
21 20
                libgeoip-dev (>= 1.4.5),
22 21
                libhiredis-dev (>= 0.10.0),
23 22
                libjansson-dev,
... ...
@@ -31,6 +30,7 @@ Build-Depends: bison,
31 30
                libpcre3-dev,
32 31
                libperl-dev,
33 32
                libpq-dev,
33
+               libradiusclient-ng-dev,
34 34
                libreadline-dev,
35 35
                libsasl2-dev,
36 36
                libsctp-dev,
... ...
@@ -1,2 +1 @@
1 1
 examples/*
2
-
... ...
@@ -20,8 +20,6 @@ include /usr/share/dpkg/buildflags.mk
20 20
 
21 21
 export JAVA_HOME=/usr/lib/jvm/java-gcj
22 22
 
23
-# choose freeradius
24
-
25 23
 # modules not in the "main" kamailio package
26 24
 EXCLUDED_MODULES=
27 25