aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2020-07-18 00:48:23 +0300
committerLeo <thinkabit.ukim@gmail.com>2020-07-17 23:14:50 +0000
commitf246d19ab5a2fabe8a5778022c7f61803b6c6fc6 (patch)
tree3e9924baad9c1be7c43d04e66658b91ca80c0103
parent9101d375008155b0b183b20703d467d74b15750c (diff)
downloadaports-f246d19ab5a2fabe8a5778022c7f61803b6c6fc6.tar.gz
aports-f246d19ab5a2fabe8a5778022c7f61803b6c6fc6.tar.bz2
aports-f246d19ab5a2fabe8a5778022c7f61803b6c6fc6.tar.xz
community/libnsl: upgrade to 1.3.0
-rw-r--r--community/libnsl/APKBUILD33
-rw-r--r--community/libnsl/cdefs.patch34
-rw-r--r--community/libnsl/nis_h.patch46
3 files changed, 15 insertions, 98 deletions
diff --git a/community/libnsl/APKBUILD b/community/libnsl/APKBUILD
index f2af752499..eacd1047d4 100644
--- a/community/libnsl/APKBUILD
+++ b/community/libnsl/APKBUILD
@@ -1,34 +1,33 @@
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=libnsl
-pkgver=1.2.0
-pkgrel=1
+pkgver=1.3.0
+pkgrel=0
pkgdesc="Public client interface for NIS(YP) and NIS+ in a IPv6 ready version"
url="https://github.com/thkukuk/libnsl"
arch="all"
license="LGPL-2.0-or-later"
-makedepends="autoconf automake libtool libc-dev gettext-dev libtirpc-dev file"
+makedepends="autoconf automake gettext-dev libtirpc-dev libtool"
subpackages="$pkgname-static $pkgname-dev"
-source="$pkgname-$pkgver.tar.gz::https://github.com/thkukuk/$pkgname/archive/v$pkgver.tar.gz
- nis_h.patch
- cdefs.patch
- "
-
-check() {
- make check
-}
+source="$pkgname-$pkgver.tar.gz::https://github.com/thkukuk/$pkgname/archive/v$pkgver.tar.gz"
prepare() {
default_prepare
- ./autogen.sh
- sed 's/0.19/0.20/g' -i po/Makefile.in.in
+ autoreconf -vfi
+}
+
+check() {
+ make check
}
build() {
- ./configure LIBS="-lintl" \
+ ./configure \
--build=$CBUILD \
--host=$CHOST \
- --prefix=/usr
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
make
}
@@ -36,6 +35,4 @@ package() {
make DESTDIR="$pkgdir" install
}
-sha512sums="30115aa679a04ad01f55cff9dd1890b4c41c730a9bac2adab5add9ae03a0b4687c5f4b6e3b8652ecbb074eefac8faee3f1f13ea60d42cf4432db8a575ca72cd8 libnsl-1.2.0.tar.gz
-bd120e3f8753c716c78484a9804a6314e6335bb1196cd4d456080eeee0b964a856f573885eff318725d1f0fab6a0092645e60a19602bf3f83983d53a0ee3c303 nis_h.patch
-d50a072d8bd42822d2c9c7e99d29e3a93e1df16a77ce46355b3e73268999e7b0cac6d39f214a28a81ac793a1fd672a39bf9fbdc9acc9a49760ab101d27c0eefc cdefs.patch"
+sha512sums="ce75ee9e54f1bdd2b31886e8157ff5f654511c3da017e0d9f8d0da6a2a9f9a78ff2e5f72cfb7ce3a23065f57337db51e3c8842a7e990350a62612018f4960342 libnsl-1.3.0.tar.gz"
diff --git a/community/libnsl/cdefs.patch b/community/libnsl/cdefs.patch
deleted file mode 100644
index a112b45bce..0000000000
--- a/community/libnsl/cdefs.patch
+++ /dev/null
@@ -1,34 +0,0 @@
---- a/src/rpcsvc/nislib.h
-+++ b/src/rpcsvc/nislib.h
-@@ -16,6 +16,8 @@
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-+#include <sys/cdefs.h>
-+
- #ifndef __RPCSVC_NISLIB_H__
- #define __RPCSVC_NISLIB_H__
-
---- a/src/rpcsvc/ypclnt.h
-+++ b/src/rpcsvc/ypclnt.h
-@@ -16,6 +16,7 @@
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-+#include <sys/cdefs.h>
-
- #ifndef __RPCSVC_YPCLNT_H__
- #define __RPCSVC_YPCLNT_H__
-
- /* Some defines */
---- a/src/rpcsvc/ypupd.h
-+++ b/src/rpcsvc/ypupd.h
-@@ -33,6 +33,7 @@
- #ifndef __RPCSVC_YPUPD_H__
- #define __RPCSVC_YPUPD_H__
-
-+#include <sys/cdefs.h>
- #include <rpc/rpc.h>
-
- #define MAXMAPNAMELEN 255
-
diff --git a/community/libnsl/nis_h.patch b/community/libnsl/nis_h.patch
deleted file mode 100644
index 1fc98e03dc..0000000000
--- a/community/libnsl/nis_h.patch
+++ /dev/null
@@ -1,46 +0,0 @@
---- a/src/rpcsvc/nis.h
-+++ b/src/rpcsvc/nis.h
-@@ -32,6 +32,7 @@
- #ifndef _RPCSVC_NIS_H
- #define _RPCSVC_NIS_H 1
-
-+#include <sys/cdefs.h>
- #include <rpc/rpc.h>
- #include <rpcsvc/nis_tags.h>
-
-@@ -57,6 +58,34 @@
- * <kukuk@suse.de>
- */
-
-+#ifndef rawmemchr
-+#define rawmemchr(s,c) memchr((s),(size_t)-1,(c))
-+#endif
-+
-+#ifndef __asprintf
-+#define __asprintf asprintf
-+#endif
-+
-+#ifndef __mempcpy
-+#define __mempcpy mempcpy
-+#endif
-+
-+#ifndef __strtok_r
-+#define __strtok_r strtok_r
-+#endif
-+
-+#ifndef __always_inline
-+#define __always_inline __attribute__((__always_inline__))
-+#endif
-+
-+#ifndef TEMP_FAILURE_RETRY
-+#define TEMP_FAILURE_RETRY(exp) ({ \
-+typeof (exp) _rc; \
-+ do { \
-+ _rc = (exp); \
-+ } while (_rc == -1 && errno == EINTR); \
-+ _rc; })
-+#endif
-
- #ifndef __nis_object_h
- #define __nis_object_h
-