On Wed, Aug 17, 2016 at 04:53:36PM +0200, Roland Hieber wrote:
> IBR-DTN is a lightweight implementation of the Bundle Protocol (RFC
> 5050), designed for embedded systems like the RouterBoard532A or
> Ubiquiti RouterStation Pro.
>
> IBR-DTN consists of several upstream tarballs which split its
> functionality into modular parts, namely ibrcommon, ibrdtn, ibrdtnd and
> ibrdtn-tools. Although they are released at the same time with the same
> version, they are usually packaged separately to provide the modularity
> on the package level. In order to provide clean and readable Makefiles,
> the upstream naming scheme is adopted here.
>
> Although dtndht is versioned and released as a separate upstream
> package, it is effectively part of IBR-DTN as it is not really used
> anywhere else, and it's also developed in close contact with IBR-DTN by
> the same authors. For this reason, I'm including all package rules in a
> single patch.
>
> The upstream releases includes some functionality which depends on
> software not currently available in ptxdist. This includes tffs,
> wifip2p and libvmime. I have included the directives for these
> features, but commented them out, so they can easily be enabled once
> that software gets packaged.
>
> Signed-off-by: Roland Hieber
I've made several comments below, that apply to more that one place. Please
fix it everywhere.
And check your configure options. You need to specify everything that is
optional or may be auto detected. Please look at some other rules for
guidance or ask me if you are unsure if an option should be specified.
> ---
> projectroot/lib/systemd/system/ibrdtnd.service | 12
> rules/dtndht.in| 18 ++
> rules/dtndht.make | 53 +
> rules/ibrcommon.in | 39 +
> rules/ibrcommon.make | 56 ++
> rules/ibrdtn-tools.in | 44 +++
> rules/ibrdtn-tools.make| 68 ++
> rules/ibrdtn.in| 35
> rules/ibrdtn.make | 55 ++
> rules/ibrdtnd.in | 78
> ++
> rules/ibrdtnd.make | 73
> 11 files changed, 531 insertions(+)
> create mode 100644 projectroot/lib/systemd/system/ibrdtnd.service
> create mode 100644 rules/dtndht.in
> create mode 100644 rules/dtndht.make
> create mode 100644 rules/ibrcommon.in
> create mode 100644 rules/ibrcommon.make
> create mode 100644 rules/ibrdtn-tools.in
> create mode 100644 rules/ibrdtn-tools.make
> create mode 100644 rules/ibrdtn.in
> create mode 100644 rules/ibrdtn.make
> create mode 100644 rules/ibrdtnd.in
> create mode 100644 rules/ibrdtnd.make
>
> diff --git a/projectroot/lib/systemd/system/ibrdtnd.service
> b/projectroot/lib/systemd/system/ibrdtnd.service
> new file mode 100644
> index 000..f5ba5cd
> --- /dev/null
> +++ b/projectroot/lib/systemd/system/ibrdtnd.service
> @@ -0,0 +1,12 @@
> +[Unit]
> +Description=IBR-DTN Bundle Protocol daemon
> +Requires=network.target
> +
> +[Service]
> +ExecStartPre=/bin/mkdir -p /etc/ibrdtn/bpsec /etc/ibrdtn/certs
> +ExecStartPre=/bin/chown root:root -R /etc/ibrdtn/bpsec /etc/ibrdtn/certs
The rootfs may be read-only. These directories should be created in the
targetinstall stage.
> +ExecStart=/usr/sbin/dtnd -D -c /etc/ibrdtnd.conf
> +Restart=always
> +
> +[Install]
> +WantedBy=multi-user.target
> diff --git a/rules/dtndht.in b/rules/dtndht.in
> new file mode 100644
> index 000..72824b5
> --- /dev/null
> +++ b/rules/dtndht.in
> @@ -0,0 +1,18 @@
> +## SECTION=networking
> +
> +menuconfig DTNDHT
> + tristate
> + prompt "dtndht"
> + select OPENSSL if DTNDHT_WITH_OPENSSL
tab before 'if'.
> + help
> + DTNDHT is a library providing a fully distributed BitTorrent DHT-based
> + naming service especially for DTN Bundle Protocol EIDs (RFC 5050).
> +
> +if DTNDHT
> + config DTNDHT_WITH_OPENSSL
we don't indent here.
> + bool
> + default y
> + prompt "use OpenSSL instead of built-in crypto"
> +endif
> +
> +# vim: syntax=kconfig
> diff --git a/rules/dtndht.make b/rules/dtndht.make
> new file mode 100644
> index 000..6908f50
> --- /dev/null
> +++ b/rules/dtndht.make
> @@ -0,0 +1,53 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2016 by Roland Hieber
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_DTNDHT) += dtndht
> +
> +#
> +# Paths and names
> +#
> +DTNDHT_VERSION := 0.2.3
> +DTNDHT_MD5 := 37c33910ac7e760aad4db81724aeb4fb
> +DTNDHT := dtndht-$(DTNDHT_VERSION)
> +DTNDHT_SUFFIX := tar.gz
> +DTNDHT_URL :=
>