diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-19 17:57:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-19 17:57:29 +0100 |
commit | d473a706836012853193afc7000922601e4ada61 (patch) | |
tree | 01c43bd6b2121d90bc97ead47dd7654d9402ea1d /net-misc/geomyidae/geomyidae-0.29.ebuild | |
parent | 420eeee727d39d869d864caddb04a80dafda7160 (diff) |
gentoo resync : 19.10.2017
Diffstat (limited to 'net-misc/geomyidae/geomyidae-0.29.ebuild')
-rw-r--r-- | net-misc/geomyidae/geomyidae-0.29.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/net-misc/geomyidae/geomyidae-0.29.ebuild b/net-misc/geomyidae/geomyidae-0.29.ebuild new file mode 100644 index 000000000000..57dec0d5956e --- /dev/null +++ b/net-misc/geomyidae/geomyidae-0.29.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs user + +DESCRIPTION="A daemon to serve the gopher protocol" +HOMEPAGE="http://git.r-36.net/geomyidae/" +SRC_URI="http://git.r-36.net/geomyidae/snapshot/${P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" + +pkg_setup(){ + enewgroup gopherd + enewuser gopherd -1 -1 /var/gopher gopherd +} + +src_prepare() { + # enable verbose build + # drop -O. from CFLAGS + sed -i \ + -e 's/@${CC}/${CC}/g' \ + -e '/CFLAGS/s/-O. //' \ + Makefile || die 'sed on Makefile failed' + # fix for correctly start/stop daemon + # fix path for pid file + sed -i \ + -e 's:start-stop-daemon -Sb:start-stop-daemon -Sbm:' \ + -e 's:start-stop-daemon -S -p:start-stop-daemon -K -p:' \ + -e 's:/var/run:/run:g' \ + rc.d/Gentoo.init.d || die + + eapply_user +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + dosbin ${PN} + + newinitd rc.d/Gentoo.init.d ${PN} + newconfd rc.d/Gentoo.conf.d ${PN} + + insinto /var/gopher + doins index.gph + fowners -R root.gopherd /var/gopher + fperms -R g=rX,o=rX /var/gopher + + doman ${PN}.8 + dodoc CGI README +} |