aboutsummaryrefslogtreecommitdiffstats
path: root/main/irqbalance/APKBUILD
blob: cb7f1df6bcf5602b62c78c5378245c009e489e4d (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
44
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=irqbalance
pkgver=1.0.5
pkgrel=0
pkgdesc="Daemon that distributes interrupts over the processors"
url="http://code.google.com/p/irqbalance/"
arch="all"
license="GPL"
depends=
depends_dev=
makedepends="$depends_dev glib-dev"
install=
subpackages="$pkgname-doc"
source="http://irqbalance.googlecode.com/files/$pkgname-$pkgver.tar.gz
	irqbalance.confd
	irqbalance.initd"


_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	return 0
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

md5sums="b6403fa067c96adce448a48c9993654d  irqbalance-1.0.5.tar.gz
731fa9a46bc4fa380604bfb76d96d1ed  irqbalance.confd
25fb4cee9e7b6fc243c10e82c43d0d8d  irqbalance.initd"