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