logo

overlay

My (experimental) gentoo overlay
commit: b4b7cf185f6093d3eab4466b353883c56aef2dc9
parent: 06a7561b134deb8c9d548bd373b70d3d0903729a
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 10 May 2018 22:12:27 +0200

net-misc/geomyidae: New Package

Diffstat:

Anet-misc/geomyidae/Manifest1+
Anet-misc/geomyidae/files/geomyidae.initd9+++++++++
Anet-misc/geomyidae/files/geomyidae.xinetd10++++++++++
Anet-misc/geomyidae/geomyidae-0.31.1.ebuild36++++++++++++++++++++++++++++++++++++
Anet-misc/geomyidae/metadata.xml8++++++++
5 files changed, 64 insertions(+), 0 deletions(-)

diff --git a/net-misc/geomyidae/Manifest b/net-misc/geomyidae/Manifest @@ -0,0 +1 @@ +DIST geomyidae-0.31.1.tar.gz 20502 BLAKE2B aeb0808b1fb86ad468db7886d06157159fe2d7f9b3dcd157557bca195c1527d6f91dc2a235f58251d1ab2128d87b6574dcd31a468495e156b84766ab13e36738 SHA512 8273c8ef2d2742d4bfd5295beb4e9b8695678035d471ff572b0c8f5198b934f678c029d8ed6c074cc6e06ec7d3de3d3710d9bb7b9cca8518146b8036d250d4df diff --git a/net-misc/geomyidae/files/geomyidae.initd b/net-misc/geomyidae/files/geomyidae.initd @@ -0,0 +1,9 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +command="geomyidae" +command_args="-o 70 -p 7000" + +depend() { + need net +} diff --git a/net-misc/geomyidae/files/geomyidae.xinetd b/net-misc/geomyidae/files/geomyidae.xinetd @@ -0,0 +1,10 @@ +service geomyidae { + flags = REUSE + socket_type = stream + wait = no + user = geomyidae + log_on_success += USERID + log_on_failure += USERID + server = /usr/bin/geomyidae + disable = no +} diff --git a/net-misc/geomyidae/geomyidae-0.31.1.ebuild b/net-misc/geomyidae/geomyidae-0.31.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit user.eclass + +DESCRIPTION="A small C-based gopherd." +HOMEPAGE="gopher://bitreich.org/1/scm/geomyidae http://git.r-36.net/geomyidae/" +SRC_URI="http://git.r-36.net/geomyidae/snapshot/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="xinetd" + +RDEPEND="xinetd? ( virtual/inetd )" + +pkg_setup() { + enewgroup ${P} + enewuser ${P} -1 -1 "/var/gopher" ${P} +} + +src_install() { + default + + if use xinetd + then + insinto /etc/xinetd.d + newins "${FILESDIR}/geomyidae.xinetd" ${PN} + else + newinitd "${FILESDIR}/geomyidae.initd" ${PN} + elog "By default this init is using port 7000 and obfuscates to port 70 to avoid running as root." + elog "This needs you to add a iptables rule to redirect 7000 to 70." + fi +} diff --git a/net-misc/geomyidae/metadata.xml b/net-misc/geomyidae/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> +</maintainer> +</pkgmetadata>