# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2003-2006 The Trustees of Princeton University
#
-# $Id: Makefile,v 1.85 2006/03/08 21:29:25 mlhuang Exp $
+# $Id: Makefile,v 1.87 2006/08/11 12:28:38 thierry Exp $
#
# Default target
# Recurse
$(ALL):
+ @echo -n "XXXXXXXXXXXXXXX -- BEG $@ " ; date
$(MAKE) package=$@
+ @echo -n "XXXXXXXXXXXXXXX -- END $@ " ; date
# Remove files generated by this package
$(foreach package,$(ALL),$(package)-clean): %-clean:
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004-2006 The Trustees of Princeton University
#
-# $Id: mkfedora,v 1.17 2006/07/17 21:25:42 mlhuang Exp $
+# $Id: mkfedora,v 1.20 2006/08/16 01:56:06 mlhuang Exp $
#
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
# Default yum repositories to try
mirrors=(
-file:///usr/share/mirrors/fedora
-file:///var/www/html/mirrors/fedora
-ftp://smoke.cs.princeton.edu/pub/mirrors/fedora
-ftp://128.112.137.30/pub/mirrors/fedora
+file:///data/fedora
http://coblitz.planet-lab.org/pub/fedora
ftp://mirror.cs.princeton.edu/pub/mirrors/fedora
+ftp://mirror.stanford.edu/pub/mirrors/fedora
+ftp://rpmfind.net/linux/fedora
)
# Release and architecture to install
# Go, baby, go
if [ ${#packages[*]} -gt 0 ] ; then
- echo "* Installing optional packages" >&3
- yum -c $vroot/etc/yum.conf --installroot=$vroot -y $excludes \
- install "${packages[@]}"
+ echo "* Installing optional packages" "${packages[@]}" >&3
+ yum -c $vroot/etc/yum.conf --installroot=$vroot -y $excludes \
+ install "${packages[@]}"
+ if ! rpm --root $vroot -q "${packages[@]}" >/dev/null ; then
+ echo "* Warning: Missing packages"
+ rpm --root $vroot -q "${packages[@]}" | grep "not installed"
+ fi
fi
if [ ${#groups[*]} -gt 0 ] ; then
- echo "* Installing optional groups" >&3
- yum -c $vroot/etc/yum.conf --installroot=$vroot -y $excludes \
- groupinstall "${groups[@]}"
+ ## call yum sequentially to get finer-grained info on dependencies
+ for grp in "${groups[@]}" ; do
+ echo "* Installing optional group $grp" >&3
+ yum -c $vroot/etc/yum.conf --installroot=$vroot -y $excludes \
+ groupinstall "$grp"
+ done
fi
# FC2 dev %preinstall checks /proc/mounts to make sure that /dev is
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2003-2006 The Trustees of Princeton University
#
-# $Id: planetlab.mk,v 1.30 2006/07/15 19:49:40 mlhuang Exp $
+# $Id: planetlab.mk,v 1.31 2006/07/28 04:53:14 mlhuang Exp $
#
#
# Default values
#
+CVSROOT := :pserver:anon@cvs.planet-lab.org:/cvs
+TAG := HEAD
+
+# Check if a tag has been checked out
ifneq ($(wildcard CVS/Root),)
+# Check if we are able to access CVS
+CVSTAG := $(shell cvs status planetlab.mk 2>/dev/null | sed -ne 's/[[:space:]]*Sticky Tag:[[:space:]]*\([^[:space:]]*\).*/\1/p')
+ifneq ($(CVSTAG),)
CVSROOT := $(shell cat CVS/Root)
-TAG := $(shell cvs status planetlab.mk | sed -ne 's/[[:space:]]*Sticky Tag:[[:space:]]*\([^[:space:]]*\).*/\1/p')
-ifeq ($(TAG),(none))
+ifeq ($(CVSTAG),(none))
TAG := HEAD
-endif
else
-CVSROOT := :pserver:anon@cvs.planet-lab.org:/cvs
-TAG := HEAD
+TAG := $(CVSTAG)
+endif
+endif
endif
#