summaryrefslogtreecommitdiff
path: root/repo/smartmontools/smartmontools.xibuild
blob: 21583a622c9ef31b7d58cc0e5a40dd56533cf24b (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
#!/bin/sh

NAME="smartmontools"
DESC="Control and monitor S.M.A.R.T. enabled hard drives"

MAKEDEPS="linux-headers"

PKG_VER=7.3
SOURCE="https://downloads.sourceforge.net/sourceforge/smartmontools/smartmontools-$PKG_VER.tar.gz"

ADDITIONAL="
smartd.confd
smartd.initd
"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$PKG_DEST"/ install

	install -Dm755 "$BUILD_ROOT"/smartd.initd "$PKG_DEST"/etc/init.d/smartd
	install -Dm644 "$BUILD_ROOT"/smartd.confd "$PKG_DEST"/etc/conf.d/smartd
}