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
|
INSTALL=/usr/bin/install -c
PREFIX=/usr
CONFIGDIR=/etc/steam
STEAMDIR=/usr/share/steam
STEAMBRAND=steam
LOGDIR=/var/log/steam
DESTDIR=/home/ancient/jd/tmp/steam-2.2.31/debian/steam
all: sources
force:
@:
sources: force
( cd $@ && $(MAKE) $(MAKE_FLAGS))
install: install_steam force
chmod ugo+rx setup
tar -cpf __tmp.tar --exclude CVS server
test -d $(DESTDIR)/$(CONFIGDIR) || mkdir -p -m750 $(DESTDIR)/$(CONFIGDIR)
test -d $(DESTDIR)/$(CONFIGDIR)/modules || mkdir -p -m750 $(DESTDIR)/$(CONFIGDIR)/modules
test -d $(DESTDIR)/$(CONFIGDIR)/services || mkdir -p -m750 $(DESTDIR)/$(CONFIGDIR)/services
test -d $(DESTDIR)/$(LOGDIR) || mkdir -p $(DESTDIR)/$(LOGDIR)
test -d $(DESTDIR)/$(STEAMDIR)/spm || mkdir -p $(DESTDIR)/$(STEAMDIR)/spm
test -d $(DESTDIR)/$(STEAMDIR)/spms || mkdir -p $(DESTDIR)/$(STEAMDIR)/spms
test -d $(DESTDIR)/$(STEAMDIR)/client || mkdir -p $(DESTDIR)/$(STEAMDIR)/client
test -d $(DESTDIR)/$(STEAMDIR)/services || mkdir -p $(DESTDIR)/$(STEAMDIR)/services
test -d $(DESTDIR)/$(STEAMDIR)/tools || mkdir -p $(DESTDIR)/$(STEAMDIR)/tools
test -d $(DESTDIR)/$(STEAMDIR)/bin || mkdir -p $(DESTDIR)/$(STEAMDIR)/bin
# configs:
test -f $(DESTDIR)/$(CONFIGDIR)/steam.cfg || $(INSTALL) -m640 config/steam.cfg $(DESTDIR)/$(CONFIGDIR)/steam.cfg
test -f $(DESTDIR)/$(CONFIGDIR)/persistence.cfg || $(INSTALL) -m640 config/persistence.cfg $(DESTDIR)/$(CONFIGDIR)/persistence.cfg
$(INSTALL) -m640 config/mimetypes.txt $(DESTDIR)/$(CONFIGDIR)
$(INSTALL) -m640 config/classtypes.txt $(DESTDIR)/$(CONFIGDIR)
test -f $(DESTDIR)/$(CONFIGDIR)/cgi.txt || $(INSTALL) -m640 config/cgi.txt $(DESTDIR)/$(CONFIGDIR)
test -f $(DESTDIR)/$(CONFIGDIR)/auth.xml || $(INSTALL) -m640 config/auth.xml $(DESTDIR)/$(CONFIGDIR)
test -f $(DESTDIR)/$(CONFIGDIR)/icons.xml || $(INSTALL) -m640 config/icons.xml $(DESTDIR)/$(CONFIGDIR)
# module configs: (note: a "-" in front ignores any failures of the line)
test -f $(DESTDIR)/$(CONFIGDIR)/ldap.txt && mv $(DESTDIR)/$(CONFIGDIR)/ldap.txt $(DESTDIR)/$(CONFIGDIR)/modules/ldap.cfg || true
test -f $(DESTDIR)/$(CONFIGDIR)/modules/ldap.cfg || $(INSTALL) -m640 config/modules/ldap.cfg $(DESTDIR)/$(CONFIGDIR)/modules
test -f $(DESTDIR)/$(CONFIGDIR)/auth.cfg && mv $(DESTDIR)/$(CONFIGDIR)/auth.cfg $(DESTDIR)/$(CONFIGDIR)/modules/auth.cfg || true
test -f $(DESTDIR)/$(CONFIGDIR)/modules/auth.cfg || $(INSTALL) -m640 config/modules/auth.cfg $(DESTDIR)/$(CONFIGDIR)/modules
# service configs:
test -f $(DESTDIR)/$(CONFIGDIR)/fulltext.cfg && mv $(DESTDIR)/$(CONFIGDIR)/fulltext.cfg $(DESTDIR)/$(CONFIGDIR)/services/fulltext.cfg || true
test -f $(DESTDIR)/$(CONFIGDIR)/services/fulltext.cfg || $(INSTALL) -m640 config/services/fulltext.cfg $(DESTDIR)/$(CONFIGDIR)/services
$(INSTALL) -m644 spm/connection.pike $(DESTDIR)/$(STEAMDIR)/spm
$(INSTALL) -m644 spm/client_base.pike $(DESTDIR)/$(STEAMDIR)/spm
$(INSTALL) -m755 spm/spm $(DESTDIR)/$(STEAMDIR)/bin
$(INSTALL) -m755 jail $(DESTDIR)/$(STEAMDIR)/bin
$(INSTALL) -m644 client/client_base.pike $(DESTDIR)/$(STEAMDIR)/client/.
$(INSTALL) -m644 client/Service.pmod $(DESTDIR)/$(STEAMDIR)/client/Service.pmod
$(INSTALL) -m644 services/search.pike $(DESTDIR)/$(STEAMDIR)/services/.
$(INSTALL) -m644 services/fulltext.pike $(DESTDIR)/$(STEAMDIR)/services/.
$(INSTALL) -m644 services/graphic.pike $(DESTDIR)/$(STEAMDIR)/services/.
$(INSTALL) -m644 services/tex.pike $(DESTDIR)/$(STEAMDIR)/services/.
$(INSTALL) -m644 services/spm.pike $(DESTDIR)/$(STEAMDIR)/services/.
$(INSTALL) -m644 spms/icons_doctypes-1_0.spm $(DESTDIR)/$(STEAMDIR)/spms/.
$(INSTALL) -m644 spms/server_base-1_0.spm $(DESTDIR)/$(STEAMDIR)/spms/.
$(INSTALL) -m644 spms/spm_support-1_2.spm $(DESTDIR)/$(STEAMDIR)/spms/.
$(INSTALL) -m755 tools/create_cert.pike $(DESTDIR)/$(STEAMDIR)/tools
$(INSTALL) -m755 tools/import_users $(DESTDIR)/$(STEAMDIR)/tools
$(INSTALL) -m755 tools/export_users $(DESTDIR)/$(STEAMDIR)/tools
$(INSTALL) -m755 tools/debug.pike $(DESTDIR)/$(STEAMDIR)/tools
$(INSTALL) -m644 tools/applauncher.pike $(DESTDIR)/$(STEAMDIR)/tools
$(INSTALL) -m755 start $(DESTDIR)/$(STEAMDIR)
$(INSTALL) -m755 stop $(DESTDIR)/$(STEAMDIR)
$(INSTALL) -m755 setup $(DESTDIR)/$(STEAMDIR)/bin
$(INSTALL) -m644 loader.pike $(DESTDIR)/$(STEAMDIR)
$(INSTALL) -m644 config.pike $(DESTDIR)/$(STEAMDIR)
$(INSTALL) -m755 version $(DESTDIR)/$(STEAMDIR)
mypwd=`pwd` && cd $(DESTDIR)/$(STEAMDIR) && tar -xpf $$mypwd/__tmp.tar
-cd $(DESTDIR)/$(STEAMDIR); find . -type d -name CVS -exec rm -fr {} \;
ln -f -s /usr/bin/pike7.6 $(DESTDIR)/$(STEAMDIR)/steam || true
#remove old stuff
test -e $(DESTDIR)/$(STEAMDIR)/server/libraries/xslt.pmod.so && rm $(DESTDIR)/$(STEAMDIR)/server/libraries/xslt.pmod.so ||true
test -e $(DESTDIR)/$(STEAMDIR)/server/classes/Bug.pike && rm $(DESTDIR)/$(STEAMDIR)/server/classes/Bug.pike || true
test -e $(DESTDIR)/$(STEAMDIR)/server/factories/BugFactory.pike && rm $(DESTDIR)/$(STEAMDIR)/server/factories/BugFactory.pike || true
test -e $(DESTDIR)/$(STEAMDIR)/server/classes/DocWiki.pike && rm $(DESTDIR)/$(STEAMDIR)/server/classes/DocWiki.pike || true
test -e $(DESTDIR)/$(CONFIGDIR)/config.tmp && rm $(DESTDIR)/$(CONFIGDIR)/config.tmp ||true
test -e $(DESTDIR)/$(CONFIGDIR)/config.template && rm $(DESTDIR)/$(CONFIGDIR)/config.template ||true
test -e $(DESTDIR)/$(CONFIGDIR)/mount.txt && rm $(DESTDIR)/$(CONFIGDIR)/mount.txt ||true
test -e $(DESTDIR)/$(CONFIGDIR)/mount.tmp && rm $(DESTDIR)/$(CONFIGDIR)/mount.tmp ||true
rm -f $(DESTDIR)/$(LOGDIR)/*_?.log # remove old log files
test -d $(DESTDIR)/$(STEAMDIR)/server/dev || mkdir -p $(DESTDIR)/$(STEAMDIR)/server/dev
rm __tmp.tar
install-cert:
/usr/bin/pike7.6 tools/create_cert.pike --file=$(DESTDIR)/$(CONFIGDIR)/steam.cer
check-install-cert:
test -f $(DESTDIR)/$(CONFIGDIR)/steam.cer || /usr/bin/pike7.6 tools/create_cert.pike --file=$(DESTDIR)/$(CONFIGDIR)/steam.cer
install-php:
$(DESTDIR)/$(STEAMDIR)/steam tools/ldd.pike /usr/local/bin/php $(DESTDIR)/$(STEAMDIR)/server/cgi
null:
mknod $(DESTDIR)/$(STEAMDIR)/server/dev/null c 1 3 || true
chown root:root $(DESTDIR)/$(STEAMDIR)/server/dev/null || true
chmod 666 $(DESTDIR)/$(STEAMDIR)/server/dev/null || true
etc:
tar -cf __etc.tar /etc/resolv.conf
echo "Copying System files for Sandbox"
mypwd=`pwd`; cd $(DESTDIR)/$(STEAMDIR)/server && tar -xf $$mypwd/__etc.tar
rm __etc.tar
devices:
mkdir -p $(DESTDIR)/$(STEAMDIR)/server/dev || true
cp -a /dev/random $(DESTDIR)/$(STEAMDIR)/server/dev/random ||true
cp -a /dev/urandom $(DESTDIR)/$(STEAMDIR)/server/dev/urandom ||true
mkdir -p $(DESTDIR)/$(STEAMDIR)/var/run/mysqld || true
cp -a /var/run/mysqld/mysqld.sock $(DESTDIR)/$(STEAMDIR)/var/run/mysqld/mysqld.sock || true
linstall:
$(INSTALL) sources/libxslt/libxslt.so server/libraries/xslt.so
$(INSTALL) sources/_XML/xml.so server/libraries/xml.so
$(INSTALL) sources/_XML/AbstractCallbacks.pike server/libraries/AbstractCallbacks.pike
rm steam || true
ln -s /usr/bin/pike7.6 steam || true
cp steam.cer config/steam.cer || true
install_steam: force
for a in sources; do ( cd $$a && $(MAKE) $(MAKE_FLAGS) install); done
clean: force
for a in sources; do ( cd $$a && $(MAKE) $(MAKE_FLAGS) clean); done
-rm -rf server/libraries/AbstractCallbacks.pike sources/aclocal.m4 sources/autom4te.cache sources/configure sources/libxslt/autom4te.cache sources/libxslt/configure sources/libxslt/Makefile sources/Makefile sources/wiki/autom4te.cache sources/wiki/configure sources/wiki/Makefile sources/_XML/autom4te.cache sources/_XML/configure sources/_XML/Makefile spm/aclocal.m4 spm/autom4te.cache spm/.in spm/spm server/libraries/*.so sources/wiki/wiki.so server/include/configure.h
-rm -rf $(STEAMBRAND)-client
|