Update of /cvsroot/devil-linux/build/scripts
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20775
Modified Files:
pam_radius
Log Message:
- deleted dependence from freeradius, disabled stack-protection
Index: pam_radius
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/pam_radius,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- pam_radius 23 Oct 2008 21:49:50 -0000 1.6
+++ pam_radius 30 Oct 2008 22:05:12 -0000 1.7
@@ -25,28 +25,26 @@
case $1 in
build )
- if [ "$CONFIG_FREERADIUS" = "y" ]; then
- #make CC="gcc -fno-stack-protector" $PMAKE || exit 1
- make $PMAKE || exit 1
+
+ make CC="gcc -fno-stack-protector" $PMAKE || exit 1
strip_debug
# install it in local system, because other programs could need it
install -c -m 755 -o root pam_radius_auth.so /lib/security || exit 1
- fi
-
;;
install )
- if [ "$CONFIG_FREERADIUS" = "y" ]; then
+
install -c -m 755 -o root pam_radius_auth.so $CDDIR/lib/security || exit 1
install -d -m 755 $CDDIR/usr/share/doc/pam-radius
install -c -m 644 USAGE README $CDDIR/usr/share/doc/pam-radius/
-
-# cp -p pam_radius_auth.conf $ETCDIR/etc/raddb/ || exit 1
-# chown root.root $ETCDIR/etc/raddb/pam_radius_auth.conf
-# chmod 600 $ETCDIR/etc/raddb/pam_radius_auth.conf
- fi
-
+ if [ ! -d /etc/raddb ]; then
+ mkdir -p $ETCDIR/etc/raddb || exit 1
+ fi
+ cp pam_radius_auth.conf $ETCDIR/etc/raddb/server || exit 1
+ chown root.root $ETCDIR/etc/raddb || exit 1
+ chmod 600 $ETCDIR/etc/raddb/server || exit 1
+
;;
* )
echo "ERROR ($0)"
|