aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nut/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/nut/APKBUILD')
-rw-r--r--testing/nut/APKBUILD88
1 files changed, 0 insertions, 88 deletions
diff --git a/testing/nut/APKBUILD b/testing/nut/APKBUILD
deleted file mode 100644
index 427913b6f49..00000000000
--- a/testing/nut/APKBUILD
+++ /dev/null
@@ -1,88 +0,0 @@
-# Contributor: Valery Kartel <valery.kartel@gmail.com>
-# Contributor: Kozak Ivan <kozak-iv@yandex.ru>
-# Maintainer: Kozak Ivan <kozak-iv@yandex.ru>
-pkgname=nut
-pkgver=2.7.4
-pkgrel=10
-pkgdesc="Network UPS tools"
-url="https://networkupstools.org/"
-arch="all"
-license="GPL-2.0-or-later"
-depends="hidapi eudev udev-init-scripts-openrc"
-# openssl1.1-compat-dev because of net-snmp
-depends_dev="openssl1.1-compat-dev libusb-compat-dev net-snmp-dev neon-dev nss-dev"
-makedepends="$depends_dev libtool autoconf automake"
-pkgusers=$pkgname
-pkggroups=$pkgname
-install="$pkgname.pre-install"
-subpackages="$pkgname-doc $pkgname-dev $pkgname-bash-completion $pkgname-openrc"
-source="https://networkupstools.org/source/2.7/nut-$pkgver.tar.gz
- openssl-1.1.patch
- upsd.initd
- upsmon.initd
- "
-
-prepare() {
- default_prepare
- autoreconf -vif
-}
-
-build() {
- ./configure \
- --build=$CBUILD \
- --host=$CHOST \
- --prefix=/usr \
- --libexecdir=/usr/lib/nut \
- --without-wrap \
- --with-user=$pkgname \
- --with-group=$pkgname \
- --disable-static \
- --with-serial \
- --with-usb \
- --without-avahi \
- --with-snmp \
- --with-neon \
- --without-powerman \
- --without-ipmi \
- --without-freeipmi \
- --with-libltdl \
- --without-cgi \
- --with-drvpath=/usr/lib/nut \
- --datadir=/usr/share/nut \
- --sysconfdir=/etc/nut \
- --with-statepath=/var/run/nut \
- --with-altpidpath=/var/run/nut \
- --with-udev-dir=/lib/udev \
- --with-nss \
- --with-openssl
- make
-}
-
-check() {
- make -C "$builddir" check
-}
-
-package() {
- make -C "$builddir" DESTDIR="$pkgdir" install
- install -Dm755 "$srcdir"/upsd.initd "$pkgdir"/etc/init.d/nut-upsd
- install -Dm755 "$srcdir"/upsmon.initd "$pkgdir"/etc/init.d/nut-upsmon
- install -Dm644 "$builddir"/scripts/logrotate/nutlogd "$pkgdir"/etc/logrotate.d/$pkgname
- install -d -o $pkgname -g $pkgname "$pkgdir"/var/lib/$pkgname
-
- install -D -m644 "$builddir"/scripts/misc/nut.bash_completion \
- "$pkgdir"/usr/share/bash-completion/completions/$pkgname.bash
-
- local file;
- for file in "$pkgdir"/etc/nut/*.sample; do
- chmod 640 $file
- chown root:$pkgname $file
- mv $file ${file%.sample}
- done
-}
-
-sha512sums="
-320c4aff85d8a370c5eff77d33924fdfc3caf6a250620693cdd5bf3336b3a80d8a207488eee841bcf8b72fbad68fda4c074e63b99c56e7886716fc934122d11a nut-2.7.4.tar.gz
-2b6f5df0c7084a0e86474b36d4c567b995c76e2f8fda788a7dffa6d8ecd6b41698ca8376ac228cdbfd805e3406611e7f003e4492d98c74658ed785d7320ab866 openssl-1.1.patch
-5fce1247815e36a0e787f28dfec215077a42b046f6ce35a5ad3cf94479dfc26303d3cf4d5f760d5851ed5273ee398572c36cd354af0645cbebc1f1560414e222 upsd.initd
-32470ae473fc363131787cd57f13d40763898947d56d032790ba7f3a5eaa8038b602f7e395ca44f6c5adce8ee5ec496e30ca0eaadb3c78a38015677aea751e12 upsmon.initd
-"