Merge pull request #5846 from chewitt/sshpass

sshpass: add initial package and include with network-tools bundle
This commit is contained in:
CvH 2021-11-05 20:46:32 +01:00 committed by GitHub
commit 3488d818c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 2 deletions

View File

@ -3,7 +3,7 @@
PKG_NAME="network-tools" PKG_NAME="network-tools"
PKG_VERSION="1.0" PKG_VERSION="1.0"
PKG_REV="112" PKG_REV="113"
PKG_ARCH="any" PKG_ARCH="any"
PKG_LICENSE="GPL" PKG_LICENSE="GPL"
PKG_SITE="https://libreelec.tv" PKG_SITE="https://libreelec.tv"
@ -11,7 +11,7 @@ PKG_URL=""
PKG_DEPENDS_TARGET="toolchain" PKG_DEPENDS_TARGET="toolchain"
PKG_SECTION="virtual" PKG_SECTION="virtual"
PKG_SHORTDESC="A bundle of network tools and programs" PKG_SHORTDESC="A bundle of network tools and programs"
PKG_LONGDESC="This bundle currently includes bwm-ng, iftop, iperf, irssi, lftp, ncftp, ngrep, nmap, rar2fs, rsync, sshfs, tcpdump, udpxy and wireless_tools." PKG_LONGDESC="This bundle currently includes bwm-ng, iftop, iperf, irssi, lftp, ncftp, ngrep, nmap, rar2fs, rsync, sshfs, sshpass, tcpdump, udpxy and wireless_tools."
PKG_IS_ADDON="yes" PKG_IS_ADDON="yes"
PKG_ADDON_NAME="Network Tools" PKG_ADDON_NAME="Network Tools"
@ -29,6 +29,7 @@ PKG_DEPENDS_TARGET="toolchain \
rar2fs \ rar2fs \
rsync \ rsync \
sshfs \ sshfs \
sshpass \
tcpdump \ tcpdump \
udpxy \ udpxy \
wireless_tools" wireless_tools"
@ -74,6 +75,9 @@ addon() {
# sshfs # sshfs
cp -P $(get_install_dir sshfs)/usr/bin/sshfs ${ADDON_BUILD}/${PKG_ADDON_ID}/bin cp -P $(get_install_dir sshfs)/usr/bin/sshfs ${ADDON_BUILD}/${PKG_ADDON_ID}/bin
# sshpass
cp -P $(get_install_dir sshpass)/usr/bin/sshpass ${ADDON_BUILD}/${PKG_ADDON_ID}/bin
# tcpdump # tcpdump
cp -P $(get_install_dir tcpdump)/usr/bin/tcpdump ${ADDON_BUILD}/${PKG_ADDON_ID}/bin cp -P $(get_install_dir tcpdump)/usr/bin/tcpdump ${ADDON_BUILD}/${PKG_ADDON_ID}/bin

View File

@ -0,0 +1,23 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="sshpass"
PKG_VERSION="1.09"
PKG_SHA256="71746e5e057ffe9b00b44ac40453bf47091930cba96bbea8dc48717dedc49fb7"
PKG_LICENSE="GPLv2"
PKG_SITE="https://sourceforge.net/p/sshpass"
PKG_URL="https://downloads.sourceforge.net/sshpass/sshpass-${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="sshpass: a tool for non-interactive ssh password auth"
pre_configure_target(){
if [ "${ARCH}" != "x86_64" ]; then
export ac_cv_func_malloc_0_nonnull=yes
export ac_cv_func_realloc_0_nonnull=yes
fi
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/bin
cp sshpass ${INSTALL}/usr/bin
}