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

Added Files:
        buildtool.cfg buildtool.mk dnsmasq-2.55.tar.gz dnsmasq.init 
Log Message:
new upstream version 2.55


--- NEW FILE: dnsmasq-2.55.tar.gz ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: buildtool.cfg ---
<File buildtool.mk>
  Server = cvs4-sourceforge
  Revision = HEAD
  Directory = dnsmasq
</File>

<File dnsmasq-2.55.tar.gz>
  Server = cvs4-sourceforge
  Revision = HEAD
  envname = DNSMASQ_SOURCE
  Directory = dnsmasq
</File>

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


<Package>
        <dnsmasq>
                Version = 2.55
                Revision = 1

                Help <<EOF
                Dnsmasq is lightweight, easy to configure DNS forwarder and 
                DHCP server. It is designed to provide DNS and, optionally, 
                DHCP, to a small network. It can serve the names of local 
                machines which are not in the global DNS. The DHCP server 
                integrates with the DNS server and allows machines with 
                DHCP-allocated addresses to appear in the DNS with names 
                configured either in each host or in a central configuration 
                file. Dnsmasq support static and dynamic DHCP leases and BOOTP 
                for network booting of diskless machines.
                Dnsmasq is targeted at home networks using NAT routers and 
                connected via modem, cable-modem or ADSL connection.
                Homepage: http://thekelleys.org.uk/dnsmasq/doc.html
                LEAF package by __PACKAGER__, __BUILDDATE__             
                EOF
                
                <Permissions>
                        Files = 644
                        Directories = 755
                </Permissions>

                <Owner>
                        Files = root:root
                        Directories = root:root
                </Owner>
                
                <Contents>
                        <File>          
                                Filename    = etc/dnsmasq.conf
                                Source          = etc/dnsmasq.conf
                                Description     = dnsmasq configuration
                                Type            = conf
                                Type            = local
                                Type            = binary
                                Permissions = 600
                        </File>                 
                        <File>
                                Filename    = etc/init.d/dnsmasq
                                Source      = etc/init.d/dnsmasq
                                Description = dnsmasq daemon init file 
                                Type        = binary
                                Permissions = 755
                        </File>
                        <File>          
                                Source          = usr/sbin/dnsmasq
                                Filename        = usr/sbin/dnsmasq
                                Type            = binary
                                Permissions = 755
                        </File>         
                        <File>
                                Filename        = var/lib/misc
                                Type            = directory
                        </File>         
                </Contents>                     
        </dnsmasq>
</Package>

--- NEW FILE: buildtool.mk ---
# makefile for dnsmasq
include $(MASTERMAKEFILE)

DNSMASQ_DIR:=dnsmasq-2.55
DNSMASQ_TARGET_DIR:=$(BT_BUILD_DIR)/dnsmasq

$(DNSMASQ_DIR)/.source:
        zcat $(DNSMASQ_SOURCE) | tar -xvf -
        touch $(DNSMASQ_DIR)/.source

source: $(DNSMASQ_DIR)/.source
                        
$(DNSMASQ_DIR)/.configured: $(DNSMASQ_DIR)/.source
        touch $(DNSMASQ_DIR)/.configured
                                                                 
$(DNSMASQ_DIR)/.build: $(DNSMASQ_DIR)/.configured
        mkdir -p $(DNSMASQ_TARGET_DIR)
        mkdir -p $(DNSMASQ_TARGET_DIR)/usr/sbin 
        mkdir -p $(DNSMASQ_TARGET_DIR)/etc/init.d       
        # Disable the internal tftpd with -DNO_TFTP
        make -C $(DNSMASQ_DIR) DESTDIR=$(DNSMASQ_TARGET_DIR) \
        CC=$(TARGET_CC) LD=$(TARGET_LD) CFLAGS="$(BT_COPT_FLAGS) -DNO_TFTP" all 
 
        -$(BT_STRIP) -s --remove-section=.note --remove-section=.comment 
$(DNSMASQ_DIR)/src/dnsmasq     
        # Adjust the dnsmasq.conf to LEAF standard
        perl -i -p -e 
's,\#dhcp-range=192.168.0.50\,192.168.0.150\,12h,\#dhcp-range=192.168.1.1\,192.168.1.199\,12h,g'
 $(DNSMASQ_DIR)/dnsmasq.conf.example
        perl -i -p -e 's,\#domain=thekelleys.org.uk,domain=private.network,g' 
$(DNSMASQ_DIR)/dnsmasq.conf.example
        perl -i -p -e 's,\#local=/localnet/,local=/private.network/,g' 
$(DNSMASQ_DIR)/dnsmasq.conf.example
        cp -a dnsmasq.init $(DNSMASQ_TARGET_DIR)/etc/init.d/dnsmasq
        cp -a $(DNSMASQ_DIR)/src/dnsmasq $(DNSMASQ_TARGET_DIR)/usr/sbin
        cp -a $(DNSMASQ_DIR)/dnsmasq.conf.example 
$(DNSMASQ_TARGET_DIR)/etc/dnsmasq.conf
        cp -a $(DNSMASQ_TARGET_DIR)/* $(BT_STAGING_DIR)
        touch $(DNSMASQ_DIR)/.build

build: $(DNSMASQ_DIR)/.build
                                                                                
         
clean:
        make -C $(DNSMASQ_DIR) clean
        rm -rf $(DNSMASQ_TARGET_DIR)
        rm $(DNSMASQ_DIR)/.build
        rm $(DNSMASQ_DIR)/.configured
                                                                                
                                 
srcclean: clean
        rm -rf $(DNSMASQ_DIR) 
        rm $(DNSMASQ_DIR)/.source

--- NEW FILE: dnsmasq.init ---
#! /bin/sh
# 

RCDLINKS="2,S15 3,S15 4,S15 5,S15 0,K85 1,K85 6,K85"

DAEMON=/usr/sbin/dnsmasq
NAME="dnsmasq"
DESC="caching dns forwarder"

test -f $DAEMON || exit 0

set -e

case "$1" in
  start)
        echo -n "Starting $DESC: "
        start-stop-daemon --start --quiet --pidfile \
                /var/run/$NAME.pid --exec $DAEMON
        echo "$NAME."
        ;;
  stop)
        echo -n "Stopping $DESC: "
        start-stop-daemon -o --stop --quiet --pidfile \
                /var/run/$NAME.pid --exec $DAEMON
        echo "$NAME."
        ;;
  reload|force-reload)
        echo "Reloading $DESC configuration files."
        start-stop-daemon --stop --signal 1 --quiet --pidfile \
               /var/run/$NAME.pid --exec $DAEMON
        ;;
  restart)
        echo -n "Restarting $DESC: "
        start-stop-daemon -o --stop --quiet --pidfile \
                /var/run/$NAME.pid --exec $DAEMON
        sleep 1
        start-stop-daemon --start --quiet --pidfile \
                /var/run/$NAME.pid --exec $DAEMON
        echo "$NAME."
        ;;
  *)
        N=/etc/init.d/$NAME
        echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
        exit 1
        ;;
esac

exit 0


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits

Reply via email to