All pastes #744614 Raw Edit

Someone

public text v1 · immutable
·published 2007-10-21 17:20 UTC
rendered paste body
#!/bin/sh -e
export localstatedir="/var"

export prefix="/usr"

export CPP="armeb-linux-gcc -E"

export mandir="/usr/share/man"

export STAGING_SIPDIR="/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/i686-linux/share/sip"

export BUILD_CC="ccache gcc"

export CONFIG_SITE="/home/slug/releases/slugos-3.10-beta/openembedded/site/armeb-linux"

export BUILD_CXXFLAGS="-isystem/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/i686-linux/include -O2 -fpermissive"

export libexecdir="/usr/libexec"

export QTDIR="/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/qt2"

export datadir="/usr/share"

export STRIP="armeb-linux-strip"

export BUILD_CXX="ccache g++"

export LD="armeb-linux-ld"

export LDFLAGS="-L/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib -Wl,-rpath-link,/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib -Wl,-O1"

export bindir="/usr/bin"

export TARGET_CXXFLAGS="-isystem/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/include -Os -fomit-frame-pointer -frename-registers -fno-unroll-loops -fno-inline-functions -fweb -funit-at-a-time -fpermissive"

export includedir="/usr/include"

export TARGET_CPPFLAGS="-isystem/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/include"

export exec_prefix="/usr"

export OPIEDIR="/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux"

export BUILD_LDFLAGS="-L/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/i686-linux/lib -Wl,-rpath-link,/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/i686-linux/lib -Wl,-rpath,/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/i686-linux/lib -Wl,-O1"

export BUILD_LD="ld"

export oldincludedir="/usr/include"

export sysconfdir="/etc"

export CCLD="ccache armeb-linux-gcc -march=armv5te -mtune=xscale -mthumb-interwork -mno-thumb"

export QPEDIR="/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux"

export BUILD_CCLD="gcc"

export BBPATH="/home/slug/releases/slugos-3.10-beta/openembedded/packages/vale:/home/slug/releases/slugos-3.10-beta:/home/slug/releases/slugos-3.10-beta/openembedded:/home/slug/releases/slugos-3.10-beta/bitbake"

export base_libdir="/lib"

export MAKE="make"

export PATH="/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/i686-linux/bin/armeb-linux:/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/i686-linux/bin:/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/cross/bin:/home/slug/releases/slugos-3.10-beta/bitbake/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/bin:/usr/bin:/home/slug/bin"

export TARGET_CFLAGS="-isystem/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/include -Os -fomit-frame-pointer -frename-registers -fno-unroll-loops -fno-inline-functions -fweb -funit-at-a-time"

export base_bindir="/bin"

export servicedir="/srv"

export BUILD_CPP="cpp"

export sbindir="/usr/sbin"

export CFLAGS="-isystem/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/include -Os -fomit-frame-pointer -frename-registers -fno-unroll-loops -fno-inline-functions -fweb -funit-at-a-time"

export BUILD_AR="ar"

export sharedstatedir="/usr/com"

export F77="ccache armeb-linux-g77 -march=armv5te -mtune=xscale -mthumb-interwork -mno-thumb"

export BUILD_CFLAGS="-isystem/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/i686-linux/include -O2"

export STAGING_IDLDIR="/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/share/idl"

export QMAKE_MKSPEC_PATH="/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/i686-linux/share/qmake"

export TARGET_LDFLAGS="-L/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib -Wl,-rpath-link,/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib -Wl,-O1"

export docdir="/usr/share/doc"

export palmtopdir="/opt/QtPalmtop"

export libdir="/usr/lib"

export PKG_CONFIG_DISABLE_UNINSTALLED="yes"

export infodir="/usr/share/info"

export CC="ccache armeb-linux-gcc -march=armv5te -mtune=xscale -mthumb-interwork -mno-thumb"

export MANIFEST="/home/slug/releases/slugos-3.10-beta/openembedded/packages/vale/./manifest"

export BUILD_F77="ccache g77"

export RANLIB="armeb-linux-ranlib"

export CPPFLAGS="-isystem/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/include"

export palmqtdir="/opt/QtPalmtop"

export base_sbindir="/sbin"

export CXX="ccache armeb-linux-g++ -march=armv5te -mtune=xscale -mthumb-interwork -mno-thumb"

