summaryrefslogtreecommitdiff
path: root/net/ishell/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'net/ishell/patches/patch-aa')
-rw-r--r--net/ishell/patches/patch-aa59
1 files changed, 59 insertions, 0 deletions
diff --git a/net/ishell/patches/patch-aa b/net/ishell/patches/patch-aa
new file mode 100644
index 00000000000..af370c8b327
--- /dev/null
+++ b/net/ishell/patches/patch-aa
@@ -0,0 +1,59 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/04/11 23:58:23 minskim Exp $
+
+--- Makefile.orig 2002-01-31 11:35:52.000000000 -0600
++++ Makefile
+@@ -1,38 +1,24 @@
+-CC = gcc
+-CFLAGS1 = -O2 -Wall
+-CFLAGS2 = -O2 -Wall -lsocket
+-STRIP = strip
+-
+-default:
+- @echo "-------------------------------"
+- @echo "Make with the OS from the list:"
+- @echo ""
+- @echo "1.) linux"
+- @echo "2.) bsd"
+- @echo "3.) solaris"
+- @echo ""
+- @echo "ex: make bsd"
+- @echo "-------------------------------"
++OWNCFLAGS = -O2 -Wall
+
++ish_OBJECTS = ish.o ish_main.o
++ishd_OBJECTS = ishd.o ish_main.o ish_open.o
+
+-clean:
+- /bin/rm -f ish ishd
+-
+-linux: clean cc1 fin
++all: ish ishd
+
+-bsd: clean cc1 fin
++.c.o:
++ $(CC) -c $(CPPFLAGS) $(OWNCFLAGS) $(CFLAGS) $<
+
+-solaris: clean cc2 fin
++ish: $(ish_OBJECTS)
++ $(CC) $(ish_OBJECTS) $(LDFLAGS) $(LIBS) -o $@
+
+-cc1:
+- $(CC) $(CFLAGS1) -o ish ish.c ish_main.c
+- $(CC) $(CFLAGS1) -o ishd ishd.c ish_main.c ish_open.c
++ishd: $(ishd_OBJECTS)
++ $(CC) $(ishd_OBJECTS) $(LDFLAGS) $(LIBS) -o $@
+
+-cc2:
+- $(CC) $(CFLAGS2) -o ish ish.c ish_main.c
+- $(CC) $(CFLAGS2) -o ishd ishd.c ish_main.c ish_open.c
++clean:
++ ${RM} -f ish ishd
+
+-fin:
+- $(STRIP) ish
+- $(STRIP) ishd
++install:
++ ${BSD_INSTALL_PROGRAM} ./ish ${PREFIX}/bin/ishell
++ ${BSD_INSTALL_PROGRAM} ./ish ${PREFIX}/sbin/ishelld
+
++.PHONY: all clean install