Skip to content

Instantly share code, notes, and snippets.

@matsuu
Created October 5, 2009 23:41
Show Gist options
  • Save matsuu/202600 to your computer and use it in GitHub Desktop.
Save matsuu/202600 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$
DESCRIPTION="ldns is a library with the aim to simplify DNS programing in C"
HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/"
SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ssl"
DEPEND="ssl? ( dev-libs/openssl )"
RDEPEND="${DEPEND}"
src_compile() {
econf $(use_enable ssl sha2) || die
emake || die
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc Changelog README || die "dodoc failed"
}
pkg_postinst() {
ewarn "The drill binary and the ldns-* utilities were moved into their own"
ewarn "package. If you need them, install net-dns/ldns-utils."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment