aboutsummaryrefslogtreecommitdiffstats
path: root/unstable/apcupsd/APKBUILD
blob: 4adc8c0966760da7c2ecb42ae47234eff341d30a (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
pkgname=apcupsd
pkgver=3.14.7
pkgrel=0
pkgdesc="A Daemon to control APC UPSes"
subpackages="$pkgname-doc"
url="http://www.apcupsd.org"
license="GPL-2"
depends="util-linux-ng"
makedepends=
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	apcupsd.initd
	apcupsd-alpine.patch
	"

build() {
	cd "$srcdir/$pkgname-$pkgver"
	patch -p1 < ../apcupsd-alpine.patch || return 1

	ac_cv_path_SHUTDOWN="/sbin/poweroff" \
	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--enable-usb
	make || return 1
	make DESTDIR=$pkgdir install
	install -D -m755 "$srcdir"/apcupsd.initd "$pkgdir"/etc/init.d/apcupsd
}

md5sums="bb2f8e4fc6b2f5d7b3e236eb57b81640  apcupsd-3.14.7.tar.gz
0798cd407de6f199d4c267036ec54c5b  apcupsd.initd
08d9cc703cdd4275d342882deed1d719  apcupsd-alpine.patch"