#!/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 }