summaryrefslogtreecommitdiffstats
path: root/main/smartmontools/APKBUILD
blob: f5c80509b52dcad384dfd599eae6ba6d9ecde831 (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.4
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="linux-headers"
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="56812c8312fd123ed40ef65afde1049e  smartmontools-6.4.tar.gz
b646176ec1b5b1eb7175b39cbef1be2f  smartd.initd
371cdb7cc9dc924b6d12224d66b193c6  smartd.confd"
sha256sums="eab75600c1eda9c34b13097db71138ab376f3dad8a6a4667fb4d1d081feb7a85  smartmontools-6.4.tar.gz
a4d1974318cf2d12c702f6a6db34a35373139c409ca6b796ce3370d65025a4eb  smartd.initd
714cc1b253e1f59b884be89693757fec91ca878c62f37451a49ef6bb72263e85  smartd.confd"
sha512sums="366cd55ec668da1ca8a3d9ba79d5bee6e0c59032936b7f2f161f8fbb1c9f869c505d715cc10562b6241f808bb8b534feaf9d9fd752f6cb1593ee893611742adc  smartmontools-6.4.tar.gz
61cae548fc9f3a9fbea20d684502d3816e7b0b60fcf533ae4e1ab850725c208eb6ba5012ae154a46f0b7bb7285a9e63cbdecafed8db7fd63fda0ba59081260cc  smartd.initd
ff45462944f01c0e7cac99443078b253dcbaed4f99ffab85052b12361d9eec4beec81cab334fbede9148b3dd503d5205add32ef4327a788f02a8b1e37f460437  smartd.confd"