source "package/hostapd/Config.in"
        source "package/hplip/Config.in"
        source "package/httping/Config.in"
+       source "package/ibrdtnd/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
        source "package/ifplugd/Config.in"
 endif
 
--- /dev/null
+config BR2_PACKAGE_IBRDTND
+       bool "ibrdtnd"
+       depends on BR2_INSTALL_LIBSTDCPP
+       depends on BR2_TOOLCHAIN_HAS_THREADS
+       select BR2_PACKAGE_IBRDTN
+       select BR2_PACKAGE_IBRCOMMON
+       help
+         IBR-DTN is a small dtn application that supports:
+         Bundle Protocol RFC 5050
+         Bundle Security Protocol RFC 6257
+
+         http://trac.ibr.cs.tu-bs.de/project-cm-2012-ibrdtn
+
+comment "ibrdtnd needs a toolchain w/ C++, threads"
+       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
 
--- /dev/null
+################################################################################
+#
+# ibrdtnd
+#
+################################################################################
+
+IBRDTND_VERSION = 1.0.1
+IBRDTND_SOURCE = ibrdtnd-$(IBRDTND_VERSION).tar.gz
+IBRDTND_SITE = https://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases/
+IBRDTND_LICENSE = Apache-2.0
+IBRDTND_LICENSE_FILES = COPYING
+IBRDTND_DEPENDENCIES = ibrdtn ibrcommon
+
+# Disable features that don't have the necessary dependencies in
+# Buildroot
+IBRDTND_CONF_OPTS = \
+       --disable-dtndht \
+       --without-wifip2p \
+       --without-vmime
+
+ifeq ($(BR2_PACKAGE_LIBDAEMON),y)
+IBRDTND_CONF_OPTS += --enable-libdaemon
+IBRDTND_DEPENDENCIES += libdaemon
+else
+IBRDTND_CONF_OPTS += --disable-libdaemon
+endif
+
+ifeq ($(BR2_PACKAGE_LIBCURL),y)
+IBRDTND_CONF_OPTS += --with-curl
+IBRDTND_DEPENDENCIES += libcurl
+else
+IBRDTND_CONF_OPTS += --without-curl
+endif
+
+ifeq ($(BR2_PACKAGE_SQLITE),y)
+IBRDTND_CONF_OPTS += --with-sqlite
+IBRDTND_DEPENDENCIES += sqlite
+else
+IBRDTND_CONF_OPTS += --without-sqlite
+endif
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+IBRDTND_CONF_OPTS += --with-tls
+IBRDTND_DEPENDENCIES += openssl
+else
+IBRDTND_CONF_OPTS += --without-tls
+endif
+
+$(eval $(autotools-package))