From 3ad50ef778fcdc29cb5fd48109e95d7a8a73fab8 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Sat, 12 Jan 2008 15:22:07 +0000 Subject: add dtn, from the Delay Tolerant Networking Research Group yes, this includes python-dtn (of course :) --- packages/dtnrg/.mtn2git_empty | 0 packages/dtnrg/dtn_2.5.0.bb | 58 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 packages/dtnrg/.mtn2git_empty create mode 100644 packages/dtnrg/dtn_2.5.0.bb (limited to 'packages/dtnrg') diff --git a/packages/dtnrg/.mtn2git_empty b/packages/dtnrg/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/dtnrg/dtn_2.5.0.bb b/packages/dtnrg/dtn_2.5.0.bb new file mode 100644 index 0000000000..a1111f18e7 --- /dev/null +++ b/packages/dtnrg/dtn_2.5.0.bb @@ -0,0 +1,58 @@ +DESCRIPTION = "Delay Tolerant Networking Package" +HOMEPAGE = "http://www.dtnrg.org/wiki" +SECTION = "libs" +DEPENDS = "db openssl python-native xerces-c" +LICENSE = "Apache" +SRC_URI = "http://www.dtnrg.org/docs/code/dtn_${PV}.tgz" + +inherit autotools + +EXTRA_OECONF = "\ + --with-python=${STAGING_BINDIR_NATIVE}/python \ + --with-db=${STAGING_DIR} \ + --with-tcl=${STAGING_DIR} \ + --without-google-perftools \ + --without-bluez \ + --without-bonjour \ + --with-expat=${STAGING_DIR} \ + --with-xerces-c=${STAGING_DIR} \ + --without-tclreadline \ + --with-zlib=${STAGING_DIR} \ + --without-xsd-tool \ + --with-db=${STAGING_DIR} \ + --enable-ecl \ + --enable-edp \ + --without-mysql \ + --without-postgres \ + --with-openssl=${STAGING_DIR} \ +" + +def python_dir(d): + import os, bb + staging_incdir = bb.data.getVar( "STAGING_INCDIR", d, 1 ) + if os.path.exists( "%s/python2.5" % staging_incdir ): return "python2.5" + if os.path.exists( "%s/python2.4" % staging_incdir ): return "python2.4" + if os.path.exists( "%s/python2.3" % staging_incdir ): return "python2.3" + raise "No Python in STAGING_INCDIR. Forgot to build python-native ?" + +PYTHON_DIR = "${@python_dir(d)}" + +export BUILD_SYS +export HOST_SYS + +do_configure_prepend() { + for i in aclocal/*.ac oasys/aclocal/*.ac; do + install -m 0644 $i ${STAGING_DATADIR}/aclocal/`basename $i`.m4 + done + autotools_do_configure +} + +do_install_append() { + cd applib/python + INCDIR=../.. LIBDIR=.. VERSION=${PV} python setup.py install --prefix=${D}/${prefix} --install-data=${D}/${datadir} +} + +PACKAGES += "${PN}-python" +FILES_${PN}-python = "${libdir}/${PYTHON_DIR}" +RDEPENDS_${PN}-python = "python-core" +FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/.debug" -- cgit v1.2.3 From d46d07f9d1781f0dc27dd50c8a76ef2428039d92 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Sat, 12 Jan 2008 15:54:10 +0000 Subject: dtn 2.5.0 change package name for python bindings --- packages/dtnrg/dtn_2.5.0.bb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'packages/dtnrg') diff --git a/packages/dtnrg/dtn_2.5.0.bb b/packages/dtnrg/dtn_2.5.0.bb index a1111f18e7..0b4043bbc2 100644 --- a/packages/dtnrg/dtn_2.5.0.bb +++ b/packages/dtnrg/dtn_2.5.0.bb @@ -52,7 +52,9 @@ do_install_append() { INCDIR=../.. LIBDIR=.. VERSION=${PV} python setup.py install --prefix=${D}/${prefix} --install-data=${D}/${datadir} } -PACKAGES += "${PN}-python" -FILES_${PN}-python = "${libdir}/${PYTHON_DIR}" -RDEPENDS_${PN}-python = "python-core" +PACKAGES += "python-dtn" +DESCRIPTION_python-dtn = "Python bindings to the DTN API" +PR_python-dtn = "ml1" +FILES_python-dtn = "${libdir}/${PYTHON_DIR}" +RDEPENDS_python-dtn = "python-core" FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/.debug" -- cgit v1.2.3 From 1504dc24a72738bffc41ac3254acff63585edf63 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Sun, 13 Jan 2008 15:56:31 +0000 Subject: dtn 2.5.0 use syntax compatible w/ bitbake 1.8.8 for now --- packages/dtnrg/dtn_2.5.0.bb | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'packages/dtnrg') diff --git a/packages/dtnrg/dtn_2.5.0.bb b/packages/dtnrg/dtn_2.5.0.bb index 0b4043bbc2..208c19d381 100644 --- a/packages/dtnrg/dtn_2.5.0.bb +++ b/packages/dtnrg/dtn_2.5.0.bb @@ -4,6 +4,7 @@ SECTION = "libs" DEPENDS = "db openssl python-native xerces-c" LICENSE = "Apache" SRC_URI = "http://www.dtnrg.org/docs/code/dtn_${PV}.tgz" +PR = "r1" inherit autotools @@ -27,7 +28,7 @@ EXTRA_OECONF = "\ --with-openssl=${STAGING_DIR} \ " -def python_dir(d): +def dtn_python_dir(d): import os, bb staging_incdir = bb.data.getVar( "STAGING_INCDIR", d, 1 ) if os.path.exists( "%s/python2.5" % staging_incdir ): return "python2.5" @@ -35,10 +36,14 @@ def python_dir(d): if os.path.exists( "%s/python2.3" % staging_incdir ): return "python2.3" raise "No Python in STAGING_INCDIR. Forgot to build python-native ?" -PYTHON_DIR = "${@python_dir(d)}" +PYTHON_DIR = "${@dtn_python_dir(d)}" -export BUILD_SYS -export HOST_SYS +# use this syntax once everyone has at least bitbake 1.8.9 +#export BUILD_SYS +#export HOST_SYS + +export BUILD_SYS:="${BUILD_SYS}" +export HOST_SYS:="${HOST_SYS}" do_configure_prepend() { for i in aclocal/*.ac oasys/aclocal/*.ac; do @@ -54,7 +59,7 @@ do_install_append() { PACKAGES += "python-dtn" DESCRIPTION_python-dtn = "Python bindings to the DTN API" -PR_python-dtn = "ml1" +PR_python-dtn = "ml2" FILES_python-dtn = "${libdir}/${PYTHON_DIR}" RDEPENDS_python-dtn = "python-core" FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/.debug" -- cgit v1.2.3 From 8214047c1d5ebed8b7c277f0c666285f442b7677 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Mon, 14 Jan 2008 00:22:45 +0000 Subject: dtn 2.5.0 python-dtn RDEPEND dtn --- packages/dtnrg/dtn_2.5.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/dtnrg') diff --git a/packages/dtnrg/dtn_2.5.0.bb b/packages/dtnrg/dtn_2.5.0.bb index 208c19d381..0d0e206f00 100644 --- a/packages/dtnrg/dtn_2.5.0.bb +++ b/packages/dtnrg/dtn_2.5.0.bb @@ -61,5 +61,5 @@ PACKAGES += "python-dtn" DESCRIPTION_python-dtn = "Python bindings to the DTN API" PR_python-dtn = "ml2" FILES_python-dtn = "${libdir}/${PYTHON_DIR}" -RDEPENDS_python-dtn = "python-core" +RDEPENDS_python-dtn = "python-core dtn" FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/.debug" -- cgit v1.2.3