diff options
author | Jochem Broekhoff | 2019-10-16 20:18:28 +0200 |
---|---|---|
committer | Jochem Broekhoff | 2019-10-16 20:18:28 +0200 |
commit | 58c735b1da3e36c6234359e4f07745dccd97ebc1 (patch) | |
tree | 9cf5d6669726d66b3f87fdf4e8d4f0e53fd37bdd | |
download | aur-58c735b1da3e36c6234359e4f07745dccd97ebc1.tar.gz |
Initial package release.
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 47 | ||||
-rwxr-xr-x | launch.sh | 2 |
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b0e65c17b977 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = iot-inspector-client + pkgdesc = A standalone desktop app that lets you analyze your home IoT devices + pkgver = 2 + pkgrel = 1 + url = https://iot-inspector.princeton.edu/blog/ + arch = any + license = MIT + depends = python + depends = python2 + depends = python2-flask + depends = python2-flask-cors + depends = python2-requests + depends = python2-netaddr + depends = python2-scapy + depends = python-netdisco + source = https://github.com/noise-lab/iot-inspector-client/archive/1b6af10888c452b39a3e90216ca298f8f27523e3.zip + source = launch.sh + sha256sums = f51f7320139fb5a8794aef64343e1c033605ed7702a0b476a74fbea28e67189b + sha256sums = SKIP + +pkgname = iot-inspector-client + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..031f9177f4e7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Jochem Broekhoff <(lastname) dot (firstname) @ gmail.com> +pkgname=iot-inspector-client +pkgver=2 +pkgrel=1 +pkgdesc="A standalone desktop app that lets you analyze your home IoT devices" +arch=('any') +license=('MIT') +url="https://iot-inspector.princeton.edu/blog/" +_revision="1b6af10888c452b39a3e90216ca298f8f27523e3" + +depends=('python' + 'python2' + 'python2-flask' + 'python2-flask-cors' + 'python2-requests' + 'python2-netaddr' + 'python2-scapy' + 'python-netdisco') + +source=("https://github.com/noise-lab/iot-inspector-client/archive/${_revision}.zip" + "launch.sh") +sha256sums=('f51f7320139fb5a8794aef64343e1c033605ed7702a0b476a74fbea28e67189b' + 'SKIP') + +prepare() { + # Patch usage of old Scapy modules + sed -e "s/import scapy_http.http as http/from scapy.layers import http/" \ + -e "s/import scapy_ssl_tls.ssl_tls as ssl_tls # noqa/from scapy.layers import tls/" \ + -i "${srcdir}/${pkgname}-${_revision}/v2-src/packet_processor.py" +} + +package() { + cd "${srcdir}/${pkgname}-${_revision}/v2-src" + + mkdir -p "${pkgdir}/usr/lib/${pkgname}" + + # Copy primary files + cp -t "${pkgdir}/usr/lib/${pkgname}" *.py + + # Launch file + install -Dm755 "${srcdir}/launch.sh" \ + "${pkgdir}/usr/bin/${pkgname}" + + # Licenses + install -Dm644 "${srcdir}/${pkgname}-${_revision}/LICENSE.txt" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/launch.sh b/launch.sh new file mode 100755 index 000000000000..0d4e93497462 --- /dev/null +++ b/launch.sh @@ -0,0 +1,2 @@ +#!/bin/sh +python2 /usr/lib/iot-inspector-client/start_inspector.py persistent |