summaryrefslogtreecommitdiff
path: root/homebrew/wput
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/wput')
-rw-r--r--homebrew/wput/.beer52
-rw-r--r--homebrew/wput/.make.sh-auto5
-rw-r--r--homebrew/wput/_metadata/description1
-rw-r--r--homebrew/wput/_metadata/homepage1
-rw-r--r--homebrew/wput/_metadata/name1
-rw-r--r--homebrew/wput/_metadata/version1
-rwxr-xr-xhomebrew/wput/download.sh1
-rwxr-xr-xhomebrew/wput/patches.sh29
8 files changed, 91 insertions, 0 deletions
diff --git a/homebrew/wput/.beer b/homebrew/wput/.beer
new file mode 100644
index 000000000..a53fbf537
--- /dev/null
+++ b/homebrew/wput/.beer
@@ -0,0 +1,52 @@
+{
+ "name": "Wput",
+ "description": "Tiny, wget-like FTP client for uploading files",
+ "url": "https://downloads.sourceforge.net/project/wput/wput/0.6.2/wput-0.6.2.tgz",
+ "mirror": null,
+ "homepage": "https://wput.sourceforge.io/",
+ "depends": [],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "diff --git a/src/memdbg.c b/src/memdbg.c\n",
+ "index 560bd7c..9e69eef 100644\n",
+ "--- a/src/memdbg.c\n",
+ "+++ b/src/memdbg.c\n",
+ "@@ -1,5 +1,7 @@\n",
+ " #include <stdio.h>\n",
+ "+#ifndef __APPLE__\n",
+ " #include <malloc.h>\n",
+ "+#endif\n",
+ " #include <fcntl.h>\n",
+ " #ifndef WIN32\n",
+ " #include <sys/socket.h>\n",
+ "diff --git a/src/socketlib.c b/src/socketlib.c\n",
+ "index ab77d2b..c728ed9 100644\n",
+ "--- a/src/socketlib.c\n",
+ "+++ b/src/socketlib.c\n",
+ "@@ -20,7 +20,9 @@\n",
+ " * It is meant to provide some library functions. The only required external depency\n",
+ " * the printip function that is provided in utils.c */\n",
+ "\n",
+ "+#ifndef __APPLE__\n",
+ " #include <malloc.h>\n",
+ "+#endif\n",
+ " #include <string.h>\n",
+ " #include <fcntl.h>\n",
+ " #include <errno.h>\n"
+ ]
+ }
+ ],
+ "install": [
+ "system \"./configure\", \"--disable-debug\", \"--disable-dependency-tracking\",",
+ "\"--prefix=#{prefix}\"",
+ "system \"make\"",
+ "ENV.deparallelize",
+ "system \"make\", \"install\""
+ ],
+ "version": "0.6.2",
+ "file": "wput.rb"
+} \ No newline at end of file
diff --git a/homebrew/wput/.make.sh-auto b/homebrew/wput/.make.sh-auto
new file mode 100644
index 000000000..4c2b1375b
--- /dev/null
+++ b/homebrew/wput/.make.sh-auto
@@ -0,0 +1,5 @@
+pkg:setup
+pkg:configure --disable-dependency-tracking
+make
+ENV.deparallelize
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/wput/_metadata/description b/homebrew/wput/_metadata/description
new file mode 100644
index 000000000..963852962
--- /dev/null
+++ b/homebrew/wput/_metadata/description
@@ -0,0 +1 @@
+Tiny, wget-like FTP client for uploading files
diff --git a/homebrew/wput/_metadata/homepage b/homebrew/wput/_metadata/homepage
new file mode 100644
index 000000000..2fcc7fada
--- /dev/null
+++ b/homebrew/wput/_metadata/homepage
@@ -0,0 +1 @@
+https://wput.sourceforge.io/
diff --git a/homebrew/wput/_metadata/name b/homebrew/wput/_metadata/name
new file mode 100644
index 000000000..2fa5ac7ac
--- /dev/null
+++ b/homebrew/wput/_metadata/name
@@ -0,0 +1 @@
+Wput
diff --git a/homebrew/wput/_metadata/version b/homebrew/wput/_metadata/version
new file mode 100644
index 000000000..b61604874
--- /dev/null
+++ b/homebrew/wput/_metadata/version
@@ -0,0 +1 @@
+0.6.2
diff --git a/homebrew/wput/download.sh b/homebrew/wput/download.sh
new file mode 100755
index 000000000..00addc917
--- /dev/null
+++ b/homebrew/wput/download.sh
@@ -0,0 +1 @@
+wget https://downloads.sourceforge.net/project/wput/wput/0.6.2/wput-0.6.2.tgz \ No newline at end of file
diff --git a/homebrew/wput/patches.sh b/homebrew/wput/patches.sh
new file mode 100755
index 000000000..70c7e39c1
--- /dev/null
+++ b/homebrew/wput/patches.sh
@@ -0,0 +1,29 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/src/memdbg.c b/src/memdbg.c
+index 560bd7c..9e69eef 100644
+--- a/src/memdbg.c
++++ b/src/memdbg.c
+@@ -1,5 +1,7 @@
+ #include <stdio.h>
++#ifndef __APPLE__
+ #include <malloc.h>
++#endif
+ #include <fcntl.h>
+ #ifndef WIN32
+ #include <sys/socket.h>
+diff --git a/src/socketlib.c b/src/socketlib.c
+index ab77d2b..c728ed9 100644
+--- a/src/socketlib.c
++++ b/src/socketlib.c
+@@ -20,7 +20,9 @@
+ * It is meant to provide some library functions. The only required external depency
+ * the printip function that is provided in utils.c */
+
++#ifndef __APPLE__
+ #include <malloc.h>
++#endif
+ #include <string.h>
+ #include <fcntl.h>
+ #include <errno.h>
+EOF