aboutsummaryrefslogtreecommitdiffstats
path: root/testing/smartmontools/APKBUILD
blob: b31e064fb6382e0cdeaded6a9a08796ba5cbd25f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=smartmontools
pkgver=5.39.1
pkgrel=0
pkgdesc="Control and monitor S.M.A.R.T. enabled ATA and SCSI Hard Drives."
url="http://smartmontools.sourceforge.net"
arch="all"
license="GPL"
depends=
makedepends=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
	smartd.initd
	smartd.confd
	"

build() { 
	cd "$srcdir"/$pkgname-$pkgver
	./configure --prefix=/usr --sysconfdir=/etc
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir"/ install
	rm -r "$pkgdir"/etc/rc.d
	install -Dm755 ../smartd.initd "$pkgdir"/etc/init.d/smartd
	install -Dm644 ../smartd.confd "$pkgdir"/etc/conf.d/smartd
}
md5sums="f6f7380ae45587161c0adae8862110e9  smartmontools-5.39.1.tar.gz
64e6fc908146b885aa3f88796edf72f3  smartd.initd
371cdb7cc9dc924b6d12224d66b193c6  smartd.confd"