Package Details: voiphopper 2.04-1

Git Clone URL: https://aur.archlinux.org/voiphopper.git (read-only)
Package Base: voiphopper
Description: A security validation tool that tests to see if a PC can mimic the behavior of an IP Phone. It rapidly automates a VLAN Hop into the Voice VLAN.
Upstream URL: http://voiphopper.sourceforge.net/
Licenses: GPLv3
Submitter: fnord0
Maintainer: bidulock
Last Packager: bidulock
Votes: 5
Popularity: 0.000000
First Submitted: 2010-08-23 12:41
Last Updated: 2015-07-14 06:26

Latest Comments

reinhard_14 commented on 2018-04-24 05:39

Here are some changes I made to make things build smoothly. Testing was limited to my setup, and I don't really know what I'm doing but it seemed to work just fine.

PKGBUILD

# Contributor: fnord0 < fnord0 AT riseup DOT net >

pkgname=voiphopper
pkgver=2.04
pkgrel=1
pkgdesc="A security validation tool that tests to see if a PC can mimic the behavior of an IP Phone. It rapidly automates a VLAN Hop into the Voice VLAN."
arch=('i686' 'x86_64')
url="http://voiphopper.sourceforge.net/"
license=('GPLv3')
depends=('libpcap' 'gcc')
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('561acddff336d0408ad7bf663fe274d7')
sha1sums=('262b3e88e3a58adc351aacaadb0e32eca60a9d61')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  patch src/dhcpclient.h ../../dhcpclient.patch
  ./configure --prefix=/usr --mandir=/usr/share/man --libexecdir=/usr/lib || return 1
  make || return 1
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  install -d ${pkgdir}/usr/share/voiphopper || return 1
  install -d ${pkgdir}/usr/share/licenses/voiphopper || return 1
  install -d ${pkgdir}/usr/bin || return 1
  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/voiphopper/LICENSE || return 1
  for doc in INSTALL README BUGS; do
        install -Dm644 ${doc} ${pkgdir}/usr/share/voiphopper/${doc} || return 1
  done
  make DESTDIR="${pkgdir}" install || return 1
}

dhcpclient.patch

--- src/dhcpclient.h    2012-04-24 10:10:14.000000000 -0400
+++ src/dhcpclient.h    2018-04-24 00:53:17.820484382 -0400
@@ -25,9 +25,9 @@
 #ifdef __GLIBC__
 #include <net/ethernet.h>
 #include <linux/types.h>
-#include <linux/if_tr.h>
+#include <netinet/if_tr.h>
 #else
-#include <linux/if_ether.h>
+#include <netinet/if_ether.h>
 #define ETHERTYPE_IP       0x0800
 #define ETHERTYPE_ARP      0x0806
 #endif

hisi commented on 2016-02-26 14:28

Does not build anymore as it tries to do touch stuff in $pkgdir during build() instead of package().

paraxor commented on 2013-05-12 15:20

I have adopted and updated this package.

oliv commented on 2013-03-06 14:58

Version 2.04 released.

You need to patch dhcpclient.h to build successfully the package:

sed -i "s%<linux/if_ether.h>%<netinet/if_ether.h>%" -i src/dhcpclient.h
sed -i "s%<linux/if_tr.h>%<netinet/if_tr.h>%" -i src/dhcpclient.h

oliv commented on 2013-03-06 14:55

Version 2.04 released.

You need to patch dhcpclient.h to build successfully the package:

sed -i "s%<linux/if_ether.h>%<netinet/if_ether.h%" -i src/dhcpclient.h

oliv commented on 2011-08-17 14:57

Version 2.00 has been released.

To build you can change the PKGBUILD:

build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr --mandir=/usr/share/man --libexecdir=/usr/lib || return 1
make || return 1
}

package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install || return 1

install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/voiphopper/LICENSE || return 1
}

P.S. I don't know where is the MAN page in this version. Maybe they considered voiphopper -h is sufficient...;