See attached patch. Reproducible: Always
Created attachment 353026 [details, diff] Patch to games-misc/nyancat-0_pre20120302.ebuild
*** Bug 544188 has been marked as a duplicate of this bug. ***
nyancat-1.2.1 is in portage.
Created attachment 400524 [details, diff] patch 1.2.1 to 1.4.4 (add systemd units) Sorry, just figured out there was a newer version :) The bug is un-reopenable for me.
Comment on attachment 400524 [details, diff] patch 1.2.1 to 1.4.4 (add systemd units) --- /usr/portage/games-misc/nyancat/nyancat-1.2.1.ebuild 2015-04-03 21:13:30.000000000 +0300 +++ nyancat-1.4.4.ebuild 2015-04-04 12:22:50.846437798 +0300 @@ -3,7 +3,7 @@ # $Header: /var/cvsroot/gentoo-x86/games-misc/nyancat/nyancat-1.2.1.ebuild,v 1.1 2015/04/03 18:13:30 mr_bones_ Exp $ EAPI=5 -inherit games +inherit games systemd DESCRIPTION="Nyan Cat Telnet Server" HOMEPAGE="http://github.com/klange/nyancat" @@ -14,6 +14,14 @@ KEYWORDS="~amd64 ~x86" IUSE="" +src_prepare() { + filename="systemd/nyancat@.service" + sed -i -e 's/\/usr\/bin\/nyancat/\/usr\/games\/bin\/nyancat/' \ + $filename || die "Failed to patch $filename" + sed -i -e 's/User=nobody/User=games/' \ + $filename || die "Failed to patch $filename" +} + src_compile() { emake LFLAGS="${LDFLAGS} ${CFLAGS}" } @@ -21,5 +29,8 @@ src_install() { dogamesbin src/${PN} dodoc README.md + doman nyancat.1 + systemd_dounit systemd/nyancat.socket + systemd_dounit systemd/nyancat@.service prepgamesdirs }
Created attachment 400530 [details, diff] nyancat 1.2.1 to 1.4.4 patch