mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-19 21:31:10 +02:00
voiphopper: fixed on request from a dic
This commit is contained in:
parent
572cd68c6a
commit
51bebf2204
2 changed files with 8 additions and 17 deletions
|
|
@ -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>
|
||||
|
|
@ -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
|
||||
Loading…
Reference in a new issue