Package Details: meanalyzer-git 1.282.0.r295.r0.g5f7ae54-1

Git Clone URL: https://aur.archlinux.org/meanalyzer-git.git (read-only, click to copy)
Package Base: meanalyzer-git
Description: Intel Management Engine firmware analysis tool
Upstream URL: https://github.com/platomav/MEAnalyzer
Licenses: GPL3
Submitter: gavinhungry
Maintainer: saruman9
Last Packager: saruman9
Votes: 4
Popularity: 0.000802
First Submitted: 2018-01-08 19:35 (UTC)
Last Updated: 2022-08-11 03:11 (UTC)

Latest Comments

1 2 Next › Last »

saruman9 commented on 2022-08-11 03:12 (UTC)

Thank you, @m3thodic. I have updated the package.

m3thodic commented on 2022-08-05 20:46 (UTC)

Here is an updated PKGBUILD that symlinks MEA.py instead of patching files:

# Maintainer: Alex Sarum <rum.274.4 at gmail dot com>
# Contributor: Gavin Lloyd <gavinhungry@gmail.com>
# Contributor: Bailey Fox <bfox200012@gmail.com>

pkgname=meanalyzer-git
pkgver=1.282.0.r295.r0.g5f7ae54
pkgrel=1
pkgdesc='Intel Management Engine firmware analysis tool'
arch=('any')
url='https://github.com/platomav/MEAnalyzer'
_branch='master'
license=('GPL3')
depends=('python-colorama' 'python-crccheck' 'python-pltable')
makedepends=('dos2unix' 'git')
source=("${pkgname}::git+${url}#branch=${_branch}"
        'change-mea_dir.patch'
        'db-location.patch')
sha256sums=('SKIP'
            '8d77dc46728f5dc3b396910f2626f3508b28cfd76de77890e27e3c55b1c09e85'
            'cb9ee47ec3e6158762e9f1669cb35599c15b11202f9ff29234fb437e26d5faa8')

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

prepare() {
  cd "${srcdir}/${pkgname}"
  dos2unix MEA.py
}

package() {
  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/lib/meanalyzer/MEA.py

  install -dm755 "${pkgdir}"/usr/bin
  ln -s /usr/lib/meanalyzer/MEA.py "${pkgdir}"/usr/bin/meanalyzer
}

nullity commented on 2022-02-10 04:25 (UTC) (edited on 2022-02-10 12:19 (UTC) by nullity)

I'm unsure what the problem is but the AUR package fails but cloning the source git repository works fine. The error:

Switched to a new branch 'makepkg'
==> Starting prepare()...
patching file MEA.py
Hunk #1 FAILED at 7654 (different line endings).
Hunk #2 FAILED at 9011 (different line endings).
2 out of 2 hunks FAILED -- saving rejects to file MEA.py.rej

Also, python-pltable doesn't seem to work with the latest meanalyzer while python-pltable-git does.

swiftgeek commented on 2019-11-26 08:35 (UTC)

@egrupled thanks, this seems to work for me

egrupled commented on 2019-11-25 18:31 (UTC)

python-pltable-git is available in AUR: https://aur.archlinux.org/packages/python-pltable-git/

You also need to add epoch=1 to PKGBUILD and refresh version as current AUR version is detected as newer than building last commit form git.

fox8091 commented on 2019-08-14 23:59 (UTC)

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 (UTC) (edited on 2019-08-13 12:49 (UTC) by swiftgeek)

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 (UTC) (edited on 2019-06-17 17:08 (UTC) by egrupled)

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 (UTC)

@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 (UTC)

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