mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
network/freeradius-server: Updated for version 2.2.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
596845c578
commit
49fa66c684
5 changed files with 40 additions and 14 deletions
|
@ -6,3 +6,6 @@ Authentication and Accounting various types of network access. To use the
|
||||||
server, you also need a correctly setup client which will talk to it,
|
server, you also need a correctly setup client which will talk to it,
|
||||||
including terminal servers, Ethernet Switches, Wireless Access Points or a
|
including terminal servers, Ethernet Switches, Wireless Access Points or a
|
||||||
PC with appropriate software which emulates it (PortSlave, radiusclient etc).
|
PC with appropriate software which emulates it (PortSlave, radiusclient etc).
|
||||||
|
|
||||||
|
See README.SLACKWARE (which is also installed with the package docs) for
|
||||||
|
setup, configuration, and usage hints.
|
||||||
|
|
17
network/freeradius-server/README.SLACKWARE
Normal file
17
network/freeradius-server/README.SLACKWARE
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
It is strongly recommend that the radiusd server has as few permissions as
|
||||||
|
possible. That is, if you're not using shadow passwords, the user and group
|
||||||
|
should be set to radius. For example:
|
||||||
|
|
||||||
|
# groupadd -g 272 radius
|
||||||
|
# useradd -u 272 -d /dev/null -s /bin/false -g radius radius
|
||||||
|
|
||||||
|
Don't forget to fix permissions:
|
||||||
|
|
||||||
|
# chown -R radius:radius /etc/raddb /var/run/radiusd /var/log/radius
|
||||||
|
|
||||||
|
And, last but not least, uncomment user/group in /etc/raddb/radiusd.conf
|
||||||
|
|
||||||
|
Although this script can build a feature (3.x) release successfully, it is
|
||||||
|
probably much safer to use a stable (2.x) release for now. However, if you
|
||||||
|
decide to try the new release out, make sure to read the documentation
|
||||||
|
found in /etc/raddb/README.rst (Installed with a feature release only).
|
|
@ -32,4 +32,5 @@ config etc/raddb/radiusd.conf.new
|
||||||
config etc/raddb/sql.conf.new
|
config etc/raddb/sql.conf.new
|
||||||
config etc/raddb/sqlippool.conf.new
|
config etc/raddb/sqlippool.conf.new
|
||||||
config etc/raddb/templates.conf.new
|
config etc/raddb/templates.conf.new
|
||||||
|
config etc/raddb/users.new
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Slackware build script for FreeRADIUS Server
|
# Slackware build script for FreeRADIUS Server
|
||||||
|
|
||||||
# Copyright 2010-2011, mario <mario@slackverse.org>
|
# Copyright 2010, 2011, 2013 Mario Preksavec, Zagreb, HR
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
# 1. Redistributions of this script must retain the above copyright
|
# 1. Redistributions of this script must retain the above copyright
|
||||||
# notice, this list of conditions and the following disclaimer.
|
# notice, this list of conditions and the following disclaimer.
|
||||||
#
|
#
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=freeradius-server
|
PRGNAM=freeradius-server
|
||||||
VERSION=${VERSION:-2.1.12}
|
VERSION=${VERSION:-2.2.3}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -64,10 +64,10 @@ tar jxvf $CWD/$PRGNAM-$VERSION.tar.bz2
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
-exec chmod 755 {} \; -o \
|
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
|
@ -96,13 +96,18 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
|
||||||
install -D -m0644 -oroot -groot scripts/rc.radiusd $PKG/etc/rc.d/rc.radiusd.new
|
install -D -m0644 -oroot -groot scripts/rc.radiusd $PKG/etc/rc.d/rc.radiusd.new
|
||||||
|
|
||||||
# Append .new to config files
|
# Append .new to config files
|
||||||
for i in $PKG/etc/raddb/*.conf ; do mv $i $i.new ; done
|
for i in $PKG/etc/raddb/{*.conf,users} ; do mv $i $i.new ; done
|
||||||
|
|
||||||
|
# Remove useless rc.radiusd
|
||||||
|
rm $PKG/usr/sbin/rc.radiusd
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
# Perform greedy copy on INSTALL file to support feature release tree
|
||||||
cp -a \
|
cp -a \
|
||||||
COPYRIGHT CREDITS INSTALL LICENSE README VERSION \
|
COPYRIGHT CREDITS INSTALL* LICENSE README.rst VERSION \
|
||||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="freeradius-server"
|
PRGNAM="freeradius-server"
|
||||||
VERSION="2.1.12"
|
VERSION="2.2.3"
|
||||||
HOMEPAGE="http://www.freeradius.org/"
|
HOMEPAGE="http://www.freeradius.org/"
|
||||||
DOWNLOAD="ftp://ftp.freeradius.org/pub/freeradius/old/freeradius-server-2.1.12.tar.bz2"
|
DOWNLOAD="ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-2.2.3.tar.bz2"
|
||||||
MD5SUM="862d3a2c11011e61890ba84fa636ed8c"
|
MD5SUM="25fb44cc1bc121f44f61f439bf45a420"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES=""
|
||||||
MAINTAINER="mario"
|
MAINTAINER="Mario Preksavec"
|
||||||
EMAIL="mario@slackverse.org"
|
EMAIL="mario at slackware dot hr"
|
||||||
|
|
Loading…
Reference in a new issue