Add few packages
This commit is contained in:
46
src/hivex/PKGBUILD
Normal file
46
src/hivex/PKGBUILD
Normal file
@@ -0,0 +1,46 @@
|
||||
# Maintainer: Brian Bidulock <bidulock@openss7.org>
|
||||
# Contributor: Patryk Kowalczyk < patryk at kowalczyk dot ws>
|
||||
|
||||
pkgname=hivex
|
||||
pkgver=1.3.14
|
||||
pkgrel=3
|
||||
pkgdesc="System for extracting the contents of Windows Registry."
|
||||
arch=("i686" "x86_64")
|
||||
url="http://libguestfs.org"
|
||||
license=("LGPL2.1")
|
||||
depends=("libxml2" "perl")
|
||||
makedepends=("python2" "ruby" "perl-io-stringy" "perl-test-simple" "ocaml-findlib" "ocaml")
|
||||
optdepends=("python2: for python bindings"
|
||||
"ruby: for ruby bindings"
|
||||
"ocaml: for ocaml bindings")
|
||||
options=("!emptydirs" "!libtool")
|
||||
source=("http://libguestfs.org/download/$pkgname/$pkgname-$pkgver.tar.gz")
|
||||
md5sums=('9fb5ed4525d30a84b216a05150be1558')
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
unset PREFIX
|
||||
./configure \
|
||||
--bindir=/usr/bin \
|
||||
--libdir=/usr/lib \
|
||||
--prefix=/usr \
|
||||
--disable-rpath \
|
||||
--disable-static PYTHON=python2
|
||||
make
|
||||
}
|
||||
|
||||
_perl_depends() {
|
||||
# template start; name=perl-binary-module-dependency; version=1;
|
||||
if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
|
||||
_perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
|
||||
_perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
|
||||
depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
|
||||
fi
|
||||
# template end;
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make DESTDIR="$pkgdir" install
|
||||
_perl_depends
|
||||
}
|
12
src/hivex/static.patch
Normal file
12
src/hivex/static.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -up src/hivex-1.3.11/ocaml/hivex_c.c.orig src/hivex-1.3.11/ocaml/hivex_c.c
|
||||
--- src/hivex-1.3.11/ocaml/hivex_c.c.orig 2015-06-28 11:52:33.000000000 -0600
|
||||
+++ src/hivex-1.3.11/ocaml/hivex_c.c 2015-06-28 11:52:38.000000000 -0600
|
||||
@@ -48,7 +48,7 @@ extern value unix_error_of_code (int err
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_CAML_RAISE_WITH_ARGS
|
||||
-static void
|
||||
+void
|
||||
caml_raise_with_args (value tag, int nargs, value args[])
|
||||
{
|
||||
CAMLparam1 (tag);
|
Reference in New Issue
Block a user