blob: fd8d1a5f5bab96b06569338d1aabd1df8188e317 (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# Maintainer: Florian Bruhin (The Compiler) <archlinux.org@the-compiler.org>
# Contributor: Maxime Gauduin <alucryd@archlinux.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-git
pkgver=2.8.0.rc1.r39.g88acc3578
pkgrel=1
pkgdesc='A collection of programs which provide a common interface for monitoring and administering UPS, PDU and SCD hardware'
arch=(x86_64)
url=https://networkupstools.org/
license=(
GPL2
GPL3
)
depends=(
gcc-libs
glibc
libtool
libusb-compat
neon
net-snmp
openssl
)
makedepends=(
asciidoc
gd
git
python
)
optdepends=('gd: CGI support')
provides=(network-ups-tools nut)
conflicts=(network-ups-tools nut)
options=(!makeflags)
install=nut.install
backup=(
etc/nut/hosts.conf
etc/nut/nut.conf
etc/nut/ups.conf
etc/nut/upsd.conf
etc/nut/upsd.users
etc/nut/upsmon.conf
etc/nut/upssched.conf
etc/nut/upsstats.html
etc/nut/upsstats-single.html
)
source=(
git+https://github.com/networkupstools/nut.git
nut.sysusers
nut.tmpfiles
)
sha256sums=('SKIP'
'3001e24969545136361670c5d615684d2b37830525e090c2ab3bcfa90d90e4ac'
'c924ccaae9ec75ee7795c872e1708d10201402642a6d5de2304cc644744bbcc5')
pkgver() {
cd nut
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd nut
./autogen.sh
}
build() {
cd nut
./configure \
--prefix=/usr \
--datadir=/usr/share/nut \
--sbindir=/usr/bin \
--sysconfdir=/etc/nut \
--disable-static \
--with-user=nut \
--with-group=nut \
--with-altpidpath=/run/nut \
--with-cgipath=/usr/share/nut/cgi \
--with-drvpath=/usr/lib/nut \
--with-htmlpath=/usr/share/nut/html \
--with-pidpath=/run/nut \
--with-statepath=/var/lib/nut \
--with-systemdsystemunitdir=/usr/lib/systemd/system \
--with-udev-dir=/usr/lib/udev \
--with-cgi \
--with-dev \
--with-doc=html-single \
--with-libltdl \
--with-neon \
--with-openssl \
--with-serial \
--with-snmp \
--with-usb \
--without-avahi \
--without-doc \
--without-ipmi \
--without-freeipmi \
--without-powerman \
--without-wrap
make -j1
}
package() {
make DESTDIR="${pkgdir}" -C nut install
find "${pkgdir}"/etc/nut -name *.sample -exec rename '.sample' '' {} \;
install -Dm 644 nut.sysusers "${pkgdir}"/usr/lib/sysusers.d/nut.conf
install -Dm 644 nut.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/nut.conf
}
# vim: ts=2 sw=2 et:
|