diff options
Diffstat (limited to 'repo/smartmontools/smartmontools.xibuild')
-rw-r--r-- | repo/smartmontools/smartmontools.xibuild | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/repo/smartmontools/smartmontools.xibuild b/repo/smartmontools/smartmontools.xibuild new file mode 100644 index 0000000..21583a6 --- /dev/null +++ b/repo/smartmontools/smartmontools.xibuild @@ -0,0 +1,33 @@ +#!/bin/sh + +NAME="smartmontools" +DESC="Control and monitor S.M.A.R.T. enabled hard drives" + +MAKEDEPS="linux-headers" + +PKG_VER=7.3 +SOURCE="https://downloads.sourceforge.net/sourceforge/smartmontools/smartmontools-$PKG_VER.tar.gz" + +ADDITIONAL=" +smartd.confd +smartd.initd +" + +build() { + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc + make +} + +check() { + make check +} + +package() { + make DESTDIR="$PKG_DEST"/ install + + install -Dm755 "$BUILD_ROOT"/smartd.initd "$PKG_DEST"/etc/init.d/smartd + install -Dm644 "$BUILD_ROOT"/smartd.confd "$PKG_DEST"/etc/conf.d/smartd +} + |