OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Christoph Schug Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 06-Mar-2007 07:28:42 Branch: HEAD Handle: 2007030606284100 Modified files: openpkg-src/freeradius freeradius.spec Log: provide some optional RLMs Summary: Revision Changes Path 1.27 +55 -5 openpkg-src/freeradius/freeradius.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/freeradius/freeradius.spec ============================================================================ $ cvs diff -u -r1.26 -r1.27 freeradius.spec --- openpkg-src/freeradius/freeradius.spec 20 Feb 2007 22:50:57 -0000 1.26 +++ openpkg-src/freeradius/freeradius.spec 6 Mar 2007 06:28:41 -0000 1.27 @@ -40,7 +40,13 @@ Group: RADIUS License: GPL Version: %{V_here} -Release: 20070220 +Release: 20070306 + +# package options +%option with_mysql no +%option with_openldap yes +%option with_pgsql no +%option with_snmp no # list of sources Source0: ftp://ftp.freeradius.org/pub/radius/freeradius-%{V_real}.tar.gz @@ -52,8 +58,24 @@ BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20060823, make, gcc, libtool PreReq: OpenPKG, openpkg >= 20060823 -BuildPreReq: perl, openssl, openldap, gdbm -PreReq: perl, openssl, openldap, gdbm +BuildPreReq: perl, openssl, gdbm +PreReq: perl, openssl, gdbm +%if "%{with_mysql}" == "yes" +BuildPreReq: mysql, zlib +PreReq: mysql, zlib +%endif +%if "%{with_openldap}" == "yes" +BuildPreReq: openldap +PreReq: openldap +%endif +%if "%{with_pgsql}" == "yes" +BuildPreReq: postgresql +PreReq: postgresql +%endif +%if "%{with_snmp}" == "yes" +BuildPreReq: snmp +PreReq: snmp +%endif AutoReq: no AutoReqProv: no @@ -99,16 +121,44 @@ --without-threads \ --with-openssl-includes=%{l_prefix}/include/openssl \ --with-openssl-libraries=%{l_prefix}/lib/ \ +%if "%{with_mysql}" == "yes" || "%{with_pgsql}" == "yes" + --with-rlm_sql \ + --without-rlm_sql_db2 \ + --without-rlm_sql_firebird \ + --without-rlm_sql_freetds \ + --without-rlm_sql_iodbc \ + --without-rlm_sql_oracle \ + --without-rlm_sql_sybase \ + --without-rlm_sql_unixodbc \ +%else + --without-rlm_sql \ +%endif +%if "%{with_mysql}" == "yes" + --with-rlm_sql_mysql \ +%else + --without-rlm_sql_mysql \ +%endif +%if "%{with_openldap}" == "yes" --with-rlm-ldap-include-dir=%{l_prefix}/include/ \ --with-rlm-ldap-lib-dir=%{l_prefix}/lib/ \ +%else + --without-rlm-ldap \ +%endif +%if "%{with_pgsql}" == "yes" + --with-rlm_sql_postgresql \ +%else + --without-rlm_sql_postgresql \ +%endif +%if "%{with_snmp}" == "yes" + --with-snmp \ +%else --without-snmp \ +%endif --without-rlm_eap_sim \ --without-rlm_eap_tls \ --without-rlm_eap_peap \ --without-rlm_eap_ttls \ --without-rlm_krb5 \ - --without-rlm_sql \ - --without-rlm_sql_postgresql \ --without-rlm_dbm \ --without-rlm_otp \ --without-rlm_pam \ @@ . ______________________________________________________________________ OpenPKG http://openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org