blob: 011458f9c8c346c12599e9c0c1002f2a462066d3 (
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.12
pkgrel=0
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="08bf201acea6b4dd69cf2fb0eecfd55e apcupsd-3.14.12.tar.gz
0798cd407de6f199d4c267036ec54c5b apcupsd.initd
e22bd5b8361faca0f4d1a1a508c7a906 apcupsd-alpine.patch"
sha256sums="1b4f703cb19cfdf44daf173dc8394cafd30fee0b30a0c75a7d19db622454a440 apcupsd-3.14.12.tar.gz
535c857c47e5d279fb62d7306e6ddb51461819ea28b53f6a0580769ae5d7e5db apcupsd.initd
e2ff324b94e80b701e2cba36226706653829d46535f41b5bd9b2ffd2fb705681 apcupsd-alpine.patch"
sha512sums="2ed409ce4c7c7af667cecf0c73c47315d7516c696383c811945ead720afc146fe2ceda0efef722c3208a1b41a7d4661c9544bc4fe37a36ca4779a5dc1621f3d4 apcupsd-3.14.12.tar.gz
3792652c947a57b9cf96e775d7f9ce1ba5c54e123000a167475dfebeebfb6c34a7dcc93944f3cd96e4ff40496671799f2596c4bcdc8ae4fe6e6d4c6617fd0f6d apcupsd.initd
4f0712519213c4ef14f41eeef681c5498fac7bf42f205de8a855938f8e834d9488d86820d7c883e89d0d305ee287e17e2d321dbbc98ae12f8487bf58aa0d4a6b apcupsd-alpine.patch"
|