summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-11-27 16:09:02 +0100
committerMarek Szuba <marecki@gentoo.org>2021-11-27 17:01:30 +0100
commit25215eb92428e29ff11b69350afaa7202c960914 (patch)
treebb3f9d48aad5a9c0990da176fa0eb9b8c8b1c02c
parentwww-misc/fcgiwrap: drop 9999 (diff)
downloadgentoo-25215eb92428e29ff11b69350afaa7202c960914.tar.gz
gentoo-25215eb92428e29ff11b69350afaa7202c960914.tar.bz2
gentoo-25215eb92428e29ff11b69350afaa7202c960914.zip
www-misc/fcgiwrap: update EAPI 5 -> 8
Signed-off-by: Marek Szuba <marecki@gentoo.org>
-rw-r--r--www-misc/fcgiwrap/fcgiwrap-1.1.0-r2.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/www-misc/fcgiwrap/fcgiwrap-1.1.0-r2.ebuild b/www-misc/fcgiwrap/fcgiwrap-1.1.0-r2.ebuild
new file mode 100644
index 000000000000..5280d34fc373
--- /dev/null
+++ b/www-misc/fcgiwrap/fcgiwrap-1.1.0-r2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools systemd toolchain-funcs
+
+DESCRIPTION="Simple FastCGI wrapper for CGI scripts (CGI support for nginx)"
+HOMEPAGE="https://github.com/gnosek/fcgiwrap"
+SRC_URI="https://github.com/gnosek/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+KEYWORDS="~amd64 ~arm ~x86"
+SLOT="0"
+IUSE="systemd"
+
+RDEPEND="
+ dev-libs/fcgi
+ systemd? ( sys-apps/systemd )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+DOCS=( README.rst )
+
+src_prepare() {
+ sed -e "s/-Werror//" \
+ -i configure.ac || die "sed failed"
+
+ sed -e '/man8dir = $(DESTDIR)/s/@prefix@//' \
+ -i Makefile.in || die "sed failed"
+
+ sed -e "s/libsystemd-daemon/libsystemd/" \
+ -i configure.ac || 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
+
+ eapply_user
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with systemd) \
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
+}
+
+pkg_postinst() {
+ einfo "You may want to install www-servers/spawn-fcgi to use with fcgiwrap."
+}