export BUILD_RANLIB="ranlib"

export PKG_CONFIG_PATH="/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/share/pkgconfig"

export PATCH_GET="0"

export CXXFLAGS="-isystem/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/include -Os -fomit-frame-pointer -frename-registers -fno-unroll-loops -fno-inline-functions -fweb -funit-at-a-time -fpermissive"

export BUILD_STRIP="strip"

export AS="armeb-linux-as"

export AR="armeb-linux-ar"

export BUILD_CPPFLAGS="-isystem/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/i686-linux/include"

die() {
        oefatal "$*"

}

base_do_install() {
        :

}

do_compile() {
        base_do_compile

}

do_stage() {
    autotools_stage_all

}

autotools_stage_includes() {
        if [ "${INHIBIT_AUTO_STAGE_INCLUDES}" != "1" ]
        then
                rm -rf /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/temp-staging
                mkdir -p /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/temp-staging
                make DESTDIR="/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/temp-staging" install
                cp -pPR /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/temp-staging//usr/include/* /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/include
                rm -rf /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/temp-staging
        fi

}

base_do_compile() {
        if [ -e Makefile -o -e makefile ]; then
                oe_runmake || die "make failed"
        else
                oenote "nothing to compile"
        fi

}

base_do_package() {
        :

}

oewarn() {
        echo "WARNING:" "$*"

}

oe_soinstall() {
        # Purpose: Install shared library file and
        #          create the necessary links
        # Example:
        #
        # oe_
        #
        #oenote installing shared library $1 to $2
        #
        libname=`basename $1`
        install -m 755 $1 $2/$libname
        sonamelink=`armeb-linux-readelf -d $1 |grep 'Library soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'`
        solink=`echo $libname | sed -e 's/\.so\..*/.so/'`
        ln -sf $libname $2/$sonamelink
        ln -sf $libname $2/$solink

}

oe_machinstall() {
        # Purpose: Install machine dependent files, if available
        #          If not available, check if there is a default
        #          If no default, just touch the destination
        # Example:
        #                $1  $2   $3         $4
        # oe_machinstall -m 0644 fstab /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/image/etc/fstab
        #
        # TODO: Check argument number?
        #
        filename=`basename $3`
        dirname=`dirname $3`

        for o in `echo task_do_patch:local:nslu2:ixp4xx:openslug:slugos:linux:armeb:thumb-interwork:build-linux:fail-fast | tr ':' ' '`; do
                if [ -e $dirname/$o/$filename ]; then
                        oenote $dirname/$o/$filename present, installing to $4
                        install $1 $2 $dirname/$o/$filename $4
                        return
                fi
        done
#       oenote overrides specific file NOT present, trying default=$3...
        if [ -e $3 ]; then
                oenote $3 present, installing to $4
                install $1 $2 $3 $4
        else
                oenote $3 NOT present, touching empty $4
                touch $4
        fi

}

