Solved How do I install FreeRADIUS 3.0.23 from Github?

scilek

Member

Reaction score: 2
Messages: 31

There is a nasty bug in FreeRADIUS 3.0.22 and I have been informed by the developers that it has been debugged in version 3.0.23. The problem is that there is no repository or port package for that version, I guess it has not been ported to FreeBSD 12 yet. But the developers kindly provide the source code on Github:

https://github.com/FreeRADIUS/freeradius-server

But I don't know how to install from that source code. The classic
Code:
make install clean
does not work. Can anyone help me out here?
 
OP
S

scilek

Member

Reaction score: 2
Messages: 31

I'll definitely do that, but how do I compile the executable from the .c file? I'd like to see if it works.
 

Alexander88207

Aspiring Daemon

Reaction score: 425
Messages: 646

I'll definitely do that, but how do I compile the executable from the .c file? I'd like to see if it works.

You can try to change the version of the port and see if the new version of the program compiles fine without changes.

After changing the version do:

make makesum
make

If the port compiles fine do:
rm pkg-plist
make makeplist > pkg-plist (Dont forget to delete the first line in the file after that)
make clean
make install clean
 
OP
S

scilek

Member

Reaction score: 2
Messages: 31

OK, now the port has been updated. What about the package repository? What can I do about that?
 
OP
S

scilek

Member

Reaction score: 2
Messages: 31

I believe that is FreeBSD 13.0, right? I am using FreeBSD 12.2. Would any changes be reflected to the 12 branch too?
 

diizzy

Aspiring Daemon

Reaction score: 164
Messages: 535

It's in tree as of yesterday
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,038
Messages: 38,486

I believe that is FreeBSD 13.0, right? I am using FreeBSD 12.2. Would any changes be reflected to the 12 branch too?
The version of FreeBSD is irrelevant, all versions use the same ports tree.
 
OP
S

scilek

Member

Reaction score: 2
Messages: 31

I tried updating the package repository on my FreeBSD 12.2 test machine today:

Code:
pkg update -f

But it seems the FreeRADIUS package has not been updates as yet:

Code:
# pkg search freeradius
freeradius-client-1.1.7        Client library and basic utilities for RADIUS AAA
freeradius-ldap-3.0.22         Free RADIUS server implementation
freeradius-mysql-3.0.22        Free RADIUS server implementation
freeradius-pgsql-3.0.22        Free RADIUS server implementation
freeradius-sqlite3-3.0.22      Free RADIUS server implementation
freeradius3-3.0.22             Free RADIUS server implementation

When can I hope the repository will be updated to include the new version? Is there anything I can do to download it manually?
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,038
Messages: 38,486

When can I hope the repository will be updated to include the new version?
It will land in quarterly when the new quarterly is branched (2021Q4) some time early October. Or you can switch to the latest package repository.
Create a /usr/local/etc/pkg/repos/FreeBSD.conf:
Code:
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest"
}
 
OP
S

scilek

Member

Reaction score: 2
Messages: 31

Added those lines to /etc/pkg/FreeBSD.conf and now I can download it. You're a saviour! Thanks!
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,038
Messages: 38,486

Added those lines to /etc/pkg/FreeBSD.conf and now I can download it.
Don't edit /etc/pkg/FreeBSD.conf, your changes might get undone after an update. Create a /usr/local/etc/pkg/repos/FreeBSD.conf like I showed.
 
OP
S

scilek

Member

Reaction score: 2
Messages: 31

Don't edit /etc/pkg/FreeBSD.conf, your changes might get undone after an update. Create a /usr/local/etc/pkg/repos/FreeBSD.conf like I showed.
I got an error when I did that, but now I see it was because I was temporarily disconnected when I tried to update the repository. Just now I did as you suggested and it worked again. Thank you.
 
Top