summaryrefslogtreecommitdiff
path: root/recipes/microcom
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/microcom')
-rw-r--r--recipes/microcom/microcom/make.patch44
-rw-r--r--recipes/microcom/microcom_1.02.bb16
2 files changed, 60 insertions, 0 deletions
diff --git a/recipes/microcom/microcom/make.patch b/recipes/microcom/microcom/make.patch
new file mode 100644
index 0000000000..317619b2e5
--- /dev/null
+++ b/recipes/microcom/microcom/make.patch
@@ -0,0 +1,44 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- microcom-1.02-r0/Makefile~make
++++ microcom-1.02-r0/Makefile
+@@ -18,20 +18,30 @@
+ #** Rev. 0.9 - Sept. 1999
+ #** Rev. 0.91 - Jan. 2000 - minor fixes, compiled under Mandrake 6.0
+ #****************************************************************************/
++CC = gcc
++CCLD = gcc
++LDFLAGS =
++CFLAGS = -W -Wall -O2
++
+ microcom: microcom.o mux.o script.o help.o autodet.o
+- gcc -o microcom microcom.o mux.o script.o help.o autodet.o
++ $(CCLD) $(LDFLAGS) -o microcom microcom.o mux.o script.o help.o autodet.o
+
+ autodet.o: autodet.c microcom.h
+- gcc -O -c autodet.c
++ $(CC) $(CFLAGS) -O -c autodet.c
+
+ script.o: script.c script.h microcom.h
+- gcc -O -c script.c
++ $(CC) $(CFLAGS) -O -c script.c
+
+ mux.o: mux.c microcom.h
+- gcc -O -c mux.c
++ $(CC) $(CFLAGS) -O -c mux.c
+
+ microcom.o: microcom.c microcom.h
+- gcc -O -c microcom.c
++ $(CC) $(CFLAGS) -O -c microcom.c
+
+ help.o: help.c microcom.h
+- gcc -O -c help.c
++ $(CC) $(CFLAGS) -O -c help.c
++
++clean:
++ rm -f *.o microcom
++
++distclean: clean
diff --git a/recipes/microcom/microcom_1.02.bb b/recipes/microcom/microcom_1.02.bb
new file mode 100644
index 0000000000..a268eadc23
--- /dev/null
+++ b/recipes/microcom/microcom_1.02.bb
@@ -0,0 +1,16 @@
+DESCRIPTION = "microcom is a small minicom-like serial terminal emulator with \
+scripting support."
+LICENSE = "GPL"
+
+# http://microcom.port5.com/m102.tar.gz is no longer available
+#NOTE: this should probably be converted to pull from sourceforge
+# CVS, because openwrt is just another mirror of a file which no
+# longer seems to exist outside mirrors. mirror magic.
+SRC_URI = "http://downloads.openwrt.org/sources/m102.tar.gz \
+ file://make.patch;patch=1"
+S = "${WORKDIR}"
+
+do_install () {
+ install -d ${D}${bindir}
+ install -m 0755 microcom ${D}${bindir}/
+}