Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • npl/commonservers/radius/radius.SlackBuild

    r995241a rc5c522c  
    1313mkdir -p $PKG
    1414
    15 VERSION=2.2.10
     15VERSION=2.2.9
    1616ARCH=${ARCH:-i486}
     17BUILD=1DatuX
    1718NAME=radius
    1819
     
    2021cd $TMP
    2122
    22 tar xvf $CWD/freeradius-server-$VERSION.tar.gz || exit 1
     23tar xjvf $CWD/freeradius-server-$VERSION.tar.bz2 || exit 1
    2324cd freeradius-server-$VERSION || exit 1
    2425echo "Uitvoeren van configure..." &&
     
    2829 --sbindir=/usr/sbin \
    2930 --libdir=/usr/lib \
    30  --libexecdir=/usr/sbin || exit 1
    31 make  || exit 1
     31 --libexecdir=/usr/sbin || exit 1                                                                               
     32make  || exit 1 
    3233make  R="${PKG}" install || exit 1
    3334
     35#deamontools zooi fixxen
     36mkdir -p $PKG/service/radius
     37cat << EOF > $PKG/service/radius/run
     38#!/bin/sh
     39# LDAP Settings.
     40LDAPPASSWD="\`cat /etc/webint/LDAP_MASTER_PASSWD\`"
     41cat /home/system/radius/raddb/radiusd.conf | sed 's/^\t\tpassword = .*/\t\tpassword = '\$LDAPPASSWD'/' >> /home/system/radius/raddb/radiusd.conf-new
     42if [ -s /home/system/radius/raddb/radiusd.conf-new ]; then
     43mv /home/system/radius/raddb/radiusd.conf-new /home/system/radius/raddb/radiusd.conf
     44fi
     45exec /usr/sbin/radiusd -f -l /var/log/radius/radius.log
     46EOF
     47chmod +x $PKG/service/radius/run
    3448
    35 ### config stuff is in seperate package
    36 rm -rf $PKG/home
     49# En uiteraard mag de vette postinstall niet ontbreken.
     50mkdir -p $PKG/etc/postinst.d/
     51cp $CWD/post.radius $PKG/etc/postinst.d/post.radius
     52chmod +x $PKG/etc/postinst.d/post.radius || exit 1
     53
     54#aangepaste configfiles op plek zetten
     55rm -rf $PKG/home/system/radius/raddb || exit 1
     56mkdir -p $PKG/home/system/radius/raddb || exit 1
     57cp -R $CWD/raddb $PKG/home/system/radius/ || exit 1
     58
     59#logrotate fixxen voor de logfiles
     60mkdir -p $PKG/etc/logrotate.d
     61cat <<EOF > $PKG/etc/logrotate.d/radius
     62/var/log/radius/radius.log {
     63    weekly
     64    rotate 4
     65    copytruncate
     66    compress
     67    notifempty
     68    missingok
     69}
     70EOF
     71chmod 644 $PKG/etc/logrotate.d/radius     
    3772
    3873
     
    5085#make main package
    5186syn3_makepkg /tmp/pkg $NAME $VER $ARCH || exit 1
     87
     88
     89
Note: See TracChangeset for help on using the changeset viewer.