voiphopper: fixed on request from a dic

This commit is contained in:
Rick Farina (Zero_Chaos) 2018-12-21 15:24:25 -05:00
parent 572cd68c6a
commit 51bebf2204
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A
2 changed files with 8 additions and 17 deletions

View file

@ -1,11 +0,0 @@
--- a/src/main.c.orig 2012-04-24 22:31:23.000000000 +0800
+++ b/src/main.c 2018-07-11 22:21:09.771277204 +0800
@@ -27,7 +27,7 @@
#include <string.h>
#include <netinet/in.h>
#include <netinet/ether.h>
-#include <rpc/types.h>
+#include <tirpc/rpc/types.h>
#include <netdb.h>
#include <sys/socket.h>
#include <arpa/inet.h>

View file

@ -11,8 +11,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
#fails to compile
#KEYWORDS="amd64 x86"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="net-libs/libpcap
@ -25,13 +24,16 @@ pkg_setup() {
}
src_prepare() {
#patch for the linux-headers 3.6
epatch ${FILESDIR}/fix-include.patch
sed -i "s%<linux/if_ether.h>%<netinet/if_ether.h>%" src/dhcpclient.h
sed -i "s%<linux/if_tr.h>%<netinet/if_tr.h>%" src/dhcpclient.h
sed -i "s%<linux/if_ether.h>%<netinet/if_ether.h>%" src/dhcpclient.h || die
sed -i "s%<linux/if_tr.h>%<netinet/if_tr.h>%" src/dhcpclient.h || die
eapply_user
}
src_configure() {
econf
sed -i 's#-I.#-I. -I/usr/include/tirpc#' src/Makefile || die
}
src_install() {
dobin src/voiphopper
dodoc README USAGE