2 # PlanetLab Central components list
4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2003-2005 The Trustees of Princeton University
7 # $Id: plc.mk,v 1.10 2006/03/10 21:44:07 mlhuang Exp $
13 # CVSROOT or package-CVSROOT: CVSROOT to use
14 # TAG or package-TAG: CVS tag to use
15 # package-MODULE: CVS module name to use
16 # package-SPEC: RPM spec file template
20 # package-RPMFLAGS: Miscellaneous RPM flags
21 # package-RPMBUILD: If not rpmbuild
22 # package-CVS_RSH: If not ssh
24 # Add to ALL if you want the package built as part of the default set.
31 CVSROOT := :pserver:anon@cvs.planet-lab.org:/cvs
38 plc-CVSROOT := :ext:cvs.planet-lab.org:/cvs
40 plc-SPEC := plc/plc.spec
44 # Proper: Privileged Operations Service
47 proper-MODULE := proper
48 proper-SPEC := proper/proper.spec
54 util-python-MODULE := util-python
55 util-python-SPEC := util-python/util-python.spec
58 # proper and util-vserver both use scripts in util-python for building
60 util-vserver: util-python
67 ulogd-SPEC := ulogd/ulogd.spec
76 netflow-MODULE := netflow
77 netflow-SPEC := netflow/netflow.spec
85 rt3-SPEC := rt3/etc/rt.spec
92 spamassassin-MODULE := spamassassin
93 spamassassin-SPEC := spamassassin/spamassassin.spec
100 twiki-MODULE := twiki
101 twiki-SPEC := twiki/TWiki.spec
108 plcapilib-MODULE := plcmdline
109 plcapilib-SPEC := plcmdline/plcapilib.spec
116 # Put packages in boot repository
117 ARCHIVE := /var/www/html/archive
119 # Put nightly alpha builds in a subdirectory
121 ARCHIVE := $(ARCHIVE)/plc-alpha
122 REPOS := /var/www/html/plc-alpha
127 @echo make install is only meant to be called from ./build.sh
131 cd $(ARCHIVE) && ls -t | sed -n $(BUILDS)~1p | xargs rm -rf
133 install -D -m 644 groups/stock_fc2_groups.xml RPMS/yumgroups.xml
134 # Populate repository
135 mkdir -p $(ARCHIVE)/$(BASE)
136 rsync --delete --links --perms --times --group \
137 $(sort $(subst -debuginfo,,$(wildcard RPMS/yumgroups.xml RPMS/*/*))) $(ARCHIVE)/$(BASE)/
138 yum-arch $(ARCHIVE)/$(BASE) >/dev/null
139 createrepo $(ARCHIVE)/$(BASE) >/dev/null
141 ln -nsf $(ARCHIVE)/$(BASE) $(REPOS)