Changeset 749056a for npl/commonservers/radius/radius.SlackBuild
- Timestamp:
- 11/21/17 18:42:34 (7 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
npl/commonservers/radius/radius.SlackBuild
r0bdb49c r749056a 13 13 mkdir -p $PKG 14 14 15 VERSION=2.2. 915 VERSION=2.2.10 16 16 ARCH=${ARCH:-i486} 17 BUILD=1DatuX18 17 NAME=radius 19 18 … … 21 20 cd $TMP 22 21 23 tar x jvf $CWD/freeradius-server-$VERSION.tar.bz2|| exit 122 tar xvf $CWD/freeradius-server-$VERSION.tar.gz || exit 1 24 23 cd freeradius-server-$VERSION || exit 1 25 24 echo "Uitvoeren van configure..." && … … 29 28 --sbindir=/usr/sbin \ 30 29 --libdir=/usr/lib \ 31 --libexecdir=/usr/sbin || exit 1 32 make || exit 1 30 --libexecdir=/usr/sbin || exit 1 31 make || exit 1 33 32 make R="${PKG}" install || exit 1 34 33 35 #deamontools zooi fixxen36 mkdir -p $PKG/service/radius37 cat << EOF > $PKG/service/radius/run38 #!/bin/sh39 # 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-new42 if [ -s /home/system/radius/raddb/radiusd.conf-new ]; then43 mv /home/system/radius/raddb/radiusd.conf-new /home/system/radius/raddb/radiusd.conf44 fi45 exec /usr/sbin/radiusd -f -l /var/log/radius/radius.log46 EOF47 chmod +x $PKG/service/radius/run48 34 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 36 rm -rf $PKG/home 72 37 73 38 … … 85 50 #make main package 86 51 syn3_makepkg /tmp/pkg $NAME $VER $ARCH || exit 1 87 88 89
Note: See TracChangeset
for help on using the changeset viewer.