summaryrefslogtreecommitdiffstats
path: root/main/apcupsd/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-10-26 13:56:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-10-26 13:56:44 +0000
commit891dd883d12e1b22e0abb8a0163fc08584203159 (patch)
tree3bf4ccb1ca1de24e0348e00ef4ef48512e8d94ea /main/apcupsd/APKBUILD
parentb135457ff0ba0eda52c9808f767a2a30013cc9ac (diff)
downloadaports-891dd883d12e1b22e0abb8a0163fc08584203159.tar.bz2
aports-891dd883d12e1b22e0abb8a0163fc08584203159.tar.xz
main/apcupsd: moved from testing
Diffstat (limited to 'main/apcupsd/APKBUILD')
-rw-r--r--main/apcupsd/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/main/apcupsd/APKBUILD b/main/apcupsd/APKBUILD
new file mode 100644
index 000000000..fcaef323e
--- /dev/null
+++ b/main/apcupsd/APKBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+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"