add ebuild for sgopherd and license for it
This commit is contained in:
parent
02b5e66cec
commit
f1df3dfdce
7
licenses/PIZZA-WARE
Normal file
7
licenses/PIZZA-WARE
Normal file
@ -0,0 +1,7 @@
|
||||
------------------------------------------------------------------
|
||||
"THE PIZZA-WARE LICENSE" (Revision 42):
|
||||
Peter Hofmann <pcode@uninformativ.de> 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.
|
||||
------------------------------------------------------------------
|
2
net-misc/sgopherd/Manifest
Normal file
2
net-misc/sgopherd/Manifest
Normal file
@ -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
|
8
net-misc/sgopherd/metadata.xml
Normal file
8
net-misc/sgopherd/metadata.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>admin@pinkbyte</email>
|
||||
<name>Sergey Popov</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
42
net-misc/sgopherd/sgopherd-9999.ebuild
Normal file
42
net-misc/sgopherd/sgopherd-9999.ebuild
Normal file
@ -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}"
|
||||
}
|
Loading…
Reference in New Issue
Block a user