--- /dev/null
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/thylacine/${PN}.git"
+ LIVE_ECLASSES="git-r3"
+ LIVE_EBUILD=yes
+fi
+
+inherit flag-o-matic ${LIVE_ECLASSES}
+
+if [[ -z ${LIVE_EBUILD} ]]; then
+ SRC_URI="https://github.com/thylacine/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="A fastcgi responder which does Basic authentication vi PAM."
+HOMEPAGE="https://github.com/thylacine/fcgi-auth-pam"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="+thread"
+
+DEPEND="dev-libs/fcgi"
+RDEPEND="${DEPEND}"
+
+src_install() {
+ dosbin fcgi_auth_pam
+}
+