From f1df3dfdce3b7ad8fcd3bad74df851583711c466 Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Wed, 31 Oct 2012 13:04:29 +0400 Subject: [PATCH] add ebuild for sgopherd and license for it --- licenses/PIZZA-WARE | 7 +++++ net-misc/sgopherd/Manifest | 2 ++ net-misc/sgopherd/metadata.xml | 8 +++++ net-misc/sgopherd/sgopherd-9999.ebuild | 42 ++++++++++++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 licenses/PIZZA-WARE create mode 100644 net-misc/sgopherd/Manifest create mode 100644 net-misc/sgopherd/metadata.xml create mode 100644 net-misc/sgopherd/sgopherd-9999.ebuild diff --git a/licenses/PIZZA-WARE b/licenses/PIZZA-WARE new file mode 100644 index 0000000..292bf97 --- /dev/null +++ b/licenses/PIZZA-WARE @@ -0,0 +1,7 @@ +------------------------------------------------------------------ +"THE PIZZA-WARE LICENSE" (Revision 42): +Peter Hofmann wrote these files. As long as you +retain this notice you can do whatever you want with this stuff. If we +meet some day, and you think this stuff is worth it, you can buy me a +pizza in return. +------------------------------------------------------------------ diff --git a/net-misc/sgopherd/Manifest b/net-misc/sgopherd/Manifest new file mode 100644 index 0000000..54e286e --- /dev/null +++ b/net-misc/sgopherd/Manifest @@ -0,0 +1,2 @@ +EBUILD sgopherd-9999.ebuild 869 SHA256 920236a7cdc2e6abddc394df339eb0023ebe7ddc16db258a5f53b759f8958ba9 SHA512 4422a8271c5eeb64fd1d0360e2c872d7bcaf730d5c17e207cb82c8f5fcfdf66e1191673a2c324248ee958f7bd52366f85d14c88bb378bad63b64ea0c4c4ef2f6 WHIRLPOOL 4f0b9aed1e7bc4f41eff6ded74159a094e773d8e9a8108368dc0adf4dd32ce77f72073414ebe015677fc9588863d1ca90377d13527d1e6d3f79b13a838867861 +MISC metadata.xml 228 SHA256 b953d84aaaccd4c0a39a473aeb50a177dcfa2308a4ec127734acd339bfef20d6 SHA512 07dffdf467fee3f7ed551fbfebeed7a1c1f48360168cac68566ededf476d810ec6ff7a5203f5c5f55992233522d93dc5e75a91e89fdc094b95d40c50d9d73e30 WHIRLPOOL ddfb115b14dde1072dcf9ed173ef3005cd5163fa1ea2e19d0f9426cd3ed30207739191408d478b3205219375f7c38f6649ca0c55b8ef8ec6f7c1688eafca3c5c diff --git a/net-misc/sgopherd/metadata.xml b/net-misc/sgopherd/metadata.xml new file mode 100644 index 0000000..a5a7d4d --- /dev/null +++ b/net-misc/sgopherd/metadata.xml @@ -0,0 +1,8 @@ + + + + + admin@pinkbyte + Sergey Popov + + diff --git a/net-misc/sgopherd/sgopherd-9999.ebuild b/net-misc/sgopherd/sgopherd-9999.ebuild new file mode 100644 index 0000000..07cb683 --- /dev/null +++ b/net-misc/sgopherd/sgopherd-9999.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +EGIT_REPO_URI="git://github.com/vain/sgopherd.git" + +inherit git-2 + +DESCRIPTION="Small Gopher Server written in GNU Bash" +HOMEPAGE="https://github.com/vain/sgopherd" +SRC_URI="" + +LICENSE="PIZZA-WARE" +SLOT="0" +KEYWORDS="" +IUSE="" + +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' +} + +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}" +}