Package Details: meanalyzer-git 1.86.0.r166.r0.g36d1698-2

Git Clone URL: https://aur.archlinux.org/meanalyzer-git.git (read-only)
Package Base: meanalyzer-git
Description: Intel Management Engine firmware analysis tool
Upstream URL: https://github.com/platomav/MEAnalyzer
Licenses: GPL3
Submitter: gavinhungry
Maintainer: fox8091
Last Packager: fox8091
Votes: 1
Popularity: 0.254143
First Submitted: 2018-01-08 19:35
Last Updated: 2019-06-23 06:25

Latest Comments

fox8091 commented on 2019-08-14 23:59

Give me a bit to fix this. Apparently PTable was renamed to PLTable, which is now provided on pypi. So I'm going to create a new package for PLTable and list it as a dependency.

swiftgeek commented on 2019-08-13 12:41

https://github.com/platomav/PTable/archive/boxchar.zip is 404 now, and boxchar branch is gone as well

egrupled commented on 2019-06-17 14:32

python-huffman11-git package doesn't work. You have to use https://github.com/platomav/MEAnalyzer/blob/master/Huffman.dat from upstream and patch it's location similarly to MEA.dat. Below is modified db-location.patch:

--- MEA.py
+++ MEA.py
@@ -6236,7 +6236,7 @@
    HUFFMAN_SYMBOLS = {}
    HUFFMAN_UNKNOWNS = {}
    mapping_types = {'code' : 0x20, 'data' : 0x60}
-   huffman_dict = os.path.join(mea_dir, 'Huffman.dat')
+   huffman_dict = '/usr/lib/meanalyzer/Huffman.dat'

    # Check if Huffman dictionary version is supported
    if (cse_variant, cse_major) in [('CSME', 11), ('CSSPS', 4)] : dict_version = 11
@@ -7110,7 +7110,7 @@
 arg_num = len(sys.argv)

 # Set dependencies paths
-db_path = os.path.join(mea_dir, 'MEA.dat')
+db_path = '/usr/lib/meanalyzer/MEA.dat'

 # Check if dependencies exist
 depend_db = os.path.isfile(db_path)

PKGBUILD changes:

package() {
  cd "${srcdir}/PTable-boxchar"
  python setup.py install --root="$pkgdir/" --optimize=1

  cd "${srcdir}/${pkgname}"
  install -Dm644 MEA.dat "${pkgdir}"/usr/lib/meanalyzer/MEA.dat
  install -Dm644 Huffman.dat "${pkgdir}"/usr/lib/meanalyzer/Huffman.dat
  install -Dm755 MEA.py "${pkgdir}"/usr/bin/meanalyzer
}

You can test it with: meanalyzer <file> -skip -exit -unp86 -ver86 -bug86

fox8091 commented on 2019-06-16 21:50

@egrupled I've confirmed python-prettytable isn't needed, and I'll drop it in the next update. Before I do though, can you confirm python-huffman11-git isn't needed anymore?

egrupled commented on 2019-06-16 14:30

@fox8091 python-prettytable and python-huffman11-git aren't needed for this package. Please drop them.

fox8091 commented on 2019-03-16 00:30

Should be working again with the latest upstream. Let me know if anything is still broken.

m3thodic commented on 2018-09-26 19:03

Latest update (1.61.1.r139.r0.gdace159-1): http://libpcap.net/meanalyzer-git.tar.gz

Thanks!

egrupled commented on 2018-09-10 12:15

This package is broken currently, here's working version:

PKGBUILD:

# Maintainer: Gavin Lloyd <gavinhungry@gmail.com>

pkgname=meanalyzer-git
pkgver=1.61.0.r137.r0.g7e4f078
pkgrel=1
pkgdesc='Intel Management Engine firmware analysis tool'
arch=('any')
url='https://github.com/platomav/MEAnalyzer'
license=('GPL3')
depends=('python-colorama' 'python-huffman11-git')
makedepends=('dos2unix' 'git')
source=("${pkgname}::git+${url}.git"
        'db-location.patch'
        'https://github.com/platomav/PTable/archive/boxchar.zip')
sha256sums=('SKIP'
            'f575f74f474360041f761889e269372e551d78843af4cc5fb8f1eeb2bcb4969b'
            'd8783384fa8e2d84bbd641cf01438f40b29fecf88d79340551789b435333e8b4')

pkgver() {
  cd "${srcdir}/${pkgname}"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "${srcdir}/${pkgname}"
  patch -p0 --binary < ../db-location.patch
  dos2unix MEA.py
}

package() {
  cd "${srcdir}/PTable-boxchar"
  python setup.py install --root="$pkgdir/" --optimize=1

  cd "${srcdir}/${pkgname}"
  install -Dm644 MEA.dat "${pkgdir}"/usr/lib/meanalyzer/MEA.dat
  install -Dm755 MEA.py "${pkgdir}"/usr/bin/meanalyzer
}

db-location.patch:

--- MEA.py
+++ MEA.py
@@ -5074,7 +5074,7 @@
 arg_num = len(sys.argv)

 # Set dependencies paths
-db_path = os.path.join(mea_dir, 'MEA.dat')
+db_path = '/usr/lib/meanalyzer/MEA.dat'

 # Check if dependencies exist
 depend_db = os.path.isfile(db_path)