~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to platform/Makefile

  • Committer: mattgiuca
  • Date: 2008-01-11 00:49:06 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:172
util: Added buildurl function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
BASEDIR=/home/informatics
 
2
 
 
3
CONFIGS =       config/lite.conf \
 
4
                        config/svn-apache.conf
 
5
 
 
6
SCRIPTS =       scripts/mkJail.sh \
 
7
                        scripts/safe-python
 
8
 
 
9
#JAILRULE = redhat_el5_x86_64
 
10
#JAILRULE = ubuntu_gibbon_i686
 
11
JAILRULE = centos_4_i686
 
12
 
 
13
.PHONY : install
 
14
install : $(CONFIGS) $(SCRIPTS) $(JAILRULE)
 
15
        cp $(CONFIGS) $(BASEDIR)/config
 
16
        cp $(SCRIPTS) $(BASEDIR)/bin
 
17
 
 
18
.PHONY : $(BASEDIR)
 
19
$(BASEDIR) :
 
20
        -mkdir $(BASEDIR)
 
21
        -mkdir $(BASEDIR)/bin
 
22
        -mkdir $(BASEDIR)/config
 
23
        -mkdir $(BASEDIR)/config/jail
 
24
        -mkdir $(BASEDIR)/jails
 
25
        -mkdir $(BASEDIR)/svn
 
26
        -mkdir $(BASEDIR)/www
 
27
        -mkdir $(BASEDIR)/www/home
 
28
        -mkdir $(BASEDIR)/www/public
 
29
 
 
30
.PHONY : redhat_el5_x86_64
 
31
redhat_el5_x86_64 : $(BASEDIR)
 
32
        -mkdir $(BASEDIR)/config/jail/lib64
 
33
        cp /lib64/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2
 
34
        cp /lib64/libc.so.6 $(BASEDIR)/config/jail/lib64/libc.so.6
 
35
        cp /lib64/libdl.so.2 $(BASEDIR)/config/jail/lib64/libdl.so.2
 
36
        cp /lib64/libm.so.6 $(BASEDIR)/config/jail/lib64/libm.so.6
 
37
        cp /lib64/libpthread.so.0 $(BASEDIR)/config/jail/lib64/libpthread.so.0
 
38
        cp /lib64/libutil.so.1 $(BASEDIR)/config/jail/lib64/libutil.so.1
 
39
        -mkdir $(BASEDIR)/config/jail/usr
 
40
        -mkdir $(BASEDIR)/config/jail/usr/bin
 
41
        cp /usr/bin/python2.4 $(BASEDIR)/config/jail/usr/bin/python2.4
 
42
        ln -s $(BASEDIR)/config/jail/usr/bin/python2.4 \
 
43
                $(BASEDIR)/config/jail/usr/bin/python
 
44
        -mkdir $(BASEDIR)/config/jail/usr/lib64
 
45
        cp /usr/lib64/libpython2.4.so.1.0 \
 
46
                $(BASEDIR)/config/jail/usr/lib64/libpython2.4.so.1.0
 
47
        -mkdir $(BASEDIR)/config/jail/usr/lib
 
48
        -mkdir $(BASEDIR)/config/jail/usr/lib/python2.4
 
49
        cp -r /usr/lib/python2.4 $(BASEDIR)/config/jail/usr/lib/
 
50
 
 
51
.PHONY : centos_4_i686
 
52
centos_4_i686 : $(BASEDIR)
 
53
        -mkdir $(BASEDIR)/config/jail/lib
 
54
        -mkdir $(BASEDIR)/config/jail/lib/tls
 
55
        cp /lib/ld-linux.so.2 $(BASEDIR)/config/jail/lib
 
56
        cp /lib/libcom_err.so.2 $(BASEDIR)/config/jail/lib/
 
57
        cp /lib/libcrypto.so.4 $(BASEDIR)/config/jail/lib/
 
58
        cp /lib/libdl.so.2 $(BASEDIR)/config/jail/lib
 
59
        cp /lib/libgcc_s.so.1 $(BASEDIR)/config/jail/lib/
 
60
        cp /lib/libresolv.so.2 $(BASEDIR)/config/jail/lib/
 
61
        cp /lib/libssl.so.4 $(BASEDIR)/config/jail/lib/
 
