disable gdb build for now, need to rework gdb client and server and add some docs...
[openwrt.git] / openwrt / package / heyu / patches / 01-avoid_configure.patch
1 diff -urN orig/heyu-2.0beta.2/Makefile heyu-2.0beta.2/Makefile
2 --- orig/heyu-2.0beta.2/Makefile 1970-01-01 01:00:00.000000000 +0100
3 +++ heyu-2.0beta.2/Makefile 2006-01-07 01:53:25.000000000 +0100
4 @@ -0,0 +1,183 @@
5 +# Makefile for HEYU, a program to control an X10 CM11A computer interface.
6 +# This makefile is generated by the Configure program.
7 +#
8 +BIN = /usr/bin
9 +MAN = /usr/man/man1
10 +MAN5 = /usr/man/man5
11 +GROUP = sys
12 +OWNER = root
13 +
14 +# set DFLAGS equal to:
15 +# -DSYSV if using SYSTEM V
16 +# -DVOID if compiler doesn't understand 'void'
17 +
18 +#This makefile is built for linux
19 +DFLAGS = -DSYSV -DPOSIX -DHAS_ITIMER -DLINUX -DHASSELECT -DHASTZ
20 +LIBS = -lm -lc
21 +# # The rest of the makefile should need no changes
22 +
23 +## Makefile template for Heyu, a program to control an X10 CM11A computer
24 +## interface. From this point on the Makefile is copied from Makefile.in
25 +## by the Configure program
26 +
27 +SRCS = date.c erase.c info.c message.c relay.c \
28 + monitor.c reset.c setclock.c stop.c \
29 + tty.c turn.c x10.c xread.c xwrite.c status.c cm11a.c \
30 + eeprom.c preset.c process.c sun.c cmd.c config.c x10state.c \
31 + poll.c modules.c
32 +
33 +OBJS = date.o erase.o info.o message.o relay.o \
34 + monitor.o reset.o setclock.o stop.o \
35 + tty.o turn.o x10.o xread.o xwrite.o status.o cm11a.o \
36 + eeprom.o preset.o process.o sun.o cmd.o config.o x10state.o \
37 + poll.o modules.o
38 +
39 +OTHERSRC = README README2 Makefile x10config.sample protocol.txt eeprom.h \
40 + x10.sched.sample monit x10biff heyu.1 x10.h x10config.5 \
41 + history.txt version.h heyufaq.txt x10sched.5 process.h sun.h \
42 + x10scripts.5 Configure Makefile.in install.sh INSTALL LICENSE
43 +
44 +EVERYTHING = $(OTHERSRC) $(SRCS)
45 +
46 +all: heyu
47 +
48 +heyu: $(OBJS) version.h
49 + $(CC) $(LDFLAGS) -o heyu $(OBJS) $(LIBS)
50 + @echo `id` >usergroup.tmp
51 + @echo ${HOME} >userhome.tmp
52 + @echo "** Now become root and run 'make install' **"
53 +
54 +$(OBJS): x10.h process.h sun.h
55 +
56 +eeprom.o: eeprom.h
57 +
58 +install: $(BIN)/heyu $(MAN)/heyu.1 $(MAN5)/x10config.5 $(MAN5)/x10sched.5 \
59 + $(MAN5)/x10scripts.5
60 +
61 +uninstall:
62 + rm -f $(BIN)/heyu
63 + rm -f $(MAN)/heyu.1
64 + rm -f $(MAN5)/x10config.5
65 + rm -f $(MAN5)/x10sched.5
66 + rm -f $(MAN5)/x10scripts.5
67 +
68 +$(BIN)/heyu: heyu
69 + mkdir -p -m 755 $(BIN)
70 + cp heyu $(BIN)
71 + chgrp $(GROUP) $(BIN)/heyu
72 + chmod 755 $(BIN)/heyu
73 + chown $(OWNER) $(BIN)/heyu
74 + ./install.sh
75 +
76 +$(MAN)/heyu.1: heyu.1
77 + mkdir -p -m 755 $(MAN)
78 + cp heyu.1 $(MAN)
79 + chmod 644 $(MAN)/heyu.1
80 +
81 +$(MAN5)/x10config.5: x10config.5
82 + mkdir -p -m 755 $(MAN5)
83 + cp x10config.5 $(MAN5)
84 + chmod 644 $(MAN5)/x10config.5
85 +
86 +$(MAN5)/x10sched.5: x10sched.5
87 + mkdir -p -m 755 $(MAN5)
88 + cp x10sched.5 $(MAN5)
89 + chmod 644 $(MAN5)/x10sched.5
90 +
91 +$(MAN5)/x10scripts.5: x10scripts.5
92 + mkdir -p -m 755 $(MAN5)
93 + cp x10scripts.5 $(MAN5)
94 + chmod 644 $(MAN5)/x10scripts.5
95 +
96 +lint:
97 + lint $(DFLAGS) $(SRCS)
98 +
99 +shar: x10_heyu.shar.1 x10_heyu.shar.2
100 +
101 +x10.o: x10.c version.h
102 +
103 +ci: $(SRCS) index.html Makefile
104 + @ for FL in $+ ; do \
105 + if test -w $$FL ; then \
106 + ci -l $$FL ;\
107 + fi ;\
108 + done
109 +
110 +x10_heyu.shar.1:
111 + shar $(OTHERSRC) >x10_heyu.shar.1
112 +
113 +x10_heyu.shar.2:
114 + shar $(SRCS) > x10_heyu.shar.2
115 +
116 +bigshar:
117 + shar $(EVERYTHING) > x10_heyu.shar
118 +
119 +tar: x10_heyu.tgz
120 +
121 +x10_heyu.tgz: $(EVERYTHING)
122 + rm -fr heyu.dir
123 + mkdir heyu.dir
124 + cp -p $(EVERYTHING) heyu.dir
125 + cp Makefile.dist heyu.dir/Makefile
126 + tar -czvf x10_heyu.tgz heyu.dir
127 +
128 +heyudistro: $(EVERYTHING)
129 + rm -rf distro.dir
130 + mkdir distro.dir
131 + cp -p $(EVERYTHING) distro.dir
132 + cp -p release_notes.txt distro.dir
133 + rm distro.dir/Makefile
134 +
135 +
136 +beta: x10_beta.tgz
137 +
138 +x10_beta.tgz: $(EVERYTHING)
139 + rm -fr heyu.beta
140 + mkdir heyu.beta
141 + cp -p $(EVERYTHING) heyu.beta
142 + cp Makefile.dist heyu.dir/Makefile
143 + tar -czvf x10_beta.tgz heyu.beta
144 +
145 +zip: x10_heyu.zip
146 +
147 +x10_heyu.zip: $(EVERYTHING)
148 + rm -f x10_heyu.zip
149 + zip -kl x10_heyu.zip $(EVERYTHING)
150 +
151 +touch:
152 + touch $(OTHERSRC)
153 + touch $(SRCS)
154 +
155 +clean:
156 + rm -f *.o
157 +
158 +clobber: clean
159 + rm -f heyu
160 +
161 +upload: heyu index.html x10_heyu.tgz x10_heyu.zip
162 + /bin/sh -c ./upload.sh
163 +
164 +rcsdiffrw:
165 + @-for x in `$(MAKE) rw` ;\
166 + do \
167 + echo ;\
168 + echo $$x ;\
169 + echo ========= ;\
170 + rcsdiff $$x ;\
171 + done 2>&1 ;\
172 + echo ;\
173 + echo all done
174 +
175 +list:
176 + @ls $(EVERYTHING) | more
177 +
178 +rw:
179 + @ls -l $(EVERYTHING) | \
180 + egrep '^[^l].w' | \
181 + sed 's;.* ;;' # strip to last space
182 +
183 +populate: $(EVERYTHING)
184 +
185 +$(EVERYTHING):
186 +## co -r$(revision) $@
187 +
188 diff -urN orig/heyu-2.0beta.2/local.h heyu-2.0beta.2/local.h
189 --- orig/heyu-2.0beta.2/local.h 1970-01-01 01:00:00.000000000 +0100
190 +++ heyu-2.0beta.2/local.h 2006-01-07 01:54:13.000000000 +0100
191 @@ -0,0 +1,3 @@
192 +#define USESIGINT 1'
193 +#define SPOOLDIR "/tmp"
194 +#define LOCKDIR "/tmp"
This page took 0.048905 seconds and 5 git commands to generate.