aboutsummaryrefslogtreecommitdiffstats
path: root/main/apcupsd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-08-14 09:47:58 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-08-14 09:47:58 +0000
commit9d7a94da6bbdce0911f567944f5df407b5e1617b (patch)
treeaea449a1efee85519692fdb92b2627a9eeb4529f /main/apcupsd
parent73cbf1b72f817d729386d4eca4118ffd551f373c (diff)
downloadaports-9d7a94da6bbdce0911f567944f5df407b5e1617b.tar.bz2
aports-9d7a94da6bbdce0911f567944f5df407b5e1617b.tar.xz
main/apcupsd: update config.sub
Diffstat (limited to 'main/apcupsd')
-rw-r--r--main/apcupsd/APKBUILD12
1 files changed, 9 insertions, 3 deletions
diff --git a/main/apcupsd/APKBUILD b/main/apcupsd/APKBUILD
index 31a6d5a1ba..7eb511ca7f 100644
--- a/main/apcupsd/APKBUILD
+++ b/main/apcupsd/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apcupsd
pkgver=3.14.10
-pkgrel=1
+pkgrel=2
pkgdesc="A Daemon to control APC UPSes"
subpackages="$pkgname-doc"
url="http://www.apcupsd.org"
@@ -14,8 +14,14 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
apcupsd-alpine.patch
"
+_builddir="$srcdir/$pkgname-$pkgver"
+prepare() {
+ cd "$_builddir"
+ update_config_sub
+}
+
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$_builddir"
patch -p1 < ../apcupsd-alpine.patch || return 1
export CHARSET="ISO8859-1"
@@ -34,7 +40,7 @@ build() {
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$_builddir"
make DESTDIR=$pkgdir install
install -D -m755 "$srcdir"/apcupsd.initd "$pkgdir"/etc/init.d/apcupsd
}