autotools_stage_all() {
        if [ "${INHIBIT_AUTO_STAGE}" = "1" ]
        then
                return
        fi
        rm -rf /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/temp-staging
        mkdir -p /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/temp-staging
        oe_runmake DESTDIR="/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/temp-staging" install
        if [ -d /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/temp-staging//usr/include ]; then
                cp -fpPR /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/temp-staging//usr/include/* /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/include
        fi
        if [ -d /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/temp-staging//usr/lib ]
        then
                for i in /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/temp-staging//usr/lib/*.la
                do
                        if [ ! -f "$i" ]; then
                                cp -fpPR /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/temp-staging//usr/lib/* /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib
                                break
                        fi
                        oe_libinstall -so $(basename $i .la) /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib
                done
        fi
        if [ -d /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/temp-staging//usr/share/aclocal ]; then
                install -d /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/share/aclocal
                cp -fpPR /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/temp-staging//usr/share/aclocal/* /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/share/aclocal
        fi
        rm -rf /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/temp-staging

}

oefatal() {
        echo "FATAL:" "$*"
        exit 1

}

do_configure() {
        autotools_do_configure

}

do_patchcleancmd() {
if [ -n "`quilt applied`" ]; then quilt pop -a -R -f || exit 1; fi
}

oe_libinstall() {
        # Purpose: Install a library, in all its forms
        # Example
        #
        # oe_libinstall libltdl /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib/
        # oe_libinstall -C src/libblah libblah /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/image//usr/lib/
        dir=""
        libtool=""
        silent=""
        require_static=""
        require_shared=""
        staging_install=""
        while [ "$#" -gt 0 ]; do
                case "$1" in
                -C)
                        shift
                        dir="$1"
                        ;;
                -s)
                        silent=1
                        ;;
                -a)
                        require_static=1
                        ;;
                -so)
                        require_shared=1
                        ;;
                -*)
                        oefatal "oe_libinstall: unknown option: $1"
                        ;;
                *)
                        break;
                        ;;
                esac
                shift
        done

        libname="$1"
        shift
        destpath="$1"
        if [ -z "$destpath" ]; then
                oefatal "oe_libinstall: no destination path specified"
        fi
        if echo "$destpath/" | egrep '^/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib/' >/dev/null
        then
                staging_install=1
        fi

        __runcmd () {
                if [ -z "$silent" ]; then
                        echo >&2 "oe_libinstall: $*"
                fi
                $*
        }

        if [ -z "$dir" ]; then
                dir=`pwd`
        fi
        dotlai=$libname.lai
        dir=$dir`(cd $dir; find -name "$dotlai") | sed "s/^\.//;s/\/$dotlai\$//;q"`
        olddir=`pwd`
        __runcmd cd $dir

        lafile=$libname.la
        if [ -f "$lafile" ]; then
                # libtool archive
                eval `cat $lafile|grep "^library_names="`
                libtool=1
        else
                library_names="$libname.so* $libname.dll.a"
        fi

        __runcmd install -d $destpath/
        dota=$libname.a
        if [ -f "$dota" -o -n "$require_static" ]; then
                __runcmd install -m 0644 $dota $destpath/
        fi
        if [ -f "$dotlai" -a -n "$libtool" ]; then
                if test -n "$staging_install"
                then
                        # stop libtool using the final directory name for libraries
                        # in staging:
                        __runcmd rm -f $destpath/$libname.la
                        __runcmd sed -e 's/^installed=yes$/installed=no/' -e '/^dependency_libs=/s,/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib/\1,g' $dotlai >$destpath/$libname.la
                else
                        __runcmd install -m 0644 $dotlai $destpath/$libname.la
                fi
        fi

        for name in $library_names; do
                files=`eval echo $name`
                for f in $files; do
                        if [ ! -e "$f" ]; then
                                if [ -n "$libtool" ]; then
                                        oefatal "oe_libinstall: $dir/$f not found."
                                fi
                        elif [ -L "$f" ]; then
                                __runcmd cp -P "$f" $destpath/
                        elif [ ! -L "$f" ]; then
                                libfile="$f"
                                __runcmd install -m 0755 $libfile $destpath/
                        fi
                done
        done

        if [ -z "$libfile" ]; then
                if  [ -n "$require_shared" ]; then
                        oefatal "oe_libinstall: unable to locate shared library"
                fi
        elif [ -z "$libtool" ]; then
                # special case hack for non-libtool .so.#.#.# links
                baselibfile=`basename "$libfile"`
                if (echo $baselibfile | grep -qE '^lib.*\.so\.[0-9.]*$'); then
                        sonamelink=`armeb-linux-readelf -d $libfile |grep 'Library soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'`
                        solink=`echo $baselibfile | sed -e 's/\.so\..*/.so/'`
                        if [ -n "$sonamelink" -a x"$baselibfile" != x"$sonamelink" ]; then
                                __runcmd ln -sf $baselibfile $destpath/$sonamelink
                        fi
                        __runcmd ln -sf $baselibfile $destpath/$solink
                fi
        fi

        __runcmd cd "$olddir"

}

oenote() {
        echo "NOTE:" "$*"

}

base_do_configure() {
        :

}

