# Copyright 2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 inherit git-r3 EGIT_REPO_URI="https://github.com/gophernicus/gophernicus" DESCRIPTION="Gophernicus is a modern full-featured (and hopefully) secure gopher daemon." HOMEPAGE="https://github.com/gophernicus/gophernicus" SRC_URI="" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="xinetd" DEPEND="xinetd? ( sys-apps/xinetd )" RDEPEND="${DEPEND}" src_install() { emake DESTDIR="${D}/usr" ROOT="${D}/var/gopher" XINETD="${D}/etc/xinetd.d" DOCDIR="${D}/usr/share/doc/${P}" install if use xinetd; then mkdir -p "${D}/etc/xinetd.d" sed -e "s/@HOSTNAME@/`hostname`/g" "${S}/gophernicus.xinetd" > "${D}/etc/xinetd.d/gophernicus" fi } pkg_postinst() { elog "Please configure /etc/xinet.d/gophernicus and start the xinetd service. You" elog "can access your site at gopher://`hostname`/ and your gopher root is at" elog "/var/gopher/." }