From 85a1378b8feee6420fab284c96356c1968d87b2e Mon Sep 17 00:00:00 2001 From: Ricardo Martins Date: Mon, 26 Oct 2015 17:58:12 +0000 Subject: [PATCH] dtn: removed obsolete package. --- rules/dtn/default.bash | 80 -------------------------------------- rules/dtn/fs/etc/rc.d/dtnd | 29 -------------- 2 files changed, 109 deletions(-) delete mode 100644 rules/dtn/default.bash delete mode 100644 rules/dtn/fs/etc/rc.d/dtnd diff --git a/rules/dtn/default.bash b/rules/dtn/default.bash deleted file mode 100644 index 63a4a23..0000000 --- a/rules/dtn/default.bash +++ /dev/null @@ -1,80 +0,0 @@ -version=\ -( - '2.9.0' -) - -url=\ -( - "http://downloads.sourceforge.net/dtn/dtn-$version.tgz" -) - -md5=\ -( - 'adfc25b561c1eeda30d9b68a6b088bd8' -) - -maintainer=\ -( - 'Ricardo Martins ' -) - -requires=\ -( - 'db/default' - 'tcl/default' - 'xerces-c/default' - 'oasys/default' -) - -configure() -{ - "../dtn-$version/configure" \ - --prefix="/usr" \ - --sysconfdir="/etc/dtn" \ - --target="$cfg_target_canonical" \ - --host="$cfg_target_canonical" \ - --build="$cfg_host_canonical" \ - --with-oasys="$cfg_dir_toolchain_sysroot/usr" \ - --enable-ecl \ - --without-python \ - --disable-python -} - -build() -{ - $cmd_make -j1 -C servlib && - $cmd_make -j1 -C applib libdtnapi.a && - $cmd_make -j1 -C applib libdtnapi++.a && - $cmd_make -j1 -C applib libdtnapisrv.a && - $cmd_make -j1 -C daemon && - $cmd_make -j1 -C apps -} - -host_install() -{ - cp -a servlib/libdtnserv.a "$cfg_dir_toolchain_sysroot/usr/lib" && - cp -a applib/libdtnapi++.a "$cfg_dir_toolchain_sysroot/usr/lib" && - cp -a applib/libdtnapi++-$version.a "$cfg_dir_toolchain_sysroot/usr/lib" && - cp -a applib/libdtnapi-$version.a "$cfg_dir_toolchain_sysroot/usr/lib" && - cp -a applib/libdtnapi.a "$cfg_dir_toolchain_sysroot/usr/lib" && - cp -a applib/libdtnapisrv.a "$cfg_dir_toolchain_sysroot/usr/lib" && - - mkdir -p "$cfg_dir_toolchain_sysroot/usr/include/dtn" && - cp -a applib/dtn_ipc.h "$cfg_dir_toolchain_sysroot/usr/include/dtn" && - cp -a applib/dtn_errno.h "$cfg_dir_toolchain_sysroot/usr/include/dtn" && - cp -a applib/sdnv-c.h "$cfg_dir_toolchain_sysroot/usr/include/dtn" && - cp -a applib/dtn_api.h "$cfg_dir_toolchain_sysroot/usr/include/dtn" && - cp -a applib/dtn_types.h "$cfg_dir_toolchain_sysroot/usr/include/dtn" -} - -target_install() -{ - $cmd_target_strip apps/dtnsend/dtnsend -o "$cfg_dir_rootfs/usr/bin/dtnsend" && - $cmd_target_strip apps/dtnrecv/dtnrecv -o "$cfg_dir_rootfs/usr/bin/dtnrecv" && - $cmd_target_strip apps/dtncp/dtncp -o "$cfg_dir_rootfs/usr/bin/dtncp" && - $cmd_target_strip apps/dtnping/dtnping -o "$cfg_dir_rootfs/usr/bin/dtnping" && - $cmd_target_strip daemon/dtnd -o "$cfg_dir_rootfs/usr/bin/dtnd" && - $cmd_mkdir "$cfg_dir_rootfs/etc/dtn" "$cfg_dir_rootfs/usr/share/dtn" && - cp servlib/conv_layers/clevent.xsd "$cfg_dir_rootfs/usr/share/dtn" && - tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f - -} diff --git a/rules/dtn/fs/etc/rc.d/dtnd b/rules/dtn/fs/etc/rc.d/dtnd deleted file mode 100644 index 620363f..0000000 --- a/rules/dtn/fs/etc/rc.d/dtnd +++ /dev/null @@ -1,29 +0,0 @@ -# Configuration parameters -# cfg_dtnd_config: DTN Daemon configuration file. -# cfg_dtnd_name: DTN node name. - -start() -{ - export DTN_NODE="$cfg_dtnd_name" - db="/opt/lsts/dtn/var/$DTN_NODE/db" - - if [ -f "$cfg_dtnd_config" ]; then - mkdir -p /opt/lsts/dtn - - if ! [ -d "$db" ]; then - mkdir -p "$db" - /usr/bin/dtnd \ - -c "$cfg_dtnd_config" \ - --init-db - fi - - /usr/bin/dtnd -d \ - -c "$cfg_dtnd_config" \ - -o /opt/lsts/dtn/log.txt - fi -} - -stop() -{ - killall dtnd > /dev/null 2>&1 -}