aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2018-07-01 11:32:49 +0300
committerNatanael Copa <ncopa@alpinelinux.org>2018-08-16 20:55:00 +0000
commitf8ec2d2e84fda3ba4c28fb447f980af22a880502 (patch)
treea2892c6582ff9c33848bba3205bea6147c32ae57
parent37caadb3b9d29d0bfab3f7a8df354552fd9e1e7e (diff)
downloadaports-f8ec2d2e84fda3ba4c28fb447f980af22a880502.tar.gz
aports-f8ec2d2e84fda3ba4c28fb447f980af22a880502.tar.bz2
aports-f8ec2d2e84fda3ba4c28fb447f980af22a880502.tar.xz
main/libnfs: upgrade to 3.0.0, clarify license
The fix-includes.patch explicitly includes <sys/time.h> in order to resolve incomplete type {a,c,m}time definitions.
-rw-r--r--main/libnfs/APKBUILD12
-rw-r--r--main/libnfs/fix-includes.patch10
2 files changed, 17 insertions, 5 deletions
diff --git a/main/libnfs/APKBUILD b/main/libnfs/APKBUILD
index 892c2c0a31..61df893920 100644
--- a/main/libnfs/APKBUILD
+++ b/main/libnfs/APKBUILD
@@ -1,17 +1,18 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnfs
-pkgver=2.0.0
-pkgrel=1
+pkgver=3.0.0
+pkgrel=0
pkgdesc="Client library for accessing NFS shares"
url="https://github.com/sahlberg/libnfs"
arch="all"
options="!check" # No test suite.
-license="LGPL-2.1+, BSD-2-Clause-FreeBSD, GPL-3.0+"
+license="LGPL-2.1-or-later"
depends_dev=""
makedepends="$depends_dev autoconf automake m4 libtool"
subpackages="$pkgname-dev $pkgname-doc"
-source="https://github.com/sahlberg/libnfs/archive/libnfs-$pkgver.tar.gz"
+source="https://github.com/sahlberg/libnfs/archive/libnfs-$pkgver.tar.gz
+ fix-includes.patch"
builddir="$srcdir"/libnfs-libnfs-$pkgver
@@ -34,4 +35,5 @@ package() {
make DESTDIR="$pkgdir" install
}
-sha512sums="701dd5317b0395523be89123d473f4da5c3ff53c2e30004a922f649f0dbbd97546ee39ab34fce06278a8148c13200ca383726a0822d09846fad6e308f29e42c7 libnfs-2.0.0.tar.gz"
+sha512sums="9af31f8824431e9d28267c468dafc7cfc4062b1a280ca141036bc28a2ba544c4470a67955b5e5fbcc6c175435812381013b4c5d3d3d1a175d5efc7b802ae9b3b libnfs-3.0.0.tar.gz
+14219122c6decf7e0e292a2962a7dbf9b2e408b87d8e22cf1761b742834e817652f3e4919dded00f645ccf79e035e03712e7072ec1cb23bfd24ad012e9183824 fix-includes.patch"
diff --git a/main/libnfs/fix-includes.patch b/main/libnfs/fix-includes.patch
new file mode 100644
index 0000000000..18a3657c64
--- /dev/null
+++ b/main/libnfs/fix-includes.patch
@@ -0,0 +1,10 @@
+--- a/include/nfsc/libnfs.h
++++ b/include/nfsc/libnfs.h
+@@ -24,6 +24,7 @@
+ #define _LIBNFS_H_
+
+ #include <stdint.h>
++#include <sys/time.h>
+ #if defined(__ANDROID__) || defined(AROS) \
+ || ( defined(__APPLE__) && defined(__MACH__) )
+ #include <sys/time.h>