From d7469269b946164d707b2c92ff4a8a5b9fefd0ce Mon Sep 17 00:00:00 2001 From: Daniel Joseph Barnhart Clark Date: Sat, 30 Jun 2007 19:14:50 +0000 Subject: EncapPackages: Start of adding reports encaps git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3397 ce84e21b-d406-0410-9b95-82705330c041 --- encap/src/encap-profiles/reports/Makefile | 90 ++++++++++++++++++++++ encap/src/encap-profiles/reports/README | 7 ++ .../encap-profiles/reports/bcfg2-django-0.96.ep | 1 + .../reports/bcfg2-mod_python-3.3.1.ep | 1 + .../encap-profiles/reports/bcfg2-pysqlite-2.3.4.ep | 1 + encap/src/encap-profiles/reports/ep2target | 1 + encap/src/encap-profiles/reports/sqlite-3.4.0.ep | 1 + 7 files changed, 102 insertions(+) create mode 100644 encap/src/encap-profiles/reports/Makefile create mode 100644 encap/src/encap-profiles/reports/README create mode 100644 encap/src/encap-profiles/reports/bcfg2-django-0.96.ep create mode 100644 encap/src/encap-profiles/reports/bcfg2-mod_python-3.3.1.ep create mode 100644 encap/src/encap-profiles/reports/bcfg2-pysqlite-2.3.4.ep create mode 120000 encap/src/encap-profiles/reports/ep2target create mode 100644 encap/src/encap-profiles/reports/sqlite-3.4.0.ep (limited to 'encap/src/encap-profiles') diff --git a/encap/src/encap-profiles/reports/Makefile b/encap/src/encap-profiles/reports/Makefile new file mode 100644 index 000000000..e2f1529e5 --- /dev/null +++ b/encap/src/encap-profiles/reports/Makefile @@ -0,0 +1,90 @@ +# $Id$ + +.PHONY : test log all install clean distclean encaps rename +.SUFFIXES : +.SUFFIXES : .ep .installed .packaged .d + +export BASEDIR = /usr/local +export ENCAPDIR := ${BASEDIR}/encap +export EPKG := ${BASEDIR}/bin/epkg +export MKENCAP := ${BASEDIR}/bin/mkencap +export SHELL = /bin/sh +srcdir = . +export EP2TARGET := $(srcdir)/ep2target +PAGER ?= more + +BCFG2_DJANGO := $(basename $(wildcard bcfg2-django-*.ep)) +BCFG2_MOD_PYTHON := $(basename $(wildcard bcfg2-mod_python-*.ep)) +BCFG2_PYSQLITE := $(basename $(wildcard bcfg2-pysqlite-*.ep)) +SQLITE := $(basename $(wildcard sqlite-*.ep)) + +sources := $(BCFG2_DJANGO) $(BCFG2_MOD_PYTHON) $(BCFG2_PYSQLITE) $(SQLITE) + +%.installed : %.ep # Clean, compile and install an encap package + @printf "***** START .ep.installed for |$*| ***** \n" + -$(EPKG) -q -r $(ENCAPDIR)/$* + -rm -rf $(ENCAPDIR)/$* + -$(MKENCAP) -m /usr/local/bin/m4 -b -DUP $(srcdir)/$*.ep > ./$*.log 2>&1 + -$(MKENCAP) -m /usr/local/bin/m4 -b -T $(srcdir)/$*.ep >> ./$*.log 2>&1 + $(MKENCAP) -m /usr/local/bin/m4 -b -CBI $(srcdir)/$*.ep >> ./$*.log 2>&1 + $(EPKG) -q -i $(ENCAPDIR)/$* + test -h $(BASEDIR)/var/encap/$* + touch ./$*.installed + @printf "***** STOP .ep.installed for |$*| ***** \n" + +%.packaged : %.installed # Create .tar.gz encap packages + @printf "***** START .installed.packaged for |$*| ***** \n" + -rm $(ENCAPDIR)/$*-*.tar.gz + -(cd $(ENCAPDIR) && $(MKENCAP) -e $*) + -(cd $(ENCAPDIR) && $(MKENCAP) -c $*) + mv $(ENCAPDIR)/$*-encap-*.tar.gz ./ + touch ./$*.packaged + @printf "***** STOP .installed.packaged for |$*| ***** \n" + +%.d : %.ep # Create dependancy files from .ep files + @printf "***** START .d.ep for |$*| ***** \n" + $(EP2TARGET) $< > $@ + @printf "***** STOP .d.ep for |$*| ***** \n" + +log : + ( $(MAKE) install > ./make.log 2>&1 \ + && $(MAKE) encaps >> ./make.log 2>&1 \ + && $(MAKE) rename >> ./make.log 2>&1 ) & + +all : install encaps rename + +.DELETE_ON_ERROR : # delete the target of a rule if it has changed and its + # commands exit with a nonzero exit status + +install : $(EPKG) $(MKENCAP) $(EP2TARGET) $(M4).installed $(addsuffix .installed,$(sources)) + +encaps : $(EPKG) $(MKENCAP) $(EP2TARGET) $(addsuffix .packaged,$(sources)) + +rename : encaps + if [ "$(OS)x" != "x" ]; then OS="$(OS)"; fi && \ + if [ "$${OS}x" != "x" ]; then \ + for OLDNAME in `(ls . | grep .*-encap-.*.tar.gz) || break`; do \ + NEWNAME="`printf "%s\n" "$${OLDNAME}" \ + | awk -F- '{$$NF = "OSDIST.tar.gz" ; print}' \ + | sed s:\ :-:g | sed s:OSDIST:\$${OS}:g`" ; \ + if [ "$${OLDNAME}x" != "$${NEWNAME}x" ]; then \ + mv ./$${OLDNAME} ./$${NEWNAME}; \ + fi; \ + done; \ + fi + for OLDNAME in `(ls . | grep .*-doc-.*-encap-.*.tar.gz) || break`; do \ + NEWNAME="`printf "%s\n" "$${OLDNAME}" \ + | awk -F- '{$$NF = "OSDIST.tar.gz" ; print}' \ + | sed s:\ :-:g | sed s:OSDIST:share:g`" ; \ + if [ "$${OLDNAME}x" != "$${NEWNAME}x" ]; then \ + mv ./$${OLDNAME} ./$${NEWNAME}; \ + fi; \ + done; + +clean : + -(rm ./*.log; rm ./*.packaged; rm ./*.gz; rm ./*~) + +distclean : clean + -rm ./*.d + +include $(addsuffix .d,$(sources)) diff --git a/encap/src/encap-profiles/reports/README b/encap/src/encap-profiles/reports/README new file mode 100644 index 000000000..36f4dd9bc --- /dev/null +++ b/encap/src/encap-profiles/reports/README @@ -0,0 +1,7 @@ +You must build and install the client packages in ".." and the server +packages in "../server" before building here. + +Type "make". + +Bcfg2 Reports do not work on all of the platforms supported by Bcfg2 client. +GNU/Linux on x86_32 or x86_64 are recommended. diff --git a/encap/src/encap-profiles/reports/bcfg2-django-0.96.ep b/encap/src/encap-profiles/reports/bcfg2-django-0.96.ep new file mode 100644 index 000000000..65f1991a7 --- /dev/null +++ b/encap/src/encap-profiles/reports/bcfg2-django-0.96.ep @@ -0,0 +1 @@ +http://www.djangoproject.com/download/0.96/tarball/ diff --git a/encap/src/encap-profiles/reports/bcfg2-mod_python-3.3.1.ep b/encap/src/encap-profiles/reports/bcfg2-mod_python-3.3.1.ep new file mode 100644 index 000000000..d60cf7cdf --- /dev/null +++ b/encap/src/encap-profiles/reports/bcfg2-mod_python-3.3.1.ep @@ -0,0 +1 @@ +http://www.eng.lsu.edu/mirrors/apache/httpd/modpython/mod_python-3.3.1.tgz diff --git a/encap/src/encap-profiles/reports/bcfg2-pysqlite-2.3.4.ep b/encap/src/encap-profiles/reports/bcfg2-pysqlite-2.3.4.ep new file mode 100644 index 000000000..31e41d79e --- /dev/null +++ b/encap/src/encap-profiles/reports/bcfg2-pysqlite-2.3.4.ep @@ -0,0 +1 @@ +http://initd.org/pub/software/pysqlite/releases/2.3/2.3.4/pysqlite-2.3.4.tar.gz diff --git a/encap/src/encap-profiles/reports/ep2target b/encap/src/encap-profiles/reports/ep2target new file mode 120000 index 000000000..6a7aaa552 --- /dev/null +++ b/encap/src/encap-profiles/reports/ep2target @@ -0,0 +1 @@ +../ep2target \ No newline at end of file diff --git a/encap/src/encap-profiles/reports/sqlite-3.4.0.ep b/encap/src/encap-profiles/reports/sqlite-3.4.0.ep new file mode 100644 index 000000000..935380227 --- /dev/null +++ b/encap/src/encap-profiles/reports/sqlite-3.4.0.ep @@ -0,0 +1 @@ +http://www.sqlite.org/sqlite-3.4.0.tar.gz -- cgit v1.2.3-1-g7c22