Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-misc/fcgiwrap/
Date: Sun, 18 Jun 2017 16:23:10
Message-Id: 1497802957.3bf8c027f02001a8f5ca16531f794302b9b40156.mattst88@gentoo
1 commit: 3bf8c027f02001a8f5ca16531f794302b9b40156
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 18 16:21:51 2017 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 18 16:22:37 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bf8c027
7
8 www-misc/fcgiwrap: Add 1.1.0_pre20150419 snapshot
9
10 www-misc/fcgiwrap/Manifest | 1 +
11 .../fcgiwrap/fcgiwrap-1.1.0_pre20150419.ebuild | 63 ++++++++++++++++++++++
12 2 files changed, 64 insertions(+)
13
14 diff --git a/www-misc/fcgiwrap/Manifest b/www-misc/fcgiwrap/Manifest
15 index e6596f48a85..651d5ec9d9b 100644
16 --- a/www-misc/fcgiwrap/Manifest
17 +++ b/www-misc/fcgiwrap/Manifest
18 @@ -1 +1,2 @@
19 DIST fcgiwrap-1.1.0.tar.gz 9924 SHA256 4c7de0db2634c38297d5fcef61ab4a3e21856dd7247d49c33d9b19542bd1c61f SHA512 b8d35762d1d3c94a67602290b0092f0c38cffbbcd3dbc16597abf8b92172909b04450c238de2e430e841a17dd47fdd48d6a001f77539966980ef1af61e447ddc WHIRLPOOL 0df7ab6de6b97db0e516f2ec79185391f0cd2ca2f3ea81b88739546f41a613be3e469394baf3901708b337c8fc7145529e0afb8e884b9ca52d0fba664487e7c0
20 +DIST fcgiwrap-1.1.0_pre20150419.tar.gz 10834 SHA256 2aefec1bac8cb6131ff994dee7440a3e12f7761bf35152ceb38c472cb4becf9a SHA512 48df3f0b5ad15d172b7ee883d53c59ecbd78c0c401ef1452df8fc03af1a7aed153464b2515ca18881af70f6baf6c80e0b405d1dde4888a20397b9db272ea6ba4 WHIRLPOOL 83aa10235c232efc96af3ae7c37da0565d34183e965733512ec2b8c7f94b29989cc9285adf35f69ada0acf13ff27641e37fa64ff676a3890853164dcbe13c852
21
22 diff --git a/www-misc/fcgiwrap/fcgiwrap-1.1.0_pre20150419.ebuild b/www-misc/fcgiwrap/fcgiwrap-1.1.0_pre20150419.ebuild
23 new file mode 100644
24 index 00000000000..c2894ba93aa
25 --- /dev/null
26 +++ b/www-misc/fcgiwrap/fcgiwrap-1.1.0_pre20150419.ebuild
27 @@ -0,0 +1,63 @@
28 +# Copyright 1999-2017 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI="6"
32 +
33 +[[ ${PV} = *9999* ]] && VCS_ECLASS="git-r3" || VCS_ECLASS=""
34 +inherit autotools systemd toolchain-funcs ${VCS_ECLASS}
35 +
36 +DESCRIPTION="Simple FastCGI wrapper for CGI scripts (CGI support for nginx)"
37 +HOMEPAGE="https://github.com/gnosek/fcgiwrap"
38 +
39 +LICENSE="BSD"
40 +SLOT="0"
41 +IUSE="systemd"
42 +
43 +if [[ ${PV} == *9999* ]]; then
44 + EGIT_REPO_URI="git://github.com/gnosek/${PN}.git"
45 +else
46 + MY_REV="99c942c90063c73734e56bacaa65f947772d9186"
47 + MY_P="gnosek-fcgiwrap-${MY_REV:0:7}"
48 + SRC_URI="https://github.com/gnosek/${PN}/tarball/${MY_REV} -> ${P}.tar.gz"
49 + KEYWORDS="~amd64 ~arm ~x86"
50 +fi
51 +
52 +RDEPEND="
53 + dev-libs/fcgi
54 + systemd? ( sys-apps/systemd )
55 +"
56 +DEPEND="${RDEPEND}
57 + virtual/pkgconfig"
58 +
59 +DOCS=( README.rst )
60 +
61 +S="${WORKDIR}/${MY_P}"
62 +
63 +src_prepare() {
64 + sed -e "s/-Werror//" \
65 + -i configure.ac || die "sed failed"
66 +
67 + sed -e '/man8dir = $(DESTDIR)/s/@prefix@//' \
68 + -i Makefile.in || die "sed failed"
69 +
70 + sed -e "s/libsystemd-daemon/libsystemd/" \
71 + -i configure.ac || die "sed failed"
72 + tc-export CC
73 +
74 + # Fix systemd units for Gentoo
75 + sed -i -e '/User/d' systemd/fcgiwrap.service || die
76 + sed -i -e '/Group/d' systemd/fcgiwrap.service || die
77 +
78 + eapply_user
79 + eautoreconf
80 +}
81 +
82 +src_configure() {
83 + econf \
84 + $(use_with systemd) \
85 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
86 +}
87 +
88 +pkg_postinst() {
89 + einfo 'You may want to install www-servers/spawn-fcgi to use with fcgiwrap.'
90 +}