pentoo-voip: mask and remove abandoned voiphopper

This commit is contained in:
blshkv 2018-07-11 22:28:49 +08:00
parent 663493f6ae
commit 887b35ccae
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
5 changed files with 22 additions and 36 deletions

View file

@ -1 +1 @@
DIST voiphopper-2.04.tar.gz 352311 SHA256 ff26b67507b084ec7b53b1690c540a87505cb9bd428a0f78cf535f9707aab109 SHA512 6b8afcd5600c719e6470a64d84083269405b5548477c9221636b48aad295634839c621ebb7b736680acb64c987a3311d95929ab5d041419aa5375471ef773e29 WHIRLPOOL 85bd699888e578042ccd29c9ead77817d9865d61382a99f5eda55315ebcd4ebcb998557902bc07624da14f6010e0171d4adfe33fd09f9c5c3794b8dfa13999d8
DIST voiphopper-2.04.tar.gz 352311 BLAKE2B 7e20f36b81f8d9e3fdbafd8dc3fdd87b3e25553d9ba42c7a8c6882eed855f1592ce9c9e9d81cfe295ccc7171c6ed4c877ea2c985041e53b4a928e85d303b3c78 SHA512 6b8afcd5600c719e6470a64d84083269405b5548477c9221636b48aad295634839c621ebb7b736680acb64c987a3311d95929ab5d041419aa5375471ef773e29

View file

@ -0,0 +1,11 @@
--- 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

@ -1,9 +1,9 @@
# Copyright 1999-2010 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit linux-info
EAPI=6
inherit linux-info eutils
DESCRIPTION="VoIP Hopper is a tool that rapidly runs a VLAN Hop into the Voice VLAN"
HOMEPAGE="http://voiphopper.sourceforge.net/"
@ -11,10 +11,12 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
#fails to compile
#KEYWORDS="amd64 x86"
IUSE=""
DEPEND="net-libs/libpcap"
DEPEND="net-libs/libpcap
net-libs/libtirpc"
RDEPEND="${DEPEND}"
pkg_setup() {
@ -24,8 +26,10 @@ 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
eapply_user
}
src_install() {

View file

@ -1,28 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit linux-info
DESCRIPTION="VoIP Hopper is a tool that rapidly runs a VLAN Hop into the Voice VLAN"
HOMEPAGE="http://voiphopper.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="net-libs/libpcap"
RDEPEND="${DEPEND}"
pkg_setup() {
CONFIG_CHECK="~VLAN_8021Q"
linux-info_pkg_setup
}
src_install() {
dobin src/voiphopper
dodoc README USAGE
}

View file

@ -18,7 +18,6 @@ RDEPEND="${DEPEND}
net-misc/sipp
!minipentoo? (
net-analyzer/voiphopper
net-misc/sipsak
net-misc/voipong
)"