viper-framework / viper

Binary analysis and management framework
Other
1.54k stars 353 forks source link

problems while packaging viper #358

Closed shibumi closed 9 years ago

shibumi commented 9 years ago

Hello, I am the maintainer of viper in the Archlinux User Repository. Maybe you can help me..

While executing web.py I get:

[!] Something wrong happened while importing the module modules.pdns: No module named requests_cache
[!] Something wrong happened while importing the module modules.pssl: No module named dateutil.parser

While executing viper.py I get:

[!] Something wrong happened while importing the module modules.pdns: No module named requests_cache
[!] Something wrong happened while importing the module modules.pssl: No module named dateutil.parser

Here is my PKGBUILD file.

#Maintainer: Christian Rebischke <echo Q2hyaXMuUmViaXNjaGtlQGdtYWlsLmNvbQo= | base64 -d>

pkgname=viper-framework-git
provides=viper-framework
conflicts=viper-framework
pkgver=1.2.633.e35789e
pkgrel=1
pkgdesc="Git version of Viper the Binary Analysis Framework"
arch=("any")
url=("https://github.com/botherder/viper")
license=("BSD")
depends=(
"python2-pyexiftool" "python2-pylzma" "python2-bottle" "python2-pyelftools" 
"python2-bitstring" "python2-dnspython" "python2-m2crypto" "python2-pyasn1" 
"python2-requests" "python2-sqlalchemy" "python2-prettytable" "python2-magic" 
"python2-pydeep" "ssdeep" "python2-ssdeep" "python2-beautifulsoup4" 
"python2-pefile" "python2-crypto" "python2-olefile" "python2-oletools"
"python2-django" "python2-pymisp" "python2-scandir" "python2-pypssl"
"python2-pypdns" "python2-pype32" "python2-pbkdf2" ) 
makedepends=("git")
source=("git+https://github.com/botherder/viper"
        "viper-framework.install")
sha512sums=(
"SKIP"
"5f2446433205c4b04b7a2aad4c2262dfd54dc25a034a1b94f8de45a37a164c3fccdebdda60446148ddb940a5f84257426cbda21b7815d1e7b3cea5e9af54c0fe")
install="viper-framework.install"
pkgver() {
  cd viper
  printf "%s.%s.%s" "$(git describe --tags --abbrev=0)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd viper
  python2 -m compileall .
  python2 -O -m compileall .
}

package() {
  cd "$srcdir/viper"
  mkdir -p "$pkgdir/opt/viper/"
  mv * "$pkgdir/opt/viper/"
}

You see that I am installing the dependencies manually and not via pip. (this is a must-do for packaging). I have installed pssl and pdn. If you need more information please let me know. :-)

cheers

chris (sh1bumi at twitter)

Rafiot commented 9 years ago

I'm not fluent in Archlinux, but I guess you will need this package for the dateutils issue:

https://www.archlinux.org/packages/community/any/python2-dateutil/

And this one for pypdns (doesn't seems to be packaged for arch):

https://pypi.python.org/pypi/requests-cache

But for the last one, I will make it optional: the caching functionality is not used by the Passive DNS module in viper.

shibumi commented 9 years ago

ok thanks. I will add python2-dateutil as dependency and I will create a package for requests-cache

Rafiot commented 9 years ago

requests-cache is now optional in pypdns :)

shibumi commented 9 years ago

I've packaged requests-cache now for Archlinux User Repository and added your second dependency. Everything should be fine now :+1:

shibumi commented 9 years ago

could you forward pypdns 1.3 to pypi? I am currently using pypi for packaging your python stuff but I will change this on github when I have time

Rafiot commented 9 years ago

It's already there: https://pypi.python.org/pypi/pypdns

shibumi commented 9 years ago

cool I will update this package in the AUR too. thx for your fast reply