--- a/fcgiwrap-1.1.0.ebuild 2013-02-18 19:10:11.000000000 +0000 +++ a/fcgiwrap-1.1.0.ebuild 2014-04-28 06:16:05.536000000 +0000 @@ -5,14 +5,12 @@ EAPI="4" [[ ${PV} = *9999* ]] && VCS_ECLASS="git" || VCS_ECLASS="" -inherit autotools toolchain-funcs ${VCS_ECLASS} +inherit autotools toolchain-funcs systemd ${VCS_ECLASS} DESCRIPTION="Simple FastCGI wrapper for CGI scripts (CGI support for nginx)" HOMEPAGE="http://nginx.localdomain.pl/wiki/FcgiWrap" LICENSE="BSD" SLOT="0" -IUSE="" +IUSE="systemd" if [[ ${PV} == *9999* ]]; then EGIT_REPO_URI="git://github.com/gnosek/${PN}.git" @@ -23,7 +23,8 @@ KEYWORDS="~amd64 ~x86" fi -RDEPEND="dev-libs/fcgi" +RDEPEND="dev-libs/fcgi + systemd? ( sys-apps/systemd )" DEPEND="${RDEPEND} virtual/pkgconfig" @@ -31,11 +32,19 @@ src_prepare() { sed -e '/man8dir = $(DESTDIR)/s/@prefix@//' \ -i Makefile.in || die "sed failed" tc-export CC eautoreconf } +src_configure() { + econf \ + $(use_with systemd) \ + "$(systemd_with_unitdir)" +} + pkg_postinst() { einfo 'You may want to install www-servers/spawn-fcgi to use with fcgiwrap.' }