#!/bin/sh DOMAIN=SAMBADOMAIN USERNAME=administrator REALM=$DOMAIN PASSWORD=penguin SRCDIR=`pwd` if [ $# -lt 1 ] then echo "$0 PREFIX" exit fi PREFIX=$1 TMPDIR=$PREFIX/tmp LIBDIR=$PREFIX/lib PIDDIR=$PREFIX/pid CONFFILE=$LIBDIR/smb.conf PRIVATEDIR=$PREFIX/private NCALRPCDIR=$PREFIX/ncalrpc LOCKDIR=$PREFIX/lockdir mkdir -p $PRIVATEDIR $LIBDIR $PIDDIR $NCALRPCDIR $LOCKDIR $TMPDIR rm -f $PRIVATEDIR/* ./setup/provision.pl --quiet --outputdir $PRIVATEDIR --domain $DOMAIN --realm $REALM --adminpass $PASSWORD cat >$CONFFILE<$PREFIX/smbd_test.fifo