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: 30-Jul-2008 10:47:57
Branch: HEAD Handle: 2008073009475500
Modified files:
openpkg-src/freeradius freeradius.spec
Log:
try to fix building if LDAP is not available
Summary:
Revision Changes Path
1.36 +6 -2 openpkg-src/freeradius/freeradius.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/freeradius/freeradius.spec
============================================================================
$ cvs diff -u -r1.35 -r1.36 freeradius.spec
--- openpkg-src/freeradius/freeradius.spec 8 Jun 2008 08:08:10 -0000
1.35
+++ openpkg-src/freeradius/freeradius.spec 30 Jul 2008 08:47:55 -0000
1.36
@@ -35,11 +35,11 @@
Group: RADIUS
License: GPL
Version: 2.0.5
-Release: 20080608
+Release: 20080730
# package options
%option with_mysql no
-%option with_openldap yes
+%option with_openldap no
%option with_pgsql no
%option with_snmp no
@@ -91,9 +91,11 @@
%prep
%setup -q -n freeradius-server-%{version}
%patch -p0
+%if "%{with_openldap}" == "yes"
%{l_shtool} subst \
-e 's;\(LIBS *=.* *-lldap\);\1 -llber -lssl -lcrypto;' \
src/modules/rlm_ldap/configure
+%endif
%build
# configure package
@@ -101,7 +103,9 @@
CFLAGS="-I`pwd`/src/include %{l_cflags -O} %{l_cppflags}" \
CPPFLAGS="%{l_cppflags}" \
LDFLAGS="%{l_ldflags}" \
+%if "%{with_openldap}" == "yes"
LIBS="-llber -lssl -lcrypto" \
+%endif
./configure \
--prefix=%{l_prefix} \
--libdir=%{l_prefix}/lib/freeradius \
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]