diff options
author | Maxim Koltsov <maksbotan@gentoo.org> | 2011-09-06 17:17:33 +0000 |
---|---|---|
committer | Maxim Koltsov <maksbotan@gentoo.org> | 2011-09-06 17:17:33 +0000 |
commit | 58e81fed10c72a3869b2f58d3a94125de89de5d1 (patch) | |
tree | cafb7d231ce4254d0fb549f8ca3d0318cc3e5082 /app-misc/hivex | |
parent | Version bump. (diff) | |
download | historical-58e81fed10c72a3869b2f58d3a94125de89de5d1.tar.gz historical-58e81fed10c72a3869b2f58d3a94125de89de5d1.tar.bz2 historical-58e81fed10c72a3869b2f58d3a94125de89de5d1.zip |
Add app-misc/hivex, bug #342217
Package-Manager: portage-2.1.10.12/cvs/Linux x86_64
Diffstat (limited to 'app-misc/hivex')
-rw-r--r-- | app-misc/hivex/ChangeLog | 11 | ||||
-rw-r--r-- | app-misc/hivex/Manifest | 6 | ||||
-rw-r--r-- | app-misc/hivex/files/autoconf_fix-1.3.0.patch | 104 | ||||
-rw-r--r-- | app-misc/hivex/files/incorrect_format.patch | 22 | ||||
-rw-r--r-- | app-misc/hivex/hivex-1.3.1.ebuild | 84 | ||||
-rw-r--r-- | app-misc/hivex/metadata.xml | 12 |
6 files changed, 239 insertions, 0 deletions
diff --git a/app-misc/hivex/ChangeLog b/app-misc/hivex/ChangeLog new file mode 100644 index 000000000000..e959a49374dc --- /dev/null +++ b/app-misc/hivex/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-misc/hivex +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/hivex/ChangeLog,v 1.1 2011/09/06 17:17:33 maksbotan Exp $ + +*hivex-1.3.1 (06 Sep 2011) + + 06 Sep 2011; Maxim Koltsov <maksbotan@gentoo.org> + +files/autoconf_fix-1.3.0.patch, +hivex-1.3.1.ebuild, + +files/incorrect_format.patch, +metadata.xml: + Copy app-misc/hivex from rion-overlay, thanks to slepnoga. Bug #342217 + diff --git a/app-misc/hivex/Manifest b/app-misc/hivex/Manifest new file mode 100644 index 000000000000..9540dfab2726 --- /dev/null +++ b/app-misc/hivex/Manifest @@ -0,0 +1,6 @@ +AUX autoconf_fix-1.3.0.patch 3561 RMD160 05d90b32f940649dc0bb0d959f70604e1cc84bdc SHA1 bb221c20105751f031ff1d2a2555de2ef88db730 SHA256 318b92cbecf6858a57188b7c4d1c2d18ba0daea84335825286bb4860c32ffe26 +AUX incorrect_format.patch 836 RMD160 ffba9ed5e67d0d99bbfd62d0fbc335d4bb59d8eb SHA1 7469d7e81a95ff829aaa4b2df724314efeba68c5 SHA256 13b9d2fe2f3e466aa244b10f9cf2e9b5919bc65f0f162ff5f55b87468c853768 +DIST hivex-1.3.1.tar.gz 1078397 RMD160 5f42e555fae7c694421714b7e7e9909888b5b2f3 SHA1 71b54636b516f7c08767c826c2c630358f9e52de SHA256 dc18d94c88f088b9423ed429fe2fd95bab51fc66f86b6081a7c73e4093913328 +EBUILD hivex-1.3.1.ebuild 1671 RMD160 40b13714f2ee1c576f639e3cc2530680535f1949 SHA1 986ff0c9ee2939cdf732046675c6ffd630cbfb79 SHA256 6fb6b0f0cb8ffc78c684d6678b927ead1922db72e3531039f5d05058b6365778 +MISC ChangeLog 462 RMD160 2b96fc5ccaa36acc6872d471bf2a5e7d8ebd78fd SHA1 65e67bb79d59628d0801085fee796ca51a990e2e SHA256 b124857f2a5b6992fdd19884bbba3c2178312d1454191113250a4dc494347504 +MISC metadata.xml 320 RMD160 49623f4c60591eb15bff9e2b223973ce11e35e2c SHA1 1471a4deabf0a9d538751495c89a010a16b6479d SHA256 63b84e297acd5cbd83e9df619867e1d7b8db48537daaf37649387fe5cda56521 diff --git a/app-misc/hivex/files/autoconf_fix-1.3.0.patch b/app-misc/hivex/files/autoconf_fix-1.3.0.patch new file mode 100644 index 000000000000..2a9495b51cea --- /dev/null +++ b/app-misc/hivex/files/autoconf_fix-1.3.0.patch @@ -0,0 +1,104 @@ +--- configure.ac.orig 2011-08-15 22:29:28.309745342 +0300 ++++ configure.ac 2011-08-15 22:34:54.324549151 +0300 +@@ -170,11 +170,18 @@ + AC_SUBST([LIBXML2_CFLAGS]) + AC_SUBST([LIBXML2_LIBS]) + ++ ++dnl //////////////////////////////////////////////////////////////////////////// + dnl Check for OCaml (optional, for OCaml bindings). ++ ++AC_ARG_ENABLE([ocaml], ++ AS_HELP_STRING([--with-ocaml],[build Ocaml binding])) ++ ++ + AC_PROG_OCAML + AC_PROG_FINDLIB + AM_CONDITIONAL([HAVE_OCAML], +- [test "x$OCAMLC" != "xno" && test "x$OCAMLFIND" != "xno"]) ++ [test "x$OCAMLC" != "xno" -a "x$OCAMLFIND" != "xno" -a "x$enable_ocaml" = "xyes"]) + AM_CONDITIONAL([HAVE_OCAMLOPT], + [test "x$OCAMLOPT" != "xno" && test "x$OCAMLFIND" != "xno"]) + +@@ -207,6 +214,8 @@ + rm -f conftest conftest.* conftest_ml.* + fi + ++dnl /////////////////////////////////////////////////////////////////////////////////////// ++ + dnl Check for Perl (optional, for Perl bindings). + dnl XXX This isn't quite right, we should check for Perl devel library. + AC_CHECK_PROG([PERL],[perl],[perl],[no]) +@@ -214,21 +223,35 @@ + dnl Check for Perl modules that must be present to compile and + dnl test the Perl bindings. + missing_perl_modules=no +-for pm in Test::More ExtUtils::MakeMaker IO::Stringy; do +- AC_MSG_CHECKING([for $pm]) +- if ! perl -M$pm -e1 >/dev/null 2>&1; then +- AC_MSG_RESULT([no]) +- missing_perl_modules=yes +- else +- AC_MSG_RESULT([yes]) +- fi +-done +-if test "x$missing_perl_modules" = "xyes"; then +- AC_MSG_WARN([some Perl modules required to compile or test the Perl bindings are missing]) +-fi ++ ++AC_ARG_ENABLE([perl], ++ AS_HELP_STRING([--with-perl],[build Perl binding])) ++ ++ ++PERL= ++AS_IF([test "x$enable_perl" != "xno" ],[ ++ AC_CHECK_PROG([PERL],[perl],[yes],[no]) ++ ++ for pm in Test::More ExtUtils::MakeMaker IO::Stringy; do ++ AC_MSG_CHECKING([for $pm]) ++ if ! perl -M$pm -e1 >/dev/null 2>&1; then ++ AC_MSG_RESULT([no]) ++ missing_perl_modules=yes ++ else ++ AC_MSG_RESULT([yes]) ++ fi ++ done ++ ++ AS_IF([test "x$missing_perl_modules" = "xyes"], ++ [AC_MSG_FAILURE([some Perl modules required to compile or test the Perl bindings are missing])], ++ ) ++]) ++ + + AM_CONDITIONAL([HAVE_PERL], +- [test "x$PERL" != "xno" && test "x$missing_perl_modules" != "xyes"]) ++ [test "x$PERL" != "xno" -a "x$missing_perl_modules" != "xyes" -a "x$enable_perl" = "xyes"]) ++ ++dnl ////////////////////////////////////////////////////////////////////////////////////////////////// + + dnl Check for Python (optional, for Python bindings). + AC_CHECK_PROG([PYTHON],[python],[python],[no]) +@@ -266,15 +289,21 @@ + AC_SUBST(PYTHON_INCLUDEDIR) + AC_SUBST(PYTHON_SITE_PACKAGES) + ++AC_ARG_ENABLE([python], ++ AS_HELP_STRING([--with-python],[build Python binding])) ++ + AM_CONDITIONAL([HAVE_PYTHON], +- [test "x$PYTHON_INCLUDEDIR" != "x" && test "x$PYTHON_SITE_PACKAGES" != "x"]) ++ [test "x$PYTHON_INCLUDEDIR" != "x" -a "x$PYTHON_SITE_PACKAGES" != "x" -a "x$enable_python" = "xyes"]) + + dnl Check for Ruby and rake (optional, for Ruby bindings). + AC_CHECK_LIB([ruby],[ruby_init],[HAVE_LIBRUBY=1],[HAVE_LIBRUBY=0]) + AC_CHECK_PROG([RAKE],[rake],[rake],[no]) + ++AC_ARG_ENABLE([ruby], ++ AS_HELP_STRING([--with-ruby],[build Ruby binding])) ++ + AM_CONDITIONAL([HAVE_RUBY], +- [test "x$RAKE" != "xno" && test -n "$HAVE_LIBRUBY"]) ++ [test "x$RAKE" != "xno" && test -n "$HAVE_LIBRUBY" -a "x$enable_ruby" = "xyes"]) + + dnl dnl Check for Java. + dnl AC_ARG_WITH(java_home, diff --git a/app-misc/hivex/files/incorrect_format.patch b/app-misc/hivex/files/incorrect_format.patch new file mode 100644 index 000000000000..7fa5ce56ac0a --- /dev/null +++ b/app-misc/hivex/files/incorrect_format.patch @@ -0,0 +1,22 @@ +From: Richard W.M. Jones <rjones@redhat.com> +Date: Mon, 15 Aug 2011 09:52:00 +0000 (+0100) +Subject: Fix incorrect printf format specifier in error string. +X-Git-Url: http://git.annexia.org/?p=hivex.git;a=commitdiff_plain;h=5a4fd441d23f96ca618e55d4e54471d2e0fa94af + +Fix incorrect printf format specifier in error string. +--- + +diff --git a/lib/hivex.c b/lib/hivex.c +index dceea73..a3f5171 100644 +--- a/lib/hivex.c ++++ b/lib/hivex.c +@@ -621,7 +621,8 @@ timestamp_check (hive_h *h, hive_node_h node, int64_t timestamp) + if (timestamp < 0) { + if (h->msglvl >= 2) + fprintf (stderr, "hivex: timestamp_check: " +- "negative time reported at %z: %" PRIi64 "\n", node, timestamp); ++ "negative time reported at %zu: %" PRIi64 "\n", ++ node, timestamp); + errno = EINVAL; + return -1; + } diff --git a/app-misc/hivex/hivex-1.3.1.ebuild b/app-misc/hivex/hivex-1.3.1.ebuild new file mode 100644 index 000000000000..9750d58008c4 --- /dev/null +++ b/app-misc/hivex/hivex-1.3.1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/hivex/hivex-1.3.1.ebuild,v 1.1 2011/09/06 17:17:33 maksbotan Exp $ + +EAPI=3 + +WANT_AUTOMAKE="1.11" +AUTOTOOLS_IN_SOURCE_BUILD=1 + +inherit base autotools-utils perl-app python + +PYTHON_DEPEND="python? 2:2.6" + +DESCRIPTION="Library for reading and writing Windows Registry "hive" binary files." +HOMEPAGE="http://libguestfs.org" +SRC_URI="http://libguestfs.org/download/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ocaml readline perl python test static-libs ruby" + +RDEPEND="virtual/libiconv + virtual/libintl + dev-libs/libxml2:2 + ocaml? ( dev-lang/ocaml[ocamlopt] + dev-ml/findlib[ocamlopt] + ) + readline? ( sys-libs/readline ) + perl? ( dev-perl/IO-stringy ) + " + +DEPEND="${RDEPEND} + dev-lang/perl + perl? ( + test? ( dev-perl/Pod-Coverage + dev-perl/Test-Pod-Coverage ) ) + ruby? ( dev-ruby/rake ) + " +PATCHES=("${FILESDIR}"/autoconf_fix-${PV}.patch "${FILESDIR}"/incorrect_format.patch) +DOCS=(README) + +pkg_config() { + python_set_active_version 2 + python_need_rebuild +} + +src_prepare() { + autotools-utils_src_prepare + eautoreconf +} + +src_configure() { + local myeconfargs=( + $(use_with readline) + $(use_enable ocaml) + $(use_enable perl) + --enable-nls + $(use_enable python) + $(use_enable ruby) + --disable-rpath + ) + + autotools-utils_src_configure +} + +src_test() { + emake check || die +} + +src_install() { + strip-linguas -i po + if [ -z "${LINGUAS}" ] ; then + LINGUAS=none + else + LINGUAS=none + fi + + autotools-utils_src_install "LINGUAS=""${LINGUAS}""" + + if use perl; then + fixlocalpod + fi +} diff --git a/app-misc/hivex/metadata.xml b/app-misc/hivex/metadata.xml new file mode 100644 index 000000000000..9abfc9ee62d5 --- /dev/null +++ b/app-misc/hivex/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>proxy-maint</herd> +<maintainer> + <email>spamslenoga@inbox.ru</email> +</maintainer> +<maintainer> + <email>maksbotan@gentoo.org</email> + <name>Maxim Koltsov</name> +</maintainer> +</pkgmetadata> |