You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
715 B
34 lines
715 B
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
DESCRIPTION="Effectively suppresses illegal DHCP servers on the LAN"
|
|
HOMEPAGE="http://www.netpatch.ru/dhcdrop.html"
|
|
SRC_URI="http://www.netpatch.ru/projects/${PN}/${P}.tar.bz2"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~mips ~x86"
|
|
|
|
IUSE="static"
|
|
|
|
RDEPEND="!static? ( net-libs/libpcap )"
|
|
DEPEND="static? ( net-libs/libpcap[static-libs] )
|
|
${RDEPEND}"
|
|
|
|
DOCS=( AUTHORS ChangeLog INSTALL NEWS README )
|
|
|
|
src_prepare() {
|
|
# Fix building with clang, bug #731694
|
|
sed -i \
|
|
-e '/^PACKAGE_/s/"//g' \
|
|
configure || die
|
|
|
|
eapply_user
|
|
}
|
|
|
|
src_configure() {
|
|
econf $(use static && echo "--enable-static-build")
|
|
}
|