# 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="Source code for an nginx module that provides various set_xxx directives added to nginx's rewrite module (md5/sha1, sql/json quoting, and many more)" HOMEPAGE="https://github.com/openresty/set-misc-nginx-module" LICENSE="BSD" SLOT="0" KEYWORDS="" IUSE="" EGIT_REPO_URI="https://github.com/openresty/set-misc-nginx-module.git" src_install() { insinto "/usr/src/${PN}" doins -r "${S}"/* # append 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/99${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\"" }