diff options
author | GI_Jack | 2017-12-27 21:52:35 -0500 |
---|---|---|
committer | GI_Jack | 2017-12-27 21:52:35 -0500 |
commit | 8e0bc01dc8448e33e8dada554fd093434221c39c (patch) | |
tree | 79e1c57dd146109e5a9fc92daf08b5bbfef74be9 | |
download | aur-loki.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 30 | ||||
-rw-r--r-- | PKGBUILD | 55 | ||||
-rw-r--r-- | loki.desktop | 10 |
3 files changed, 95 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5e511c9cb134 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,30 @@ +# Generated by mksrcinfo v8 +# Thu Dec 28 02:40:12 UTC 2017 +pkgbase = loki + pkgdesc = Python based framework implementing many packet generation and attack modules for Layer 2 and 3 protocols + pkgver = 0.2.7 + pkgrel = 1 + url = http://c0decafe.de/loki.html + arch = i686 + arch = x86_64 + arch = armv6h + arch = armv7h + arch = aarch64 + license = BSD + depends = python2 + depends = pygtk + depends = python2-ipy + depends = pylibpcap + depends = libdnet + depends = python2-dpkt + depends = libglade + depends = autoconf + depends = automake + options = !emptydirs + source = http://c0decafe.de/loki/loki-0.2.7.tar.gz + source = loki.desktop + sha512sums = c2f722e63024526f139dc182b5deb1779becd8f53a557c303daf4c6b02059cefb90636a7389e1267cb56e769925b4eeed4cee4c7895291462ae43ca88b097908 + sha512sums = 8ddc7d629994455e4ba311cef34015a68d2c19b5e6b59cc19111c90dca449cf519ec87ab175170675a5b696fa9acde14e2d565da423197c4483507518beaed68 + +pkgname = loki + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..79451c6a0493 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: GI_Jack <iamjacksemail@hackermail.com> +# Imported from Arch Strike +# Maintainer: ArchStrike <team@archstrike.org> + +pkgname=loki +pkgver=0.2.7 +pkgrel=1 +pkgdesc="Python based framework implementing many packet generation and attack modules for Layer 2 and 3 protocols" +arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') +url="http://c0decafe.de/loki.html" +license=('BSD') +depends=('python2' 'pygtk' 'python2-ipy' 'pylibpcap' 'libdnet' 'python2-dpkt' 'libglade' 'autoconf' 'automake') +source=("http://c0decafe.de/loki/loki-$pkgver.tar.gz" "loki.desktop") +options=('!emptydirs') +sha512sums=('c2f722e63024526f139dc182b5deb1779becd8f53a557c303daf4c6b02059cefb90636a7389e1267cb56e769925b4eeed4cee4c7895291462ae43ca88b097908' + '8ddc7d629994455e4ba311cef34015a68d2c19b5e6b59cc19111c90dca449cf519ec87ab175170675a5b696fa9acde14e2d565da423197c4483507518beaed68') + +prepare() { + cd "$srcdir/loki-$pkgver" + + sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' "$srcdir/loki-$pkgver/src/loki.py" + grep -rl 'python-config' "$srcdir/loki-$pkgver" | xargs sed -i 's|python-config|python2-config|g' +} + +build() { + cd "$srcdir/loki-$pkgver" + + aclocal + automake --add-missing + autoconf + ./configure --prefix=/usr PYTHON=/usr/bin/python2 + make +} + +package() { + cd "$srcdir/loki-$pkgver" + + # Base directories. + install -dm755 "$pkgdir/usr/bin" + install -dm755 "$pkgdir/usr/share/loki" + install -dm755 "$pkgdir/usr/share/doc/loki" + install -dm755 "$pkgdir/usr/share/applications" + install -dm755 "$pkgdir/usr/share/licenses/loki" + + make "DESTDIR=$pkgdir/" install + + install -m644 LICENSE "$pkgdir/usr/share/licenses/loki" + install -m644 AUTHORS "$pkgdir/usr/share/licenses/loki" + install -m644 COPYING "$pkgdir/usr/share/licenses/loki" + install -m644 "${srcdir}/loki.desktop" "$pkgdir/usr/share/applications/loki.deskop" + + for doc in ChangeLog README REQUIREMENTS; do + install -m644 $doc "$pkgdir/usr/share/doc/loki/$doc" + done +} diff --git a/loki.desktop b/loki.desktop new file mode 100644 index 000000000000..e8f9391c6040 --- /dev/null +++ b/loki.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Name=Loki +Comment=Python based framework implementing many packet generation and attack modules for Layer 2 and 3 protocols +Exec=loki +Icon=network +Terminal=false +StartupNotify=false +Categories=Network;Security; |