Browse code

pkg/kamailio/deb: use freeradius-client lib on sid and jessie

Victor Seva authored on 18/02/2014 15:44:40
Showing 11 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 #
3 3
 # Hook for automatic backports at buildserver.net
4 4
 #
5
-# Target dist: Debian Wheezy
5
+# Target dist: Debian Jessie
6 6
 DIST=jessie
7 7
 
8 8
 rm -rf ${DIST}
... ...
@@ -20,6 +20,10 @@ sed -i -e '/libval-dev/d' -e '/^Package: kamailio-dnssec-modules/,/^$/d' \
20 20
 sed -i -e 's/ dnssec[ ,$]*/ /' ${DIST}/rules
21 21
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ dnssec/' ${DIST}/rules
22 22
 
23
+# use old radius-client-ng
24
+sed -i 's/libfreeradius-client-dev/libradiusclient-ng-dev/' ${DIST}/control
25
+sed -i -e '/FREERADIUS/d' ${DIST}/rules
26
+
23 27
 # clean backports scripts
24 28
 rm -rf ${DIST}/backports
25 29
 exit 0
... ...
@@ -65,6 +65,10 @@ sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ mono/' ${DIST}/rules
65 65
 # db-util version
66 66
 sed -i -e 's/db-util/db4.8-util/' ${DIST}/control
67 67
 
68
+# use old radius-client-ng
69
+sed -i 's/libfreeradius-client-dev/libradiusclient-ng-dev/' ${DIST}/control
70
+sed -i -e '/FREERADIUS/d' ${DIST}/rules
71
+
68 72
 # clean backports scripts
69 73
 rm -rf ${DIST}/backports
70 74
 exit 0
... ...
@@ -26,6 +26,10 @@ sed -i -e '/libval-dev/d' -e '/^Package: kamailio-dnssec-modules/,/^$/d' \
26 26
 sed -i -e 's/ dnssec[ ,$]*/ /' ${DIST}/rules
27 27
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ dnssec/' ${DIST}/rules
28 28
 
29
+# use old radius-client-ng
30
+sed -i 's/libfreeradius-client-dev/libradiusclient-ng-dev/' ${DIST}/control
31
+sed -i -e '/FREERADIUS/d' ${DIST}/rules
32
+
29 33
 # clean backports scripts
30 34
 rm -rf ${DIST}/backports
31 35
 exit 0
... ...
@@ -28,7 +28,7 @@ Build-Depends: bison,
28 28
                libperl-dev,
29 29
                libpq-dev,
30 30
                libpurple-dev,
31
-               libradiusclient-ng-dev,
31
+               libfreeradius-client-dev,
32 32
                libreadline-dev,
33 33
                libsasl2-dev,
34 34
                libsctp-dev,
... ...
@@ -21,6 +21,9 @@ include /usr/share/dpkg/buildflags.mk
21 21
 # java stuff using libgcj12
22 22
 export JAVA_HOME=/usr/lib/jvm/java-gcj-4.6
23 23
 
24
+# choose freeradius
25
+export FREERADIUS=1
26
+
24 27
 # modules not in the "main" kamailio package
25 28
 EXCLUDED_MODULES=
26 29
 
... ...
@@ -28,7 +28,7 @@ Build-Depends: bison,
28 28
                libperl-dev,
29 29
                libpq-dev,
30 30
                libpurple-dev,
31
-               libradiusclient-ng-dev,
31
+               libfreeradius-client-dev,
32 32
                libreadline-dev,
33 33
                libsasl2-dev,
34 34
                libsctp-dev,
... ...
@@ -21,6 +21,9 @@ include /usr/share/dpkg/buildflags.mk
21 21
 # java stuff using libgcj12
22 22
 export JAVA_HOME=/usr/lib/jvm/java-gcj-4.6
23 23
 
24
+# choose freeradius
25
+export FREERADIUS=1
26
+
24 27
 # modules not in the "main" kamailio package
25 28
 EXCLUDED_MODULES=
26 29
 
... ...
@@ -21,6 +21,8 @@ include /usr/share/dpkg/buildflags.mk
21 21
 # java stuff using libgcj12
22 22
 export JAVA_HOME=/usr/lib/jvm/java-gcj-4.6
23 23
 
24
+# choose freeradius
25
+
24 26
 # modules not in the "main" kamailio package
25 27
 EXCLUDED_MODULES=
26 28
 
... ...
@@ -20,6 +20,8 @@ DPKG_EXPORT_BUILDFLAGS = 1
20 20
 # stuff using libgcj12
21 21
 export JAVA_HOME=/usr/lib/jvm/java-gcj-4.6
22 22
 
23
+# choose freeradius
24
+
23 25
 # modules not in the "main" kamailio package
24 26
 EXCLUDED_MODULES=
25 27
 
... ...
@@ -21,6 +21,8 @@ include /usr/share/dpkg/buildflags.mk
21 21
 # java stuff using libgcj12
22 22
 export JAVA_HOME=/usr/lib/jvm/java-gcj-4.6
23 23
 
24
+# choose freeradius
25
+
24 26
 # modules not in the "main" kamailio package
25 27
 EXCLUDED_MODULES=
26 28