Ignore:
Timestamp:
11/21/17 18:42:34 (7 years ago)
Author:
Edwin Eefting <edwin@datux.nl>
Branches:
master, perl-5.22
Children:
c403a2d
Parents:
0bdb49c (diff), 995241a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'gcc484'

File:
1 edited

Legend:

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

    r0bdb49c r749056a  
    1313mkdir -p $PKG
    1414
    15 VERSION=2.2.9
     15VERSION=2.2.10
    1616ARCH=${ARCH:-i486}
    17 BUILD=1DatuX
    1817NAME=radius
    1918
     
    2120cd $TMP
    2221
    23 tar xjvf $CWD/freeradius-server-$VERSION.tar.bz2 || exit 1
     22tar xvf $CWD/freeradius-server-$VERSION.tar.gz || exit 1
    2423cd freeradius-server-$VERSION || exit 1
    2524echo "Uitvoeren van configure..." &&
     
    2928 --sbindir=/usr/sbin \
    3029 --libdir=/usr/lib \
    31  --libexecdir=/usr/sbin || exit 1                                                                               
    32 make  || exit 1 
     30 --libexecdir=/usr/sbin || exit 1
     31make  || exit 1
    3332make  R="${PKG}" install || exit 1
    3433
    35 #deamontools zooi fixxen
    36 mkdir -p $PKG/service/radius
    37 cat << EOF > $PKG/service/radius/run
    38 #!/bin/sh
    39 # LDAP Settings.
    40 LDAPPASSWD="\`cat /etc/webint/LDAP_MASTER_PASSWD\`"
    41 cat /home/system/radius/raddb/radiusd.conf | sed 's/^\t\tpassword = .*/\t\tpassword = '\$LDAPPASSWD'/' >> /home/system/radius/raddb/radiusd.conf-new
    42 if [ -s /home/system/radius/raddb/radiusd.conf-new ]; then
    43 mv /home/system/radius/raddb/radiusd.conf-new /home/system/radius/raddb/radiusd.conf
    44 fi
    45 exec /usr/sbin/radiusd -f -l /var/log/radius/radius.log
    46 EOF
    47 chmod +x $PKG/service/radius/run
    4834
    49 # En uiteraard mag de vette postinstall niet ontbreken.
    50 mkdir -p $PKG/etc/postinst.d/
    51 cp $CWD/post.radius $PKG/etc/postinst.d/post.radius
    52 chmod +x $PKG/etc/postinst.d/post.radius || exit 1
    53 
    54 #aangepaste configfiles op plek zetten
    55 rm -rf $PKG/home/system/radius/raddb || exit 1
    56 mkdir -p $PKG/home/system/radius/raddb || exit 1
    57 cp -R $CWD/raddb $PKG/home/system/radius/ || exit 1
    58 
    59 #logrotate fixxen voor de logfiles
    60 mkdir -p $PKG/etc/logrotate.d
    61 cat <<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 }
    70 EOF
    71 chmod 644 $PKG/etc/logrotate.d/radius     
     35### config stuff is in seperate package
     36rm -rf $PKG/home
    7237
    7338
     
    8550#make main package
    8651syn3_makepkg /tmp/pkg $NAME $VER $ARCH || exit 1
    87 
    88 
    89 
Note: See TracChangeset for help on using the changeset viewer.