aboutsummaryrefslogtreecommitdiff
path: root/network/freeradius-server/freeradius-server.SlackBuild
diff options
context:
space:
mode:
authorMario Preksavec <mario@slackware.hr>2013-12-29 16:47:24 +0700
committerErik Hanson <erik@slackbuilds.org>2014-01-07 11:13:58 -0600
commit49fa66c6840bbb5a479b3bafba1c0a253f9f29ca (patch)
treeb75c138ee4fbbafe02b8975099e57c865d8783ff /network/freeradius-server/freeradius-server.SlackBuild
parent596845c578c5e09ecfc0061b3af8b08a3227c4b2 (diff)
network/freeradius-server: Updated for version 2.2.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/freeradius-server/freeradius-server.SlackBuild')
-rw-r--r--network/freeradius-server/freeradius-server.SlackBuild23
1 files changed, 14 insertions, 9 deletions
diff --git a/network/freeradius-server/freeradius-server.SlackBuild b/network/freeradius-server/freeradius-server.SlackBuild
index a0c78b9a17eb..f7c7e0aaf815 100644
--- a/network/freeradius-server/freeradius-server.SlackBuild
+++ b/network/freeradius-server/freeradius-server.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for FreeRADIUS Server
-# Copyright 2010-2011, mario <mario@slackverse.org>
+# Copyright 2010, 2011, 2013 Mario Preksavec, Zagreb, HR
# All rights reserved.
#
# 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
# 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
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=freeradius-server
-VERSION=${VERSION:-2.1.12}
+VERSION=${VERSION:-2.2.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -64,10 +64,10 @@ tar jxvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$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
# 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
+# Perform greedy copy on INSTALL file to support feature release tree
cp -a \
- COPYRIGHT CREDITS INSTALL LICENSE README VERSION \
+ COPYRIGHT CREDITS INSTALL* LICENSE README.rst VERSION \
$PKG/usr/doc/$PRGNAM-$VERSION
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
cat $CWD/slack-desc > $PKG/install/slack-desc