diff options
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libvolume_id/DESCR | 3 | ||||
-rw-r--r-- | devel/libvolume_id/Makefile | 28 | ||||
-rw-r--r-- | devel/libvolume_id/PLIST | 6 | ||||
-rw-r--r-- | devel/libvolume_id/buildlink3.mk | 19 | ||||
-rw-r--r-- | devel/libvolume_id/distinfo | 9 | ||||
-rw-r--r-- | devel/libvolume_id/patches/patch-aa | 13 | ||||
-rw-r--r-- | devel/libvolume_id/patches/patch-ab | 13 | ||||
-rw-r--r-- | devel/libvolume_id/patches/patch-ac | 13 | ||||
-rw-r--r-- | devel/libvolume_id/patches/patch-ad | 13 |
9 files changed, 117 insertions, 0 deletions
diff --git a/devel/libvolume_id/DESCR b/devel/libvolume_id/DESCR new file mode 100644 index 00000000000..5fb2b8fa9bf --- /dev/null +++ b/devel/libvolume_id/DESCR @@ -0,0 +1,3 @@ +Libvolume_id is an API for obtaining many file system related attributes +(such as type, label, uuid, etc.) given an open file handle to a block +special device. diff --git a/devel/libvolume_id/Makefile b/devel/libvolume_id/Makefile new file mode 100644 index 00000000000..09ef1194edb --- /dev/null +++ b/devel/libvolume_id/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/11/22 13:48:23 jmcneill Exp $ +# + +DISTNAME= libvolume_id-0.81.0 +CATEGORIES= sysutils +MASTER_SITES= http://www.marcuscom.com/downloads/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= jmcneill@NetBSD.org +HOMEPAGE= ${MASTER_SITES} +COMMENT= Library to provide file system type information + +USE_TOOLS+= gmake pkg-config ranlib + +MAKE_ENV+= E=@${ECHO} +MAKE_ENV+= RANLIB=ranlib +MAKE_ENV+= AR=ar +MAKE_ENV+= Q=@ +MAKE_ENV+= prefix=${PREFIX} + +do-install: + ${INSTALL_DATA} ${WRKSRC}/libvolume_id.pc ${PREFIX}/lib/pkgconfig/libvolume_id.pc + ${INSTALL_DATA} ${WRKSRC}/libvolume_id.h ${PREFIX}/include/libvolume_id.h + ${INSTALL_DATA} ${WRKSRC}/libvolume_id.a ${PREFIX}/lib/libvolume_id.a + ${INSTALL_LIB} ${WRKSRC}/libvolume_id.so.0 ${PREFIX}/lib/libvolume_id.so.0 + ${LN} -sf ${PREFIX}/lib/libvolume_id.so.0 ${PREFIX}/lib/libvolume_id.so + +.include "../../mk/bsd.pkg.mk" diff --git a/devel/libvolume_id/PLIST b/devel/libvolume_id/PLIST new file mode 100644 index 00000000000..395c35b43b9 --- /dev/null +++ b/devel/libvolume_id/PLIST @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/11/22 13:48:23 jmcneill Exp $ +include/libvolume_id.h +lib/libvolume_id.a +lib/libvolume_id.so +lib/libvolume_id.so.0 +lib/pkgconfig/libvolume_id.pc diff --git a/devel/libvolume_id/buildlink3.mk b/devel/libvolume_id/buildlink3.mk new file mode 100644 index 00000000000..14ea7195842 --- /dev/null +++ b/devel/libvolume_id/buildlink3.mk @@ -0,0 +1,19 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/11/22 13:48:23 jmcneill Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +LIBVOLUME_ID_BUILDLINK3_MK:= ${LIBVOLUME_ID_BUILDLINK3_MK}+ + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= libvolume_id +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibvolume_id} +BUILDLINK_PACKAGES+= libvolume_id +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libvolume_id + +.if ${LIBVOLUME_ID_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.libvolume_id+= libvolume_id>=0.81.0 +BUILDLINK_PKGSRCDIR.libvolume_id?= ../../devel/libvolume_id +.endif # LIBVOLUME_ID_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/devel/libvolume_id/distinfo b/devel/libvolume_id/distinfo new file mode 100644 index 00000000000..c4b13455132 --- /dev/null +++ b/devel/libvolume_id/distinfo @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/11/22 13:48:23 jmcneill Exp $ + +SHA1 (libvolume_id-0.81.0.tar.bz2) = e6d61d734dab9a305637ba8379ca04df3fd4e398 +RMD160 (libvolume_id-0.81.0.tar.bz2) = f0dfe8aab157f155b242eff6e20b29c65bb279b5 +Size (libvolume_id-0.81.0.tar.bz2) = 23274 bytes +SHA1 (patch-aa) = a73ca47d5dd062c2619de353da9f60a9e7f334e8 +SHA1 (patch-ab) = 4a51941fb877063c93305ab2d6d76a372ccacef3 +SHA1 (patch-ac) = 73019864a4ccea304b94f6b311b06791ceacd8d9 +SHA1 (patch-ad) = 1ca679e53d59aab3e7a2edca5bb15f62e5237879 diff --git a/devel/libvolume_id/patches/patch-aa b/devel/libvolume_id/patches/patch-aa new file mode 100644 index 00000000000..f3aee5dd801 --- /dev/null +++ b/devel/libvolume_id/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/11/22 13:48:23 jmcneill Exp $ + +--- ddf_raid.c.orig 2008-11-22 08:33:28.000000000 -0500 ++++ ddf_raid.c +@@ -22,7 +22,7 @@ + #include <string.h> + #include <errno.h> + #include <ctype.h> +-#ifdef __FreeBSD__ ++#if defined(__FreeBSD__) || defined(__NetBSD__) + #include <sys/endian.h> + #else + #include <byteswap.h> diff --git a/devel/libvolume_id/patches/patch-ab b/devel/libvolume_id/patches/patch-ab new file mode 100644 index 00000000000..d9ce96ca31c --- /dev/null +++ b/devel/libvolume_id/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2008/11/22 13:48:23 jmcneill Exp $ + +--- linux_raid.c.orig 2008-11-22 08:33:51.000000000 -0500 ++++ linux_raid.c +@@ -22,7 +22,7 @@ + #include <string.h> + #include <errno.h> + #include <ctype.h> +-#ifdef __FreeBSD__ ++#if defined(__FreeBSD__) || defined(__NetBSD__) + #include <sys/endian.h> + #else + #include <byteswap.h> diff --git a/devel/libvolume_id/patches/patch-ac b/devel/libvolume_id/patches/patch-ac new file mode 100644 index 00000000000..192b0e1789a --- /dev/null +++ b/devel/libvolume_id/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2008/11/22 13:48:23 jmcneill Exp $ + +--- util.c.orig 2008-11-22 08:34:15.000000000 -0500 ++++ util.c +@@ -28,7 +28,7 @@ + #include "libvolume_id.h" + #include "util.h" + +-#ifdef __FreeBSD__ ++#if defined(__FreeBSD__) || defined(__NetBSD__) + static size_t strnlen (const char *s, size_t maxlen) + { + size_t i; diff --git a/devel/libvolume_id/patches/patch-ad b/devel/libvolume_id/patches/patch-ad new file mode 100644 index 00000000000..e69a1d63af4 --- /dev/null +++ b/devel/libvolume_id/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1.1.1 2008/11/22 13:48:23 jmcneill Exp $ + +--- util.h.orig 2008-11-22 08:32:52.000000000 -0500 ++++ util.h +@@ -19,7 +19,7 @@ + # include <config.h> + #endif + +-#ifdef __FreeBSD__ ++#if defined(__FreeBSD__) || defined(__NetBSD__) + #include <sys/endian.h> + + #define __BYTE_ORDER _BYTE_ORDER |