#!/bin/bash
# This script will build expat. 
# It will also copy the header files and the library to the current directory
# in a Vatics conventional way, i.e., ./lib and ./src. 
PATH=/usr/bin:/bin:$PATH
APP_NAME=tinysmbd
VERSION=1.08

PACKAGE_DIR=TinySmb
HOST='arm-linux-'
CC=${HOST}gcc

install ${APP_NAME} $1/usr/sbin/

#make -f ${PACKAGE_DIR}/Makefile
install 	-f ${PACKAGE_DIR}/tinySMB         $1/etc/init.d

if [ ! -d $1/etc/tinySMB ]; then
	mkdir	$1/etc/tinySMB
fi

if [ ! -f $1/etc/tinySMB/tinypasswd ]; then
	cp  ${PACKAGE_DIR}/Configuration/tinypasswd   $1/etc/tinySMB
fi


if [ ! -f $1/etc/tinySMB/tinysmb.conf ]; then   
   cp  ${PACKAGE_DIR}/Configuration/tinysmb.conf   $1/etc/tinySMB

fi