summaryrefslogtreecommitdiff
path: root/homebrew/x11vnc
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/x11vnc
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/x11vnc')
-rw-r--r--homebrew/x11vnc/.beer53
-rw-r--r--homebrew/x11vnc/.make.sh-auto5
-rw-r--r--homebrew/x11vnc/_metadata/description1
-rw-r--r--homebrew/x11vnc/_metadata/homepage1
-rw-r--r--homebrew/x11vnc/_metadata/name1
-rw-r--r--homebrew/x11vnc/_metadata/version1
-rwxr-xr-xhomebrew/x11vnc/download.sh1
-rwxr-xr-xhomebrew/x11vnc/patches.sh16
8 files changed, 79 insertions, 0 deletions
diff --git a/homebrew/x11vnc/.beer b/homebrew/x11vnc/.beer
new file mode 100644
index 000000000..ab0adf85f
--- /dev/null
+++ b/homebrew/x11vnc/.beer
@@ -0,0 +1,53 @@
+{
+ "name": "X11vnc",
+ "description": "VNC server for real X displays",
+ "url": "https://downloads.sourceforge.net/project/libvncserver/x11vnc/0.9.13/x11vnc-0.9.13.tar.gz",
+ "mirror": null,
+ "homepage": "http://www.karlrunge.com/x11vnc/",
+ "depends": [
+ {
+ "depend": "jpeg",
+ "build-depend": false
+ },
+ {
+ "depend": "openssl",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "diff --git a/x11vnc/solid.c b/x11vnc/solid.c\n",
+ "index d6b0bda..0b2cfa9 100644\n",
+ "--- a/x11vnc/solid.c\n",
+ "+++ b/x11vnc/solid.c\n",
+ "@@ -177,7 +177,7 @@ unsigned long get_pixel(char *color) {\n",
+ " \n",
+ " XImage *solid_root(char *color) {\n",
+ " #if NO_X11\n",
+ "-\tRAWFB_RET_VOID\n",
+ "+\tRAWFB_RET(NULL)\n",
+ " \tif (!color) {}\n",
+ " \treturn NULL;\n",
+ " #else\n"
+ ]
+ }
+ ],
+ "install": [
+ "args = %W[",
+ "--disable-debug",
+ "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--mandir=#{man}",
+ "--without-x",
+ "]",
+ "system \"./configure\", *args",
+ "system \"make\"",
+ "system \"make\", \"MKDIRPROG=mkdir -p\", \"install\""
+ ],
+ "version": "0.9.13",
+ "file": "x11vnc.rb"
+} \ No newline at end of file
diff --git a/homebrew/x11vnc/.make.sh-auto b/homebrew/x11vnc/.make.sh-auto
new file mode 100644
index 000000000..aae33c9e1
--- /dev/null
+++ b/homebrew/x11vnc/.make.sh-auto
@@ -0,0 +1,5 @@
+pkg:setup
+args = %W[--disable-debug --disable-dependency-tracking --prefix=#{prefix} --mandir=#{man} --without-x ]
+pkg:configure *args
+make
+make MKDIRPROG=mkdir -p DESTDIR=${PKG_DEST} install
diff --git a/homebrew/x11vnc/_metadata/description b/homebrew/x11vnc/_metadata/description
new file mode 100644
index 000000000..93c2a083c
--- /dev/null
+++ b/homebrew/x11vnc/_metadata/description
@@ -0,0 +1 @@
+VNC server for real X displays
diff --git a/homebrew/x11vnc/_metadata/homepage b/homebrew/x11vnc/_metadata/homepage
new file mode 100644
index 000000000..7488b54fc
--- /dev/null
+++ b/homebrew/x11vnc/_metadata/homepage
@@ -0,0 +1 @@
+http://www.karlrunge.com/x11vnc/
diff --git a/homebrew/x11vnc/_metadata/name b/homebrew/x11vnc/_metadata/name
new file mode 100644
index 000000000..2a7686719
--- /dev/null
+++ b/homebrew/x11vnc/_metadata/name
@@ -0,0 +1 @@
+X11vnc
diff --git a/homebrew/x11vnc/_metadata/version b/homebrew/x11vnc/_metadata/version
new file mode 100644
index 000000000..62ea25909
--- /dev/null
+++ b/homebrew/x11vnc/_metadata/version
@@ -0,0 +1 @@
+0.9.13
diff --git a/homebrew/x11vnc/download.sh b/homebrew/x11vnc/download.sh
new file mode 100755
index 000000000..f9defb9e8
--- /dev/null
+++ b/homebrew/x11vnc/download.sh
@@ -0,0 +1 @@
+wget https://downloads.sourceforge.net/project/libvncserver/x11vnc/0.9.13/x11vnc-0.9.13.tar.gz \ No newline at end of file
diff --git a/homebrew/x11vnc/patches.sh b/homebrew/x11vnc/patches.sh
new file mode 100755
index 000000000..3d1b6f1b8
--- /dev/null
+++ b/homebrew/x11vnc/patches.sh
@@ -0,0 +1,16 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/x11vnc/solid.c b/x11vnc/solid.c
+index d6b0bda..0b2cfa9 100644
+--- a/x11vnc/solid.c
++++ b/x11vnc/solid.c
+@@ -177,7 +177,7 @@ unsigned long get_pixel(char *color) {
+
+ XImage *solid_root(char *color) {
+ #if NO_X11
+- RAWFB_RET_VOID
++ RAWFB_RET(NULL)
+ if (!color) {}
+ return NULL;
+ #else
+EOF