Merge pull request #979 from awiouy/nmon

system-tools: add nmon
This commit is contained in:
Christian Hewitt 2016-11-26 08:04:12 +04:00 committed by GitHub
commit c0859a6027
3 changed files with 61 additions and 5 deletions

View File

@ -0,0 +1,49 @@
################################################################################
# This file is part of LibreELEC - https://libreelec.tv
# Copyright (C) 2016 Team LibreELEC
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibreELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME="nmon"
PKG_VERSION="411b08f"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/axibase/nmon"
PKG_URL="https://github.com/axibase/nmon/archive/$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain netbsd-curses"
PKG_SECTION="tools"
PKG_SHORTDESC="Systems administrator, tuner, benchmark tool gives you a huge amount of important performance information in one go"
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
make_target() {
case $ARCH in
x86_64)
arch="X86"
;;
*)
arch="arm"
;;
esac
CFLAGS="$CFLAGS -g -O3 -Wall -D JFS -D GETUSER -D LARGEMEM"
LDFLAGS="$LDFLAGS -lncurses -ltermcap -lm -g"
$CC -o nmon lmon*.c $CFLAGS $LDFLAGS -D $arch -D KERNEL_2_6_18
}
makeinstall_target() {
:
}

View File

@ -1,10 +1,13 @@
8.0.102 103
- Add nmon
102
-Add inotify-tools, mc -Add inotify-tools, mc
8.0.101 101
- mrxvt can be started from KODI - mrxvt can be started from KODI
- correct mrxvt terminal type - correct mrxvt terminal type
- make hddtemp work - make hddtemp work
8.0.100 100
- Initial Release - Initial Release

View File

@ -18,7 +18,7 @@
PKG_NAME="system-tools" PKG_NAME="system-tools"
PKG_VERSION="" PKG_VERSION=""
PKG_REV="102" PKG_REV="103"
PKG_ARCH="any" PKG_ARCH="any"
PKG_LICENSE="GPL" PKG_LICENSE="GPL"
PKG_SITE="" PKG_SITE=""
@ -26,7 +26,7 @@ PKG_URL=""
PKG_DEPENDS_TARGET="toolchain" PKG_DEPENDS_TARGET="toolchain"
PKG_SECTION="virtual" PKG_SECTION="virtual"
PKG_SHORTDESC="A bundle of system tools and programs" PKG_SHORTDESC="A bundle of system tools and programs"
PKG_LONGDESC="This bundle currently includes autossh, diffutils, dtach, efibootmgr, evtest, fdupes, file, getscancodes, hddtemp, hd-idle, hid_mapper, i2c-tools, inotify-tools, jq, lm_sensors, lshw, mc, mrxvt, mtpfs, p7zip, patch, pv, screen, strace, unrar and usb-modeswitch." PKG_LONGDESC="This bundle currently includes autossh, diffutils, dtach, efibootmgr, evtest, fdupes, file, getscancodes, hddtemp, hd-idle, hid_mapper, i2c-tools, inotify-tools, jq, lm_sensors, lshw, mc, mrxvt, mtpfs, nmon, p7zip, patch, pv, screen, strace, unrar and usb-modeswitch."
PKG_IS_ADDON="yes" PKG_IS_ADDON="yes"
PKG_ADDON_NAME="System Tools" PKG_ADDON_NAME="System Tools"
@ -55,6 +55,7 @@ PKG_DEPENDS_TARGET="toolchain \
mc \ mc \
mrxvt \ mrxvt \
mtpfs \ mtpfs \
nmon \
p7zip \ p7zip \
patch \ patch \
pv \ pv \
@ -135,6 +136,9 @@ addon() {
# mtpfs # mtpfs
cp -P $(get_build_dir mtpfs)/.$TARGET_NAME/mtpfs $ADDON_BUILD/$PKG_ADDON_ID/bin/ cp -P $(get_build_dir mtpfs)/.$TARGET_NAME/mtpfs $ADDON_BUILD/$PKG_ADDON_ID/bin/
# nmon
cp -P $(get_build_dir nmon)/nmon $ADDON_BUILD/$PKG_ADDON_ID/bin/
# p7zip # p7zip
cp -P $(get_build_dir p7zip)/bin/7z.so $ADDON_BUILD/$PKG_ADDON_ID/bin cp -P $(get_build_dir p7zip)/bin/7z.so $ADDON_BUILD/$PKG_ADDON_ID/bin
cp -PR $(get_build_dir p7zip)/bin/Codecs $ADDON_BUILD/$PKG_ADDON_ID/bin cp -PR $(get_build_dir p7zip)/bin/Codecs $ADDON_BUILD/$PKG_ADDON_ID/bin