1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-04-03 12:03:32 +02:00

initial import

This commit is contained in:
root
2010-02-09 21:25:29 +01:00
commit b2719dc011
1080 changed files with 41656 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
# ChangeLog for media-plugins/xmms-infopipe
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/xmms-infopipe/ChangeLog,v 1.17 2005/10/31 03:09:03 metalgod Exp $
*xmms-infopipe-1.3-r1 (31 Oct 2005)
31 Oct 2005; Luis Medinas <metalgod@gentoo.org>
+files/xmms-infopipe-tweaks.patch, +xmms-infopipe-1.3-r1.ebuild:
Added Debian patches to fix a few bugs including bug #103435.
13 Sep 2005; Aron Griffis <agriffis@gentoo.org> xmms-infopipe-1.3.ebuild:
Mark 1.3 stable on alpha
04 Sep 2005; Diego Pettenò <flameeyes@gentoo.org>
xmms-infopipe-1.3.ebuild:
Don't install COPYING and INSTALL files.
21 Jul 2005; Markus Rothe <corsair@gentoo.org> xmms-infopipe-1.3.ebuild:
Stable on ppc64
14 Jun 2005; Markus Rothe <corsair@gentoo.org> xmms-infopipe-1.3.ebuild:
Added ~ppc64
15 Sep 2004; Jeremy Huddleston <eradicator@gentoo.org>
xmms-infopipe-1.3.ebuild:
Stable sparc.
17 Jun 2004; Jeremy Huddleston <eradicator@gentoo.org>
xmms-infopipe-1.3.ebuild:
Stable amd64.
22 Apr 2004; Jeremy Huddleston <eradicator@gentoo.org>
xmms-infopipe-1.3.ebuild:
Removed explicit S=.
20 Apr 2004; Jeremy Huddleston <eradicator@gentoo.org>
xmms-infopipe-1.3.ebuild:
Added IUSE.
08 Apr 2004; Jeremy Huddleston <eradicator@gentoo.org> metadata.xml,
xmms-infopipe-1.3.ebuild:
Fixing configure to include explicit #!/bin/sh for sandbox bug workaround. See
bug #47165.
04 Apr 2004; Guy Martin <gmsoft@gentoo.org> xmms-infopipe-1.3.ebuild:
Marked stable on hppa.
31 Mar 2004; Lars Weiler <pylon@gentoo.org> xmms-infopipe-1.3.ebuild:
Added ~ppc to keywords as a dependency of net-im/amsn
23 Mar 2004; <augustus@gentoo.org> xmms-infopipe-1.3.ebuild:
Added ~amd64 keyword.
23 Feb 2004; Tavis Ormandy <taviso@gentoo.org> xmms-infopipe-1.3.ebuild:
marking ~alpha
*xmms-infopipe-1.3 (09 Jul 2002)
30 Aug 2002; Seemant Kulleen <seemant@gentoo.org> * :
Relocated to media-plugins
09 Jul 2002; Daniel Ahlberg <aliz@gentoo.org> ChangeLog, xmms-infopipe-1.3.ebuild, files/digest-xmms-infopipe-1.3 :
Initial release, thanks to Shaun Guth for contributing the ebuild!

View File

