summaryrefslogtreecommitdiff
path: root/homebrew/winexe
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/winexe
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/winexe')
-rw-r--r--homebrew/winexe/.beer52
-rw-r--r--homebrew/winexe/.make.sh-auto6
-rw-r--r--homebrew/winexe/_metadata/description1
-rw-r--r--homebrew/winexe/_metadata/homepage1
-rw-r--r--homebrew/winexe/_metadata/name1
-rw-r--r--homebrew/winexe/_metadata/version1
-rwxr-xr-xhomebrew/winexe/download.sh1
-rwxr-xr-xhomebrew/winexe/patches.sh15
8 files changed, 78 insertions, 0 deletions
diff --git a/homebrew/winexe/.beer b/homebrew/winexe/.beer
new file mode 100644
index 000000000..e409bd226
--- /dev/null
+++ b/homebrew/winexe/.beer
@@ -0,0 +1,52 @@
+{
+ "name": "Winexe",
+ "description": "Remote Windows-command executor",
+ "url": "https://downloads.sourceforge.net/project/winexe/winexe-1.00.tar.gz",
+ "mirror": null,
+ "homepage": "https://sourceforge.net/projects/winexe/",
+ "depends": [
+ {
+ "depend": "autoconf",
+ "build-depend": true
+ },
+ {
+ "depend": "pkg-config",
+ "build-depend": true
+ }
+ ],
+ "resource": [
+ {
+ "name": "Perl4::CoreLibs",
+ "url": "https://cpan.metacpan.org/authors/id/Z/ZE/ZEFRAM/Perl4-CoreLibs-0.003.tar.gz"
+ }
+ ],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "diff -Naur winexe-1.00-orig/source4/winexe/winexe.h winexe-1.00/source4/winexe/winexe.h\n",
+ "--- winexe-1.00-orig/source4/winexe/winexe.h 2011-06-18 00:00:00.000000000 +0000\n",
+ "+++ winexe-1.00/source4/winexe/winexe.h 2011-06-18 00:00:00.000000000 +0000\n",
+ "@@ -63,7 +63,7 @@\n",
+ " int async_write(struct async_context *c, const void *buf, int len);\n",
+ " int async_close(struct async_context *c);\n",
+ " \n",
+ "-struct tevent_context *ev_ctx;\n",
+ "+extern struct tevent_context *ev_ctx;\n",
+ " \n",
+ " /* winexesvc32_exe.c */\n",
+ " extern unsigned int winexesvc32_exe_len;\n"
+ ]
+ }
+ ],
+ "install": [
+ "ENV.prepend_create_path \"PERL5LIB\", libexec/\"lib/perl5\"",
+ "resource(\"Perl4::CoreLibs\").stage do",
+ "system \"perl\", \"Makefile.PL\", \"INSTALL_BASE=#{libexec}\"",
+ "system \"make\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "1.00",
+ "file": "winexe.rb"
+} \ No newline at end of file
diff --git a/homebrew/winexe/.make.sh-auto b/homebrew/winexe/.make.sh-auto
new file mode 100644
index 000000000..36f55ce2e
--- /dev/null
+++ b/homebrew/winexe/.make.sh-auto
@@ -0,0 +1,6 @@
+pkg:setup
+ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5"
+resource("Perl4::CoreLibs").stage do
+perl Makefile.PL INSTALL_BASE=#{libexec}
+make
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/winexe/_metadata/description b/homebrew/winexe/_metadata/description
new file mode 100644
index 000000000..c0faadc5d
--- /dev/null
+++ b/homebrew/winexe/_metadata/description
@@ -0,0 +1 @@
+Remote Windows-command executor
diff --git a/homebrew/winexe/_metadata/homepage b/homebrew/winexe/_metadata/homepage
new file mode 100644
index 000000000..f9d54e5d8
--- /dev/null
+++ b/homebrew/winexe/_metadata/homepage
@@ -0,0 +1 @@
+https://sourceforge.net/projects/winexe/
diff --git a/homebrew/winexe/_metadata/name b/homebrew/winexe/_metadata/name
new file mode 100644
index 000000000..e24a59aa8
--- /dev/null
+++ b/homebrew/winexe/_metadata/name
@@ -0,0 +1 @@
+Winexe
diff --git a/homebrew/winexe/_metadata/version b/homebrew/winexe/_metadata/version
new file mode 100644
index 000000000..1e376f661
--- /dev/null
+++ b/homebrew/winexe/_metadata/version
@@ -0,0 +1 @@
+1.00
diff --git a/homebrew/winexe/download.sh b/homebrew/winexe/download.sh
new file mode 100755
index 000000000..ae7752ce2
--- /dev/null
+++ b/homebrew/winexe/download.sh
@@ -0,0 +1 @@
+wget https://downloads.sourceforge.net/project/winexe/winexe-1.00.tar.gz \ No newline at end of file
diff --git a/homebrew/winexe/patches.sh b/homebrew/winexe/patches.sh
new file mode 100755
index 000000000..6a48b3ac2
--- /dev/null
+++ b/homebrew/winexe/patches.sh
@@ -0,0 +1,15 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff -Naur winexe-1.00-orig/source4/winexe/winexe.h winexe-1.00/source4/winexe/winexe.h
+--- winexe-1.00-orig/source4/winexe/winexe.h 2011-06-18 00:00:00.000000000 +0000
++++ winexe-1.00/source4/winexe/winexe.h 2011-06-18 00:00:00.000000000 +0000
+@@ -63,7 +63,7 @@
+ int async_write(struct async_context *c, const void *buf, int len);
+ int async_close(struct async_context *c);
+
+-struct tevent_context *ev_ctx;
++extern struct tevent_context *ev_ctx;
+
+ /* winexesvc32_exe.c */
+ extern unsigned int winexesvc32_exe_len;
+EOF