Bug 98065 - [patch] update net/freeradius to 1.1.2
Summary: [patch] update net/freeradius to 1.1.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-28 23:30 UTC by David Wood
Modified: 2006-05-29 21:43 UTC (History)
0 users

See Also:


Attachments
file.diff (3.98 KB, patch)
2006-05-28 23:30 UTC, David Wood
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Wood 2006-05-28 23:30:15 UTC
The attached patch upgrades the maintainer-less FreeRADIUS port to 1.1.2. It has been tested so far as being built and installed in my EAP-TLS wireless LAN environment, where it works OK, but I'd appreciate review and further testing from anyone more experienced.


I've added support for Net-SNMP as well as UCD-SNMP, as Net-SNMP is supposedly supported in this version of FreeRADIUS. The previous way the Makefile was coded didn't allow installation with SNMP support in FreeRADIUS on a box with Net-SNMP.

I chose to add this support using a new option to switch the SNMP dependency to the Net-SNMP library, and made this flag default to off - that way, I shouldn't break existing installations where UCD-SNMP is in use. Nevertheless, this feels like something of a kludge. If anyone can think of a more elegant fix to detect Net-SNMP or UCD-SNMP programatically in the Makefile, that would be a good thing.

FreeRADIUS 1.1.2 builds without errors on my box with Net-SNMP installed (both the existing SNMP and my new Net-SNMP options were configured on), but I haven't tested SNMP functionality in FreeRADIUS.

Fix: --- Patch begins ---
Comment 1 David Wood 2006-05-29 02:19:25 UTC
Forget the Net-SMMP part of this - further testing and research 
indicates that FreeRADIUS has only been fixed to work with Net-SNMP in 
UCD-SNMP compatibility mode. To build Net-SNMP in that mode will require 
messing with the Net-SNMP port, which is going to lead to compatibility 
issues on systems that don't have it built in that mode. That clearly 
isn't the right course to pursue.

It looks like it might be possible to patch FreeRADIUS itself to work 
with Net-SNMP (and then submit the patch to the FreeRADIUS team); but 
that's not something I'm likely to manage in the next few hours and it 
may be that other work takes priority.

For now, let's forget all about the second and third chunks of my 
suggested patch to Makefile.


Apologies for the lack of word-wrapping in the original PR - that's what 
the web interface did.



David
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2006-05-29 21:43:25 UTC
State Changed
From-To: open->closed

Committed, thanks!