~ubuntu-branches/ubuntu/wily/steam/wily

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2013-10-29 19:51:18 UTC
  • mfrom: (1.1.4) (0.1.4 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20131029195118-b9bxciz5hwx5z459
Tags: 1:1.0.0.39-2ubuntu1
Add an epoch to the version number as there was an unrelated steam package
in the archive with a higher version number.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
INSTALL=/usr/bin/install -c 
2
 
PREFIX=/usr
3
 
CONFIGDIR=/etc/steam
4
 
STEAMDIR=/usr/share/steam
5
 
STEAMBRAND=steam
6
 
LOGDIR=/var/log/steam
7
 
DESTDIR=/home/ancient/jd/tmp/steam-2.2.31/debian/steam
8
 
 
9
 
 
10
 
all: sources
11
 
 
12
 
force:
13
 
        @:
14
 
 
15
 
 
16
 
sources: force
17
 
        ( cd $@ && $(MAKE) $(MAKE_FLAGS))
18
 
 
19
 
install: install_steam force
20
 
        chmod ugo+rx setup
21
 
        tar -cpf __tmp.tar --exclude CVS server
22
 
        test -d $(DESTDIR)/$(CONFIGDIR) || mkdir -p -m750 $(DESTDIR)/$(CONFIGDIR)
23
 
        test -d $(DESTDIR)/$(CONFIGDIR)/modules || mkdir -p -m750 $(DESTDIR)/$(CONFIGDIR)/modules
24
 
        test -d $(DESTDIR)/$(CONFIGDIR)/services || mkdir -p -m750 $(DESTDIR)/$(CONFIGDIR)/services
25
 
        test -d $(DESTDIR)/$(LOGDIR) || mkdir -p $(DESTDIR)/$(LOGDIR)
26
 
        test -d $(DESTDIR)/$(STEAMDIR)/spm || mkdir -p $(DESTDIR)/$(STEAMDIR)/spm
27
 
        test -d $(DESTDIR)/$(STEAMDIR)/spms || mkdir -p $(DESTDIR)/$(STEAMDIR)/spms
28
 
        test -d $(DESTDIR)/$(STEAMDIR)/client || mkdir -p $(DESTDIR)/$(STEAMDIR)/client
29
 
        test -d $(DESTDIR)/$(STEAMDIR)/services || mkdir -p $(DESTDIR)/$(STEAMDIR)/services
30
 
        test -d $(DESTDIR)/$(STEAMDIR)/tools || mkdir -p $(DESTDIR)/$(STEAMDIR)/tools
31
 
        test -d $(DESTDIR)/$(STEAMDIR)/bin || mkdir -p $(DESTDIR)/$(STEAMDIR)/bin
32
 
 
33
 
        # configs:
34
 
        test -f $(DESTDIR)/$(CONFIGDIR)/steam.cfg || $(INSTALL) -m640 config/steam.cfg $(DESTDIR)/$(CONFIGDIR)/steam.cfg
35
 
        test -f $(DESTDIR)/$(CONFIGDIR)/persistence.cfg || $(INSTALL) -m640 config/persistence.cfg $(DESTDIR)/$(CONFIGDIR)/persistence.cfg
36
 
        $(INSTALL) -m640 config/mimetypes.txt $(DESTDIR)/$(CONFIGDIR)
37
 
        $(INSTALL) -m640 config/classtypes.txt $(DESTDIR)/$(CONFIGDIR)
38
 
        test -f $(DESTDIR)/$(CONFIGDIR)/cgi.txt || $(INSTALL) -m640 config/cgi.txt $(DESTDIR)/$(CONFIGDIR)
39
 
        test -f $(DESTDIR)/$(CONFIGDIR)/auth.xml || $(INSTALL) -m640 config/auth.xml $(DESTDIR)/$(CONFIGDIR)
40
 
        test -f $(DESTDIR)/$(CONFIGDIR)/icons.xml || $(INSTALL) -m640 config/icons.xml $(DESTDIR)/$(CONFIGDIR)
41
 
        # module configs: (note: a "-" in front ignores any failures of the line)
42
 
        test -f $(DESTDIR)/$(CONFIGDIR)/ldap.txt && mv $(DESTDIR)/$(CONFIGDIR)/ldap.txt $(DESTDIR)/$(CONFIGDIR)/modules/ldap.cfg || true
43
 
        test -f $(DESTDIR)/$(CONFIGDIR)/modules/ldap.cfg || $(INSTALL) -m640 config/modules/ldap.cfg $(DESTDIR)/$(CONFIGDIR)/modules
44
 
        test -f $(DESTDIR)/$(CONFIGDIR)/auth.cfg && mv $(DESTDIR)/$(CONFIGDIR)/auth.cfg $(DESTDIR)/$(CONFIGDIR)/modules/auth.cfg || true
45
 
        test -f $(DESTDIR)/$(CONFIGDIR)/modules/auth.cfg || $(INSTALL) -m640 config/modules/auth.cfg $(DESTDIR)/$(CONFIGDIR)/modules
46
 
        # service configs:
47
 
        test -f $(DESTDIR)/$(CONFIGDIR)/fulltext.cfg && mv $(DESTDIR)/$(CONFIGDIR)/fulltext.cfg $(DESTDIR)/$(CONFIGDIR)/services/fulltext.cfg || true
48
 
        test -f $(DESTDIR)/$(CONFIGDIR)/services/fulltext.cfg || $(INSTALL) -m640 config/services/fulltext.cfg $(DESTDIR)/$(CONFIGDIR)/services
49
 
 
50
 
        $(INSTALL) -m644 spm/connection.pike $(DESTDIR)/$(STEAMDIR)/spm
51
 
        $(INSTALL) -m644 spm/client_base.pike $(DESTDIR)/$(STEAMDIR)/spm
52
 
        $(INSTALL) -m755 spm/spm $(DESTDIR)/$(STEAMDIR)/bin
53
 
        $(INSTALL) -m755 jail $(DESTDIR)/$(STEAMDIR)/bin
54
 
 
55
 
        $(INSTALL) -m644 client/client_base.pike $(DESTDIR)/$(STEAMDIR)/client/.
56
 
        $(INSTALL) -m644 client/Service.pmod $(DESTDIR)/$(STEAMDIR)/client/Service.pmod
57
 
        $(INSTALL) -m644 services/search.pike $(DESTDIR)/$(STEAMDIR)/services/.
58
 
        $(INSTALL) -m644 services/fulltext.pike $(DESTDIR)/$(STEAMDIR)/services/.
59
 
        $(INSTALL) -m644 services/graphic.pike $(DESTDIR)/$(STEAMDIR)/services/.
60
 
        $(INSTALL) -m644 services/tex.pike $(DESTDIR)/$(STEAMDIR)/services/.
61
 
        $(INSTALL) -m644 services/spm.pike $(DESTDIR)/$(STEAMDIR)/services/.
62
 
 
63
 
        $(INSTALL) -m644 spms/icons_doctypes-1_0.spm $(DESTDIR)/$(STEAMDIR)/spms/.
64
 
        $(INSTALL) -m644 spms/server_base-1_0.spm $(DESTDIR)/$(STEAMDIR)/spms/.
65
 
        $(INSTALL) -m644 spms/spm_support-1_2.spm $(DESTDIR)/$(STEAMDIR)/spms/.
66
 
 
67
 
        $(INSTALL) -m755 tools/create_cert.pike $(DESTDIR)/$(STEAMDIR)/tools 
68
 
        $(INSTALL) -m755 tools/import_users $(DESTDIR)/$(STEAMDIR)/tools
69
 
        $(INSTALL) -m755 tools/export_users $(DESTDIR)/$(STEAMDIR)/tools
70
 
        $(INSTALL) -m755 tools/debug.pike $(DESTDIR)/$(STEAMDIR)/tools
71
 
        $(INSTALL) -m644 tools/applauncher.pike $(DESTDIR)/$(STEAMDIR)/tools
72
 
 
73
 
        $(INSTALL) -m755 start $(DESTDIR)/$(STEAMDIR)
74
 
        $(INSTALL) -m755 stop $(DESTDIR)/$(STEAMDIR)
75
 
        $(INSTALL) -m755 setup $(DESTDIR)/$(STEAMDIR)/bin
76
 
        $(INSTALL) -m644 loader.pike $(DESTDIR)/$(STEAMDIR)
77
 
        $(INSTALL) -m644 config.pike $(DESTDIR)/$(STEAMDIR)
78
 
        $(INSTALL) -m755 version $(DESTDIR)/$(STEAMDIR)
79
 
        mypwd=`pwd` && cd $(DESTDIR)/$(STEAMDIR) && tar -xpf $$mypwd/__tmp.tar 
80
 
        -cd $(DESTDIR)/$(STEAMDIR); find . -type d -name CVS -exec rm -fr {} \;
81
 
        ln -f -s /usr/bin/pike7.6 $(DESTDIR)/$(STEAMDIR)/steam || true
82
 
 
83
 
        #remove old stuff
84
 
        test -e $(DESTDIR)/$(STEAMDIR)/server/libraries/xslt.pmod.so && rm $(DESTDIR)/$(STEAMDIR)/server/libraries/xslt.pmod.so ||true
85
 
        test -e $(DESTDIR)/$(STEAMDIR)/server/classes/Bug.pike && rm $(DESTDIR)/$(STEAMDIR)/server/classes/Bug.pike || true
86
 
        test -e $(DESTDIR)/$(STEAMDIR)/server/factories/BugFactory.pike && rm $(DESTDIR)/$(STEAMDIR)/server/factories/BugFactory.pike || true
87
 
        test -e $(DESTDIR)/$(STEAMDIR)/server/classes/DocWiki.pike && rm $(DESTDIR)/$(STEAMDIR)/server/classes/DocWiki.pike || true
88
 
        test -e $(DESTDIR)/$(CONFIGDIR)/config.tmp && rm $(DESTDIR)/$(CONFIGDIR)/config.tmp ||true
89
 
        test -e $(DESTDIR)/$(CONFIGDIR)/config.template && rm $(DESTDIR)/$(CONFIGDIR)/config.template ||true
90
 
        test -e $(DESTDIR)/$(CONFIGDIR)/mount.txt && rm $(DESTDIR)/$(CONFIGDIR)/mount.txt ||true
91
 
        test -e $(DESTDIR)/$(CONFIGDIR)/mount.tmp && rm $(DESTDIR)/$(CONFIGDIR)/mount.tmp ||true
92
 
        rm -f $(DESTDIR)/$(LOGDIR)/*_?.log  # remove old log files
93
 
 
94
 
        test -d $(DESTDIR)/$(STEAMDIR)/server/dev || mkdir -p $(DESTDIR)/$(STEAMDIR)/server/dev
95
 
 
96
 
        rm __tmp.tar
97
 
 
98
 
install-cert:
99
 
        /usr/bin/pike7.6 tools/create_cert.pike --file=$(DESTDIR)/$(CONFIGDIR)/steam.cer
100
 
 
101
 
check-install-cert:
102
 
        test -f $(DESTDIR)/$(CONFIGDIR)/steam.cer || /usr/bin/pike7.6 tools/create_cert.pike --file=$(DESTDIR)/$(CONFIGDIR)/steam.cer
103
 
 
104
 
install-php:
105
 
        $(DESTDIR)/$(STEAMDIR)/steam tools/ldd.pike /usr/local/bin/php $(DESTDIR)/$(STEAMDIR)/server/cgi
106
 
 
107
 
null:
108
 
        mknod $(DESTDIR)/$(STEAMDIR)/server/dev/null c 1 3 || true
109
 
        chown root:root $(DESTDIR)/$(STEAMDIR)/server/dev/null || true
110
 
        chmod 666 $(DESTDIR)/$(STEAMDIR)/server/dev/null || true
111
 
 
112
 
etc: 
113
 
        tar -cf __etc.tar /etc/resolv.conf
114
 
        echo "Copying System files for Sandbox"
115
 
        mypwd=`pwd`; cd $(DESTDIR)/$(STEAMDIR)/server && tar -xf $$mypwd/__etc.tar 
116
 
        rm __etc.tar
117
 
 
118
 
devices: 
119
 
        mkdir -p $(DESTDIR)/$(STEAMDIR)/server/dev || true
120
 
        cp -a /dev/random $(DESTDIR)/$(STEAMDIR)/server/dev/random ||true
121
 
        cp -a /dev/urandom $(DESTDIR)/$(STEAMDIR)/server/dev/urandom ||true
122
 
        mkdir -p $(DESTDIR)/$(STEAMDIR)/var/run/mysqld || true
123
 
        cp -a /var/run/mysqld/mysqld.sock $(DESTDIR)/$(STEAMDIR)/var/run/mysqld/mysqld.sock || true
124
 
 
125
 
linstall:
126
 
        $(INSTALL) sources/libxslt/libxslt.so server/libraries/xslt.so
127
 
        $(INSTALL) sources/_XML/xml.so server/libraries/xml.so
128
 
        $(INSTALL) sources/_XML/AbstractCallbacks.pike server/libraries/AbstractCallbacks.pike
129
 
        rm steam || true
130
 
        ln -s /usr/bin/pike7.6 steam || true
131
 
        cp steam.cer config/steam.cer || true
132
 
 
133
 
install_steam: force
134
 
        for a in sources; do ( cd $$a && $(MAKE) $(MAKE_FLAGS) install); done
135
 
 
136
 
clean: force
137
 
        for a in sources; do ( cd $$a && $(MAKE) $(MAKE_FLAGS) clean); done
138
 
 
139
 
        -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
140
 
        -rm -rf $(STEAMBRAND)-client