aboutsummaryrefslogtreecommitdiffstats
path: root/main/smartmontools/APKBUILD
blob: 58671e78d890dcb17ff1e72e7b1edacd61a20ad9 (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
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=smartmontools
pkgver=6.2
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 \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		|| return 1
	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="d44f84081a12cef79cd17f78044351fc  smartmontools-6.2.tar.gz
b33edf355a83149119d768f0d75787c8  smartd.initd
371cdb7cc9dc924b6d12224d66b193c6  smartd.confd"
sha256sums="486f660579bb0fb4f6b927ded7531cb1f99685c666397377761c5b04dd96065b  smartmontools-6.2.tar.gz
d28f4d15d56e14cc78abc7cd04429753bab6c535b89502019757ba937aaee4ae  smartd.initd
714cc1b253e1f59b884be89693757fec91ca878c62f37451a49ef6bb72263e85  smartd.confd"
sha512sums="b7f335faf1b1cdbb56c0ad637ca39ea8af399df2dabef08bcac5756d1daad12cc2ed26cbbf5ace0f646ce1fa863cfee17c9559eadf143fcb1b729c3f815e6bf3  smartmontools-6.2.tar.gz
347c3a22b17444eb7c7c7c56764b5c6110c72ed10235c9af61fea24e02528a7999f15cc33fbc37e4d80fe7b161129a514507f0be2a92d8ff38364e4f35068f30  smartd.initd
ff45462944f01c0e7cac99443078b253dcbaed4f99ffab85052b12361d9eec4beec81cab334fbede9148b3dd503d5205add32ef4327a788f02a8b1e37f460437  smartd.confd"