summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre LALET2019-03-17 14:44:49 +0100
committerPierre LALET2019-03-17 14:44:49 +0100
commit643f8a0304756b9f544ff73d555d62e379b6612f (patch)
tree687efff374898b65af48e3db170baf45c4ad913f
downloadaur-643f8a0304756b9f544ff73d555d62e379b6612f.tar.gz
Add ivre*-git python{,2}-ivre-git
-rw-r--r--.SRCINFO85
-rw-r--r--PKGBUILD143
2 files changed, 228 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7775add4cd1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,85 @@
+pkgbase = ivre-git
+ pkgdesc = Network recon framework
+ pkgver = 0.9.12
+ pkgrel = 1
+ url = https://ivre.rocks/
+ arch = any
+ license = GPL3
+ makedepends = git
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = git+https://github.com/cea-sec/ivre.git
+ sha256sums = SKIP
+
+pkgname = ivre-git
+ depends = python-ivre
+ optdepends = ivre-docs-git: Documentation
+ optdepends = ivre-web-git: Web server
+ optdepends = nmap: Network scan
+ optdepends = masscan: Network scan
+ optdepends = zmap: Network scan
+ optdepends = bro: Network traffic analysis
+ optdepends = argus: Network traffic analysis
+ optdepends = nfdump: Netflow analysis
+ optdepends = imagemagick: Screenshots via Nmap scripts
+ optdepends = phantomjs: HTTP screenshots via Nmap script
+ optdepends = ffmpeg: RTSP Screenshots via Nmap script
+ provides = ivre
+ conflicts = ivre
+
+pkgname = ivre-web-git
+ pkgdesc = Network recon framework (web application)
+ depends = ivre-git
+ depends = python-bottle
+ optdepends = apache: Web server
+ optdepends = mod_wsgi: Web server
+ optdepends = dokuwiki: Web server (notebook)
+ provides = ivre-web
+ conflicts = ivre-web
+ backup = etc/httpd/conf/extra/ivre.conf
+
+pkgname = ivre-docs-git
+ pkgdesc = Network recon framework (documentation)
+ provides = ivre-docs
+ conflicts = ivre-docs
+
+pkgname = python-ivre-git
+ pkgdesc = Network recon framework (library)
+ depends = python
+ depends = python-pymongo
+ depends = python-future
+ optdepends = python-py2neo: experimental flow analysis (Neo4j backend)
+ optdepends = python-sqlalchemy: experimental PostgreSQL & SQLite backends
+ optdepends = python-psycopg2: experimental PostgreSQL backend
+ optdepends = python-pillow: trim screenshots on insertion
+ optdepends = tesseract: extract words from screenshots on insertion
+ optdepends = python-pycryptodome: extract data from public keys ("ivre getmoduli")
+ optdepends = python-scapy: parse PCAP files for ARP inspection (flow analysis)
+ optdepends = python-matplotlib: create graphs from command line tools
+ optdepends = python-dbus: 3D traceroute graphs
+ optdepends = mongodb: database server
+ optdepends = postgresql: database server (experimental backend)
+ optdepends = neo4j-community: database server (experimental flow analysis)
+ provides = python-ivre
+ conflicts = python-ivre
+
+pkgname = python2-ivre-git
+ pkgdesc = Network recon framework (library)
+ depends = python2
+ depends = python2-pymongo
+ depends = python2-future
+ optdepends = python2-py2neo: experimental flow analysis (Neo4j backend)
+ optdepends = python2-sqlalchemy: experimental PostgreSQL & SQLite backends
+ optdepends = python2-psycopg2: experimental PostgreSQL backend
+ optdepends = python2-pillow: trim screenshots on insertion
+ optdepends = tesseract: extract words from screenshots on insertion
+ optdepends = python2-pycryptodome: extract data from public keys ("ivre getmoduli")
+ optdepends = python2-scapy: parse PCAP files for ARP inspection (flow analysis)
+ optdepends = python2-matplotlib: create graphs from command line tools
+ optdepends = python2-dbus: 3D traceroute graphs
+ optdepends = mongodb: database server
+ optdepends = postgresql: database server (experimental backend)
+ optdepends = neo4j-community: database server (experimental flow analysis)
+ provides = python2-ivre
+ conflicts = python2-ivre
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5a45b24ecec
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,143 @@
+# Maintainer: Pierre Lalet <pl@ivre.rocks>
+
+pkgbase='ivre-git'
+pkgbasename='ivre'
+pkgname=('ivre-git' 'ivre-web-git' 'ivre-docs-git' 'python-ivre-git' 'python2-ivre-git')
+pkgver=0.9.12.dev51
+pkgrel=1
+pkgdesc='Network recon framework'
+arch=('any')
+url='https://ivre.rocks/'
+license=('GPL3')
+makedepends=('git' 'python-setuptools' 'python2-setuptools')
+source=("git+https://github.com/cea-sec/ivre.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$pkgbasename"
+ python setup.py --version 2>/dev/null
+}
+
+prepare() {
+ cp -a ${srcdir}/${pkgbasename}{,-py2}
+}
+
+build() {
+ (
+ cd "$srcdir/$pkgbasename"
+ python setup.py build
+ )
+ (
+ cd "$srcdir/$pkgbasename-py2"
+ python2 setup.py build
+ )
+}
+
+package_ivre-git() {
+ depends=('python-ivre')
+ optdepends=('ivre-docs-git: Documentation'
+ 'ivre-web-git: Web server'
+ 'nmap: Network scan'
+ 'masscan: Network scan'
+ 'zmap: Network scan'
+ 'bro: Network traffic analysis'
+ 'argus: Network traffic analysis'
+ 'nfdump: Netflow analysis'
+ 'imagemagick: Screenshots via Nmap scripts'
+ 'phantomjs: HTTP screenshots via Nmap script'
+ 'ffmpeg: RTSP Screenshots via Nmap script')
+ provides=('ivre')
+ conflicts=('ivre')
+ cd "$srcdir/$pkgbasename"
+ python setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1
+ rm -r "${pkgdir}/usr/lib" \
+ "${pkgdir}/usr/share/doc" \
+ "${pkgdir}/usr/share/ivre/dokuwiki" \
+ "${pkgdir}/usr/share/ivre/web"
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" doc/LICENSE*
+}
+
+package_ivre-docs-git() {
+ provides=('ivre-docs')
+ conflicts=('ivre-docs')
+ pkgdesc+=' (documentation)'
+ cd "$srcdir/$pkgbasename"
+ python setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1
+ rm -r "${pkgdir}/usr/bin" "${pkgdir}/usr/lib" \
+ "${pkgdir}/usr/share/ivre" \
+ "${pkgdir}/etc/bash_completion.d"
+}
+
+package_ivre-web-git() {
+ depends=('ivre-git' 'python-bottle')
+ optdepends=('apache: Web server'
+ 'mod_wsgi: Web server'
+ 'dokuwiki: Web server (notebook)')
+ provides=('ivre-web')
+ conflicts=('ivre-web')
+ pkgdesc+=' (web application)'
+ backup=('etc/httpd/conf/extra/ivre.conf')
+ cd "$srcdir/$pkgbasename"
+ python setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1
+ rm -r "${pkgdir}/usr/bin" "${pkgdir}/usr/lib" \
+ "${pkgdir}/usr/share/doc" \
+ "${pkgdir}/usr/share/ivre/bro" \
+ "${pkgdir}/usr/share/ivre/data" \
+ "${pkgdir}/usr/share/ivre/docker" \
+ "${pkgdir}/usr/share/ivre/geoip" \
+ "${pkgdir}/usr/share/ivre/honeyd" \
+ "${pkgdir}/usr/share/ivre/nmap_scripts" \
+ "${pkgdir}/etc/bash_completion.d"
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" doc/LICENSE*
+ install -Dm0644 "pkg/apache/ivre.conf" "$pkgdir/etc/httpd/conf/extra/ivre.conf"
+}
+
+package_python-ivre-git() {
+ depends=('python' 'python-pymongo' 'python-future')
+ optdepends=('python-py2neo: experimental flow analysis (Neo4j backend)'
+ 'python-sqlalchemy: experimental PostgreSQL & SQLite backends'
+ 'python-psycopg2: experimental PostgreSQL backend'
+ 'python-pillow: trim screenshots on insertion'
+ 'tesseract: extract words from screenshots on insertion'
+ 'python-pycryptodome: extract data from public keys ("ivre getmoduli")'
+ 'python-scapy: parse PCAP files for ARP inspection (flow analysis)'
+ 'python-matplotlib: create graphs from command line tools'
+ 'python-dbus: 3D traceroute graphs'
+ 'mongodb: database server'
+ 'postgresql: database server (experimental backend)'
+ 'neo4j-community: database server (experimental flow analysis)')
+ provides=('python-ivre')
+ conflicts=('python-ivre')
+ pkgdesc+=' (library)'
+ cd "$srcdir/$pkgbasename"
+ python setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1
+ rm -r "${pkgdir}/usr/bin" \
+ "${pkgdir}/usr/share" \
+ "${pkgdir}/etc/bash_completion.d"
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" doc/LICENSE*
+}
+
+package_python2-ivre-git() {
+ depends=('python2' 'python2-pymongo' 'python2-future')
+ optdepends=('python2-py2neo: experimental flow analysis (Neo4j backend)'
+ 'python2-sqlalchemy: experimental PostgreSQL & SQLite backends'
+ 'python2-psycopg2: experimental PostgreSQL backend'
+ 'python2-pillow: trim screenshots on insertion'
+ 'tesseract: extract words from screenshots on insertion'
+ 'python2-pycryptodome: extract data from public keys ("ivre getmoduli")'
+ 'python2-scapy: parse PCAP files for ARP inspection (flow analysis)'
+ 'python2-matplotlib: create graphs from command line tools'
+ 'python2-dbus: 3D traceroute graphs'
+ 'mongodb: database server'
+ 'postgresql: database server (experimental backend)'
+ 'neo4j-community: database server (experimental flow analysis)')
+ provides=('python2-ivre')
+ conflicts=('python2-ivre')
+ pkgdesc+=' (library)'
+ cd "$srcdir/$pkgbasename-py2"
+ python2 setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1
+ rm -r "${pkgdir}/usr/bin" \
+ "${pkgdir}/usr/share" \
+ "${pkgdir}/etc/bash_completion.d"
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" doc/LICENSE*
+}