:DEFAULT:RLM_PERL=1:Configure RLM_PERL
:DEFAULT:FREERADIUS=2:Radius Version 1 fo 1.xx or 2 for 2.xx
:FREERADIUS=1,RLM_PERL=0:FILE=users            > [/usr/local/etc/raddb]/users
:FREERADIUS=1,RLM_PERL=0:FILE=acct_users       > [/usr/local/etc/raddb]/acct_users
:FREERADIUS=1,RLM_PERL=0:FILE=radiusd.conf     > [/usr/local/etc/raddb]/radiusd.conf 
:FREERADIUS=1,RLM_PERL=1:FILE=rlm_perl.conf       > [/usr/local/etc/raddb]/radiusd.conf 
:FREERADIUS=1,RLM_PERL=1:FILE=users_perl          > [/usr/local/etc/raddb]/users
eap.conf         > [/usr/local/etc/raddb]/eap.conf 
clients.conf     > [/usr/local/etc/raddb]/clients.conf
:OS=FREEBSD:radiusd_enable="YES"  >> [/etc/]/rc.conf
:OS=FREEBSD:12  9    *   *  *    root   find /var/log/radacct/ -type f -mtime +30d -delete  >> [/etc/]/crontab

#VERSION 2.xx
:OS=FREEBSD,FREERADIUS=2,RLM_PERL=0:FILE=v2/users         > [/usr/local/etc/raddb]/users
:OS=FREEBSD,FREERADIUS=2,RLM_PERL=0:FILE=v2/radiusd.conf  > [/usr/local/etc/raddb]/radiusd.conf
:OS=FREEBSD,FREERADIUS=2:FILE=v2/sql.conf  > [/usr/local/etc/raddb]/sql.conf
:OS=FREEBSD,FREERADIUS=2:FILE=v2/default  > [/usr/local/etc/raddb]/sites-enabled/abills_default
:OS=FREEBSD,FREERADIUS=2:FILE=v2/perl > [/usr/local/etc/raddb/modules]/perl
:OS=FREEBSD,FREERADIUS=2,RLM_PERL=1:FILE=v2/users_perl    > [/usr/local/etc/raddb]/users
:OS=FREEBSD,FREERADIUS=2,RLM_PERL=1:FILE=v2/default_rlm_perl  > [/usr/local/etc/raddb]/sites-enabled/default
:OS=FREEBSD:exec rm /usr/local/etc/raddb/sites-enabled/default /usr/local/etc/raddb/sites-enabled/inner-tunnel
:FREERADIUS=2:exec:touch /usr/local/abills/var/log/abills.log; chown freeradius /usr/local/abills/var/log/abills.log
#Freeradius DHCP
:OS=FREEBSD,FREERADIUS=2,DHCP=1:FILE=v2/dhcp.conf > [/usr/local/etc/raddb]/sites-enabled/dhcp.conf
:OS=FREEBSD,FREERADIUS=2,DHCP=1:exec:ln -s /usr/local/abills/Abills/Dhcphosts/ipoe_shapper.pl /usr/local/abills/libexec/ipoe_shapper.pl


#:OS=FREEBSD:exec: LD_P=`grep -c LD_PRELOAD /usr/local/etc/rc.d/radiusd`; if [ w$LD_P = w0 ]; then  PERL_VERSION=`pkg_info | grep perl- | sed "s/.*-\([0-9\.]*\).*/\1/g"`; sed -i '' -e "s,run_rc_command,start_precmd=\\\"export LD_PRELOAD=/usr/local/lib/perl5/${PERL_VERSION}/mach/CORE/libperl.so\\\"; run_rc_command,g" "/usr/local/etc/rc.d/radiusd"; fi; /usr/local/etc/rc.d/radiusd restart

