diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2002-12-27 18:16:19 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2002-12-27 18:16:19 +0000 |
commit | fefb235c173f8e99bd0b490dad8e3fdb62e52fe0 (patch) | |
tree | fc4768cbc2b61897fa46d12e5655f6bb88fb73d9 /media-sound/rhythmbox/files | |
parent | new version (diff) | |
download | historical-fefb235c173f8e99bd0b490dad8e3fdb62e52fe0.tar.gz historical-fefb235c173f8e99bd0b490dad8e3fdb62e52fe0.tar.bz2 historical-fefb235c173f8e99bd0b490dad8e3fdb62e52fe0.zip |
new version
Diffstat (limited to 'media-sound/rhythmbox/files')
3 files changed, 82 insertions, 1 deletions
diff --git a/media-sound/rhythmbox/files/digest-rhythmbox-0.4.0 b/media-sound/rhythmbox/files/digest-rhythmbox-0.4.0 deleted file mode 100644 index 0f02f49e7f75..000000000000 --- a/media-sound/rhythmbox/files/digest-rhythmbox-0.4.0 +++ /dev/null @@ -1 +0,0 @@ -MD5 0060ed6e9220f90a1c4d07ff3a8a882c rhythmbox-0.4.0.tar.gz 987679 diff --git a/media-sound/rhythmbox/files/digest-rhythmbox-0.4.1 b/media-sound/rhythmbox/files/digest-rhythmbox-0.4.1 new file mode 100644 index 000000000000..7bdf55befcf9 --- /dev/null +++ b/media-sound/rhythmbox/files/digest-rhythmbox-0.4.1 @@ -0,0 +1 @@ +MD5 c371babd76bf54f2f238af040f2b2aa9 rhythmbox-0.4.1.tar.gz 1150107 diff --git a/media-sound/rhythmbox/files/rhythmbox-0.4.1-check_gentoo-be-nicer.patch b/media-sound/rhythmbox/files/rhythmbox-0.4.1-check_gentoo-be-nicer.patch new file mode 100644 index 000000000000..a71663805cb5 --- /dev/null +++ b/media-sound/rhythmbox/files/rhythmbox-0.4.1-check_gentoo-be-nicer.patch @@ -0,0 +1,81 @@ +--- rhythmbox-0.4.1/shell/main.c.orig 2002-12-27 01:52:38.000000000 +0200 ++++ rhythmbox-0.4.1/shell/main.c 2002-12-27 01:56:06.000000000 +0200 +@@ -29,6 +29,10 @@ + #include <glade/glade-init.h> + #include <monkey-media.h> + #include <stdlib.h> ++#include <sys/types.h> ++#include <sys/stat.h> ++#include <unistd.h> ++#include <fcntl.h> + #include <time.h> + #include <string.h> + +@@ -48,20 +52,66 @@ + static gboolean quit = FALSE; + static gboolean no_registration = FALSE; + ++#define GENTOO_TOGGLE "/.rhythmbox-gentoo" ++ + static void + check_gentoo (void) + { ++ char *gentoo_toggle = NULL; ++ int fd; ++ ++ /* ++ * Malloc enouth memory for our needs ... ++ */ ++ gentoo_toggle = (char *)malloc(strlen(GENTOO_TOGGLE) + strlen(g_getenv("HOME")) + 1); ++ ++ if ((gentoo_toggle) && ((strlen(g_getenv("HOME"))) > 1)) ++ { ++ /* ++ * Setup gentoo_toggle to contain "$HOME/.rhythmbox-gentoo" ++ */ ++ strncpy(gentoo_toggle, g_getenv("HOME"), strlen(g_getenv("HOME"))); ++ strncpy(gentoo_toggle + strlen(g_getenv("HOME")), GENTOO_TOGGLE, ++ strlen(GENTOO_TOGGLE)); ++ } ++ else ++ return; ++ ++ + /* + * Dear Gentoo packager, + * + * I would like to ask you to respect our decision to display this + * message and not hack this out. + */ ++/* + if (g_file_test ("/etc/gentoo-release", G_FILE_TEST_EXISTS) == TRUE) + { + rb_warning_dialog (_("Well well well...\n\n" +- "Gentoo eh? You'll run into problems. We know. Don't bug us.\n\n" ++ "Gentoo eh? You'll run into problems. We know. Don't bug us.\n\n" ++ "Have a nice day.")); ++ } ++ */ ++ /* ++ * While I do feel that we should not disrespect their request, this ++ * is really a bit harsh. Thus tone it down, and only display it once. ++ */ ++ if ((g_file_test ("/etc/gentoo-release", G_FILE_TEST_EXISTS) == TRUE) && ++ (g_file_test (gentoo_toggle, G_FILE_TEST_EXISTS) == FALSE)) ++ { ++ rb_warning_dialog (_("Dear Gentoo User...\n\n" ++ "Please report problems to http://bugs.gentoo.org/\n" ++ "and NOT to the developers of Rhythmbox.\n\n" + "Have a nice day.")); ++ ++ /* ++ * Create our "toggle" to check if the message should be ++ * displayed or not ... ++ */ ++ fd = open(gentoo_toggle, O_CREAT|O_RDWR, S_IRUSR|S_IWUSR); ++ if (fd != -1) ++ close(fd); ++ + } + } + |