@@ -0,0 +1,27 @@
AUX xmms-infopipe-tweaks.patch 2865 RMD160 8399e6266c95d1ee2bf2d4f41e74a2b492125186 SHA1 3b8821ec9acf062620ac38b94d627062f04f2593 SHA256 fd451cfef34926308d59382bc51020e2b75714416828fb7d4d0ccefb02b6606e
MD5 05bf51208a6679dd57ebca0be69f1ff1 files/xmms-infopipe-tweaks.patch 2865
RMD160 8399e6266c95d1ee2bf2d4f41e74a2b492125186 files/xmms-infopipe-tweaks.patch 2865
SHA256 fd451cfef34926308d59382bc51020e2b75714416828fb7d4d0ccefb02b6606e files/xmms-infopipe-tweaks.patch 2865
DIST xmms-infopipe-1.3.tar.gz 172599
EBUILD xmms-infopipe-1.3-r1.ebuild 934 RMD160 fae1ea2a3e008a8ecab1c0ab676a022c22268881 SHA1 0cda5346fccb5f64bf78f15bbf9ce47e4e05d198 SHA256 cd0522a3666823b50a1f01407ac459a3d418b6e249f1771428d25a0ed6ffa66b
MD5 72084d81d455aa08161971f4be7e96e6 xmms-infopipe-1.3-r1.ebuild 934
RMD160 fae1ea2a3e008a8ecab1c0ab676a022c22268881 xmms-infopipe-1.3-r1.ebuild 934
SHA256 cd0522a3666823b50a1f01407ac459a3d418b6e249f1771428d25a0ed6ffa66b xmms-infopipe-1.3-r1.ebuild 934
EBUILD xmms-infopipe-1.3.ebuild 869 RMD160 f53c468c928de7e0228da6b452695ca879f5bdee SHA1 a8caa2380e89396dd4022914301fc06e19a6420a SHA256 fc5f7d75d3a16a6ce466817dfaad44386e497f4b94fdc1008635c9fb2f709566
MD5 f9e4428d945f924ed2272df5b5023394 xmms-infopipe-1.3.ebuild 869
RMD160 f53c468c928de7e0228da6b452695ca879f5bdee xmms-infopipe-1.3.ebuild 869
SHA256 fc5f7d75d3a16a6ce466817dfaad44386e497f4b94fdc1008635c9fb2f709566 xmms-infopipe-1.3.ebuild 869
MISC ChangeLog 2188 RMD160 f9867c66cc293daec7108bfd00e669ba9d1950c9 SHA1 670f27dd9cea37cf704df0e4b4804e2c7ad8014a SHA256 5b7102cea51b6e952b0f1142fcae0abd991e461c899a085b9a5987c22aa93736
MD5 35ab38c519a78a5f08c5d2987439adbf ChangeLog 2188
RMD160 f9867c66cc293daec7108bfd00e669ba9d1950c9 ChangeLog 2188
SHA256 5b7102cea51b6e952b0f1142fcae0abd991e461c899a085b9a5987c22aa93736 ChangeLog 2188
MISC metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e SHA1 703cea5a2109d41f7c87993c1f01d418a4c85174 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b
MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158
RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e metadata.xml 158
SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b metadata.xml 158
MD5 14dae097605a2dc2254a02f3972d5e28 files/digest-xmms-infopipe-1.3 69
RMD160 7d8fbe2d9e823dc50a805311635ab24d914066e1 files/digest-xmms-infopipe-1.3 69
SHA256 20112ac8f2d9ffb5349381ff98bd822a64a2ee70121d4d6ed7caf1fb1aa75d39 files/digest-xmms-infopipe-1.3 69
MD5 14dae097605a2dc2254a02f3972d5e28 files/digest-xmms-infopipe-1.3-r1 69
RMD160 7d8fbe2d9e823dc50a805311635ab24d914066e1 files/digest-xmms-infopipe-1.3-r1 69
SHA256 20112ac8f2d9ffb5349381ff98bd822a64a2ee70121d4d6ed7caf1fb1aa75d39 files/digest-xmms-infopipe-1.3-r1 69

View File

@@ -0,0 +1 @@
MD5 1ccc90254c58a81f87abc43720fe71bf xmms-infopipe-1.3.tar.gz 172599

View File

@@ -0,0 +1 @@
MD5 1ccc90254c58a81f87abc43720fe71bf xmms-infopipe-1.3.tar.gz 172599

View File

