net-misc/sgopherd - 18.08 (gentoo)

Search

Package Information

Description:
Small Gopher Server written in GNU Bash
Homepage:
https://www.uninformativ.de/git/sgopherd
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
18.08 7 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Small Gopher Server written in GNU Bash"
HOMEPAGE="https://www.uninformativ.de/git/sgopherd"
SRC_URI="https://dev.gentoo.org/~pinkbyte/distfiles/snapshots/${P}.tar.bz2"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND=""
RDEPEND="app-shells/bash
	sys-apps/sed
	sys-apps/xinetd"

src_prepare() {
	# Set default user to run sgopherd
	sed -i -e '/user/s/http/nobody/' xinetd/xinetd-example.conf || die 'sed failed'

	eapply_user
}

src_install() {
	dodoc README
	doman man8/"${PN}".8
	dobin "${PN}"
	insinto /etc/xinetd.d
	newins xinetd/xinetd-example.conf "${PN}"
	# TODO: add installation of systemd-related files
}

pkg_postinst() {
	elog "${PN} can be launched through xinetd"
	elog "Configuration options are in /etc/xinetd.d/${PN}"
}

Dependencies

RDEPEND

app-shells/bash
	sys-apps/sed
	sys-apps/xinetd

Manifest for 18.08

Type File Size Source URLs
DIST sgopherd-18.08.tar.bz2 12777 bytes https://dev.gentoo.org/~pinkbyte/distfiles/snapshots/sgopherd-18.08.tar.bz2