blob: 2bf2bf2905c4a2ee9a749f1430143874ca79e6d2 (
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
|
##
## TCOS Makefile
##
## mariodebian \/at\/ gmail \/dot\/ com
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
all:
$(MAKE) -C hex2ascii
$(MAKE) -C xmlrpc
$(MAKE) -C udev
$(MAKE) -C lockscreen
$(MAKE) -C tnc
$(MAKE) -C dbus
$(MAKE) -C session-cmd
$(MAKE) -C tcos-standalone
$(MAKE) -C tmixer
include common.mk
clean:
@find * |grep "~" | xargs rm -rf --
@rm -f build-stamp configure-stamp
$(MAKE) -C hex2ascii clean
$(MAKE) -C xmlrpc clean
$(MAKE) -C udev clean
$(MAKE) -C lockscreen clean
$(MAKE) -C tnc clean
$(MAKE) -C dbus clean
$(MAKE) -C session-cmd clean
$(MAKE) -C tcos-standalone clean
$(MAKE) -C tmixer clean
gedit:
gedit $(shell find bin/gentcos hooks-addons/ hooks/ scripts/ -type f|grep -v svn) >/dev/null 2>&1 &
boot_imgs:
ppmtolss16 '#c0cfc0=7' < images/logo.ppm > tcos/logo.lss
distclean:
find . -type f -name "*~" | xargs rm -rf --
config_svn:
svn propedit svn:ignore .
install:
# Creating directories
install -d $(DESTDIR)/$(TCOS_CONF)
install -d $(DESTDIR)/$(TCOS_CONF)/ssl
install -d $(DESTDIR)/$(TCOS_CONF)/hooks-addons/
install -d $(DESTDIR)/$(TCOS_CONF)/conf.d/
install -d $(DESTDIR)/$(TCOS_CONF)/secrets/
install -d $(DESTDIR)/$(TCOS_DIR)
install -d $(DESTDIR)/$(TCOS_DIR)/hooks
install -d $(DESTDIR)/$(TCOS_DIR)/hooks-addons
install -d $(DESTDIR)/$(TCOS_DIR)/scripts
install -d $(DESTDIR)/$(TCOS_DIR)/inc
install -d $(DESTDIR)/$(TFTP_DIR)
install -d $(DESTDIR)/$(TCOS_BINS)
install -d $(DESTDIR)/$(X11_CONF)
install -d $(DESTDIR)$(TCOS_CONF)/hacking
install -d $(DESTDIR)$(TCOS_CONF)/pxelinux.d
install -d $(DESTDIR)/usr/sbin
install -d $(DESTDIR)$(TFTP_DIR)/pxelinux.cfg
install -d $(DESTDIR)$(TFTP_DIR)/conf/
install -d $(DESTDIR)$(TCOS_CONF)/hooks
for i in `find scripts/ -type d`; do install -d $(DESTDIR)$(TCOS_CONF)/$$i; done
for i in `find scripts/ -type d`; do install -d $(DESTDIR)$(TCOS_DIR)/$$i; done
for i in `find hooks/ -type d`; do install -d $(DESTDIR)$(TCOS_DIR)/$$i; done
install -d $(DESTDIR)/var/lib/tcos/isos
install -m 644 xorgids/xorg.pciids $(DESTDIR)/$(TCOS_DIR)/inc/
# FIXME this file isn't in Xorg 7.0 anymore???
install -m 644 SecurityPolicy $(DESTDIR)/$(TCOS_CONF)
install -m 644 tcos/default.tpl $(DESTDIR)$(TCOS_CONF)/pxelinux.cfg.tpl
install -m 644 tcos/tcos/example.dual.server.conf $DESTDIR/$(TCOS_CONF)/pxelinux.d/example.dual.server.hook
install -m 644 tcos/help.msg $(DESTDIR)$(TFTP_DIR)/
install -m 644 tcos/help2.msg $(DESTDIR)$(TFTP_DIR)/
install -m 644 tcos/tcos.msg $(DESTDIR)$(TFTP_DIR)/
install -m 644 tcos/logo.lss $(DESTDIR)$(TFTP_DIR)/
install -m 644 tcos/default.menu.tpl $(DESTDIR)$(TCOS_CONF)/pxelinux.menu.cfg.tpl
install -m 644 tcos/pxetcos.jpg $(DESTDIR)$(TFTP_DIR)/
install -m 755 hooks/tcosmain $(DESTDIR)$(TCOS_CONF)/hooks/
for i in `find scripts/ -type f`; do install -m 755 $$i $(DESTDIR)$(TCOS_DIR)/$$i; done
for i in `find hooks/ -type f`; do install -m 755 $$i $(DESTDIR)$(TCOS_DIR)/$$i; done
for i in `find hooks-addons/ -maxdepth 1 -type f`; do install -m 644 $$i $(DESTDIR)$(TCOS_DIR)/$$i; done
# delete tcosmain from initramfs-tools-tcos/hooks/
rm -rf $(DESTDIR)$(TCOS_DIR)/hooks/tcosmain
chmod -x $(DESTDIR)$(TCOS_DIR)/scripts/tcos
install -m 640 conf/tcos.conf.etc $(DESTDIR)$(TCOS_CONF)/tcos.conf
sed -i 's/__TCOS_DEFAULT_KERNEL__/$(TCOS_DEFAULT_KERNEL)/g' $(DESTDIR)$(TCOS_CONF)/tcos.conf
install -m 644 conf/version.conf $(DESTDIR)$(TCOS_CONF)/version.conf
sed -i 's/__TCOS_VERSION__/$(VERSION)/g' $(DESTDIR)$(TCOS_CONF)/version.conf
sed -i 's/__TCOS_DISTRO__/$(DISTRO_VERSION)/g' $(DESTDIR)$(TCOS_CONF)/version.conf
sed -i 's/__DISTRIBUTION__/$(DISTRO)/g' $(DESTDIR)$(TCOS_CONF)/version.conf
sed -i 's/__TCOS_ARCH__/$(TCOS_ARCH)/g' $(DESTDIR)$(TCOS_CONF)/version.conf
# tcos.conf templates
install -d $(DESTDIR)$(TCOS_DIR)/templates/
install -d $(DESTDIR)$(TCOS_CONF)/templates/
install -m 644 conf/branding-pxelinux.info $(DESTDIR)$(TCOS_CONF)/templates/
# copy tcos.conf to have a default config
install -m 644 conf/base.conf $(DESTDIR)$(TCOS_DIR)/templates/base.conf
install -m 644 conf/tcos.conf.all $(DESTDIR)$(TCOS_DIR)/templates/tcos.conf.all
install -m 644 conf/tcos.conf.low $(DESTDIR)$(TCOS_DIR)/templates/tcos.conf.low
install -m 644 conf/tcos.conf.nfs $(DESTDIR)$(TCOS_DIR)/templates/tcos.conf.nfs
install -m 644 conf/tcos-modules.conf $(DESTDIR)$(TCOS_DIR)/tcos-modules.conf
install -m 644 conf/tcos-generation-functions.sh $(DESTDIR)$(TCOS_DIR)/tcos-generation-functions.sh
install -m 644 conf/tcos-run-functions.sh $(DESTDIR)$(TCOS_DIR)/tcos-run-functions.sh
install -m 644 conf/branding.info $(DESTDIR)$(TCOS_CONF)/conf.d/
install -m 644 conf/80export_pulseaudio $(DESTDIR)$(X11_CONF)/
install -m 644 conf/initramfs.conf $(DESTDIR)$(TCOS_CONF)/initramfs.conf
install -m 644 conf/template $(DESTDIR)$(TCOS_CONF)/hacking/template
install -m 644 grub/menu.lst-tcos $(DESTDIR)$(TCOS_CONF)/menu.lst-tcos
install -m 644 images/logo.xpm.gz $(DESTDIR)$(TCOS_CONF)/logo.xpm.gz
# gentcos build script
install -m 755 bin/gentcos $(DESTDIR)/usr/sbin/gentcos
install -m 755 bin/tcos-buildchroot $(DESTDIR)/usr/sbin/tcos-buildchroot
install -m 755 bin/tcos-gdm-autologin $(DESTDIR)/usr/sbin/tcos-gdm-autologin
install -m 755 bin/configurexorg $(DESTDIR)/$(TCOS_BINS)/
install -m 755 bin/seq $(DESTDIR)/$(TCOS_BINS)/
install -m 755 bin/get_filesystem $(DESTDIR)/$(TCOS_BINS)/
install -m 755 bin/cd_type $(DESTDIR)/$(TCOS_BINS)/
install -m 755 bin/installer.sh $(DESTDIR)/$(TCOS_BINS)/
install -m 755 bin/tryXorg.sh $(DESTDIR)/$(TCOS_BINS)/
install -m 644 bin/set-limits $(DESTDIR)/$(TCOS_BINS)/
install -m 755 bin/daemonize.sh $(DESTDIR)/$(TCOS_BINS)/
install -m 755 bin/get_xauth $(DESTDIR)/$(TCOS_BINS)/
install -m 755 bin/clear-logs $(DESTDIR)/$(TCOS_BINS)/
install -m 755 bin/rsync-controller $(DESTDIR)/$(TCOS_BINS)/
install -m 755 bin/down-controller $(DESTDIR)/$(TCOS_BINS)/
install -m 755 bin/get_server $(DESTDIR)/$(TCOS_BINS)/
install -m 755 bin/clean_string.sh $(DESTDIR)/$(TCOS_BINS)/
install -m 755 bin/tcos-bootchartd $(DESTDIR)/$(TCOS_BINS)/
install -m 755 bin/tcos-genbootchart $(DESTDIR)/usr/sbin/tcos-genbootchart
install -m 644 conf/xorg.conf.tpl $(DESTDIR)$(TCOS_CONF)/xorg.conf.tpl
install -d $(DESTDIR)/usr/bin
$(MAKE) -C hex2ascii install DESTDIR=$(DESTDIR)
# xmlrpc
$(MAKE) -C xmlrpc install PREFIX=$(PREFIX) DESTDIR=$(DESTDIR)
# udev
$(MAKE) -C udev install PREFIX=$(PREFIX) DESTDIR=$(DESTDIR) TCOS_BINS=$(TCOS_BINS)
# lockscreen
$(MAKE) -C lockscreen install PREFIX=$(PREFIX) DESTDIR=$(DESTDIR) TCOS_BINS=$(TCOS_BINS) PACKAGE=$(PACKAGE)
# tcos net controller
$(MAKE) -C tnc install PREFIX=$(PREFIX) DESTDIR=$(DESTDIR) TCOS_BINS=$(TCOS_BINS) PACKAGE=$(PACKAGE)
# dbus conf file
$(MAKE) -C dbus install PREFIX=$(PREFIX) DESTDIR=$(DESTDIR)
# session-cmd scripts
$(MAKE) -C session-cmd install TCOS_BINS=$(TCOS_BINS) DESTDIR=$(DESTDIR)
# tcos-standalone helper
$(MAKE) -C tcos-standalone install PREFIX=$(PREFIX) DESTDIR=$(DESTDIR)
# tmixer
$(MAKE) -C tmixer install PREFIX=$(PREFIX) DESTDIR=$(DESTDIR)
targz: clean
rm -rf ../tmp 2> /dev/null
mkdir ../tmp
cp -ra * ../tmp
rm -rf `find ../tmp/* -type d -name .svn`
mv ../tmp ../initramfs-tools-tcos-$(VERSION)
tar -czf ../initramfs-tools-tcos-$(VERSION).tar.gz ../initramfs-tools-tcos-$(VERSION)
rm -rf ../initramfs-tools-tcos-$(VERSION)
tcos: clean
rm -f ../tcos_*deb ../gentcos*deb ../initramfs-tools-tcos*deb ../tcos_*deb ../tcos-server-utils*deb
debuild -us -uc; true
sudo dpkg -i ../initramfs-tools-tcos*deb ../gentcos*deb ../tcos-server-utils*deb ../tcos_*deb
patch_version:
# PATCHING VERSION
sed -i 's/__VERSION__/$(VERSION)/g' tcos-standalone/tcos-standalone.py
sed -i 's/__VERSION__/$(VERSION)/g' xmlrpc/sh/tcos-last
patch_amd64:
#
#
# obsolete amd64 patch
#
#
patch_max: patch_version
# nothing to patch
patch_hardy: patch_version
echo 6 > debian/compat
sed -i 's/7\.0\.0/6\.0\.0/g' debian/control
sed -i 's/3\.8\.0/3\.7\.2/g' debian/control
patch_intrepid: patch_version
sed -i 's/libltdl3//g' debian/control
patch_jaunty: patch_version
sed -i 's/libltdl3//g' debian/control
patch_karmic: patch_version
sed -i 's/libltdl3//g' debian/control
patch_lenny: patch_version
# nothing to patch
patch_testing: patch_version
# nothing to patch
patch_unstable: patch_version
# nothing to patch
|