62
        cp /lib/libutil.so.1 $(BASEDIR)/config/jail/lib
 
63
        cp /lib/tls/libc.so.6 $(BASEDIR)/config/jail/lib/tls
 
64
        cp /lib/tls/libm.so.6 $(BASEDIR)/config/jail/lib/tls
 
65
        cp /lib/tls/libpthread.so.0 $(BASEDIR)/config/jail/lib/tls
 
66
        -mkdir $(BASEDIR)/config/jail/usr
 
67
        -mkdir $(BASEDIR)/config/jail/usr/bin
 
68
        cp /usr/local/bin/python2.5 $(BASEDIR)/config/jail/usr/bin/python2.5
 
69
        ln -s $(BASEDIR)/config/jail/usr/bin/python2.5 \
 
70
                $(BASEDIR)/config/jail/usr/bin/python
 
71
        -mkdir $(BASEDIR)/config/jail/usr/lib
 
72
        cp /usr/lib/libfreetype.so.6 $(BASEDIR)/config/jail/usr/lib
 
73
        cp /usr/lib/libgssapi_krb5.so.2 $(BASEDIR)/config/jail/usr/lib/
 
74
        cp /usr/lib/libk5crypto.so.3 $(BASEDIR)/config/jail/usr/lib/
 
75
        cp /usr/lib/libkrb5.so.3 $(BASEDIR)/config/jail/usr/lib/
 
76
        cp /usr/lib/libpng12.so.0 $(BASEDIR)/config/jail/usr/lib
 
77
        cp /usr/lib/libstdc++.so.6 $(BASEDIR)/config/jail/usr/lib
 
78
        cp /usr/lib/libz.so.1 $(BASEDIR)/config/jail/usr/lib/
 
79
        -mkdir $(BASEDIR)/config/jail/usr/lib/python2.5
 
80
        cp -r /usr/local/lib/python2.5 $(BASEDIR)/config/jail/usr/lib/
 
81
 
 
82
.PHONY : ubuntu_gibbon_i686
 
83
ubuntu_gibbon_i686 : $(BASEDIR)
 
84
        -mkdir $(BASEDIR)/config/jail/lib
 
85
        cp /lib/ld-linux.so.2 \
 
86
                $(BASEDIR)/config/jail/lib/ld-linux.so.2 
 
87
        -mkdir $(BASEDIR)/config/jail/lib/tls
 
88
        -mkdir $(BASEDIR)/config/jail/lib/tls/i686
 
89
        -mkdir $(BASEDIR)/config/jail/lib/tls/i686/cmov
 
90
        cp /lib/tls/i686/cmov/libc.so.6 \
 
91
                $(BASEDIR)/config/jail/lib/tls/i686/cmov/libc.so.6
 
92
        cp /lib/tls/i686/cmov/libdl.so.2 \
 
93
                $(BASEDIR)/config/jail/lib/tls/i686/cmov/libdl.so.2
 
94
        cp /lib/tls/i686/cmov/libm.so.6 \
 
95
                $(BASEDIR)/config/jail/lib/tls/i686/cmov/libm.so.6
 
96
        cp /lib/tls/i686/cmov/libpthread.so.0 \
 
97
                $(BASEDIR)/config/jail/lib/tls/i686/cmov/libpthread.so.0
 
98
        cp /lib/tls/i686/cmov/libutil.so.1 \
 
99
                $(BASEDIR)/config/jail/lib/tls/i686/cmov/libutil.so.1
 
100
        -mkdir $(BASEDIR)/config/jail/usr
 
101
        -mkdir $(BASEDIR)/config/jail/usr/bin
 
102
        cp /usr/bin/python2.5 \
 
103
                $(BASEDIR)/config/jail/usr/bin/python2.5
 
104
        ln -s $(BASEDIR)/config/jail/usr/bin/python2.5 \
 
105
                $(BASEDIR)/config/jail/usr/bin/python
 
106
        -mkdir $(BASEDIR)/config/jail/usr/lib
 
107
        -mkdir $(BASEDIR)/config/jail/usr/lib/python2.5
 
108
        cp -r /usr/lib/python2.5 $(BASEDIR)/config/jail/usr/lib/