Skip to content

Instantly share code, notes, and snippets.

@matsuu
Created October 5, 2009 23:42
Show Gist options
  • Save matsuu/202601 to your computer and use it in GitHub Desktop.
Save matsuu/202601 to your computer and use it in GitHub Desktop.
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
EAPI="2"
MY_P="${P/-utils}"
DESCRIPTION="Set of utilities to simplify various dns(sec) tasks."
HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/"
SRC_URI="http://www.nlnetlabs.nl/downloads/ldns/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples ssl"
DEPEND="net-libs/ldns
examples? (
~net-libs/ldns-${PV}[ssl?]
net-libs/libpcap
)"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
src_configure() {
cd "${S}"/drill
econf || die
if use examples; then
cd "${S}"/examples
econf $(use_enable ssl sha2) || die
fi
}
src_compile() {
emake -C drill || die "emake for drill failed"
if use examples; then
emake -C examples || die "emake for examples failed"
fi
}
src_install() {
cd "${S}"/drill
emake DESTDIR="${D}" install || die "emake install for drill failed"
dodoc ChangeLog.22-nov-2005 README REGRESSIONS
if use examples; then
cd "${S}"/examples
emake DESTDIR="${D}" install || die "emake install for examples failed"
newdoc README README.examples
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment