diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-01-05 15:39:03 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-01-05 15:39:11 +0000 |
commit | 22f1a76eb68730d531917457d71a7f356bb7c355 (patch) | |
tree | 64d6be3aeaac4db65a22abbb82d5f231bdace09c | |
parent | 75becdeef9900f0f77751201143f861b4c3cb65e (diff) | |
download | aports-22f1a76eb68730d531917457d71a7f356bb7c355.tar.bz2 aports-22f1a76eb68730d531917457d71a7f356bb7c355.tar.xz |
main/apcupsd: install web interface
-rw-r--r-- | main/apcupsd/APKBUILD | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/main/apcupsd/APKBUILD b/main/apcupsd/APKBUILD index 79236ce8ba..f15aa5bbb8 100644 --- a/main/apcupsd/APKBUILD +++ b/main/apcupsd/APKBUILD @@ -1,14 +1,14 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=apcupsd pkgver=3.14.13 -pkgrel=1 +pkgrel=2 pkgdesc="A Daemon to control APC UPSes" -subpackages="$pkgname-doc" +subpackages="$pkgname-doc $pkgname-webif" url="http://www.apcupsd.org" arch="all" license="GPL2" depends="util-linux" -makedepends="net-snmp-dev man linux-headers" +makedepends="net-snmp-dev man linux-headers gd-dev" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz apcupsd.initd apcupsd-alpine.patch @@ -35,6 +35,7 @@ build() { --mandir=/usr/share/man \ --enable-usb \ --enable-snmp \ + --enable-cgi \ || return 1 make || return 1 } @@ -45,6 +46,12 @@ package() { install -D -m755 "$srcdir"/apcupsd.initd "$pkgdir"/etc/init.d/apcupsd } +webif() { + cd "$_builddir" + mkdir -p "$subpkgdir"/usr/share/webapps/apcupsd + mv "$pkgdir"/etc/apcupsd/*.cgi "$subpkgdir"/usr/share/webapps/apcupsd +} + md5sums="c291d9d3923b4d9c0e600b755ad4f489 apcupsd-3.14.13.tar.gz 72f6a0392cef1120b88233c5a7266bd0 apcupsd.initd e22bd5b8361faca0f4d1a1a508c7a906 apcupsd-alpine.patch" |