# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI="5" ETYPE="sources" inherit git-2 DESCRIPTION="This is the source code for the Nginx Development Kit (NDK)" HOMEPAGE="https://github.com/simpl/ngx_devel_kit" LICENSE="BSD" SLOT="0" KEYWORDS="" IUSE="" EGIT_REPO_URI="https://github.com/simpl/ngx_devel_kit.git" src_install() { insinto "/usr/src/${PN}" doins -r "${S}"/* # prepend to NGINX_ADD_MODULES mkdir -p "${D}/etc/env.d" echo -e "SPACE_SEPARATED=\"NGINX_ADD_MODULES\"\nNGINX_ADD_MODULES=\"/usr/src/${PN}\"" > "${D}/etc/env.d/98${PN}" } pkg_postinst() { ewarn "Make sure to run \"env-update && source /etc/profile\" now." ewarn "The module gets compiled only if you rebuild nginx:" ewarn "e.g. run \"emerge -v1 www-servers/nginx\"" }