adding files to git
[eostre.git] / Makefile
CommitLineData
1c66ee26 1DATE:=`date --iso-8601`
2
3# recipes for installing this thing onto a "real" (non-chroot) system
4setup-real-system: probe-files install-pkgs install-drupal do-mysql
5
6# test that we have /install-{drupal-toolchain,packages}.sh /pkgs /sqldefaults and /do-mysql-sh
7# if we don't have all of these files, BAD THINGS may happen
8probe-files:
9 [ -f /install-packages.sh ]
10 [ -f /pkgs ]
11 [ -f /install-drupal-toolchain.sh ]
12 [ -f /do-mysql.sh ]
13 [ -f /sqldefaults ]
14
15install-drupal:
16 chmod +x /install-drupal-toolchain.sh
17 /install-drupal-toolchain.sh
18
19install-pkgs:
20 chmod +x /install-packages.sh
21 /install-packages.sh
22
23do-mysql:
24 chmod +x /do-mysql.sh
25 /do-mysql.sh
26 # secure these two files because they contain passwords in plaintext
27 chmod og-rwx /do-mysql.sh
28 chmod 0600 /sqldefaults
29
30# recipes for building a chroot. notice that sql does not cooperate with chroots, due to some funky postinstall hooks and /proc namespaces conflicting
31build-chroot: new-chroot install-pkgs-in-chroot install-drupal-toolchain
32
33new-chroot:
34 rm -rf tristrap
35 mkdir tristrap
36 debootstrap --merged-usr etiona ./tristrap/ http://mirror.fsf.org/trisquel/
37
38install-pkgs-in-chroot:
39 cp files/pkgs tristrap
40 cp files/install-packages.sh tristrap
41 chmod +x tristrap/install-packages.sh
42 chroot tristrap /install-packages.sh
43
44install-drupal-toolchain:
45 cp files/install-drupal-toolchain.sh tristrap
46 chmod +x tristrap/install-drupal-toolchain.sh
47 chroot tristrap /install-drupal-toolchain.sh