diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-21 13:07:54 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-21 13:07:54 +0000 |
commit | 40e51aee8ddab6e2ee6e8ac84ca1d05b0b33d032 (patch) | |
tree | 1d60758cf90200179cd63e245fc936b2d6973f70 /testing/apcupsd/APKBUILD | |
parent | 61d22bd6b6b697d32be0447f887d2075c58f5375 (diff) | |
download | aports-40e51aee8ddab6e2ee6e8ac84ca1d05b0b33d032.tar.bz2 aports-40e51aee8ddab6e2ee6e8ac84ca1d05b0b33d032.tar.xz |
testing/apcupds: added init.d script
Diffstat (limited to 'testing/apcupsd/APKBUILD')
-rw-r--r-- | testing/apcupsd/APKBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/apcupsd/APKBUILD b/testing/apcupsd/APKBUILD new file mode 100644 index 0000000000..03c280f8a2 --- /dev/null +++ b/testing/apcupsd/APKBUILD @@ -0,0 +1,26 @@ +pkgname=apcupsd +pkgver=3.14.5 +pkgrel=0 +pkgdesc="A Daemon to control APC UPSes" +subpackages="$pkgname-doc" +url="http://www.apcupsd.org" +license="GPL-2" +depends="uclibc util-linux-ng" +makedepends="g++" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz + apcupsd.initd + " + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./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="4ac73ec91d8ab56f3fac894e172567c4 apcupsd-3.14.5.tar.gz +d276b567fd8dfb9e2a74e533b25de031 apcupsd.initd" |