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

Added Files:
        buildtool.cfg buildtool.mk yate-1.1.0-1.tar.gz 
        yate-noresolv.patch yate.init 
Log Message:
Fixed perl lib path


--- NEW FILE: yate.init ---
#! /bin/sh
# /etc/init.d/yate: start and stop YATE Telephony Engine

RCDLINKS="2,S95 3,S95 4,S95 5,S95 0,K11 1,K11 6,K11"

NAME="YATE Telephony Engine"
YATE=/bin/yate
PIDFILE=/var/run/yate.pid

test -x $YATE || exit 0

# default options
LOGFILE="/var/log/yate.log"
OPTIONS="-d -p $PIDFILE"

# custom config options
test -f /etc/default/yate && . /etc/default/yate

if test "x$LOGFILE" != "x"; then
        OPTIONS="-l $LOGFILE $OPTIONS"
fi

case "$1" in
  start)
        echo -n "Starting ${NAME}: "
        start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $YATE -- 
$OPTIONS
        echo "yate."
        ;;
  stop)
        echo -n "Stopping ${NAME}: "
        start-stop-daemon --stop --quiet --pidfile $PIDFILE --oknodo
        # remove stale PID file
        [ -f $PIDFILE ] && rm -f $PIDFILE
        echo "yate."
        ;;
  restart)
        echo -n "Restarting ${NAME}: "
        start-stop-daemon --stop --quiet --pidfile $PIDFILE --oknodo
        # remove stale PID file
        [ -f $PIDFILE ] && rm -f $PIDFILE
        sleep 2
        start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $YATE -- 
$OPTIONS
        echo "yate."
        ;;
  *)
        echo "Usage: /etc/init.d/yate {start|stop|restart}"
        exit 1
esac

exit 0

--- NEW FILE: yate-1.1.0-1.tar.gz ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: buildtool.cfg ---
#<Server http-yate>
#       Type = http
#       Name = yate.null.ro
#       Serverpath = /tarballs
#</Server>

<File buildtool.mk>
        Server = cvs4-sourceforge
        Revision = HEAD
        Directory = yate
</File>

<File yate-1.1.0-1.tar.gz>
        Server = cvs4-sourceforge
        Revision = HEAD
        Directory = yate
        envname = YATE_SOURCE
</File>

<File yate-noresolv.patch>
        Server = cvs4-sourceforge
        Revision = HEAD
        Directory = yate
        envname = YATE_PATCH1
</File>

<File yate.init>
        Server = cvs4-sourceforge
        Revision = HEAD
        Directory = yate
        envname = YATE_INIT
</File>

<Package>
        <yate>
                Version = 1.1.0-1
                Revision = 2

                Help <<EOF
                YATE - Yet Another Telephony Engine
                Homepage: http://yate.null.ro/
                Requires: libcxx.lrp, lpthread.lrp, libm.lrp
                LEAF package by __PACKAGER__, __BUILDDATE__

                A free software telephony server that is performant
                enough to deal with PBX requirements and also flexible
                enough for complex Gateway and IVR solutions.
                EOF
        
                <Permissions>
                        Files = 644
                        Directories = 755
                </Permissions>

                <Owner>
                        Files = root:root
                        Directories = root:root
                </Owner>
                <Contents>
                        <File>
                                Source          = etc/init.d/yate
                                Filename        = etc/init.d/yate
                                Type            = binary
                                Permissions     = 0755
                        </File>
                        <File>
                                Source          = etc/yate/yate.conf
                                Filename        = etc/yate/yate.conf
                                Type            = conf
                                Type            = binary
                                Description     = yate master configuration
                                Permissions     = 0644
                        </File>
