aboutsummaryrefslogtreecommitdiffstats
path: root/x11/fluxbg/files/patch-src::fluxbg_conf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'x11/fluxbg/files/patch-src::fluxbg_conf.cc')
-rw-r--r--x11/fluxbg/files/patch-src::fluxbg_conf.cc28
1 files changed, 28 insertions, 0 deletions
diff --git a/x11/fluxbg/files/patch-src::fluxbg_conf.cc b/x11/fluxbg/files/patch-src::fluxbg_conf.cc
new file mode 100644
index 000000000000..35fc2f9baacc
--- /dev/null
+++ b/x11/fluxbg/files/patch-src::fluxbg_conf.cc
@@ -0,0 +1,28 @@
+--- src/fluxbg_conf.cc.orig Sat Aug 9 12:00:29 2003
++++ src/fluxbg_conf.cc Tue Sep 30 20:53:24 2003
+@@ -10,6 +10,8 @@
+ #include <iostream>
+ #include <fstream>
+ #include <stdlib.h>
++#include <errno.h>
++#include <string.h>
+
+
+ extern "C"{
+@@ -158,6 +160,16 @@
+ BailOut();
+
+ if (try_access("/usr/local/bin/fbsetbg")==1)
++ BailOut();
++
++/* FreeBSD installs stuff in a Better Place [tm]
++ also, the fluxbox-devel port appends "-devel" to binary names */
++
++if (try_access("%%X11BASE%%/bin/fbsetbg-devel")==1)
++ BailOut();
++if (try_access("%%X11BASE%%/bin/fbsetbg")==1)
++ BailOut();
++if (try_access("%%X11BASE%%/bin/bsetbg")==1)
+ BailOut();
+
+ if (write_empty_conf()!=1)