SHARE
TWEET

Untitled

a guest Mar 15th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=netdiscover
  2. pkgver=0.5.1
  3. pkgrel=1
  4. pkgdesc="ARP Scanner"
  5. arch=('i686' 'x86_64')
  6. url="https://github.com/netdiscover-scanner/netdiscover/"
  7. license=('GPL')
  8. depends=('libnet' 'libpcap')
  9. makedepends=('gcc' 'make' 'wget')
  10. provides=('netdiscover')
  11. conflicts=('netdiscover-debian' 'netdiscover-svn')
  12. source=("https://github.com/netdiscover-scanner/netdiscover/archive/0.5.1.tar.gz"
  13.         'http://standards-oui.ieee.org/oui/oui.txt')
  14.  
  15. sha256sums=('153bab7fee507ff631cdedee673031cd5fa8e2cbd6347f4928d1edbeab20f2c6'
  16.             'SKIP')
  17.  
  18. prepare(){
  19.         cd "$srcdir"/netdiscover-0.5.1
  20.         cat << EOT > src/oui.h
  21. struct oui {
  22.         char *prefix;   /* 24 bit global prefix */
  23.         char *vendor;   /* Vendor id string     */
  24. };
  25.        
  26. struct oui oui_table[] = {
  27. EOT
  28.         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
  29.         cat << EOT >> src/oui.h
  30.     { NULL, NULL }
  31. };
  32. EOT
  33. }
  34.  
  35. build() {
  36.         cd "$srcdir"/netdiscover-0.5.1
  37.         ./autogen.sh
  38.         ./configure --sbindir=/usr/bin --prefix=/usr --sysconfdir=/etc/
  39.         make
  40. }
  41.        
  42. package() {
  43.         cd "$srcdir"/netdiscover-0.5.1
  44.         make DESTDIR="$pkgdir" install || return 1
  45. }
  46. ~
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top