Update of /cvsroot/devil-linux/build/scripts
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv14218/scripts
Modified Files:
cron
Added Files:
webmin
Log Message:
- created missing cron directories
- added patch quagga-0.99.11-BGP-4-byte-ASN-bug-fixes
- added webmin 1.470
--- NEW FILE: webmin ---
#!/bin/bash
# $Source: /cvsroot/devil-linux/build/scripts/webmin,v $
# $Revision: 1.1 $ # $Date: 2009/05/06 00:31:28 $
#
# http://www.devil-linux.org
# you need the next line, otherwise script won't be executed !!!
# DL-build-system v3
### BEGIN INIT INFO
# Provides: webmin
# Required-Start: $basebuildtools $libs perl
# Required-Stop:
# Default-Start: 1 2
# Default-Stop:
# Description: description
### END INIT INFO
# get the directoryname of the script
MYDIR=${0%/*}
MYSCRIPT=${0##/*/}
# source functions and config
source $MYDIR/settings
case $1 in
build )
#if [ "$CONFIG_WEBMIN" = "y" ]; then
#fi
;;
install )
if [ "$CONFIG_WEBMIN" = "y" ]; then
rm acl/Authen-SolarisRBAC-0.1/blib/arch/auto/Authen/SolarisRBAC/SolarisRBAC.so
rm acl/Authen-SolarisRBAC-0.1/SolarisRBAC.o
#find -exec perl -i -p -e 's%#!/usr/local/bin/perl%#!/usr/bin/perl%g' {} \;
mkdir -p $CDDIR/usr/libexec/webmin || exit 1
mkdir -p $CDDIR/var/webmin || exit 1
mkdir -p $ETCDIR/etc/pam.d || exit 1
chown -R root * || exit 1
chgrp -R bin * || exit 1
cp -dpvR * $CDDIR/usr/libexec/webmin || exit 1
cp webmin-init $ETCDIR/etc/init.d/webmin || exit 1
cp webmin-pam $ETCDIR/etc/pam.d/webmin || exit 1
#install locally to get a good config to start with
mkdir -p /usr/libexec/webmin || exit 1
mkdir -p /var/webmin || exit 1
cp -rpv * /usr/libexec/webmin || exit 1
rm -rf /etc/webmin
cd /usr/libexec/webmin || exit 1
export tempdir=/tmp/.webmin
export config_dir=/etc/webmin
export var_dir=/var/webmin
export perl=/usr/bin/perl
export autoos=3
export port=10000
export login=root
export host=devil
export ssl=1
export atboot=0
export nochown=0
export autothird=1
export noperlpath=1
export nouninstall=1
export nostart=1
export crypt=x
./setup.sh || exit 1
perl -i -p -e 's%/usr/local/apache%/usr/sbin%g' {} \; /etc/webmin/apache/*
perl -i -p -e 's%/var/spool/cron%/var/cron%g' {} \; /etc/webmin/cron/*
perl -i -p -e 's%/usr/local%%g' {} \; /etc/webmin/syslog-ng/*
rm /etc/webmin/*cache
cp -dpvR /etc/webmin $ETCDIR/etc/ || exit 1
fi
;;
* )
echo "ERROR ($0)"
echo "please add parameter so I know what to do"
exit 1
;;
esac
Index: cron
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/cron,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- cron 27 Sep 2005 18:44:49 -0000 1.24
+++ cron 6 May 2009 00:31:27 -0000 1.25
@@ -46,8 +46,7 @@
cp -p $MYDIR/scripts/cron.interval $CDDIR/usr/sbin/ || exit 1
chmod 755 $CDDIR/usr/sbin/cron.interval || exit 1
mkdir -p $ETCDIR/etc/cron.{hourly,daily,weekly,monthly} || exit 1
-# mkdir -p $CDDIR/var/spool/cron/lastrun
- mkdir -p $CDDIR/var/cron/tabs
+ mkdir -p $CDDIR/var/cron/{lastrun,tabs} || exit 1
echo "# Start $MYNAME?" >> $CONFIGFILE
echo "START_$MYNAME=no" >> $CONFIGFILE
echo >> $CONFIGFILE
|