summaryrefslogtreecommitdiff
path: root/~emulatorman/xchat-xsys-noaudacious/xchat-xsys-parabola.patch
diff options
context:
space:
mode:
Diffstat (limited to '~emulatorman/xchat-xsys-noaudacious/xchat-xsys-parabola.patch')
-rw-r--r--~emulatorman/xchat-xsys-noaudacious/xchat-xsys-parabola.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/~emulatorman/xchat-xsys-noaudacious/xchat-xsys-parabola.patch b/~emulatorman/xchat-xsys-noaudacious/xchat-xsys-parabola.patch
new file mode 100644
index 000000000..a3b905be9
--- /dev/null
+++ b/~emulatorman/xchat-xsys-noaudacious/xchat-xsys-parabola.patch
@@ -0,0 +1,37 @@
+--- xsys-2.2.0/parse.c 2007-11-12 18:42:20.000000000 -0200
++++ xsys-2.2.0.new/parse.c 2012-03-10 20:36:46.301892322 -0200
+@@ -389,32 +389,8 @@
+ }
+ snprintf(buffer, bsize, "%s \"%s\" %s", id, codename, release);
+ }
+- else if((fp = fopen("/etc/make.conf", "r")) != NULL)
+- {
+- char keywords[bsize];
+- while(fgets(buffer, bsize, fp) != NULL)
+- find_match_char(buffer, "ACCEPT_KEYWORDS", keywords);
+- if (strstr(keywords, "\"") == NULL)
+- snprintf(buffer, bsize, "Gentoo Linux (stable)");
+- else
+- snprintf(buffer, bsize, "Gentoo Linux %s", keywords);
+- }
+- else if((fp = fopen("/etc/redhat-release", "r")) != NULL)
+- fgets(buffer, bsize, fp);
+- else if((fp = fopen("/etc/slackware-version", "r")) != NULL)
+- fgets(buffer, bsize, fp);
+- else if((fp = fopen("/etc/mandrake-release", "r")) != NULL)
+- fgets(buffer, bsize, fp);
+- else if((fp = fopen("/etc/debian_version", "r")) != NULL)
+- {
+- char release[bsize];
+- fgets(release, bsize, fp);
+- snprintf(buffer, bsize, "Debian %s", release);
+- }
+- else if((fp = fopen("/etc/SuSE-release", "r")) != NULL)
+- fgets(buffer, bsize, fp);
+- else if((fp = fopen("/etc/turbolinux-release", "r")) != NULL)
+- fgets(buffer, bsize, fp);
++ else if((fp = fopen("/etc/arch-release", "r")) != NULL)
++ snprintf(buffer, bsize, "Parabola GNU/Linux-libre");
+ else
+ snprintf(buffer, bsize, "Unknown Distro");
+ if(fp != NULL) fclose(fp);