- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
npl/commonservers/radius/radius.SlackBuild
r995241a rc5c522c 13 13 mkdir -p $PKG 14 14 15 VERSION=2.2. 1015 VERSION=2.2.9 16 16 ARCH=${ARCH:-i486} 17 BUILD=1DatuX 17 18 NAME=radius 18 19 … … 20 21 cd $TMP 21 22 22 tar x vf $CWD/freeradius-server-$VERSION.tar.gz|| exit 123 tar xjvf $CWD/freeradius-server-$VERSION.tar.bz2 || exit 1 23 24 cd freeradius-server-$VERSION || exit 1 24 25 echo "Uitvoeren van configure..." && … … 28 29 --sbindir=/usr/sbin \ 29 30 --libdir=/usr/lib \ 30 --libexecdir=/usr/sbin || exit 1 31 make || exit 1 31 --libexecdir=/usr/sbin || exit 1 32 make || exit 1 32 33 make R="${PKG}" install || exit 1 33 34 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 34 48 35 ### config stuff is in seperate package 36 rm -rf $PKG/home 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 37 72 38 73 … … 50 85 #make main package 51 86 syn3_makepkg /tmp/pkg $NAME $VER $ARCH || exit 1 87 88 89
Note: See TracChangeset
for help on using the changeset viewer.