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

# source: james
TARBALL=smartmontools-20180518.tar.gz
MD5SUM=af86b7eef0ae7aa81488cf66f346e991
#SRC_URL=http://downloads.sourceforge.net/smartmontools/$TARBALL
SRC_URL=http://distro.ibiblio.org/fatdog/source/710/$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() {
	### from git only
	cd /tmp/smartmontools* &&
	./autogen.sh &&
	###
	CONFFLAGS="$CONFFLAGS --enable-sample --with-initscriptdir=/etc/init.d"
	pkg_build_autoconf && 
	pkg_build_slackdesc &&
	rm -f /etc/init.d/smartd.sample
}


