mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-libs/ntirpc: initial ebuild from Chromium OS
This commit is contained in:
1
net-libs/ntirpc/Manifest
Normal file
1
net-libs/ntirpc/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST ntirpc-1.4.1.tar.gz 446025 SHA256 0e0a8a33f49ae91bccd73cfe7cc0ba33641df3cb9ed589dd5d81140a9d8838d0 SHA512 49a27dbd68b3e292437392acf2c010cc968b4d29b82b6e1a84e6c81a0c3979d3b38338212b391294b543ccd321073a33b16d7231ab68d797ead414d1b919137c WHIRLPOOL 01a287654bacf6a1647bb0847197ea7a427cfe6bdb6c379846ab9ca1dc872173edb8c899fe11511155fcddbafec24e4a6536607d4ce31c0b0476c872c8d41176
|
||||
60
net-libs/ntirpc/files/ntirpc-1.4.1-city-header.patch
Normal file
60
net-libs/ntirpc/files/ntirpc-1.4.1-city-header.patch
Normal file
@@ -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
|
||||
|
||||
14
net-libs/ntirpc/metadata.xml
Normal file
14
net-libs/ntirpc/metadata.xml
Normal file
@@ -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>
|
||||
33
net-libs/ntirpc/ntirpc-1.4.1.ebuild
Normal file
33
net-libs/ntirpc/ntirpc-1.4.1.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user