Menu

#77 patch for easy compilation for acc with radius/diam support

ver 1.2.x
closed-accepted
modules (140)
5
2007-04-17
2007-04-13
Ovidiu Sas
No

Here's a small patch against 1.2 branch for controlling the
diameter/radius support for the acc module (instead of modifying the
Makefile, just set the ENABLE_RADIUS_ACC/ENABLE_DIAMETER_ACC to true):

--- Makefile (revision 1991)
+++ Makefile (working copy)
@@ -13,11 +13,15 @@
# uncomment the next line if you wish to enable SQL accounting
DEFS+=-DSQL_ACC

-# uncomment the next two lines if you wish to enable RADIUS accounting
-#DEFS+=-DRAD_ACC -I$(LOCALBASE)/include
-#LIBS=-L$(LOCALBASE)/lib $(RADIUS_LIB)
+# set ENABLE_RADIUS_ACC) to true if you wish to enable RADIUS accounting
+ifeq ($(ENABLE_RADIUS_ACC),true)
+ DEFS+=-DRAD_ACC -I$(LOCALBASE)/include
+ LIBS=-L$(LOCALBASE)/lib $(RADIUS_LIB)
+endif

-# uncomment the next two lines if you wish to enable DIAMETER accounting
-#DEFS+=-DDIAM_ACC
+# set ENABLE_DIAMETER_ACC to true if you wish to enable DIAMETER accounting
+ifeq ($(ENABLE_DIAMETER_ACC),true)
+ DEFS+=-DDIAM_ACC
+endif

include ../../Makefile.modules

Example: enable RADIUS in acc:
ENABLE_RADIUS_ACC=true make include_modules="avp_radius auth_radius
group_radius uri_radius" all

Discussion

  • Daniel-Constantin Mierla

    • assigned_to: nobody --> miconda
    • status: open --> closed-accepted
     
  • Daniel-Constantin Mierla

    Logged In: YES
    user_id=1246013
    Originator: NO

    Slightly changed for more hints and applied to svn.

     

Log in to post a comment.

MongoDB Logo MongoDB