@@ -0,0 +1,89 @@
--- xmms-infopipe-1.3.orig/src/infopipe_senddata.c
+++ xmms-infopipe-1.3/src/infopipe_senddata.c
@@ -5,6 +5,7 @@
#include <stdio.h>
#include <glib.h>
#include <xmms/util.h>
+#include <xmms/xmmsctrl.h>
#include "infopipe.h"
#include "../config.h"
@@ -14,7 +15,7 @@
This will get the XMMS information and print them out to the pipe.
*/
void blast_info(FILE *pipe) {
- gchar *play_status;
+ gchar *play_status, *s1, *s2;
gint tunes = xmms_remote_get_playlist_length(SESSIONID);
gint current = xmms_remote_get_playlist_pos(SESSIONID);
@@ -81,10 +82,14 @@
fprintf(pipe, "Channels: %d\n",nch);
/* The basicest of the basic information. Title string and file name. */
- fprintf(pipe, "Title: %s\n",
- xmms_remote_get_playlist_title(SESSIONID,current));
- fprintf(pipe, "File: %s\n",
- xmms_remote_get_playlist_file(SESSIONID,current));
+ s1 = xmms_remote_get_playlist_title(SESSIONID,current);
+ s2 = xmms_remote_get_playlist_file(SESSIONID,current);
+
+ fprintf(pipe, "Title: %s\n", s1);
+ fprintf(pipe, "File: %s\n", s2);
+
+ g_free(s1); /* xmms_remote_get_playlist_* require we call g_free on the returned string */
+ g_free(s2); /* xmms_remote_get_playlist_* require we call g_free on the returned string */
g_free(play_status);
}
--- xmms-infopipe-1.3.orig/src/infopipe.c
+++ xmms-infopipe-1.3/src/infopipe.c
@@ -228,16 +228,24 @@
fd_set fds;
FILE *p; /* the pipe */
int fd; /* File descriptor for pipe, and its flags. */
+ struct timespec tv;
for(;;) {
+ /* This is a thread, fill the structure early */
+ tv.tv_sec = 0;
+ tv.tv_nsec = 100000000; /* 1/10th of a second */
+
/* Open the pipe as file descriptor. */
/* (O_RDONLY seems to be enough in Linux, but FreeBSDites seemed to
demand O_RDWR.) */
- fd = open(fifo_file, O_RDWR);
+ /* (Actually, we need to write to the pipe, not read it, so O_WRONLY) */
+ fd = open(fifo_file, O_WRONLY);
if(fd == -1) {
perror("xmms_infopipe: Pipe open failed");
xmms_quit();
+ /* exit the function, don't give the chance to fill with invalid data */
+ return;
}
/* Set the file handle to use non-blocking I/O */
@@ -262,9 +270,8 @@
/* Changed to 1 second after request... report if you have problems.
FIXME: Should use XMMS configfile facility & config dialog???
*/
- sleep(1); /* Umm, or non-blockingness still doesn't work without this!
- Is there some nicer way of saying this, like "wait
- until no reader?" select()? */
+
+ nanosleep(&tv, NULL);
}
}
--- xmms-infopipe-1.3.orig/applications/xmms-info.php
+++ xmms-infopipe-1.3/applications/xmms-info.php
@@ -11,7 +11,7 @@
$info = fopen ("/tmp/xmms-info", "r");
- $input = fread ($info, 261);
+ $input = fread ($info, 2048);
$parse = split ("\n", $input);
fclose ($info);

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>sound</herd>
</pkgmetadata>

View File

@@ -0,0 +1,38 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/xmms-infopipe/xmms-infopipe-1.3-r1.ebuild,v 1.1 2005/10/31 03:09:03 metalgod Exp $
inherit eutils
IUSE=""
DESCRIPTION="Publish information about currently playing song in xmms to a temp file"
SRC_URI="http://www.beastwithin.org/users/wwwwolf/code/xmms/${P}.tar.gz"
HOMEPAGE="http://www.beastwithin.org/users/wwwwolf/code/xmms/infopipe.html"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
DEPEND="media-sound/xmms"
src_unpack() {
unpack ${A}
# Fix bad configure which breaks newer portage.
cd ${S}
mv configure configure.old
cat - configure.old > configure << EOF
#!/bin/sh
EOF
chmod 755 configure
epatch ${FILESDIR}/${PN}-tweaks.patch
}
src_install () {
make DESTDIR=${D} install || die
dodoc AUTHORS ChangeLog NEWS README
}

View File

@@ -0,0 +1,34 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/xmms-infopipe/xmms-infopipe-1.3.ebuild,v 1.18 2005/09/14 06:00:23 agriffis Exp $
IUSE=""
DESCRIPTION="Publish information about currently playing song in xmms to a temp file"
SRC_URI="http://www.beastwithin.org/users/wwwwolf/code/xmms/${P}.tar.gz"
HOMEPAGE="http://www.beastwithin.org/users/wwwwolf/code/xmms/infopipe.html"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86"
DEPEND="media-sound/xmms"
src_unpack() {
unpack ${A}
# Fix bad configure which breaks newer portage.
cd ${S}
mv configure configure.old
cat - configure.old > configure << EOF
#!/bin/sh
EOF
chmod 755 configure
}
src_install () {
make DESTDIR=${D} install || die
dodoc AUTHORS ChangeLog NEWS README
}