Update of /cvsroot/leaf/src/bering-uclibc4/source/samba
In directory 
sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv11633/source/samba

Added Files:
        buildtool.cfg buildtool.mk samba.cron samba.init smb.conf 
Log Message:
Fixed siproxd, updated samba to 3.5.5


--- NEW FILE: samba.init ---
#!/bin/sh
#
# Start/stops the Samba daemons (nmbd and smbd).
#
# $Id: samba.init,v 1.1 2010/09/18 15:33:44 nitr0man Exp $
#
RCDLINKS="0,K19 1,K19 2,S20 3,S20 4,S20 5,S20 6,K19"

NMBDPID=/var/run/nmbd.pid
SMBDPID=/var/run/smbd.pid

# clear conflicting settings from the environment
unset TMPDIR

# See if the daemons are there
test -x /usr/sbin/nmbd -a -x /usr/sbin/smbd || exit 0

case "$1" in
        start)
                echo -n "Starting Samba daemons:"
                
                echo -n " nmbd"
                start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- -D

                echo -n " smbd"
                start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- -D

                echo "."
                ;;
        stop)
                echo -n "Stopping Samba daemons:"

                echo -n " nmbd"
                start-stop-daemon --stop --quiet --pidfile $NMBDPID
                sleep 1
                # remove stale PID file
                [ -f $NMBDPID ] && rm -f $NMBDPID

                echo -n " smbd"
                start-stop-daemon --stop --quiet --pidfile $SMBDPID
                sleep 1
                # remove stale PID file
                [ -f $SMBDPID ] && rm -f $SMBDPID

                echo "."
                ;;
        reload)
                echo -n "Reloading /etc/samba/smb.conf (smbd only)"
                start-stop-daemon --stop --signal 1 --pidfile $SMBDPID

                echo "."
                ;;
        restart|force-reload)
                $0 stop
                sleep 1
                $0 start
                ;;
        *)
                echo "Usage: /etc/init.d/samba 
{start|stop|reload|restart|force-reload}"
                exit 1
                ;;
esac

exit 0

--- NEW FILE: samba.cron ---
#!/bin/sh
# Save weekly LOGDEPTH versions of syslogfile
LOGDEPTH=4
# syslogfile name
LOGFILE1=/var/log/smb
LOGFILE2=/var/log/nmb

if [ -f $LOGFILE1 ]; then
        savelog -g wheel -m 644 -c $LOGDEPTH $LOGFILE1 >/dev/null
fi

if [ -f $LOGFILE2 ]; then
        savelog -g wheel -m 644 -c $LOGDEPTH $LOGFILE2 >/dev/null
fi

/etc/init.d/samba restart > /dev/null

--- NEW FILE: buildtool.cfg ---

<Server samba.org>
        Type = http
        Name = www.samba.org
        Serverpath = /samba
</Server>
                        
                        
<File buildtool.mk>
  Server = cvs4-sourceforge
  Revision = HEAD
  Directory = samba
</File>

<File samba-3.5.5.tar.gz>
  Server = samba.org
  Revision = HEAD
  envname = SAMBA_SOURCE
  Directory = ftp
</File>

#<File patch-2.0.10-2.0.10a.diff.gz>
#  Server = cvs-sourceforge
#  Revision = HEAD
#  envname = SAMBA_PATCH1
#  Directory = samba
#</File>

#<File samba-nocups.patch.gz>
#  Server = cvs-sourceforge
#  Revision = HEAD
#  envname = SAMBA_PATCH2
#  Directory = samba
#</File>

<File samba.init>
  Server = cvs4-sourceforge
  Revision = HEAD
  Directory = samba
</File>

<File samba.cron>
  Server = cvs4-sourceforge
  Revision = HEAD
  Directory = samba
</File>

<File smb.conf>
  Server = cvs4-sourceforge
  Revision = HEAD
  Directory = samba
</File>

<Package>
        <samba>
                Version = 2.0.10a
                Revision = 1

                Help <<EOF
                Samba smbd and nmbd daemons
                Homepage: http://www.samba.org/
                LEAF package by __PACKAGER__, __BUILDDATE__
                EOF
                
                <Permissions>
                        Files = 644
                        Directories = 755
                </Permissions>

                <Owner>
                        Files = root:root
                        Directories = root:root
                </Owner>
                
                <Contents>
                        <File>          
                                Source          = usr/sbin/smbd
                                Filename        = usr/sbin/smbd
                                Type            = binary
                                Permissions = 755
                        </File>         
                        <File>          
                                Source          = usr/sbin/nmbd
                                Filename        = usr/sbin/nmbd
                                Type            = binary
                                Permissions = 755
                        </File>         
                        <File>          
                                Source          = usr/sbin/smbpasswd
                                Filename        = usr/sbin/smbpasswd
                                Type            = binary
                                Permissions = 755
                        </File>         
                        <File>          
                                Source          = etc/cron.weekly/samba
                                Filename        = etc/cron.weekly/samba
                                Type            = binary
                                Permissions = 755
                        </File>         
                        <File>          
                                Source          = etc/init.d/samba
                                Filename        = etc/init.d/samba
                                Type            = binary
                                Permissions = 755
                        </File>         
                        <File>          
                                Source          = etc/samba/smb.conf
                                Filename        = etc/samba/smb.conf
                                Description     = samba config file
                                Type            = conf
                                Type            = local
                                Type            = binary
                                Permissions = 644
                        </File>         
                        <File>          
                                Filename        = etc/samba/smbpasswd
                                Type            = local
                        </File>         
                        <File>          
                                Source          = 