# No pwlib/openh323 LRP packages yet
#                       <File>
#                               Source          = etc/yate/h323chan.conf
#                               Filename        = etc/yate/h323chan.conf
#                               Type            = conf
#                               Type            = binary
#                               Description     = h323chan
#                               Permissions     = 0644
#                       </File>
                        <File>
                                Source          = etc/yate/ysipchan.conf
                                Filename        = etc/yate/ysipchan.conf
                                Type            = conf
                                Type            = binary
                                Description     = ysipchan
                                Permissions     = 0644
                        </File>
                        <File>
                                Source          = etc/yate/yiaxchan.conf
                                Filename        = etc/yate/yiaxchan.conf
                                Type            = conf
                                Type            = binary
                                Description     = yiaxchan
                                Permissions     = 0644
                        </File>
                        <File>
                                Source          = etc/yate/yrtpchan.conf
                                Filename        = etc/yate/yrtpchan.conf
                                Type            = conf
                                Type            = binary
                                Description     = yrtpchan
                                Permissions     = 0644
                        </File>
                        <File>
                                Source          = etc/yate/regexroute.conf
                                Filename        = etc/yate/regexroute.conf
                                Type            = conf
                                Type            = binary
                                Description     = regexroute
                                Permissions     = 0644
                        </File>
                        <File>
                                Source          = etc/yate/accfile.conf
                                Filename        = etc/yate/accfile.conf
                                Type            = conf
                                Type            = binary
                                Description     = accfile
                                Permissions     = 0644
                        </File>
                        <File>
                                Source          = etc/yate/regfile.conf
                                Filename        = etc/yate/regfile.conf
                                Type            = conf
                                Type            = binary
                                Description     = regfile
                                Permissions     = 0644
                        </File>
                        <File>
                                Source          = etc/yate/cdrbuild.conf
                                Filename        = etc/yate/cdrbuild.conf
                                Type            = conf
                                Type            = binary
                                Description     = cdrbuild
                                Permissions     = 0644
                        </File>
                        <File>
                                Source          = etc/yate/cdrfile.conf
                                Filename        = etc/yate/cdrfile.conf
                                Type            = conf
                                Type            = binary
                                Description     = cdrfile
                                Permissions     = 0644
                        </File>
                        <File>
                                Source          = etc/yate/pbxassist.conf
                                Filename        = etc/yate/pbxassist.conf
                                Type            = conf
                                Type            = binary
                                Description     = pbxassistent
                                Permissions     = 0644
                        </File>
                        <File>
                                Source          = etc/yate/rmanager.conf
                                Filename        = etc/yate/rmanager.conf
                                Type            = conf
                                Type            = binary
                                Description     = rmanager
                                Permissions     = 0644
                        </File>
#                       <File>
#                               Source          = etc/yate/moh.conf
#                               Filename        = etc/yate/moh.conf
#                               Type            = conf
#                               Type            = binary
#                               Description     = moh
#                               Permissions     = 0644
#                       </File>
#                       <File>
#                               Source          = etc/yate/extmodule.conf
#                               Filename        = etc/yate/extmodule.conf
#                               Type            = conf
#                               Type            = binary
#                               Description     = extmodule
#                               Permissions     = 0644
#                       </File>
# No wpchan support (yet?)
#                       <File>
#                               Source          = etc/yate/wpchan.conf
#                               Filename        = etc/yate/wpchan.conf
#                               Type            = conf
#                               Type            = binary
#                               Description     = wpchan
#                               Permissions     = 0644
#                       </File>
# No Zaptel support (yet?)
#                       <File>
#                               Source          = etc/yate/zapchan.conf
#                               Filename        = etc/yate/zapchan.conf
#                               Type            = conf
#                               Type            = binary
#                               Description     = zapchan
#                               Permissions     = 0644
#                       </File>
#                       <File>
#                               Source          = etc/yate/test1.conf
#                               Filename        = etc/yate/test1.conf
#                               Type            = conf
#                               Type            = binary
#                               Description     = test1
#                               Permissions     = 0644
#                       </File>

# Leaving out callgen.yate- test module

                        <File>
                                Source          = lib/yate/modules/accfile.yate
                                Filename        = lib/yate/modules/accfile.yate
                                Type            = binary
                                Permissions     = 0755
                        </File>
                        <File>
                                Source          = lib/yate/modules/cdrbuild.yate
                                Filename        = lib/yate/modules/cdrbuild.yate
                                Type            = binary
                                Permissions     = 0755
                        </File>
                        <File>
                                Source          = lib/yate/modules/cdrfile.yate
                                Filename        = lib/yate/modules/cdrfile.yate
                                Type            = binary
                                Permissions     = 0755
                        </File>
                        <File>
                                Source          = 
