Ticket #6344: freeradius2.patch

File freeradius2.patch, 1.1 KB (added by jake1981 <oskari.rauta@…>, 7 years ago)

A patch with workarounds to make freeradius2 work out of the box.

  • net/freeradius2/Makefile

     
    99 
    1010PKG_NAME:=freeradius2 
    1111PKG_VERSION:=2.1.7 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=freeradius-server-$(PKG_VERSION).tar.bz2 
    1515PKG_SOURCE_URL:=ftp://ftp.freeradius.org/pub/freeradius/ 
     
    444444        $(INSTALL_DIR) $(1)/etc/freeradius2 
    445445        $(INSTALL_DIR) $(1)/etc/freeradius2/modules 
    446446        $(INSTALL_DIR) $(1)/etc/freeradius2/sites 
     447        chmod 771 $(1)/etc/freeradius2 
    447448        for f in clients.conf dictionary radiusd.conf policy.conf; do \ 
    448449                $(CP) $(PKG_INSTALL_DIR)/etc/freeradius2/$$$${f} $(1)/etc/freeradius2/ ; \ 
    449450        done 
     
    457458        done 
    458459        $(INSTALL_DIR) $(1)/usr/lib/freeradius2 
    459460        $(CP) $(PKG_INSTALL_DIR)/usr/lib/freeradius2/libfreeradius-radius{,-*}.so $(1)/usr/lib/freeradius2 
     461        ln -s freeradius2/libfreeradius-radius-$(PKG_VERSION).so $(1)/usr/lib/ 
     462        ln -s freeradius2/libfreeradius-eap-$(PKG_VERSION).so $(1)/usr/lib/ 
    460463        $(INSTALL_DIR) $(1)/usr/sbin 
    461464        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radiusd $(1)/usr/sbin/ 
    462465        $(INSTALL_DIR) $(1)/etc/init.d