# 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 an nginx module that reads HTTP POST and PUT request body encoded in \"application/x-www-form-urlencoded\", and parse the arguments in request body into nginx variables." HOMEPAGE="https://github.com/calio/form-input-nginx-module" LICENSE="BSD" SLOT="0" KEYWORDS="" IUSE="" EGIT_REPO_URI="https://github.com/calio/form-input-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\"" }