lib/yate/modules/pbxassist.yate
                                Filename        = 
lib/yate/modules/pbxassist.yate
                                Type            = binary
                                Permissions     = 0755
                        </File>
                        <File>
                                Source          = lib/yate/modules/pbx.yate
                                Filename        = lib/yate/modules/pbx.yate
                                Type            = binary
                                Permissions     = 0755
                        </File>
#                       <File>
#                               Source          = 
lib/yate/modules/extmodule.yate
#                               Filename        = 
lib/yate/modules/extmodule.yate
#                               Type            = binary
#                               Permissions     = 0755
#                       </File>

# Leaving out gtkclient - there is no X11, no GTK on a LEAF BU!
                        <File>
                                Source          = lib/yate/modules/yiaxchan.yate
                                Filename        = lib/yate/modules/yiaxchan.yate
                                Type            = binary
                                Permissions     = 0755
                        </File>
                        <File>
                                Source          = 
lib/yate/modules/ilbccodec.yate
                                Filename        = 
lib/yate/modules/ilbccodec.yate
                                Type            = binary
                                Permissions     = 0755
                        </File>
#                       <File>
#                               Source          = lib/yate/modules/osschan.yate
#                               Filename        = lib/yate/modules/osschan.yate
#                               Type            = binary
#                               Permissions     = 0755
#                       </File>
                        <File>
                                Source          = 
lib/yate/modules/regexroute.yate
                                Filename        = 
lib/yate/modules/regexroute.yate
                                Type            = binary
                                Permissions     = 0755
                        </File>
                        <File>
                                Source          = lib/yate/modules/callfork.yate
                                Filename        = lib/yate/modules/callfork.yate
                                Type            = binary
                                Permissions     = 0755
                        </File>
                        <File>
                                Source          = lib/yate/modules/regfile.yate
                                Filename        = lib/yate/modules/regfile.yate
                                Type            = binary
                                Permissions     = 0755
                        </File>
                        <File>
                                Source          = lib/yate/modules/rmanager.yate
                                Filename        = lib/yate/modules/rmanager.yate
                                Type            = binary
                                Permissions     = 0755
                        </File>
                        <File>
                                Source          = lib/yate/modules/tonegen.yate
                                Filename        = lib/yate/modules/tonegen.yate
                                Type            = binary
                                Permissions     = 0755
                        </File>
                        <File>
                                Source          = 
lib/yate/modules/conference.yate
                                Filename        = 
lib/yate/modules/conference.yate
                                Type            = binary
                                Permissions     = 0755
                        </File>
#                       <File>
#                               Source          = lib/yate/modules/moh.yate
#                               Filename        = lib/yate/modules/moh.yate
#                               Type            = binary
#                               Permissions     = 0755
#                       </File>
                        <File>
                                Source          = lib/yate/modules/wavefile.yate
                                Filename        = lib/yate/modules/wavefile.yate
                                Type            = binary
                                Permissions     = 0755
                        </File>
                        <File>
                                Source          = lib/yate/modules/ysipchan.yate
                                Filename        = lib/yate/modules/ysipchan.yate
                                Type            = binary
                                Permissions     = 0755
                        </File>
                        <File>
                                Source          = lib/yate/modules/yrtpchan.yate
                                Filename        = lib/yate/modules/yrtpchan.yate
                                Type            = binary
                                Permissions     = 0755
                        </File>
                        <File>
                                Source          = lib/libyate.so.1.1.0
                                Filename        = lib/libyate.so.1.1.0
                                Type            = binary
                                Permissions     = 755
                        </File>
                        <File>
                                Target          = lib/libyate.so.1.1.0
                                Filename        = lib/libyate.so
                                Type            = link
                        </File>
                        <File>
                                Source          = bin/yate
                                Filename        = bin/yate
                                Type            = binary
                                Permissions     = 755
                        </File>
                        <File>
                                Filename        = etc/yate
                                Type            = local
                        </File>
                </Contents>
        </yate>
</Package>

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

