blob: cf209eb531e4229fcf7616211ceb532cd47d9a6a (
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
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apcupsd
pkgver=3.14.10
pkgrel=2
pkgdesc="A Daemon to control APC UPSes"
subpackages="$pkgname-doc"
url="http://www.apcupsd.org"
arch="all"
license="GPL2"
depends="util-linux"
makedepends="net-snmp-dev man"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
apcupsd.initd
apcupsd-alpine.patch
"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
update_config_sub || return 1
}
build() {
cd "$_builddir"
patch -p1 < ../apcupsd-alpine.patch || return 1
export CHARSET="ISO8859-1"
export LANG="C"
ac_cv_path_SHUTDOWN="/sbin/poweroff" \
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
--enable-usb \
--enable-snmp \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR=$pkgdir install || return 1
install -D -m755 "$srcdir"/apcupsd.initd "$pkgdir"/etc/init.d/apcupsd
}
md5sums="5928822d855c5cf7ac29655e3e0b8c23 apcupsd-3.14.10.tar.gz
0798cd407de6f199d4c267036ec54c5b apcupsd.initd
08d9cc703cdd4275d342882deed1d719 apcupsd-alpine.patch"
sha256sums="0707b5ec9916fbde9e44eb8d18037c8d8f75dfd6aeef51aba5487e189eef2032 apcupsd-3.14.10.tar.gz
535c857c47e5d279fb62d7306e6ddb51461819ea28b53f6a0580769ae5d7e5db apcupsd.initd
ea050879f6181c5f90410ff253efe79901819b4d8967e215a9eb5044e15b0d22 apcupsd-alpine.patch"
sha512sums="f95918bff783cb60fa40b03a532ee7447293b0542f44f2f9ecf36ee028df3aa414f01e2b834a28fc319d88ec2e84c81314cd546b5628554176f2ca47fdc66bbc apcupsd-3.14.10.tar.gz
3792652c947a57b9cf96e775d7f9ce1ba5c54e123000a167475dfebeebfb6c34a7dcc93944f3cd96e4ff40496671799f2596c4bcdc8ae4fe6e6d4c6617fd0f6d apcupsd.initd
6a27c2e14ee4eb97f70bccdb5132037ab8f87beff6e0215c9081b665f86a7676742eb106e26600472bf3173a91423a7a7b4e3abf7e743be63131217ea97529fb apcupsd-alpine.patch"
|