diff --git a/packages/addons/addon-depends/system-tools-depends/smartmontools/package.mk b/packages/addons/addon-depends/system-tools-depends/smartmontools/package.mk new file mode 100644 index 0000000000..10a91ff8bb --- /dev/null +++ b/packages/addons/addon-depends/system-tools-depends/smartmontools/package.mk @@ -0,0 +1,40 @@ +################################################################################ +# This file is part of LibreELEC - https://libreelec.tv +# Copyright (C) 2018-present 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 . +################################################################################ + +PKG_NAME="smartmontools" +PKG_VERSION="6.6" +PKG_SHA256="51f43d0fb064fccaf823bbe68cf0d317d0895ff895aa353b3339a3b316a53054" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="https://www.smartmontools.org" +PKG_URL="https://github.com/smartmontools/smartmontools/releases/download/RELEASE_${PKG_VERSION//./_}/smartmontools-$PKG_VERSION.tar.gz" +PKG_DEPENDS_TARGET="toolchain" +PKG_SECTION="tools" +PKG_LONGDESC="Control and monitor storage systems using S.M.A.R.T." + +PKG_CONFIGURE_OPTS_TARGET="--prefix=/usr \ + --without-initscriptdir \ + --without-nvme-devicescan \ + --without-systemdenvfile \ + --without-systemdsystemunitdir \ + --without-systemdenvfile \ + --without-systemdsystemunitdir" + +makeinstall_target() { + : +} diff --git a/packages/addons/tools/system-tools/package.mk b/packages/addons/tools/system-tools/package.mk index 235c2d125f..8d83ec6e4a 100644 --- a/packages/addons/tools/system-tools/package.mk +++ b/packages/addons/tools/system-tools/package.mk @@ -61,6 +61,7 @@ PKG_DEPENDS_TARGET="toolchain \ patch \ pv \ screen \ + smartmontools \ strace \ unrar \ usb-modeswitch \ @@ -162,6 +163,9 @@ addon() { # screen cp -P $(get_build_dir screen)/screen $ADDON_BUILD/$PKG_ADDON_ID/bin + # smartmontools + cp -P $(get_build_dir smartmontools)/.$TARGET_NAME/smartctl $ADDON_BUILD/$PKG_ADDON_ID/bin + # strace cp -P $(get_build_dir strace)/.$TARGET_NAME/strace $ADDON_BUILD/$PKG_ADDON_ID/bin