YATE_DIR:=yate
YATE_TARGET_DIR:=$(BT_BUILD_DIR)/yate
export AUTOCONF=$(BT_STAGING_DIR)/bin/autoconf
PERLVER=$(shell ls $(BT_STAGING_DIR)/usr/lib/perl5 2>/dev/null)

$(YATE_DIR)/.source:
        zcat $(YATE_SOURCE) | tar -xvf -
        cat $(YATE_PATCH1) | patch -d $(YATE_DIR) -p1
        touch $(YATE_DIR)/.source

source: $(YATE_DIR)/.source

$(YATE_DIR)/.configured: $(YATE_DIR)/.source
        (cd $(YATE_DIR) ;  export 
PERLLIB=$(BT_STAGING_DIR)/usr/lib/perl5/$(PERLVER); \
        $(AUTOCONF) ; CC=$(TARGET_CC) CXX=$(BT_STAGING_DIR)/usr/bin/g++ 
LD=$(TARGET_LD) \
                        ./configure \
                        --build=$(GNU_HOST_NAME) \
                        --host=$(GNU_HOST_NAME) \
                        --prefix=/ \
                        --without-libpri \
                        --without-libgsm \
                        --without-mysql \
                        --without-libpq \
                        --without-libgtk2 \
                        --without-gtkmozilla \
                        --without-pwlib \
                        --infodir=/usr/info --mandir=/usr/man )
        touch $(YATE_DIR)/.configured

$(YATE_DIR)/.build: $(YATE_DIR)/.configured
        echo "YATE_TARGET_DIR=$(YATE_TARGET_DIR)"
        mkdir -p $(YATE_TARGET_DIR)
        make -C $(YATE_DIR) all
        touch $@

$(YATE_DIR)/.install: $(YATE_DIR)/.build
        make -C $(YATE_DIR) DESTDIR=$(YATE_TARGET_DIR) install
        install -d -m 0755 $(YATE_TARGET_DIR)/etc/init.d
        install    -m 0755 $(YATE_INIT) $(YATE_TARGET_DIR)/etc/init.d/yate
        $(BT_STRIP) $(BT_STRIP_BINOPTS) $(YATE_TARGET_DIR)/bin/yate
        $(BT_STRIP) $(BT_STRIP_LIBOPTS) $(YATE_TARGET_DIR)/lib/*.so.*
        $(BT_STRIP) $(BT_STRIP_LIBOPTS) 
$(YATE_TARGET_DIR)/lib/yate/modules/*.yate
#       find $(YATE_TARGET_DIR) -type f | sed -e 's|^$(YATE_TARGET_DIR)||g'
#       find $(YATE_TARGET_DIR)/ -type f \( -perm +0111 -or -name '*.so.*' -or 
-name '*.yate' \) -exec $(BT_STRIP) -s --remove-section=.note 
--remove-section=.comment {} \;
        cp -a $(YATE_TARGET_DIR)/* $(BT_STAGING_DIR)
        touch $@

build: $(YATE_DIR)/.install

clean:
        make -C $(YATE_DIR) clean
        rm -rf $(YATE_TARGET_DIR)

srcclean: clean
        rm -rf $(YATE_DIR) 
        rm $(YATE_DIR)/.source

--- NEW FILE: yate-noresolv.patch ---
diff -urN yate.orig/configure.in yate/configure.in
--- yate.orig/configure.in      2006-07-07 16:02:29.000000000 +0200
+++ yate/configure.in   2006-07-10 21:05:59.000000000 +0200
@@ -177,13 +177,6 @@
 # Checks for optional libraries.
 
 HAVE_RESOLV=no
-AC_MSG_CHECKING([for resolver library])
-AC_LANG_SAVE
-AC_LANG_C
-AC_TRY_LINK([#include <netinet/in.h>
-#include <arpa/nameser.h>
-#include <resolv.h>],[res_init();],[HAVE_RESOLV=yes],[HAVE_RESOLV=no])
-AC_LANG_RESTORE
 AC_MSG_RESULT([$HAVE_RESOLV])
 AC_SUBST(HAVE_RESOLV)
 


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits

Reply via email to