summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2017-03-06 10:15:23 -0800
committerMike Frysinger <vapier@gentoo.org>2017-03-06 10:15:33 -0800
commitf56569afdbbf7331d42c20ff34a7895e88680196 (patch)
tree60e99126eae552ca3fb2fb7001abbc4dbf475904 /net-libs/ntirpc
parentsci-mathematics/glpk: fix configure typo per bug #611694, revbump to apply to... (diff)
downloadgentoo-f56569afdbbf7331d42c20ff34a7895e88680196.tar.gz
gentoo-f56569afdbbf7331d42c20ff34a7895e88680196.tar.bz2
gentoo-f56569afdbbf7331d42c20ff34a7895e88680196.zip
net-libs/ntirpc: initial ebuild from Chromium OS
Diffstat (limited to 'net-libs/ntirpc')
-rw-r--r--net-libs/ntirpc/Manifest1
-rw-r--r--net-libs/ntirpc/files/ntirpc-1.4.1-city-header.patch60
-rw-r--r--net-libs/ntirpc/metadata.xml14
-rw-r--r--net-libs/ntirpc/ntirpc-1.4.1.ebuild33
4 files changed, 108 insertions, 0 deletions
diff --git a/net-libs/ntirpc/Manifest b/net-libs/ntirpc/Manifest
new file mode 100644
index 000000000000..8b2bada00f3c
--- /dev/null
+++ b/net-libs/ntirpc/Manifest
@@ -0,0 +1 @@
+DIST ntirpc-1.4.1.tar.gz 446025 SHA256 0e0a8a33f49ae91bccd73cfe7cc0ba33641df3cb9ed589dd5d81140a9d8838d0 SHA512 49a27dbd68b3e292437392acf2c010cc968b4d29b82b6e1a84e6c81a0c3979d3b38338212b391294b543ccd321073a33b16d7231ab68d797ead414d1b919137c WHIRLPOOL 01a287654bacf6a1647bb0847197ea7a427cfe6bdb6c379846ab9ca1dc872173edb8c899fe11511155fcddbafec24e4a6536607d4ce31c0b0476c872c8d41176
diff --git a/net-libs/ntirpc/files/ntirpc-1.4.1-city-header.patch b/net-libs/ntirpc/files/ntirpc-1.4.1-city-header.patch
new file mode 100644
index 000000000000..25c10e393797
--- /dev/null
+++ b/net-libs/ntirpc/files/ntirpc-1.4.1-city-header.patch
@@ -0,0 +1,60 @@
+From c2416e1996f694ea0cefb217f806e45931ef0b03 Mon Sep 17 00:00:00 2001
+From: Dylan Reid <dgreid@chromium.org>
+Date: Wed, 15 Feb 2017 12:31:55 -0800
+Subject: [PATCH] Make city.h includes consistent
+
+Most of the code base already uses <misc/city.h>. Modify the places
+that include "city.h" to follow that pattern. cmake doesn't add misc to
+the include paths passed to the compiler. I ran into "can't find
+city.h" errors when attempting to add an ebuild for gentoo.
+
+Change-Id: I1e07d82bbe58fbae4759263734ac22170220eeb7
+Signed-off-by: Dylan Reid <dgreid@chromium.org>
+---
+ ntirpc/misc/citycrc.h | 2 +-
+ src/city-test.c | 2 +-
+ src/citycrc.h | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/ntirpc/misc/citycrc.h b/ntirpc/misc/citycrc.h
+index 57069344f1f8..d3620158a5ca 100644
+--- a/ntirpc/misc/citycrc.h
++++ b/ntirpc/misc/citycrc.h
+@@ -34,7 +34,7 @@
+ #ifndef CITY_HASH_CRC_H_
+ #define CITY_HASH_CRC_H_
+
+-#include "city.h"
++#include <misc/city.h>
+
+ /* Hash function for a byte array. */
+ uint128 CityHashCrc128(const char *s, size_t len);
+diff --git a/src/city-test.c b/src/city-test.c
+index 03d98a2ba9ec..8b504dd5c57c 100644
+--- a/src/city-test.c
++++ b/src/city-test.c
+@@ -27,7 +27,7 @@
+ #include <string.h>
+ #include <stdio.h>
+
+-#include "city.h"
++#include <misc/city.h>
+ #ifdef __SSE4_2__
+ #include "citycrc.h"
+ #endif
+diff --git a/src/citycrc.h b/src/citycrc.h
+index f6cab94eff04..7998521b68cf 100644
+--- a/src/citycrc.h
++++ b/src/citycrc.h
+@@ -33,7 +33,7 @@
+ #ifndef CITY_HASH_CRC_H_
+ #define CITY_HASH_CRC_H_
+
+-#include "city.h"
++#include <misc/city.h>
+
+ /* Hash function for a byte array. */
+ uint128 CityHashCrc128(const char *s, size_t len);
+--
+2.11.1
+
diff --git a/net-libs/ntirpc/metadata.xml b/net-libs/ntirpc/metadata.xml
new file mode 100644
index 000000000000..e95e6d1fbaee
--- /dev/null
+++ b/net-libs/ntirpc/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>base-system@gentoo.org</email>
+</maintainer>
+<use>
+ <flag name="gssapi">Include support for RPCSEC GSS</flag>
+ <flag name="rdma">Include support for RDMA RPC</flag>
+</use>
+<upstream>
+ <remote-id type="github">nfs-ganesha/ntirpc</remote-id>
+</upstream>
+</pkgmetadata>
diff --git a/net-libs/ntirpc/ntirpc-1.4.1.ebuild b/net-libs/ntirpc/ntirpc-1.4.1.ebuild
new file mode 100644
index 000000000000..61ddf68d5d6f
--- /dev/null
+++ b/net-libs/ntirpc/ntirpc-1.4.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit cmake-multilib
+
+DESCRIPTION="Transport Independent RPC library for nfs-ganesha"
+HOMEPAGE="https://github.com/linuxbox2/ntirpc"
+SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gssapi rdma"
+
+# Since the GSS option only controls some extra files to be enabled,
+# there's nothing to list in the depend string for it.
+RDEPEND="app-crypt/mit-krb5
+ rdma? ( sys-fabric/librdmacm )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-city-header.patch
+)
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_use gssapi GSS)
+ $(cmake-utils_use_use rdma RPC_RDMA)
+ )
+ cmake-utils_src_configure
+}