diff options
-rw-r--r-- | x11-misc/electricsheep/ChangeLog | 7 | ||||
-rw-r--r-- | x11-misc/electricsheep/electricsheep-2.4-r1.ebuild (renamed from x11-misc/electricsheep/electricsheep-2.4.ebuild) | 11 | ||||
-rw-r--r-- | x11-misc/electricsheep/files/digest-electricsheep-2.4-r1 (renamed from x11-misc/electricsheep/files/digest-electricsheep-2.4) | 0 | ||||
-rw-r--r-- | x11-misc/electricsheep/files/nice.patch | 50 |
4 files changed, 63 insertions, 5 deletions
diff --git a/x11-misc/electricsheep/ChangeLog b/x11-misc/electricsheep/ChangeLog index 9ae05ca2f2f8..ad0ce0b780d4 100644 --- a/x11-misc/electricsheep/ChangeLog +++ b/x11-misc/electricsheep/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for x11-misc/electricsheep # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/electricsheep/ChangeLog,v 1.8 2003/09/29 16:55:27 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-misc/electricsheep/ChangeLog,v 1.9 2003/11/17 04:41:41 vapier Exp $ + +*electricsheep-2.4-r1 (16 Nov 2003) + + 16 Nov 2003; Mike Frysinger <vapier@gentoo.org> : + Add patch to fix nice option passing. *electricsheep-2.4 (01 Aug 2003) diff --git a/x11-misc/electricsheep/electricsheep-2.4.ebuild b/x11-misc/electricsheep/electricsheep-2.4-r1.ebuild index 1ba16ca10096..f16cfbf90b5f 100644 --- a/x11-misc/electricsheep/electricsheep-2.4.ebuild +++ b/x11-misc/electricsheep/electricsheep-2.4-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/electricsheep/electricsheep-2.4.ebuild,v 1.3 2003/09/29 16:55:27 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-misc/electricsheep/electricsheep-2.4-r1.ebuild,v 1.1 2003/11/17 04:41:41 vapier Exp $ inherit eutils @@ -9,8 +9,8 @@ HOMEPAGE="http://electricsheep.org/" SRC_URI="http://electricsheep.org/${P}.tar.gz" LICENSE="GPL-2" -KEYWORDS="x86" SLOT="0" +KEYWORDS="x86" DEPEND="virtual/x11 dev-libs/expat @@ -27,9 +27,12 @@ src_unpack() { unpack ${A} cd ${S} sed -i "s:/usr/local/share:/usr/share/${PN}:" \ - electricsheep.c || die "sed electricsheep.c failed" - sed -i '/OPT_CFLAGS=/s:=".*":="$CFLAGS":' mpeg2dec/configure \ + electricsheep.c \ + || die "sed electricsheep.c failed" + sed -i '/OPT_CFLAGS=/s:=".*":="$CFLAGS":' \ + mpeg2dec/configure \ || die "sed mpeg2dec failed" + epatch ${FILESDIR}/nice.patch } src_install() { diff --git a/x11-misc/electricsheep/files/digest-electricsheep-2.4 b/x11-misc/electricsheep/files/digest-electricsheep-2.4-r1 index dd89926f636f..dd89926f636f 100644 --- a/x11-misc/electricsheep/files/digest-electricsheep-2.4 +++ b/x11-misc/electricsheep/files/digest-electricsheep-2.4-r1 diff --git a/x11-misc/electricsheep/files/nice.patch b/x11-misc/electricsheep/files/nice.patch new file mode 100644 index 000000000000..b7afbe56c28a --- /dev/null +++ b/x11-misc/electricsheep/files/nice.patch @@ -0,0 +1,50 @@ +*** electricsheep.c.bak 2003-11-14 00:02:30.000000000 -0800 +--- electricsheep.c 2003-11-14 00:03:27.000000000 -0800 +*************** +*** 1007,1013 **** + { + char b[MAXBUF]; + char strips[MAXBUF]; +! sprintf(b, "nice -%d env in=%s time=%d out=%s quality=%d anim-flame", + nice_level, cps_name, get_frame, jpg_name, jpeg_quality); + if (debug) printf("about to render %s\n", b); + if (mysystem(b, "render")) { +--- 1007,1013 ---- + { + char b[MAXBUF]; + char strips[MAXBUF]; +! sprintf(b, "nice -n %d env in=%s time=%d out=%s quality=%d anim-flame", + nice_level, cps_name, get_frame, jpg_name, jpeg_quality); + if (debug) printf("about to render %s\n", b); + if (mysystem(b, "render")) { +*************** +*** 1745,1758 **** + reset_fuse = reset_fuse_length; + + if (proxy_name) { +! sprintf(curl_cmd, "nice -%d curl --proxy %s", + nice_level, proxy_name); + if (proxy_user) { + strcat(curl_cmd, " --proxy-user "); + strcat(curl_cmd, proxy_user); + } + } else +! sprintf(curl_cmd, "nice -%d curl", nice_level); + + srandom(time(0)); + +--- 1745,1758 ---- + reset_fuse = reset_fuse_length; + + if (proxy_name) { +! sprintf(curl_cmd, "nice -n %d curl --proxy %s", + nice_level, proxy_name); + if (proxy_user) { + strcat(curl_cmd, " --proxy-user "); + strcat(curl_cmd, proxy_user); + } + } else +! sprintf(curl_cmd, "nice -n %d curl", nice_level); + + srandom(time(0)); + |