summaryrefslogtreecommitdiff
path: root/sys-apps/dmapi
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/dmapi')
-rw-r--r--sys-apps/dmapi/Manifest6
-rw-r--r--sys-apps/dmapi/dmapi-2.2.12-r1.ebuild48
-rw-r--r--sys-apps/dmapi/files/dmapi-2.2.12-headers.patch16
-rw-r--r--sys-apps/dmapi/metadata.xml8
4 files changed, 78 insertions, 0 deletions
diff --git a/sys-apps/dmapi/Manifest b/sys-apps/dmapi/Manifest
new file mode 100644
index 000000000000..ef799446c80c
--- /dev/null
+++ b/sys-apps/dmapi/Manifest
@@ -0,0 +1,6 @@
+AUX dmapi-2.2.12-headers.patch 354 SHA256 c5935312dd4d77156da023776c93036fa7989ce78ff8b9f6d9421c31a5535647 SHA512 b087227085d3e068323f2a01c1c7044e1885e47b04caa1050e8552ced50dddfab871608bdf67a027989c359f2852cbcedcffeb6708e182d6d5dc3bfc9609489e WHIRLPOOL d6ba5b0b44d1182cbea6a1c080c9ad01c4975495c5a67e9cc2e71b68b95509d8ea09992df5b94ebe92cb2c0b992fb15bd444812fa1949f084429c486abf68eb2
+DIST dmapi-2.2.12.tar.gz 367318 SHA256 b18e34f47374f6adf7c164993c26df36986a009b86aa004ef9444102653aea69 SHA512 aa44c0c7857158fed198deb9d1e00abaab549e3c22a7ce0e24e6088146bde56ecf967405b1b61a589460981ddcfaffbb1e9a2e677088efec317e3a7cb44abe4f WHIRLPOOL 5209b3a3b8afaf55eb26588cd8ffe085f58849b0b4a159851c0ffeefa0f8cf5aad53d9bea927099f3fced101e017867c538a081667ad684df5f2ff6685eac19e
+EBUILD dmapi-2.2.12-r1.ebuild 1082 SHA256 d98f1e924fb115d7412be4f0b4b89467cf77f13cac642c2fd4347e5a85a98260 SHA512 b3a1b29e98b0e4ec0d91f28e9753907953d0ac206cbcf0ccb44311ec476f5e2373f44e614b72429d5750b29e67bcde43b7ee39a1266340aef644c1035b0394d6 WHIRLPOOL 5cee21a1da5b554295bbd1ab77bdfc67a43b5038a06035ca09741dcca384147ef2bcfc0a82d0fba1dfd61fd6636f9b986a62e6e1332782adbf577b1afdea4fec
+MISC ChangeLog 3731 SHA256 a08ca9f448c2386c1faef6d9b4f42241827a9d08f7b95463f4febb711a158558 SHA512 eeb4407ee20e34ab9abdcd5cf703184b214f678b8437121aaf0417382763afe60a11a42ed340f25f083879ffe96e93fbce49e58261ba1f61a922e27a24f860d7 WHIRLPOOL 512f00111d4c7b51aacef999348a65de40f9ea422bca6ed2fb20a4201df60e291e65f8f933580bf60ca6f62b40ee28f03be3f969a62d1dfc3be1f7d1252ba9c2
+MISC ChangeLog-2015 9880 SHA256 c86f8981b3bb7e783d49b108014966925c2a4ff43ae85edd03260a4748200509 SHA512 1f00ef12e00838070915ca65f392983894308dd974f3d6585e296df98313aef63a00d0bfa5262f815bdef5c08662f0aaebd174663f81730ad46ad66af64303c7 WHIRLPOOL ed57568fcaea69941168a188875941f7ebcef607b4746c3e0ee7ff142327e47be5f2917832f8f99916417ff6016015c5cfa0dc8e4dd1de175cc70f0f7a15fb8f
+MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8
diff --git a/sys-apps/dmapi/dmapi-2.2.12-r1.ebuild b/sys-apps/dmapi/dmapi-2.2.12-r1.ebuild
new file mode 100644
index 000000000000..c08b9b92e585
--- /dev/null
+++ b/sys-apps/dmapi/dmapi-2.2.12-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils toolchain-funcs multilib multilib-minimal
+
+DESCRIPTION="XFS data management API library"
+HOMEPAGE="http://oss.sgi.com/projects/xfs/"
+SRC_URI="ftp://oss.sgi.com/projects/xfs/cmd_tars/${P}.tar.gz
+ ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+IUSE="static-libs"
+
+RDEPEND="sys-fs/xfsprogs"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -i \
+ -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
+ include/builddefs.in \
+ || die
+ epatch "${FILESDIR}"/${P}-headers.patch
+
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ export OPTIMIZER=${CFLAGS}
+ export DEBUG=-DNDEBUG
+
+ econf \
+ --libexecdir=/usr/$(get_libdir) \
+ $(use_enable static-libs static)
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" install install-dev
+ gen_usr_ldscript -a dm
+}
+
+multilib_src_install_all() {
+ prune_libtool_files --all
+ rm "${ED}"/usr/share/doc/${PF}/COPYING
+}
diff --git a/sys-apps/dmapi/files/dmapi-2.2.12-headers.patch b/sys-apps/dmapi/files/dmapi-2.2.12-headers.patch
new file mode 100644
index 000000000000..259e1aec3a09
--- /dev/null
+++ b/sys-apps/dmapi/files/dmapi-2.2.12-headers.patch
@@ -0,0 +1,16 @@
+https://bugs.gentoo.org/560212
+
+pull in headers for funcs that are used
+
+--- a/libdm/dm_handle2path.c
++++ b/libdm/dm_handle2path.c
+@@ -20,6 +20,9 @@
+ #include <dmapi_kern.h>
+ #include "dmapi_lib.h"
+
++#include <fcntl.h> /* open */
++#include <unistd.h> /* close */
++#include <string.h> /* strlen */
+ #include <mntent.h>
+ #include <dirent.h>
+ #ifdef linux
diff --git a/sys-apps/dmapi/metadata.xml b/sys-apps/dmapi/metadata.xml
new file mode 100644
index 000000000000..56c124413057
--- /dev/null
+++ b/sys-apps/dmapi/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+ <name>Gentoo Base System</name>
+</maintainer>
+</pkgmetadata>