Modify

Opened 6 years ago

Closed 5 years ago

Last modified 4 years ago

#11093 closed task (fixed)

create sqllog package for freeradius

Reported by: andreas.kraxner@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: freeradius2 sqllog radsqlrelay Cc:

Description (last modified by florian)

Hello,
for a fallback mode on our radiusserver we need a sqllog package so i wrote a patch for the current freeradus2 Makefile.
can someone add the patch to the makefile?

+++ feeds/packages/net/freeradius2/Makefile	2012-02-29 08:09:54.909449182 +0100
--- feeds/packages/net/freeradius2/Makefile.new	2012-02-29 08:12:35.790333125 +0100
@@ -316,6 +316,12 @@
   TITLE:=Misc. client utilities
 endef
 
+define Package/freeradius2-mod-sqllog
+  $(call Package/freeradius2/Default)
+  DEPENDS:=freeradius2
+  TITLE:=SQL Logging module
+endef
+
 CONFIGURE_ARGS+= \
 	--libdir=/usr/lib/freeradius2 \
 	--libexecdir=/usr/lib/freeradius2 \
@@ -401,6 +407,15 @@
   CONFIGURE_ARGS+= --without-rlm_sql_postgresql
 endif
 
+ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-sqllog),)
+  CONFIGURE_ARGS+= \
+        --with-rlm_sql_log \
+        --with-experimental-modules \
+else
+  CONFIGURE_ARGS+= --without-rlm_sql_log
+endif
+
+
 ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-sql-sqlite),)
   CONFIGURE_ARGS+= \
 	--with-rlm_sql_sqlite \
@@ -568,6 +583,7 @@
 $(eval $(call BuildPlugin,freeradius2-mod-sql-pgsql,rlm_sql_postgresql,))
 $(eval $(call BuildPlugin,freeradius2-mod-sql-sqlite,rlm_sql_sqlite,))
 $(eval $(call BuildPlugin,freeradius2-mod-sqlcounter,rlm_sqlcounter,))
+$(eval $(call BuildPlugin,freeradius2-mod-sqllog,rlm_sql_log,))
 $(eval $(call BuildPlugin,freeradius2-mod-radutmp,rlm_radutmp,modules/radutmp modules/sradutmp,modules,))
 $(eval $(call BuildPlugin,freeradius2-mod-logintime,rlm_logintime,modules/logintime,modules,))
 $(eval $(call BuildPlugin,freeradius2-mod-expr,rlm_expr,modules/expr,modules,))
stan@stan:~/openwrt/trunk/backfire/backfire/feeds/packages/net/freeradius2$ 
stan@stan:~/openwrt/trunk/backfire/backfire/feeds/packages/net/freeradius2$ 
stan@stan:~/openwrt/trunk/backfire/backfire/feeds/packages/net/freeradius2$ 
stan@stan:~/openwrt/trunk/backfire/backfire/feeds/packages/net/freeradius2$ ls
files  freeradius2-Makefile.patch  Makefile  Makefile.new  patches
stan@stan:~/openwrt/trunk/backfire/backfire/feeds/packages/net/freeradius2$ ls
files  freeradius2-Makefile.patch  Makefile  Makefile.new  patches
stan@stan:~/openwrt/trunk/backfire/backfire/feeds/packages/net/freeradius2$ cat freeradius2-Makefile.patch 
+++ feeds/packages/net/freeradius2/Makefile	2012-02-29 08:09:54.909449182 +0100
--- feeds/packages/net/freeradius2/Makefile.new	2012-02-29 08:12:35.790333125 +0100
@@ -316,6 +316,12 @@
   TITLE:=Misc. client utilities
 endef
 
+define Package/freeradius2-mod-sqllog
+  $(call Package/freeradius2/Default)
+  DEPENDS:=freeradius2
+  TITLE:=SQL Logging module
+endef
+
 CONFIGURE_ARGS+= \
 	--libdir=/usr/lib/freeradius2 \
 	--libexecdir=/usr/lib/freeradius2 \
@@ -401,6 +407,15 @@
   CONFIGURE_ARGS+= --without-rlm_sql_postgresql
 endif
 
+ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-sqllog),)
+  CONFIGURE_ARGS+= \
+        --with-rlm_sql_log \
+        --with-experimental-modules \
+else
+  CONFIGURE_ARGS+= --without-rlm_sql_log
+endif
+
+
 ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-sql-sqlite),)
   CONFIGURE_ARGS+= \
 	--with-rlm_sql_sqlite \
@@ -568,6 +583,7 @@
 $(eval $(call BuildPlugin,freeradius2-mod-sql-pgsql,rlm_sql_postgresql,))
 $(eval $(call BuildPlugin,freeradius2-mod-sql-sqlite,rlm_sql_sqlite,))
 $(eval $(call BuildPlugin,freeradius2-mod-sqlcounter,rlm_sqlcounter,))
+$(eval $(call BuildPlugin,freeradius2-mod-sqllog,rlm_sql_log,))
 $(eval $(call BuildPlugin,freeradius2-mod-radutmp,rlm_radutmp,modules/radutmp modules/sradutmp,modules,))
 $(eval $(call BuildPlugin,freeradius2-mod-logintime,rlm_logintime,modules/logintime,modules,))
 $(eval $(call BuildPlugin,freeradius2-mod-expr,rlm_expr,modules/expr,modules,))

i also wrote a sqlrelay python script, how can i submitt the scirpt?

Attachments (2)

radsqlrelay.tar.gz (3.3 KB) - added by anonymous 6 years ago.
radsqlrelay.tar.2.gz (3.3 KB) - added by andreas.kraxner@… 6 years ago.
radsqlrelay.py

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by anonymous

Changed 6 years ago by andreas.kraxner@…

radsqlrelay.py

comment:1 Changed 5 years ago by florian

  • Description modified (diff)

comment:2 Changed 5 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

Applied in r31160

comment:3 Changed 4 years ago by jow

  • Milestone changed from Backfire 10.03.2 to Chaos Calmer (trunk)

Milestone Backfire 10.03.2 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.