From 93a93e9a3b53c1a73142a305ea1f8136846942ee Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 22 Dec 2021 14:08:05 +0000 Subject: gentoo resync : 22.12.2021 --- net-analyzer/dhcp_probe/dhcp_probe-1.3.1.ebuild | 57 +++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 net-analyzer/dhcp_probe/dhcp_probe-1.3.1.ebuild (limited to 'net-analyzer/dhcp_probe/dhcp_probe-1.3.1.ebuild') diff --git a/net-analyzer/dhcp_probe/dhcp_probe-1.3.1.ebuild b/net-analyzer/dhcp_probe/dhcp_probe-1.3.1.ebuild new file mode 100644 index 000000000000..4bcdb5ae2887 --- /dev/null +++ b/net-analyzer/dhcp_probe/dhcp_probe-1.3.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic toolchain-funcs + +DESCRIPTION="Discover DHCP and BootP servers on a directly-attached Ethernet network" +HOMEPAGE="https://www.net.princeton.edu/software/dhcp_probe/" +SRC_URI="https://www.net.princeton.edu/software/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="net-libs/libpcap + >=net-libs/libnet-1.1.2.1-r2" +RDEPEND="${DEPEND}" + +DOCS=( + AUTHORS + ChangeLog + NEWS + README + TODO + extras/dhcp_probe.cf.sample +) + +PATCHES=( + "${FILESDIR}"/${PN}-1.3.1-respect-AR.patch + "${FILESDIR}"/${PN}-1.3.1-fix-configure-CPP.patch +) + +src_prepare() { + default + + # for AR patch + eautoreconf +} + +src_configure() { + # configure uses CPP + tc-export CPP + + use amd64 && append-cppflags -D__ARCH__=64 + + STRIP=true econf +} + +src_install() { + default + + dodoc "${FILESDIR}"/${PN}_mail + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} -- cgit v1.2.3