Files
gentoo-zh/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.3.3.ebuild
T

44 lines
997 B
Bash

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit eutils flag-o-matic systemd
DESCRIPTION="A tool for securing communications between a client and a DNS resolver"
HOMEPAGE="http://www.opendns.com/technology/dnscrypt/"
SRC_URI="http://download.dnscrypt.org/${PN}/${P}.tar.gz"
RESTRICT="mirror"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="dev-libs/libsodium"
pkg_setup() {
enewgroup dnscrypt
enewuser dnscrypt -1 -1 /var/empty dnscrypt
}
src_configure() {
if [[ ! -e configure ]] ; then
./autogen.sh || die "autogen failed"
fi
append-ldflags -Wl,-z,noexecstack
econf --enable-nonblocking-random
}
src_install() {
default
#emake DESTDIR="${D}" install || die "emake install failed"
newinitd "${FILESDIR}/${PN}.initd" ${PN}
newconfd "${FILESDIR}/${PN}.confd" ${PN}
systemd_dounit "${FILESDIR}"/${PN}.service
dodoc {AUTHORS,COPYING,INSTALL,NEWS,README,README.markdown,TECHNOTES,THANKS}
}