Package-Name: smartmontools
Gentoo-Package: sys-apps/smartmontools
Homepage: http://smartmontools.sourceforge.net/
Source: sourceforge:///smartmontools/smartmontools-(\d+(.\d+)+)(-(\d+))?.tar.gz e:$1.($4?".$4":"")
Zap-Before-Install: 1
Repack:
	tar xzvfp "$(SOURCE)"
	test -d smartmontools-"$(VERSION)" || mv smartmontools-* smartmontools-"$(VERSION)"
Compile:
	cp -pf CHANGELOG COPYING README TODO WARNINGS "$(PREFIX)/"
	# FIXME: move this to the common Makefile once --mandir becomes common
	$(MAKE) -f ../Makefile configure CONFIGURE_OPTS="--mandir='$(PREFIX)'/man --enable-sample"
	$(MAKE)
	$(MAKE) install
	rm -rf "$(PREFIX)/doc"
	mv "$(PREFIX)/share/doc/smartmontools-$(VERSION)" "$(PREFIX)/doc"
	rm -rf "$(PREFIX)/share/doc"
	rmdir "$(PREFIX)/share"
Install:
	$(MAKE) instsbin SBIN="smartctl smartd"
	$(MAKE) instetc ETC=smartd.conf
	$(MAKE) instman SECTION=5 MAN=smartd.conf
	$(MAKE) instman SECTION=8 MAN="smartctl smartd"

-/etc/smartd.conf
/etc/smartd.conf
/pkg/smartmontools/
/usr/man/man5/smartd.conf.5.gz
/usr/man/man8/smartctl.8.gz
/usr/man/man8/smartd.8.gz
/usr/sbin/smartctl
/usr/sbin/smartd