etc/samba/codepages/unicode_map.850
                                Filename        = 
etc/samba/codepages/unicode_map.850
                                Type            = binary
                                Permissions = 644
                        </File>         
                        <File>          
                                Source          = 
etc/samba/codepages/codepage.850
                                Filename        = 
etc/samba/codepages/codepage.850
                                Type            = binary
                                Permissions = 644
                        </File>         
#                       <File>          
#                               Filename        = etc/samba
#                               Type            = local
#                       </File>         
                </Contents>                     
        </samba>
</Package>

--- NEW FILE: buildtool.mk ---
#############################################################
#
# SAMBA 
#
#############################################################

include $(MASTERMAKEFILE)

SAMBA_DIR:=samba-3.5.5
SAMBA_TARGET_DIR:=$(BT_BUILD_DIR)/samba
export AUTOCONF=$(BT_STAGING_DIR)/bin/autoconf


BVARS = BASEDIR=/usr \
        LIBDIR=/etc/samba \
        SMB_PASSWD_FILE=/etc/samba/smbpasswd \
        SMBLOGFILE=/var/log/smb NMBLOGFILE=/var/log/nmb

$(SAMBA_DIR)/.source:
        zcat $(SAMBA_SOURCE) | tar -xvf -
#       zcat $(SAMBA_PATCH1) | patch -d $(SAMBA_DIR) -p1
#       zcat $(SAMBA_PATCH2) | patch -d $(SAMBA_DIR) -p1
        touch $(SAMBA_DIR)/.source
        
$(SAMBA_DIR)/.configured: $(SAMBA_DIR)/.source
        (cd $(SAMBA_DIR)/source3 ; CFLAGS="$(BT_COPT_FLAGS)" CC=$(TARGET_CC) 
LD=$(TARGET_LD) \
                ./configure \
                --host=$(GNU_HOST_NAME) \
                --build=$(GNU_HOST_NAME) \
                --target=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --sysconfdir=/etc \
                --with-privatedir=/etc/samba \
                --localstatedir=/var \
                --with-lockdir=/var/run \
                --without-smbmount \
                --disable-cups);
        touch $(SAMBA_DIR)/.configured

        
source: $(SAMBA_DIR)/.source

build: $(SAMBA_DIR)/.configured
        -mkdir -p $(SAMBA_TARGET_DIR)
        -mkdir -p $(SAMBA_TARGET_DIR)/etc/cron.weekly
        -mkdir -p $(SAMBA_TARGET_DIR)/etc/init.d
        -mkdir -p $(SAMBA_TARGET_DIR)/usr/sbin

        make -C $(SAMBA_DIR)/source $(BVARS) all

        $(SAMBA_DIR)/source/script/installcp.sh \
        $(SAMBA_DIR)/source \
        $(SAMBA_TARGET_DIR)/etc/samba \
        $(SAMBA_TARGET_DIR)/etc/samba/codepages \
        $(SAMBA_DIR)/source/bin \
        850

        -$(BT_STRIP) $(BT_STRIP_BINOPTS) $(SAMBA_DIR)/source/bin/smbd
        -$(BT_STRIP) $(BT_STRIP_BINOPTS) $(SAMBA_DIR)/source/bin/nmbd
        -$(BT_STRIP) $(BT_STRIP_BINOPTS) $(SAMBA_DIR)/source/bin/smbpasswd
        cp -a samba.init $(SAMBA_TARGET_DIR)/etc/init.d/samba
        cp -a samba.cron $(SAMBA_TARGET_DIR)/etc/cron.weekly/samba
        cp -a smb.conf $(SAMBA_TARGET_DIR)/etc/samba
        cp -a $(SAMBA_DIR)/source/bin/smbd $(SAMBA_TARGET_DIR)/usr/sbin 
        cp -a $(SAMBA_DIR)/source/bin/nmbd $(SAMBA_TARGET_DIR)/usr/sbin 
        cp -a $(SAMBA_DIR)/source/bin/smbpasswd $(SAMBA_TARGET_DIR)/usr/sbin 
        cp -a $(SAMBA_TARGET_DIR)/* $(BT_STAGING_DIR)   
        touch $(SAMBA_DIR)/.build       

clean:
        -make -C $(SAMBA_DIR) clean
        rm -rf $(SAMBA_TARGET_DIR)
        rm -f $(SAMBA_DIR)/.build
        rm -f $(SAMBA_DIR)/.configured
        
srcclean:
        rm -rf $(SAMBA_DIR)
        

--- NEW FILE: smb.conf ---
# Global parameters
[global]
        workgroup = LEAF
        guest account = pcguest
        encrypt passwords = yes
        wins support = yes
        name resolve order = wins lmhosts hosts bcast

[homes]
        comment = Home Directories
        read only = No
        browseable = No


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits

Reply via email to