Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476418 - games-misc/nyancat-1.2.1 version bump
Summary: games-misc/nyancat-1.2.1 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 544188 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-07-10 17:33 UTC by Wicher Minnaard
Modified: 2015-04-04 09:29 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to games-misc/nyancat-0_pre20120302.ebuild (nyancat-to-1.2.1.patch,515 bytes, patch)
2013-07-10 17:34 UTC, Wicher Minnaard
Details | Diff
patch 1.2.1 to 1.4.4 (add systemd units) (nyancat-1.4.4.patch,598 bytes, patch)
2015-04-04 09:08 UTC, Pavel Volkov
Details | Diff
nyancat 1.2.1 to 1.4.4 patch (nyancat-1.4.4.patch,992 bytes, patch)
2015-04-04 09:29 UTC, Pavel Volkov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wicher Minnaard 2013-07-10 17:33:55 UTC
See attached patch.

Reproducible: Always
Comment 1 Wicher Minnaard 2013-07-10 17:34:48 UTC
Created attachment 353026 [details, diff]
Patch to games-misc/nyancat-0_pre20120302.ebuild
Comment 2 Pavel Volkov 2015-04-03 08:18:35 UTC
*** Bug 544188 has been marked as a duplicate of this bug. ***
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2015-04-03 18:13:55 UTC
nyancat-1.2.1 is in portage.
Comment 4 Pavel Volkov 2015-04-04 09:08:16 UTC
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 5 Pavel Volkov 2015-04-04 09:28:03 UTC
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
 }
Comment 6 Pavel Volkov 2015-04-04 09:29:33 UTC
Created attachment 400530 [details, diff]
nyancat 1.2.1 to 1.4.4 patch