diff options
author | J0WI <J0WI@users.noreply.github.com> | 2021-02-19 23:03:10 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2021-02-19 23:48:02 +0000 |
commit | 17c662d69ebf24fbff2fa065d7544863ada956a5 (patch) | |
tree | f91854c445726b6a47b13b48823525457105d880 /testing/nut/APKBUILD | |
parent | 97668e11d27b8ca2633ddd3774518145ab40cba4 (diff) |
testing/nut: modernize
Diffstat (limited to 'testing/nut/APKBUILD')
-rw-r--r-- | testing/nut/APKBUILD | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/testing/nut/APKBUILD b/testing/nut/APKBUILD index 40f6b5c0ccc..de39b19f908 100644 --- a/testing/nut/APKBUILD +++ b/testing/nut/APKBUILD @@ -3,23 +3,22 @@ # Maintainer: Kozak Ivan <kozak-iv@yandex.ru> pkgname=nut pkgver=2.7.4 -pkgrel=7 +pkgrel=8 pkgdesc="Network UPS tools" -url="http://www.networkupstools.org" +url="https://networkupstools.org/" arch="all" -license="GPL" -depends_dev="openssl-dev libusb-compat-dev net-snmp-dev neon-dev" +license="GPL-2.0-or-later" +depends_dev="openssl-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" -source="http://www.networkupstools.org/source/2.7/$pkgname-$pkgver.tar.gz +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 " -builddir="$srcdir/$pkgname-$pkgver" prepare() { default_prepare @@ -27,7 +26,6 @@ prepare() { } build() { - cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -52,6 +50,8 @@ build() { --sysconfdir=/etc/nut \ --with-statepath=/var/run/nut \ --with-altpidpath=/var/run/nut \ + --with-udev-dir=/usr/lib/udev/rules.d \ + --with-nss \ --with-openssl make } @@ -64,8 +64,12 @@ 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 |