Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2004 17:48:12 -0500 (EST)
From:      Hendrik Scholz <hendrik@scholz.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        andreas.jahnen@tudor.lu
Subject:   ports/63418: bento-fix: net/tac_plus-radius
Message-ID:  <20040226224812.0BF6739819@slurmcan.wormulon.net>
Resent-Message-ID: <200402262250.i1QMohVx032780@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         63418
>Category:       ports
>Synopsis:       bento-fix: net/tac_plus-radius
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 26 14:50:43 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hendrik Scholz
>Release:        FreeBSD 5.2.1-RC amd64
>Organization:
>Environment:
System: FreeBSD slurmcan.wormulon.net 5.2.1-RC FreeBSD 5.2.1-RC #0: Sat Jan 31 12:38:34 GMT 2004 root@ngoc.NUXI.com:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
bento-fix for hopefully all platforms:
http://people.freebsd.org/~fenner/errorlogs/gremlin@portal-to-web.de.html

The /* PAM */ thing is just a cosmetic fix. Add patch-db_null.c to
files/

I tested this patch on 5.2.1-RC2/amd64 and 4.8-RC/i386.
CC'ed to software authors.

	
>How-To-Repeat:
	
>Fix:

	

--- tac_plus-libradius-current.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/FreeBSD-CVS/ports/net/tac_plus-libradius/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile	21 Dec 2003 22:11:55 -0000	1.3
+++ Makefile	26 Feb 2004 22:40:59 -0000
@@ -23,10 +23,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 500113
-BROKEN=		"Does not compile on FreeBSD ${OSVERSION}"
-.endif
-
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/tac_plus ${PREFIX}/sbin
 	${INSTALL_MAN} ${WRKSRC}/tac_plus.1 ${PREFIX}/man/man1/tac_plus.1
Index: files/patch-ag
===================================================================
RCS file: /home/FreeBSD-CVS/ports/net/tac_plus-libradius/files/patch-ag,v
retrieving revision 1.1
diff -u -r1.1 patch-ag
--- files/patch-ag	20 Sep 2002 20:31:30 -0000	1.1
+++ files/patch-ag	26 Feb 2004 22:40:59 -0000
@@ -1,19 +1,20 @@
-*** tac_plus.h	Mon Dec 18 17:58:02 2000
---- ../../tac_plus.F5.0.0.alpha/tac_plus.h	Sun Jan 20 20:24:55 2002
-***************
-*** 70,76 ****
-   */
-  /* #define REARMSIGNAL */
-  
-! #define VERSION "F4.0.3.alpha.v7(DB&PAM support)"
-  
-  /*
-   * System definitions. 
---- 70,76 ----
-   */
-  /* #define REARMSIGNAL */
-  
-! #define VERSION "F4.0.3.alpha.v7(DB,PAM&libradius support - incl. mmersbers patches!)"
-  
-  /*
-   * System definitions. 
+--- tac_plus.h.orig	Mon Dec 18 11:58:02 2000
++++ tac_plus.h	Thu Feb 26 17:30:18 2004
+@@ -70,7 +70,7 @@
+  */
+ /* #define REARMSIGNAL */
+ 
+-#define VERSION "F4.0.3.alpha.v7(DB&PAM support)"
++#define VERSION "F4.0.3.alpha.v7(DB,PAM&libradius support - incl. mmersbers patches!)"
+ 
+ /*
+  * System definitions. 
+@@ -681,7 +681,7 @@
+ extern char *cfg_get_global_secret();
+ #ifdef USE_PAM
+ extern char *cfg_get_pam_service();
+-#endif / *PAM */ 
++#endif /* PAM */ 
+ extern void cfg_clean_config();
+ extern char *cfg_nodestring();
+ 
--- db_null.c.orig	Thu Feb 26 17:28:00 2004
+++ db_null.c	Thu Feb 26 17:28:07 2004
@@ -48,9 +48,7 @@
 char *a_username;
 char *elapsed_time;char *bytes_in;char *bytes_out;
 {
-report(LOG_INFO,"Db accounting user=%s pass=%s host=%s 
-db_name=%s table=%s servern=%s clientn=%s username=%s et=%s bi=%s bo=%s",db_user,db_password,db_hostname,
-db_name,db_table,s_name,c_name,a_username,elapsed_time,bytes_in,bytes_out);
+report(LOG_INFO,"Db accounting user=%s pass=%s host=%s db_name=%s table=%s servern=%s clientn=%s username=%s et=%s bi=%s bo=%s",db_user,db_password,db_hostname, db_name,db_table,s_name,c_name,a_username,elapsed_time,bytes_in,bytes_out);
 return (1);
 }
 #endif
--- tac_plus-libradius-current.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040226224812.0BF6739819>