diff options
author | Christian Rebischke | 2016-11-15 23:28:17 +0100 |
---|---|---|
committer | Christian Rebischke | 2016-11-15 23:28:17 +0100 |
commit | b2324ceb15feca36baa849627530b875a3ce7717 (patch) | |
tree | f469a9c105837d718b7b6299ac71fbbaeb7764a6 /PKGBUILD | |
parent | b47a8ee38ef78b28851029ac6fdd8aadb00addb3 (diff) | |
download | aur-viper-framework-git.tar.gz |
SECURITY UPDATE: removed chmod ugo+w
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 51 |
1 files changed, 29 insertions, 22 deletions
@@ -4,41 +4,48 @@ pkgname=viper-framework-git provides=("viper-framework") conflicts=("viper-framework") pkgver=v1.2.1133.cd7b753 -pkgrel=2 +pkgrel=4 pkgdesc="Git version of Viper the Binary Analysis Framework" arch=("any") url="https://github.com/viper-framework/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" "python2-dateutil" -"python2-requests-cache" "python2-cffi" "python2-cryptography" -"python2-terminaltables" "python2-virustotal-api" "radare2-bindings" -"python2-enum34" "python2-idna" "python2-ipaddress" "python2-pycparser" -"python2-six") + "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" "python2-dateutil" + "python2-requests-cache" "python2-cffi" "python2-cryptography" + "python2-terminaltables" "python2-virustotal-api" "radare2-bindings" + "python2-enum34" "python2-idna" "python2-ipaddress" "python2-pycparser" + "python2-six" "python2-yara") makedepends=("git") -source=("git+https://github.com/viper-framework/viper") -sha512sums=("SKIP") +source=("git+https://github.com/viper-framework/viper" "viper-cli" "viper-api" "viper-web") +sha512sums=('SKIP' + 'd34e99c52ebc5c836337ad88bf756a0404173d83aaac0620b15845833049c3c360c27180504a317b9773dde3064e42f14d29f0f32f1caad213b6277a78ca5c97' + 'd34e99c52ebc5c836337ad88bf756a0404173d83aaac0620b15845833049c3c360c27180504a317b9773dde3064e42f14d29f0f32f1caad213b6277a78ca5c97' + 'd34e99c52ebc5c836337ad88bf756a0404173d83aaac0620b15845833049c3c360c27180504a317b9773dde3064e42f14d29f0f32f1caad213b6277a78ca5c97') 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)" + 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 . + cd viper + python2 -m compileall . + python2 -O -m compileall . } package() { - cd "${srcdir}/viper" - mkdir -p "${pkgdir}/opt/viper/" - mv * "${pkgdir}/opt/viper/" + cd "${srcdir}/viper" + mkdir -p "${pkgdir}/opt/viper/" + mv * "${pkgdir}/opt/viper/" sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' "${pkgdir}/opt/viper/"viper-{api,cli,update,web} + install -m644 -D "${pkgdir}/opt/viper/viper.conf.sample" "${pkgdir}/etc/viper/viper.conf" + sed -i 's|storage_path =|storage_path = /opt/viper/.viper/|' "${pkgdir}/etc/viper/viper.conf" + mkdir -p "${pkgdir}/usr/bin/" + install -m755 -D "${srcdir}/"viper-{cli,web,api} "${pkgdir}/usr/bin/" } |