mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
36 lines
1.3 KiB
Bash
36 lines
1.3 KiB
Bash
# $Id: PKGBUILD 2187 2009-09-10 14:31:45Z spupykin $
|
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
# Maintainer: Todd Musall <tmusall@comcast.net>
|
|
|
|
pkgname=apcupsd
|
|
pkgver=3.14.7
|
|
pkgrel=1
|
|
pkgdesc="Apcupsd can be used for power mangement and controlling most of APC's UPS models on Unix and Windows machines."
|
|
arch=(i686 x86_64)
|
|
url="http://www.apcupsd.org"
|
|
license=('GPL')
|
|
depends=('gcc-libs' 'gd' 'gconf')
|
|
makedepends=('pkgconfig')
|
|
backup=(etc/apcupsd/apcupsd.conf etc/apcupsd/hosts.conf \
|
|
etc/apcupsd/multimon.conf)
|
|
source=(http://downloads.sourceforge.net/apcupsd/$pkgname-$pkgver.tar.gz \
|
|
apcupsd)
|
|
md5sums=('bb2f8e4fc6b2f5d7b3e236eb57b81640'
|
|
'5eae3c4d921eeb81798a0250fe3dd111')
|
|
|
|
build() {
|
|
cd $startdir/src/$pkgname-$pkgver
|
|
./configure --prefix=/usr --libexecdir=/usr/lib/$pkgname \
|
|
--enable-cgi --enable-usb --enable-net \
|
|
--with-upstype=usb --with-upscable=usb \
|
|
--with-serial-dev=/dev/usb/hid/hiddev[0-9] \
|
|
--enable-pthreads --enable-gapcmon
|
|
|
|
make || return 1
|
|
make DESTDIR=$startdir/pkg install || return 1
|
|
|
|
install -D -m755 ../apcupsd $startdir/pkg/etc/rc.d/apcupsd && \
|
|
chmod 755 $startdir/pkg/sbin/* && \
|
|
mkdir -p $pkgdir/usr/lib/$pkgname/cgi-bin && \
|
|
mv $pkgdir/etc/apcupsd/*.cgi $pkgdir/usr/lib/$pkgname/cgi-bin
|
|
}
|