You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.2 KiB
53 lines
1.2 KiB
10 years ago
|
# Copyright 1999-2014 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/www-misc/fcgiwrap/fcgiwrap-1.1.0-r1.ebuild,v 1.1 2014/05/02 10:40:49 pacho Exp $
|
||
|
|
||
|
EAPI="5"
|
||
|
|
||
|
[[ ${PV} = *9999* ]] && VCS_ECLASS="git" || VCS_ECLASS=""
|
||
|
inherit autotools systemd toolchain-funcs ${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="systemd"
|
||
|
|
||
|
if [[ ${PV} == *9999* ]]; then
|
||
|
EGIT_REPO_URI="git://github.com/gnosek/${PN}.git"
|
||
|
|
||
|
KEYWORDS=""
|
||
|
else
|
||
|
SRC_URI="https://github.com/gnosek/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
fi
|
||
|
|
||
|
RDEPEND="dev-libs/fcgi"
|
||
|
DEPEND="${RDEPEND}
|
||
|
virtual/pkgconfig"
|
||
|
|
||
|
DOCS=( README.rst )
|
||
|
|
||
|
src_prepare() {
|
||
|
sed -e '/man8dir = $(DESTDIR)/s/@prefix@//' \
|
||
|
-i Makefile.in || die "sed failed"
|
||
|
tc-export CC
|
||
|
|
||
|
# Fix systemd units for Gentoo
|
||
|
sed -i -e '/User/d' systemd/fcgiwrap.service || die
|
||
|
sed -i -e '/Group/d' systemd/fcgiwrap.service || die
|
||
|
|
||
|
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.'
|
||
|
}
|