OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 17-Mar-2008 10:33:26
Branch: HEAD Handle: 2008031709332400
Modified files:
openpkg-src/asterisk asterisk.spec
Log:
add optional RADIUS support
Summary:
Revision Changes Path
1.46 +14 -1 openpkg-src/asterisk/asterisk.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/asterisk/asterisk.spec
============================================================================
$ cvs diff -u -r1.45 -r1.46 asterisk.spec
--- openpkg-src/asterisk/asterisk.spec 17 Mar 2008 09:08:11 -0000
1.45
+++ openpkg-src/asterisk/asterisk.spec 17 Mar 2008 09:33:24 -0000
1.46
@@ -53,6 +53,7 @@
%option with_fax no
%option with_avcodec no
%option with_ldap no
+%option with_radius no
%option with_sqlite no
%option with_lua no
%option with_jabber no
@@ -112,6 +113,10 @@
BuildPreReq: openldap
PreReq: openldap
%endif
+%if "%{with_radius}" == "yes"
+BuildPreReq: radiusclient
+PreReq: radiusclient
+%endif
%if "%{with_jabber}" == "yes"
BuildPreReq: iksemel
PreReq: iksemel
@@ -187,6 +192,10 @@
-e 's;\(CORE_SOUNDS_VERSION\):=.*$;\1:=%{V_asterisk_sounds_core};' \
-e 's;\(EXTRA_SOUNDS_VERSION\):=.*$;\1:=%{V_asterisk_sounds_extra};'
\
sounds/Makefile
+ %{l_shtool} subst \
+ -e 's;-lradiusclient-ng;-lradiusclient;g' \
+ -e 's;radiusclient-ng\.h;radiusclient.h;g' \
+ configure cdr/cdr_radius.c
%build
# sanity check
@@ -301,6 +310,11 @@
%else
--without-ldap \
%endif
+%if "%{with_radius}" == "yes"
+ --with-radius=%{l_prefix} \
+%else
+ --without-radius \
+%endif
%if "%{with_imap}" == "yes"
--with-imap=%{l_prefix} \
%else
@@ -321,7 +335,6 @@
--without-tds \
--without-osptk \
--without-pri \
- --without-radius \
--without-suppserv \
--without-tonezone \
--without-vpb \
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]