system/webmin: Updated for version 1.540.

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
dsomero 2011-04-08 20:47:37 -04:00 committed by Robby Workman
parent c9c7692638
commit d197798f65
3 changed files with 21 additions and 23 deletions

View file

@ -11,12 +11,16 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider... # Otherwise, we leave the .new copy for the admin to consider...
} }
# Keep same perms on rc.webmin.new: preserve_perms() {
if [ -e etc/rc.d/rc.webmin ]; then NEW="$1"
cp -a etc/rc.d/rc.webmin etc/rc.d/rc.webmin.new.incoming OLD="$(dirname $NEW)/$(basename $NEW .new)"
cat etc/rc.d/rc.webmin.new > etc/rc.d/rc.webmin.new.incoming if [ -e $OLD ]; then
mv etc/rc.d/rc.webmin.new.incoming etc/rc.d/rc.webmin.new cp -a $OLD ${NEW}.incoming
fi cat $NEW > ${NEW}.incoming
mv ${NEW}.incoming $NEW
fi
config $NEW
}
# Signal the startup script to do some post install configuration # Signal the startup script to do some post install configuration
touch etc/webmin/FIRSTRUN touch etc/webmin/FIRSTRUN

View file

@ -23,11 +23,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=webmin PRGNAM=webmin
VERSION=1.510 VERSION=1.540
ARCH=noarch
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
ARCH=noarch
CWD=$(pwd) CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} TMP=${TMP:-/tmp/SBo}
PKG=${TMP}/package-${PRGNAM} PKG=${TMP}/package-${PRGNAM}
@ -49,7 +50,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.*z* tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
chmod -R u+w,go+r-w,a-s . chmod -R u+w,go+r-w,a-s .
@ -108,28 +109,21 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/doinst.sh > $PKG/install/doinst.sh
# Find config files and add the .new. # Find config files and add the .new.
# Used by the next block of code.
get_config_files() { get_config_files() {
for i in $(ls -1 $1); do for i in $(ls -1 $1); do
if [ -d "$1/$i" ]; then if [ -d "$1/$i" ]; then
get_config_files "$1/$i" get_config_files "$1/$i"
else else
echo -n "$1/$i.new " | sed -e "s/^$(echo $PKG | sed -e 's/\//\\\//g')\///g" echo "preserve_perms $1/$i.new " | sed -e "s#$PKG/##g" \
>> $PKG/install/doinst.sh
mv "$1/$i" "$1/$i.new" mv "$1/$i" "$1/$i.new"
fi fi
done done
} }
# Finish the doinst.sh by adding the .new file list and config loop # Finish the doinst.sh by adding the .new file handler.
if [ -e $PKG/etc ]; then if [ -e $PKG/etc ]; then
etc_files=$(get_config_files $PKG/etc) get_config_files $PKG/etc
cat <<DOINST >> $PKG/install/doinst.sh
for FILE in $etc_files
do
config \$FILE
done
DOINST
fi fi
# Fix a few ownership issues # Fix a few ownership issues

View file

@ -1,8 +1,8 @@
PRGNAM="webmin" PRGNAM="webmin"
VERSION="1.510" VERSION="1.540"
HOMEPAGE="http://www.webmin.com/" HOMEPAGE="http://www.webmin.com/"
DOWNLOAD="http://downloads.sourceforge.net/webadmin/webmin-1.510.tar.gz" DOWNLOAD="http://downloads.sourceforge.net/webadmin/webmin-1.540.tar.gz"
MD5SUM="cdcc09d71d85d81914a90413eaf21d3f" MD5SUM="8086fc60419937c4b2844796cfd2aea1"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="David Somero" MAINTAINER="David Somero"