### this file is sourced not run
PKGVER=6.5
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=smartmontools-$PKGVER.tar.gz
MD5SUM=093aeec3f8f39fa9a37593c4012d3156
SRC_URL=http://downloads.sourceforge.net/smartmontools/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="smartmontools: smartmontools $PKGVER (Harddisk SMART monitoring)  
smartmontools:  
smartmontools: The smartmontools package contains two utility programs 
smartmontools: (smartctl and smartd) to control and monitor storage systems 
smartmontools: using the Self-Monitoring, Analysis and Reporting Technology 
smartmontools: System (SMART) built into most modern ATA and SCSI harddisks. 
smartmontools: In many cases, these utilities will provide advanced warning of 
smartmontools: disk degradation and failure.  
smartmontools: 
smartmontools: 
smartmontools:
"

### default pkg_download
### default pkg_prepare
### package
pkg_package() {
	cp $CHROOT_DIR/tmp/pkg/95-smartd etc/init.d # use our own init script
}

### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --enable-sample --with-initscriptdir=/etc/init.d"
	pkg_build_autoconf && 
	pkg_build_slackdesc &&
	rm -f /etc/init.d/smartd.sample
}


