diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2019-10-27 12:19:05 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2019-10-27 12:42:50 +0100 |
commit | 34914f7c385b2bab6189993ceb9d3427d38b8b08 (patch) | |
tree | 639d73c20e30dbeaa363c3fa4f294519192d7679 | |
parent | ff85d8d34018c3b66bf48124a8ec810570711d05 (diff) | |
download | aports-34914f7c385b2bab6189993ceb9d3427d38b8b08.tar.bz2 aports-34914f7c385b2bab6189993ceb9d3427d38b8b08.tar.xz |
community/knot: remove redundant variable _pkgname
-rw-r--r-- | community/knot/APKBUILD | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/community/knot/APKBUILD b/community/knot/APKBUILD index a61a34ff6e..0b71595eed 100644 --- a/community/knot/APKBUILD +++ b/community/knot/APKBUILD @@ -3,8 +3,7 @@ # Contributor: Francesco Zanini <francesco@zanini.me> # Contributor: Jakub Jirutka <jakub@jirutka.cz> # Maintainer: Jakub Jirutka <jakub@jirutka.cz> -_pkgname="knot" -pkgname="${_pkgname}" +pkgname="knot" pkgver="2.8.4" pkgrel=1 pkgdesc="An high-performance authoritative-only DNS server" @@ -18,8 +17,8 @@ makedepends="gnutls-dev libedit-dev libcap-ng-dev libidn-dev lmdb-dev openssl-dev userspace-rcu-dev zlib-dev m4 bison flex perl sed jansson-dev libtool bsd-compat-headers" install="${pkgname}.pre-install ${pkgname}.post-install ${pkgname}.post-upgrade" -pkgusers="${_pkgname}" -pkggroups="${_pkgname}" +pkgusers="${pkgname}" +pkggroups="${pkgname}" subpackages="${pkgname}-libs ${pkgname}-libs-static ${pkgname}-utils @@ -27,7 +26,7 @@ subpackages="${pkgname}-libs ${pkgname}-doc ${pkgname}-openrc " -source="https://secure.nic.cz/files/${_pkgname}-dns/${_pkgname}-${pkgver}.tar.xz +source="https://secure.nic.cz/files/${pkgname}-dns/${pkgname}-${pkgver}.tar.xz test_net.patch knotd.confd knotd.initd @@ -47,9 +46,9 @@ build() { --host="${CHOST}" \ --prefix=/usr \ --sysconfdir=/etc \ - --libexecdir="/usr/lib/${_pkgname}" \ - --with-rundir="/run/${_pkgname}" \ - --with-storage="/var/lib/${_pkgname}" \ + --libexecdir="/usr/lib/${pkgname}" \ + --with-rundir="/run/${pkgname}" \ + --with-storage="/var/lib/${pkgname}" \ --disable-silent-rules make } @@ -62,8 +61,8 @@ package() { make DESTDIR="${pkgdir}" install rm -rf "${pkgdir}/run" - chown "${pkgusers%% *}:${pkggroups%% *}" "${pkgdir}/var/lib/${_pkgname}" - chmod 750 "${pkgdir}/var/lib/${_pkgname}" + chown "${pkgusers%% *}:${pkggroups%% *}" "${pkgdir}/var/lib/${pkgname}" + chmod 750 "${pkgdir}/var/lib/${pkgname}" install -Dm 644 "${srcdir}/knotd.confd" \ "${pkgdir}/etc/conf.d/knotd" |