blob: 1a422ff117053a9e07794cf3c6d8a1a30e5cad07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Maintainer: Florian Bruhin (The Compiler) <archlinux.org@the-compiler.org>
# Contributor: Alex Reznichenko <sa5gap@yandex.ru>
# Contributor: Roman Kyrylych <roman@archlinux.org>
# Contributor: Giuseppe Lucarelli <luk@rebelsoft.org>
# Contributor: Dan Ziemba <zman0900@gmail.com>
pkgname=network-ups-tools
pkgver=2.7.2
pkgrel=1
pkgdesc="NUT is a collection of programs for monitoring and administering UPS hardware"
arch=('i686' 'x86_64')
url="http://www.networkupstools.org/"
license=('GPL2')
depends=('openssl' 'libusb-compat' 'libltdl' 'neon' 'net-snmp')
makedepends=('asciidoc')
backup=(etc/ups/{ups.conf,upsd.conf,upsd.users,upsmon.conf,upssched.conf})
install=nut.install
source=("http://www.networkupstools.org/source/2.7/nut-${pkgver}.tar.gz"
"http://www.networkupstools.org/source/2.7/nut-${pkgver}.tar.gz.sig")
options=('!emptydirs' '!libtool')
sha256sums=('4d5365359b059d96dfcb77458f361a114d26c84f1297ffcd0c6c166f7200376d'
'SKIP')
build() {
cd "$srcdir/nut-$pkgver"
./configure \
--without-wrap \
--with-user=ups \
--with-group=nut \
--disable-static \
--with-serial \
--with-usb \
--with-doc=html-single \
--without-avahi \
--with-snmp \
--with-neon \
--without-powerman \
--without-ipmi \
--without-freeipmi \
--with-libltdl \
--without-cgi \
--prefix=/usr \
--with-udev-dir=/usr/lib/udev \
--with-systemdsystemunitdir=/lib/systemd/system \
--datadir=/usr/share/ups \
--sbindir=/usr/bin \
--with-drvpath=/usr/bin \
--sysconfdir=/etc/ups \
--with-openssl
make
}
package() {
cd "$srcdir/nut-$pkgver"
make DESTDIR="$pkgdir" install
install -D -m644 "conf/ups.conf.sample" "$pkgdir/etc/ups/ups.conf"
install -D -m640 "conf/upsd.conf.sample" "$pkgdir/etc/ups/upsd.conf"
install -D -m640 "conf/upsd.users.sample" "$pkgdir/etc/ups/upsd.users"
install -D -m640 "conf/upsmon.conf.sample" "$pkgdir/etc/ups/upsmon.conf"
install -D -m644 "conf/upssched.conf.sample" "$pkgdir/etc/ups/upssched.conf"
install -d -v -m755 "$pkgdir/usr/share/doc/network-ups-tools/images/cables"
install -v -m 644 docs/*.html "$pkgdir/usr/share/doc/network-ups-tools"
install -v -m 644 docs/images/*.png "$pkgdir/usr/share/doc/network-ups-tools/images"
install -v -m 644 docs/images/cables/*.{png,jpg} "$pkgdir/usr/share/doc/network-ups-tools/images/cables"
}
|