1
BASEDIR=/home/informatics
3
CONFIGS = config/lite.conf \
6
SCRIPTS = scripts/mkJail.sh \
9
#JAILRULE = redhat_el5_x86_64
10
JAILRULE = ubuntu_gibbon_i686
13
install : $(CONFIGS) $(SCRIPTS) $(JAILRULE)
14
cp $(CONFIGS) $(BASEDIR)/config
15
cp $(SCRIPTS) $(BASEDIR)/bin
21
-mkdir $(BASEDIR)/config
22
-mkdir $(BASEDIR)/config/jail
23
-mkdir $(BASEDIR)/jails
26
-mkdir $(BASEDIR)/www/home
27
-mkdir $(BASEDIR)/www/public
29
.PHONY : redhat_el5_x86_64
30
redhat_el5_x86_64 : $(BASEDIR)
31
-mkdir $(BASEDIR)/config/jail/lib64
32
cp /lib64/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2
33
cp /lib64/libc.so.6 $(BASEDIR)/config/jail/lib64/libc.so.6
34
cp /lib64/libdl.so.2 $(BASEDIR)/config/jail/lib64/libdl.so.2
35
cp /lib64/libm.so.6 $(BASEDIR)/config/jail/lib64/libm.so.6
36
cp /lib64/libpthread.so.0 $(BASEDIR)/config/jail/lib64/libpthread.so.0
37
cp /lib64/libutil.so.1 $(BASEDIR)/config/jail/lib64/libutil.so.1
38
-mkdir $(BASEDIR)/config/jail/usr
39
-mkdir $(BASEDIR)/config/jail/usr/bin
40
cp /usr/bin/python2.4 $(BASEDIR)/config/jail/usr/bin/python2.4
41
ln -s $(BASEDIR)/config/jail/usr/bin/python2.4 \
42
$(BASEDIR)/config/jail/usr/bin/python
43
-mkdir $(BASEDIR)/config/jail/usr/lib64
44
cp /usr/lib64/libpython2.4.so.1.0 \
45
$(BASEDIR)/config/jail/usr/lib64/libpython2.4.so.1.0
46
-mkdir $(BASEDIR)/config/jail/usr/lib
47
-mkdir $(BASEDIR)/config/jail/usr/lib/python2.4
48
cp -r /usr/lib/python2.4 $(BASEDIR)/config/jail/usr/lib/
50
.PHONY : ubuntu_gibbon_i686
51
ubuntu_gibbon_i686 : $(BASEDIR)
52
-mkdir $(BASEDIR)/config/jail/lib
53
cp /lib/ld-linux.so.2 \
54
$(BASEDIR)/config/jail/lib/ld-linux.so.2
55
-mkdir $(BASEDIR)/config/jail/lib/tls
56
-mkdir $(BASEDIR)/config/jail/lib/tls/i686
57
-mkdir $(BASEDIR)/config/jail/lib/tls/i686/cmov
58
cp /lib/tls/i686/cmov/libc.so.6 \
59
$(BASEDIR)/config/jail/lib/tls/i686/cmov/libc.so.6
60
cp /lib/tls/i686/cmov/libdl.so.2 \
61
$(BASEDIR)/config/jail/lib/tls/i686/cmov/libdl.so.2
62
cp /lib/tls/i686/cmov/libm.so.6 \
63
$(BASEDIR)/config/jail/lib/tls/i686/cmov/libm.so.6
64
cp /lib/tls/i686/cmov/libpthread.so.0 \
65
$(BASEDIR)/config/jail/lib/tls/i686/cmov/libpthread.so.0
66
cp /lib/tls/i686/cmov/libutil.so.1 \
67
$(BASEDIR)/config/jail/lib/tls/i686/cmov/libutil.so.1
68
-mkdir $(BASEDIR)/config/jail/usr
69
-mkdir $(BASEDIR)/config/jail/usr/bin
70
cp /usr/bin/python2.5 \
71
$(BASEDIR)/config/jail/usr/bin/python2.5
72
ln -s $(BASEDIR)/config/jail/usr/bin/python2.5 \
73
$(BASEDIR)/config/jail/usr/bin/python
74
-mkdir $(BASEDIR)/config/jail/usr/lib
75
-mkdir $(BASEDIR)/config/jail/usr/lib/python2.5
76
cp -r /usr/lib/python2.5 $(BASEDIR)/config/jail/usr/lib/