Changeset 26342


Ignore:
Timestamp:
2011-03-28T23:22:34+02:00 (7 years ago)
Author:
florian
Message:

[package] freeradius2: add rlm_sql_sqlite and rlm_passwd

This patch adds rlm_sql_sqlite, rlm_passwd modules for freeradius2.
It patches the rlm_sql_sqlite in order to work (authorization is working, accounting not yet tested).
It adds radwho to the utils.

Thanks in advance.

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@…>

Location:
packages/net/freeradius2
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/freeradius2/Makefile

    r24059 r26342  
    1010PKG_NAME:=freeradius2 
    1111PKG_VERSION:=2.1.10 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=freeradius-server-$(PKG_VERSION).tar.bz2 
     
    189189endef 
    190190 
     191define Package/freeradius2-mod-passwd 
     192  $(call Package/freeradius2/Default) 
     193  DEPENDS:=freeradius2 
     194  TITLE:=Rlm passwd module 
     195endef 
     196 
     197define Package/freeradius2-mod-passwd/conffiles 
     198/etc/freeradius2/modules/passwd 
     199endef 
     200 
    191201define Package/freeradius2-mod-ldap 
    192202  $(call Package/freeradius2/Default) 
     
    275285        +PACKAGE_freeradius2-mod-sql-pgsql:libpq 
    276286  TITLE:=PostgreSQL module 
     287endef 
     288 
     289define Package/freeradius2-mod-sql-sqlite 
     290  $(call Package/freeradius2/Default) 
     291  DEPENDS:=freeradius2-mod-sql \ 
     292        +PACKAGE_freeradius2-mod-sql-sqlite:libsqlite3 
     293  TITLE:=SQLite module 
    277294endef 
    278295 
     
    332349        --without-rlm_python \ 
    333350        --without-rlm_smb \ 
    334         --without-rlm_always \ 
    335351        --with-rlm_sql \ 
    336352        --with-rlm_sqlcounter \ 
     
    345361        --without-rlm_sql_unixodbc \ 
    346362        --without-rlm_sql_log \ 
    347         --without-rlm_sql_sqlite \ 
    348363        --without-rlm_unix \ 
    349364        --without-rlm_eap_tnc \ 
     
    351366        --without-rlm_opendirectory \ 
    352367        --without-rlm_wimax \ 
     368        --without-rlm_ruby \ 
    353369 
    354370PKG_DICTIONARIES:= \ 
     
    384400else 
    385401  CONFIGURE_ARGS+= --without-rlm_sql_postgresql 
     402endif 
     403 
     404ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-sql-sqlite),) 
     405  CONFIGURE_ARGS+= \ 
     406        --with-rlm_sql_sqlite \ 
     407        --with-experimental-modules \ 
     408        --with-sqlite-include-dir="$(STAGING_DIR)/usr/include" \ 
     409        --with-sqlite-lib-dir="$(STAGING_DIR)/usr/lib" 
     410else 
     411  CONFIGURE_ARGS+= --without-rlm_sql_sqlite 
    386412endif 
    387413 
     
    497523define Package/freeradius2-utils/install 
    498524        $(INSTALL_DIR) $(1)/usr/bin 
    499         for f in radclient radeapclient; do \ 
     525        for f in radclient radeapclient radwho; do \ 
    500526                $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$$$${f} $(1)/usr/bin/ ; \ 
    501527        done 
     
    532558$(eval $(call BuildPlugin,freeradius2-mod-attr-rewrite,rlm_attr_rewrite,modules/attr_rewrite,modules,)) 
    533559$(eval $(call BuildPlugin,freeradius2-mod-files,rlm_files,acct_users preproxy_users users modules/files,modules,)) 
     560$(eval $(call BuildPlugin,freeradius2-mod-passwd,rlm_passwd,modules/passwd,modules,)) 
    534561$(eval $(call BuildPlugin,freeradius2-mod-ldap,rlm_ldap,ldap.attrmap modules/ldap,modules,)) 
    535562$(eval $(call BuildPlugin,freeradius2-mod-mschap,rlm_mschap,modules/mschap,modules,)) 
     
    540567$(eval $(call BuildPlugin,freeradius2-mod-sql-mysql,rlm_sql_mysql,)) 
    541568$(eval $(call BuildPlugin,freeradius2-mod-sql-pgsql,rlm_sql_postgresql,)) 
     569$(eval $(call BuildPlugin,freeradius2-mod-sql-sqlite,rlm_sql_sqlite,)) 
    542570$(eval $(call BuildPlugin,freeradius2-mod-sqlcounter,rlm_sqlcounter,)) 
    543571$(eval $(call BuildPlugin,freeradius2-mod-radutmp,rlm_radutmp,modules/radutmp modules/sradutmp,modules,)) 
Note: See TracChangeset for help on using the changeset viewer.