summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre LALET2017-07-11 12:12:56 +0200
committerPierre LALET2017-07-11 12:16:25 +0200
commit5728b53bea18c087cd92dcf11e75a697bbb05d2d (patch)
tree86b1157842946c3966c98694d372b7baf0d3bc6e
parente263473295b9a368f645c3d9152b2ae8babbb115 (diff)
downloadaur-5728b53bea18c087cd92dcf11e75a697bbb05d2d.tar.gz
Update dependencies, add Apache sample config file
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD39
-rw-r--r--apache.example.conf17
3 files changed, 61 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index eb9967aa1f5..d581b1aba88 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,10 @@
pkgbase = ivre
pkgdesc = Network recon framework
pkgver = 0.9.6
- pkgrel = 1
+ pkgrel = 2
url = https://ivre.rocks/
arch = any
license = GPL3
- makedepends = git
makedepends = python-setuptools
depends = python
depends = python-crypto
@@ -16,8 +15,25 @@ pkgbase = ivre
optdepends = python-pillow: Screenshots
optdepends = python-dbus: 3D traceroute graphs
optdepends = python-matplotlib: Plots
+ optdepends = mongodb: database server
+ optdepends = postgresql: database server
+ optdepends = apache: Web server
+ optdepends = dokuwiki: Web server (notebook)
+ 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 = phantomjs: Screenshots (http)
+ optdepends = imagemagick: Screenshots
+ optdepends = ffmpeg: Screenshots (rtsp)
+ optdepends = tesseract: Screenshots analysis
+ backup = etc/httpd/conf/extra/ivre.conf
source = https://github.com/cea-sec/ivre/archive/v0.9.6.tar.gz
+ source = apache.example.conf
sha256sums = d82d20ec0dc8fcb8e521061636b99367faf5c2bf2051c6dfaa85fac8abf72f3b
+ sha256sums = 3e372f51f2ad441baf8268ce29d35b3a1cb9ef4cb29e7864fab389759694f72e
pkgname = ivre
diff --git a/PKGBUILD b/PKGBUILD
index b393a64cb84..c7250810666 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=ivre
pkgver=0.9.6
-pkgrel=1
+pkgrel=2
pkgdesc="Network recon framework"
url="https://ivre.rocks/"
arch=('any')
@@ -11,17 +11,29 @@ depends=('python' 'python-crypto' 'python-pymongo')
optdepends=('python-py2neo: flow analysis support'
'python-sqlalchemy: PostgreSQL backend support'
'python-psycopg2: PostgreSQL backend support'
- 'python-pillow: Screenshots'
- 'python-dbus: 3D traceroute graphs'
- 'python-matplotlib: Plots')
-makedepends=('git' 'python-setuptools')
-source=(https://github.com/cea-sec/$pkgname/archive/v$pkgver.tar.gz)
-sha256sums=('d82d20ec0dc8fcb8e521061636b99367faf5c2bf2051c6dfaa85fac8abf72f3b')
-
-pkgver() {
- cd "$srcdir/$pkgname-$pkgver"
- python setup.py --version
-}
+ 'python-pillow: Screenshots'
+ 'python-dbus: 3D traceroute graphs'
+ 'python-matplotlib: Plots'
+ 'mongodb: database server'
+ 'postgresql: database server'
+ 'apache: Web server'
+ 'dokuwiki: Web server (notebook)'
+ 'nmap: Network scan'
+ 'masscan: Network scan'
+ 'zmap: Network scan'
+ 'bro: Network traffic analysis'
+ 'argus: Network traffic analysis'
+ 'nfdump: Netflow analysis'
+ 'phantomjs: Screenshots (http)'
+ 'imagemagick: Screenshots'
+ 'ffmpeg: Screenshots (rtsp)'
+ 'tesseract: Screenshots analysis')
+makedepends=('python-setuptools')
+backup=('etc/httpd/conf/extra/ivre.conf')
+source=(https://github.com/cea-sec/$pkgname/archive/v$pkgver.tar.gz
+ 'apache.example.conf')
+sha256sums=('d82d20ec0dc8fcb8e521061636b99367faf5c2bf2051c6dfaa85fac8abf72f3b'
+ '3e372f51f2ad441baf8268ce29d35b3a1cb9ef4cb29e7864fab389759694f72e')
build() {
cd "$srcdir/$pkgname-$pkgver"
@@ -30,6 +42,7 @@ build() {
package() {
cd "$srcdir/$pkgname-$pkgver"
- install -Dm644 -t "$pkgdir/usr/share/licenses/ivre/" doc/LICENSE*
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/ivre/" doc/LICENSE*
+ install -Dm0644 "$srcdir"/apache.example.conf "$pkgdir/etc/httpd/conf/extra/ivre.conf"
python setup.py install --root="$pkgdir" --optimize=1
}
diff --git a/apache.example.conf b/apache.example.conf
new file mode 100644
index 00000000000..c9ca6e0eb87
--- /dev/null
+++ b/apache.example.conf
@@ -0,0 +1,17 @@
+# Apache configuration file for IVRE
+
+<IfModule !mpm_prefork_module>
+ LoadModule cgid_module modules/mod_cgid.so
+</IfModule>
+<IfModule mpm_prefork_module>
+ LoadModule cgi_module modules/mod_cgi.so
+</IfModule>
+
+ScriptAlias /ivre/cgi-bin "/usr/share/ivre/web/cgi-bin"
+Alias /ivre "/usr/share/ivre/web/static"
+
+<Directory "/usr/share/ivre/web">
+ Options None
+ AllowOverride None
+ Require all granted
+</Directory>