summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron McDaniel2018-06-20 13:32:33 -0500
committerAaron McDaniel2018-06-20 13:32:33 -0500
commit94a3ab481bed545d80087c5cdc23b6983a246b44 (patch)
tree51fafe53fe2f3fed45e47a99cdd4a61e000289b9
downloadaur-94a3ab481bed545d80087c5cdc23b6983a246b44.tar.gz
Initial commit
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD49
3 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..742aa42aead
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = libvmi-git
+ pkgdesc = LibVMI is a virtual machine introspection library
+ pkgver = 0.10.r804.g69b3198
+ pkgrel = 1
+ url = http://libvmi.com
+ arch = any
+ license = GPL
+ makedepends = automake
+ makedepends = autoconf
+ makedepends = libtool
+ makedepends = bison
+ makedepends = flex
+ depends = json-c
+ optdepends = libvirt: required for KVM/libvirt usage
+ source = libvmi-git::git+https://github.com/libvmi/libvmi.git
+ sha256sums = SKIP
+
+pkgname = libvmi-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..4c7763faba8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+# Ignored folders
+src/
+pkg/
+libvmi-git/
+
+# Ignored files
+*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b3f610454c7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Aaron McDaniel (mcd1992) <'aur' at the domain 'fgthou.se'>
+
+pkgname=libvmi-git
+pkgver=0.10.r804.g69b3198
+pkgrel=1
+pkgdesc='LibVMI is a virtual machine introspection library'
+url='http://libvmi.com'
+arch=('any')
+license=('GPL')
+makedepends=('automake' 'autoconf' 'libtool' 'bison' 'flex')
+depends=('json-c')
+optdepends=('libvirt: required for KVM/libvirt usage')
+source=("${pkgname}::git+https://github.com/libvmi/libvmi.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd ${pkgname}
+ # Remove 'v' prefix on tags; prefix revision with 'r'; replace all '-' with '.'
+ git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd ${pkgname}
+
+ # Create build env
+ ./autogen.sh
+
+ # Create Makefiles
+ ./configure --prefix=/usr --disable-xen
+
+ # Enable debugging output
+ # sed -i -r 's/\/\/(#define VMI_DEBUG.*)/\1/' libvmi/debug.h
+}
+
+build() {
+ # Build the config files / headers first (cant parallel build these)
+ cd "${srcdir}/${pkgname}/libvmi/config"
+ make -j1
+
+ # Make all
+ cd "${srcdir}/${pkgname}"
+ make
+}
+
+package() {
+ cd ${pkgname}
+ make DESTDIR="$pkgdir/" install
+ install -DTm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}