summaryrefslogtreecommitdiff
path: root/homebrew/ser2net
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/ser2net
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/ser2net')
-rw-r--r--homebrew/ser2net/.beer27
-rw-r--r--homebrew/ser2net/.make.sh-auto6
-rw-r--r--homebrew/ser2net/_metadata/description1
-rw-r--r--homebrew/ser2net/_metadata/homepage1
-rw-r--r--homebrew/ser2net/_metadata/name1
-rw-r--r--homebrew/ser2net/_metadata/version1
-rwxr-xr-xhomebrew/ser2net/download.sh1
7 files changed, 38 insertions, 0 deletions
diff --git a/homebrew/ser2net/.beer b/homebrew/ser2net/.beer
new file mode 100644
index 000000000..19dab7965
--- /dev/null
+++ b/homebrew/ser2net/.beer
@@ -0,0 +1,27 @@
+{
+ "name": "Ser2net",
+ "description": "Allow network connections to serial ports",
+ "url": "https://downloads.sourceforge.net/project/ser2net/ser2net/ser2net-3.5.tar.gz",
+ "mirror": null,
+ "homepage": "https://ser2net.sourceforge.io",
+ "depends": [
+ {
+ "depend": "macos",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "inreplace \"readconfig.c\", \"#include <values.h>\", \"\"",
+ "inreplace [\"ser2net.c\", \"ser2net.8\"], \"/etc/ser2net.conf\", \"#{etc}/ser2net.conf\"",
+ "system \"./configure\", \"--disable-dependency-tracking\",",
+ "\"--prefix=#{prefix}\",",
+ "\"--mandir=#{man}\"",
+ "system \"make\", \"install\", \"LIBS=-lpthread\"",
+ "etc.install \"ser2net.conf\""
+ ],
+ "version": "3.5",
+ "file": "ser2net.rb"
+} \ No newline at end of file
diff --git a/homebrew/ser2net/.make.sh-auto b/homebrew/ser2net/.make.sh-auto
new file mode 100644
index 000000000..554f217c3
--- /dev/null
+++ b/homebrew/ser2net/.make.sh-auto
@@ -0,0 +1,6 @@
+pkg:setup
+inreplace "readconfig.c", "#include <values.h>", ""
+inreplace ["ser2net.c", "ser2net.8"], "/etc/ser2net.conf", "#{etc}/ser2net.conf"
+pkg:configure --disable-dependency-tracking
+make DESTDIR=${PKG_DEST} install LIBS=-lpthread
+etc.install "ser2net.conf"
diff --git a/homebrew/ser2net/_metadata/description b/homebrew/ser2net/_metadata/description
new file mode 100644
index 000000000..b4d909c5e
--- /dev/null
+++ b/homebrew/ser2net/_metadata/description
@@ -0,0 +1 @@
+Allow network connections to serial ports
diff --git a/homebrew/ser2net/_metadata/homepage b/homebrew/ser2net/_metadata/homepage
new file mode 100644
index 000000000..d98370100
--- /dev/null
+++ b/homebrew/ser2net/_metadata/homepage
@@ -0,0 +1 @@
+https://ser2net.sourceforge.io
diff --git a/homebrew/ser2net/_metadata/name b/homebrew/ser2net/_metadata/name
new file mode 100644
index 000000000..9d07a1ecd
--- /dev/null
+++ b/homebrew/ser2net/_metadata/name
@@ -0,0 +1 @@
+Ser2net
diff --git a/homebrew/ser2net/_metadata/version b/homebrew/ser2net/_metadata/version
new file mode 100644
index 000000000..5a958026d
--- /dev/null
+++ b/homebrew/ser2net/_metadata/version
@@ -0,0 +1 @@
+3.5
diff --git a/homebrew/ser2net/download.sh b/homebrew/ser2net/download.sh
new file mode 100755
index 000000000..2b9ac9901
--- /dev/null
+++ b/homebrew/ser2net/download.sh
@@ -0,0 +1 @@
+wget https://downloads.sourceforge.net/project/ser2net/ser2net/ser2net-3.5.tar.gz \ No newline at end of file