diff options
author | Daniel Gonzalez Cabanelas | 2019-03-16 11:23:33 +0100 |
---|---|---|
committer | Daniel Gonzalez Cabanelas | 2019-03-16 11:23:33 +0100 |
commit | 05002ca3e8371a2bcde2de9df6e1853ca4ee7d8e (patch) | |
tree | 8f5f36c70b167bbbdf5b9e3f0610e1d1f68b6073 | |
parent | 975dbd4cb3eb9f74c8381c81b013b6b59f6752da (diff) | |
download | aur-05002ca3e8371a2bcde2de9df6e1853ca4ee7d8e.tar.gz |
0.5.1: update to new repository on github
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 51 | ||||
-rw-r--r-- | oui.tar.xz | bin | 191564 -> 0 bytes |
3 files changed, 37 insertions, 30 deletions
@@ -1,10 +1,10 @@ # Generated by mksrcinfo v8 -# Wed Dec 20 21:05:36 UTC 2017 +# Sat Mar 16 10:21:07 UTC 2019 pkgbase = netdiscover - pkgdesc = network address discovering tool that was developed mainly for those wireless networks without DHCP servers, though it also works on wired networks. It sends ARP requests and sniffs for replies - pkgver = 0.3prebeta7 + pkgdesc = ARP Scanner + pkgver = 0.5.1 pkgrel = 1 - url = http://nixgeneration.com/~jaime/netdiscover/ + url = https://github.com/netdiscover-scanner/netdiscover/ arch = i686 arch = x86_64 license = GPL @@ -16,10 +16,10 @@ pkgbase = netdiscover provides = netdiscover conflicts = netdiscover-debian conflicts = netdiscover-svn - source = https://sourceforge.net/projects/netdiscover/files/netdiscover/0.3-pre-beta7-LINUXONLY/netdiscover-0.3-pre-beta7-LINUXONLY.tar.gz - source = oui.tar.xz - md5sums = 8780e66d00496e933b4064cfe9ae61da - md5sums = d4bad3f02475c98c9f3072bd64a35613 + source = https://github.com/netdiscover-scanner/netdiscover/archive/0.5.1.tar.gz + source = http://standards-oui.ieee.org/oui/oui.txt + sha256sums = 153bab7fee507ff631cdedee673031cd5fa8e2cbd6347f4928d1edbeab20f2c6 + sha256sums = SKIP pkgname = netdiscover @@ -1,38 +1,45 @@ -# Contributor: danitool pkgname=netdiscover -pkgver=0.3prebeta7 +pkgver=0.5.1 pkgrel=1 -pkgdesc="network address discovering tool that was developed mainly for those wireless networks without DHCP servers, though it also works on wired networks. It sends ARP requests and sniffs for replies" +pkgdesc="ARP Scanner" arch=('i686' 'x86_64') -url="http://nixgeneration.com/~jaime/netdiscover/" +url="https://github.com/netdiscover-scanner/netdiscover/" license=('GPL') depends=('libnet' 'libpcap') makedepends=('gcc' 'make' 'wget') provides=('netdiscover') conflicts=('netdiscover-debian' 'netdiscover-svn') -replaces=() -backup=() -groups=() -options=() -source=("https://sourceforge.net/projects/${pkgname}/files/${pkgname}/0.3-pre-beta7-LINUXONLY/${pkgname}-0.3-pre-beta7-LINUXONLY.tar.gz" - 'oui.tar.xz') +source=("https://github.com/netdiscover-scanner/netdiscover/archive/${pkgver}.tar.gz" + 'http://standards-oui.ieee.org/oui/oui.txt') -md5sums=('8780e66d00496e933b4064cfe9ae61da' - 'd4bad3f02475c98c9f3072bd64a35613') +sha256sums=('153bab7fee507ff631cdedee673031cd5fa8e2cbd6347f4928d1edbeab20f2c6' + 'SKIP') prepare(){ - cd "$srcdir"/netdiscover-0.3-pre-beta7 - patch -p1 -i ../oui.patch + cd "$srcdir/$pkgname-$pkgver" + cat << EOT > src/oui.h +struct oui { + char *prefix; /* 24 bit global prefix */ + char *vendor; /* Vendor id string */ +}; + +struct oui oui_table[] = { +EOT + cat ../oui.txt | sed 's/\r//' | grep "base 16" | tr '\t' ' ' | tr -s " " | sed 's/(base 16) //' | grep '[0-9A-F]' | sort | sed 's/ /", "/' | sed 's/^/ { "/' | sed -z 's/\n/" },#/g' | tr '#' '\n' >> src/oui.h + cat << EOT >> src/oui.h + { NULL, NULL } +}; +EOT } build() { - cd "$srcdir"/netdiscover-0.3-pre-beta7 - ./configure --sbindir=/usr/bin --prefix=/usr --sysconfdir=/etc/ - make || return 1 - } - + cd "$srcdir/$pkgname-$pkgver" + ./autogen.sh + ./configure --sbindir=/usr/bin --prefix=/usr --sysconfdir=/etc/ + make +} + package() { - cd "$srcdir"/netdiscover-0.3-pre-beta7 - make DESTDIR="$pkgdir" install || return 1 - rm -rf "$pkgdir"/usr/doc + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install || return 1 } diff --git a/oui.tar.xz b/oui.tar.xz Binary files differdeleted file mode 100644 index b307cf71fa1f..000000000000 --- a/oui.tar.xz +++ /dev/null |