-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.mk
31 lines (25 loc) · 1.41 KB
/
install.mk
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
# chroot installation of the cernvm-meta rpm in cvmfs
include config.mk
DEST_REPOSITORY = cernvm-devel.cern.ch
DEST_PATH = /cvm3
DEST_ROOT = /cvmfs/$(DEST_REPOSITORY)/$(DEST_PATH)
YUM_OPTIONS = -y --nogpgcheck --disablerepo=* --enablerepo=cernvm-meta --enablerepo=cernvm-os --enablerepo=cernvm-extras --installroot $(DEST_ROOT)
DEVICES = stdout stderr random urandom
all: rolling_tag
/cvmfs/$(DEST_REPOSITORY)$(DEST_PATH)/.installed_cernvm-system-$(VERSION): meta-rpms/verify-metarpm.sh
echo "chroot install of cernvm-system-$(VERSION)"
sudo cvmfs_server transaction $(DEST_REPOSITORY)
for d in $(DEVICES); do sudo rm -f $(DEST_ROOT)/dev/$$d && sudo ln -s /dev/$$d $(DEST_ROOT)/dev/$$d; done
if rpm --root $(DEST_ROOT) -q cernvm-system >/dev/null 2>&1; then \
sudo yum $(YUM_OPTIONS) clean all; \
sudo yum $(YUM_OPTIONS) update cernvm-system-$(VERSION); \
else \
sudo yum $(YUM_OPTIONS) install cernvm-system-$(VERSION); \
fi
for d in $(DEVICES); do sudo rm -f $(DEST_ROOT)/dev/$$d; done
meta-rpms/verify-metarpm.sh $(DEST_ROOT) $(VERSION)
sudo update-packs/mk_update_pack.sh $(DEST_ROOT) /cvmfs/$(DEST_REPOSITORY)/update-packs/$(DEST_PATH)
sudo cvmfs_server publish -r cernvm-system-$(VERSION) -a cernvm-system-$(VERSION) $(DEST_REPOSITORY)
cvmfs_server check $(DEST_REPOSITORY)
rolling_tag: /cvmfs/$(DEST_REPOSITORY)$(DEST_PATH)/.installed_cernvm-system-$(VERSION)
./set_rolling_tag.sh $(DEST_REPOSITORY) $(VERSION)