oe_runconf() {
        if [ -x "/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/vale-0.0.1" # We won't need this in future releases/configure ] ; then
                cfgcmd=""/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/vale-0.0.1" # We won't need this in future releases/configure \
                    --build=i686-linux \
                    --host=armeb-linux \
                    --target=armeb-linux \
                    --prefix=/usr \
                    --exec_prefix=/usr \
                    --bindir=/usr/bin \
                    --sbindir=/usr/sbin \
                    --libexecdir=/usr/libexec \
                    --datadir=/usr/share \
                    --sysconfdir=/etc \
                    --sharedstatedir=/usr/com \
                    --localstatedir=/var \
                    --libdir=/usr/lib \
                    --includedir=/usr/include \
                    --oldincludedir=/usr/include \
                    --infodir=/usr/share/info \
                    --mandir=/usr/share/man \
                        ${EXTRA_OECONF} \
                    $@"
                oenote "Running $cfgcmd..."
                $cfgcmd || oefatal "oe_runconf failed"
        else
                oefatal "no configure script found"
        fi

}

runstrip() {
        local ro st
        st=0
        if {    file "$1" || {
                        oewarn "file $1: failed (forced strip)" >&2
                        echo 'not stripped'
                }
           } | grep -q 'not stripped'
        then
                oenote "armeb-linux-strip $1"
                ro=
                test -w "$1" || {
                        ro=1
                        chmod +w "$1"
                }
                'armeb-linux-strip' "$1"
                st=$?
                test -n "$ro" && chmod -w "$1"
                if test $st -ne 0
                then
                        oewarn "runstrip: armeb-linux-strip $1: strip failed" >&2
                        if [ x == x1 ]
                        then
                                #FIXME: remove this, it's for error detection
                                if file "$1" 2>/dev/null >&2
                                then
                                        (oefatal "armeb-linux-strip $1: command failed" >/dev/tty)
                                else
                                        (oefatal "file $1: command failed" >/dev/tty)
                                fi
                                st=0
                        fi
                fi
        else
                oenote "runstrip: skip $1"
        fi
        return $st

}

do_install() {
        autotools_do_install

}

autotools_do_configure() {
        case vale in
        autoconf*)
        ;;
        automake*)
        ;;
        *)
                # WARNING: gross hack follows:
                # An autotools built package generally needs these scripts, however only
                # automake or libtoolize actually install the current versions of them.
                # This is a problem in builds that do not use libtool or automake, in the case
                # where we -need- the latest version of these scripts.  e.g. running a build
                # for a package whose autotools are old, on an x86_64 machine, which the old
                # config.sub does not support.  Work around this by installing them manually
                # regardless.
                ( for ac in `find "/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/vale-0.0.1"       # We won't need this in future releases -name configure.in -o -name configure.ac`; do
                        rm -f `dirname $ac`/configure
                        done )
                if [ -e "/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/vale-0.0.1" # We won't need this in future releases/configure.in -o -e "/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/vale-0.0.1"      # We won't need this in future releases/configure.ac ]; then
                        olddir=`pwd`
                        cd "/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/vale-0.0.1"      # We won't need this in future releases
                        if [ x"default" = xdefault ]; then
                                acpaths=
                                for i in `find "/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/vale-0.0.1"  # We won't need this in future releases -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \
                                        grep -v 'acinclude.m4' | sed -e 's,\(.*/\).*$,\1,'|sort -u`; do
                                        acpaths="$acpaths -I $i"
                                done
                        else
                                acpaths="default"
                        fi
                        AUTOV=`automake --version |head -n 1 |sed "s/.* //;s/\.[0-9]\+$//"`
                        automake --version
                        echo "AUTOV is $AUTOV"
                        install -d /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/share/aclocal
                        install -d /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/share/aclocal-$AUTOV
                        acpaths="$acpaths -I /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/share/aclocal-$AUTOV -I /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/share/aclocal"
                        # autoreconf is too shy to overwrite aclocal.m4 if it doesn't look
                        # like it was auto-generated.  Work around this by blowing it away
                        # by hand, unless the package specifically asked not to run aclocal.
                        if ! echo --exclude=autopoint | grep -q "aclocal"; then
                                rm -f aclocal.m4
                        fi
                        if [ -e configure.in ]; then
                          CONFIGURE_AC=configure.in
                        else
                          CONFIGURE_AC=configure.ac
                        fi
                        if grep "^AM_GLIB_GNU_GETTEXT" $CONFIGURE_AC >/dev/null; then
                          if grep "sed.*POTFILES" $CONFIGURE_AC >/dev/null; then
                            : do nothing -- we still have an old unmodified configure.ac
                          else
                            oenote Executing glib-gettextize --force --copy
                            echo "no" | glib-gettextize --force --copy
                          fi
                        fi
                        if grep "^AC_PROG_INTLTOOL" $CONFIGURE_AC >/dev/null; then
                          oenote Executing intltoolize --copy --force --automake
                          intltoolize --copy --force --automake
                        fi
                        oenote Executing autoreconf --verbose --install --force --exclude=autopoint $acpaths
                        mkdir -p m4
                        autoreconf -Wcross --verbose --install --force --exclude=autopoint $acpaths || oefatal "autoreconf execution failed."
                        cd $olddir
                fi
        ;;
        esac
        if [ -e "/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/vale-0.0.1" # We won't need this in future releases/configure ]; then
                oe_runconf
        else
                oenote "nothing to configure"
        fi

}

ldconfig_postinst_fragment() {
if [ x"$D" = "x" ]; then
        ldconfig
fi

}

base_do_stage() {
        :

}

MIRRORS() {
ftp://ftp.debian.org/debian/pool/main   http://snapshot.debian.net/archive/pool
ftp://ftp.debian.org/debian/pool        ftp://ftp.de.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool        ftp://ftp.au.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool        ftp://ftp.cl.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool        ftp://ftp.hr.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool        ftp://ftp.fi.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool        ftp://ftp.hk.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool        ftp://ftp.hu.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool        ftp://ftp.ie.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool        ftp://ftp.it.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool        ftp://ftp.jp.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool        ftp://ftp.no.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool        ftp://ftp.pl.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool        ftp://ftp.ro.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool        ftp://ftp.si.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool        ftp://ftp.es.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool        ftp://ftp.se.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool        ftp://ftp.tr.debian.org/debian/pool
ftp://ftp.gnu.org/gnu   ftp://mirrors.kernel.org/gnu
ftp://ftp.gnu.org/gnu   ftp://ftp.matrix.com.br/pub/gnu
ftp://ftp.gnu.org/gnu   ftp://ftp.cs.ubc.ca/mirror2/gnu
ftp://ftp.gnu.org/gnu   ftp://sunsite.ust.hk/pub/gnu
ftp://ftp.gnu.org/gnu   ftp://ftp.ayamura.org/pub/gnu
ftp://ftp.kernel.org/pub        http://www.kernel.org/pub
ftp://ftp.kernel.org/pub        ftp://ftp.us.kernel.org/pub
ftp://ftp.kernel.org/pub        ftp://ftp.uk.kernel.org/pub
ftp://ftp.kernel.org/pub        ftp://ftp.hk.kernel.org/pub
ftp://ftp.kernel.org/pub        ftp://ftp.au.kernel.org/pub
ftp://ftp.kernel.org/pub        ftp://ftp.jp.kernel.org/pub
ftp://ftp.gnupg.org/gcrypt/     ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/
ftp://ftp.gnupg.org/gcrypt/     ftp://ftp.surfnet.nl/pub/security/gnupg/
ftp://ftp.gnupg.org/gcrypt/     http://gulus.USherbrooke.ca/pub/appl/GnuPG/
ftp://dante.ctan.org/tex-archive ftp://ftp.fu-berlin.de/tex/CTAN
ftp://dante.ctan.org/tex-archive http://sunsite.sut.ac.jp/pub/archives/ctan/
ftp://dante.ctan.org/tex-archive http://ctan.unsw.edu.au/



ftp://.*/.*/    http://www.oesources.org/source/current/
http://.*/.*/   http://www.oesources.org/source/current/
ftp://.*/.*/    http://sources.nslu2-linux.org/sources/
http://.*/.*/   http://sources.nslu2-linux.org/sources/

}

autotools_do_install() {
        oe_runmake 'DESTDIR=/home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0/image' install

}

oedebug() {
        test $# -ge 2 || {
                echo "Usage: oedebug level \"message\""
                exit 1
        }

        test ${OEDEBUG:-0} -ge $1 && {
                shift
                echo "DEBUG:" $*
        }

}

oe_runmake() {
        if [ x"$MAKE" = x ]; then MAKE=make; fi
        oenote make  "$@"
        make  "$@" || die "oe_runmake failed"

}

cd /home/slug/releases/slugos-3.10-beta/openslug-nslu2.tmp/work/vale-0.0.2-r0
do_patchcleancmd
[slug@laptop slugos-3.10-beta]$