diff options
author | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2006-08-19 21:52:31 +0000 |
---|---|---|
committer | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2006-08-19 21:52:31 +0000 |
commit | 48b9c8f43f0a5f0bf95d7d8b3c84c476869ff121 (patch) | |
tree | d865bf61a9e6e062f2537b3080d9cabb8ccf94e3 /encap | |
parent | 2b69d8284d014e13b5bcb7fa84413002f592104f (diff) | |
download | bcfg2-48b9c8f43f0a5f0bf95d7d8b3c84c476869ff121.tar.gz bcfg2-48b9c8f43f0a5f0bf95d7d8b3c84c476869ff121.tar.bz2 bcfg2-48b9c8f43f0a5f0bf95d7d8b3c84c476869ff121.zip |
EncapPackages: Beginning of some dir structure changes
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2074 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'encap')
-rw-r--r-- | encap/HOWTO (renamed from encap/README) | 0 | ||||
-rw-r--r-- | encap/tools/bcfg2-client/Makefile | 116 | ||||
-rw-r--r-- | encap/tools/bcfg2-client/bcfg2-0.8.2.ep (renamed from encap/bcfg2-0.8.2.ep) | 0 | ||||
-rw-r--r-- | encap/tools/bcfg2-client/bcfg2-gettext-0.14.5.ep (renamed from encap/bcfg2-gettext-0.14.5.ep) | 0 | ||||
-rwxr-xr-x | encap/tools/bcfg2-client/bcfg2-libgcc-0.1.sh (renamed from encap/bcfg2-libgcc-0.1.sh) | 0 | ||||
-rw-r--r-- | encap/tools/bcfg2-client/bcfg2-libiconv-1.9.2.ep (renamed from encap/bcfg2-libiconv-1.9.2.ep) | 0 | ||||
-rwxr-xr-x | encap/tools/bcfg2-client/bcfg2-libstdc++-0.1.sh (renamed from encap/bcfg2-libstdc++-0.1.sh) | 0 | ||||
-rw-r--r-- | encap/tools/bcfg2-client/bcfg2-libxml2-2.6.26.ep (renamed from encap/bcfg2-libxml2-2.6.26.ep) | 0 | ||||
-rw-r--r-- | encap/tools/bcfg2-client/bcfg2-libxslt-1.1.17.ep (renamed from encap/bcfg2-libxslt-1.1.17.ep) | 0 | ||||
-rw-r--r-- | encap/tools/bcfg2-client/bcfg2-lxml-1.0.1.ep (renamed from encap/bcfg2-lxml-1.0.1.ep) | 0 | ||||
-rw-r--r-- | encap/tools/bcfg2-client/bcfg2-openssl-0.9.8b.ep (renamed from encap/bcfg2-openssl-0.9.8b.ep) | 0 | ||||
-rw-r--r-- | encap/tools/bcfg2-client/bcfg2-pkg-config-0.20.ep (renamed from encap/bcfg2-pkg-config-0.20.ep) | 0 | ||||
-rw-r--r-- | encap/tools/bcfg2-client/bcfg2-pyopenssl-0.6.ep (renamed from encap/bcfg2-pyopenssl-0.6.ep) | 0 | ||||
-rw-r--r-- | encap/tools/bcfg2-client/bcfg2-pyrex-0.9.4.1.ep (renamed from encap/bcfg2-pyrex-0.9.4.1.ep) | 0 | ||||
-rw-r--r-- | encap/tools/bcfg2-client/bcfg2-python-2.4.3.ep (renamed from encap/bcfg2-python-2.4.3.ep) | 0 | ||||
-rw-r--r-- | encap/tools/bcfg2-client/bcfg2-zlib-1.2.3.ep (renamed from encap/bcfg2-zlib-1.2.3.ep) | 0 | ||||
-rwxr-xr-x | encap/tools/bcfg2-client/m4-1.4.4.sh (renamed from encap/m4-1.4.4.sh) | 0 |
17 files changed, 116 insertions, 0 deletions
diff --git a/encap/README b/encap/HOWTO index 488639c7f..488639c7f 100644 --- a/encap/README +++ b/encap/HOWTO diff --git a/encap/tools/bcfg2-client/Makefile b/encap/tools/bcfg2-client/Makefile new file mode 100644 index 000000000..45de670d0 --- /dev/null +++ b/encap/tools/bcfg2-client/Makefile @@ -0,0 +1,116 @@ +# $Id$ + +.PHONY : all install clean uninstall encaps rename bcfg2only +.SUFFIXES : +.SUFFIXES : .ep .sh .installed .packaged + +BASEDIR = /usr/local +ENCAPDIR = ${BASEDIR}/encap +export ENCAPDIR +EPKG = ${BASEDIR}/bin/epkg +export EPKG +MKENCAP = ${BASEDIR}/bin/mkencap +export MKENCAP + +M4 = m4-1.4.4 +ZLIB = bcfg2-zlib-1.2.3 +LIBICONV = bcfg2-libiconv-1.9.2 +GETTEXT = bcfg2-gettext-0.14.5 +PKG-CONFIG = bcfg2-pkg-config-0.20 +OPENSSL = bcfg2-openssl-0.9.8b +LIBSTDCXX = bcfg2-libstdc++-0.1 +LIBGCC = bcfg2-libgcc-0.1 +PYTHON = bcfg2-python-2.4.3 +PYREX = bcfg2-pyrex-0.9.4.1 +PYOPENSSL = bcfg2-pyopenssl-0.6 +LIBXML2 = bcfg2-libxml2-2.6.26 +LIBXSLT = bcfg2-libxslt-1.1.17 +LXML = bcfg2-lxml-1.0.1 +BCFG2 = bcfg2-0.8.2 + +.ep.installed : # Clean, compile and install an encap package + @printf "***** START .ep.installed for |$*| ***** \n" + ( ${EPKG} -q -r ${ENCAPDIR}/$* || true ) + ( rm -rf ${ENCAPDIR}/$* || true ) + ( ${MKENCAP} -m /usr/local/bin/m4 -b -DUP $*.ep || true ) > $*.log 2>&1 + ( ${MKENCAP} -m /usr/local/bin/m4 -b -T $*.ep || true ) >> $*.log 2>&1 + ( ${MKENCAP} -m /usr/local/bin/m4 -b -CBI $*.ep ) >> $*.log 2>&1 + ${EPKG} -q -i ${ENCAPDIR}/$* + test -h ${BASEDIR}/var/encap/$* + touch $*.installed + @printf "***** STOP .ep.installed for |$*| ***** \n" + +.sh.installed : # Create and install a "fake" encap package + @printf "***** START .sh.installed for |$*| ***** \n" + ( ${EPKG} -q -r ${ENCAPDIR}/$* || true ) + ( rm -rf ${ENCAPDIR}/$* || true ) + chmod 755 ./$*.sh + ./$*.sh + ${EPKG} -q -i ${ENCAPDIR}/$* + test -h ${BASEDIR}/var/encap/$* + touch $*.installed + @printf "***** STOP .sh.installed for |$*| ***** \n" + +.installed.packaged : # Create .tar.gz encap packages for distribution + @printf "***** START .installed.packaged for |$*| ***** \n" + ( rm ${ENCAPDIR}/$*-*.tar.gz || true ) + ( cd ${ENCAPDIR} && ${MKENCAP} -e $* || true ) + cd ${ENCAPDIR} && ${MKENCAP} -c $* + mv ${ENCAPDIR}/$*-encap-*.tar.gz . + touch $*.packaged + @printf "***** STOP .installed.packaged for |$*| ***** \n" + +all : + ( $(MAKE) install > make.log 2>&1 && $(MAKE) encaps >> make.log 2>&1 ) & + +install : ${EPKG} ${MKENCAP} ${BCFG2}.installed + +encaps : ${EPKG} ${MKENCAP} ${BCFG2}.packaged + +rename : encaps + test "$${OS}x" != "x" + for EARCHIVE in `ls *-encap-*.tar.gz`; do \ + mv $${EARCHIVE} `printf $${EARCHIVE} | awk -F- '{$$NF = "OSDIST.tar.gz" ; print}' | sed s:\ :-:g | sed s:OSDIST:\$${OS}:g` ; \ + done + +clean : + ( rm *.log || true ) + ( rm *.packaged || true ) + ( rm *.gz || true ) + ( rm *~ || true ) + +uninstall : clean + ( rm *.installed || true ) + ( ${EPKG} -q -r ${ENCAPDIR}/bcfg2-* || true ) + ( rm -rf ${ENCAPDIR}/bcfg2-* || true ) + ( rm -rf ${BASEDIR}/lib/bcfg2 || true ) + +bcfg2only : + $(MAKE) -t; sleep 2; touch $(BCFG2).ep; $(MAKE) + +${ZLIB}.installed : ${M4}.installed +${LIBICONV}.installed : ${ZLIB}.installed +${GETTEXT}.installed : ${LIBICONV}.installed +${PKG-CONFIG}.installed : ${GETTEXT}.installed +${OPENSSL}.installed : ${PKG-CONFIG}.installed +${LIBSTDCXX}.installed : ${OPENSSL}.installed +${LIBGCC}.installed : ${LIBSTDCXX}.installed +${PYTHON}.installed : ${LIBGCC}.installed +${PYREX}.installed : ${PYTHON}.installed +${PYOPENSSL}.installed : ${PYREX}.installed +${LIBXML2}.installed : ${PYOPENSSL}.installed +${LIBXSLT}.installed : ${LIBXML2}.installed +${LXML}.installed : ${LIBXSLT}.installed +${BCFG2}.installed : ${LXML}.installed + +${LIBICONV}.packaged : ${ZLIB}.packaged +${GETTEXT}.packaged : ${LIBICONV}.packaged +${OPENSSL}.packaged : ${GETTEXT}.packaged +${LIBSTDCXX}.packaged : ${OPENSSL}.packaged +${LIBGCC}.packaged : ${LIBSTDCXX}.packaged +${PYTHON}.packaged : ${LIBGCC}.packaged +${PYOPENSSL}.packaged : ${PYTHON}.packaged +${LIBXML2}.packaged : ${PYOPENSSL}.packaged +${LIBXSLT}.packaged : ${LIBXML2}.packaged +${LXML}.packaged : ${LIBXSLT}.packaged +${BCFG2}.packaged : ${LXML}.packaged diff --git a/encap/bcfg2-0.8.2.ep b/encap/tools/bcfg2-client/bcfg2-0.8.2.ep index cb8b99ecf..cb8b99ecf 100644 --- a/encap/bcfg2-0.8.2.ep +++ b/encap/tools/bcfg2-client/bcfg2-0.8.2.ep diff --git a/encap/bcfg2-gettext-0.14.5.ep b/encap/tools/bcfg2-client/bcfg2-gettext-0.14.5.ep index eaf6b01e1..eaf6b01e1 100644 --- a/encap/bcfg2-gettext-0.14.5.ep +++ b/encap/tools/bcfg2-client/bcfg2-gettext-0.14.5.ep diff --git a/encap/bcfg2-libgcc-0.1.sh b/encap/tools/bcfg2-client/bcfg2-libgcc-0.1.sh index d6de6c471..d6de6c471 100755 --- a/encap/bcfg2-libgcc-0.1.sh +++ b/encap/tools/bcfg2-client/bcfg2-libgcc-0.1.sh diff --git a/encap/bcfg2-libiconv-1.9.2.ep b/encap/tools/bcfg2-client/bcfg2-libiconv-1.9.2.ep index b25f7090b..b25f7090b 100644 --- a/encap/bcfg2-libiconv-1.9.2.ep +++ b/encap/tools/bcfg2-client/bcfg2-libiconv-1.9.2.ep diff --git a/encap/bcfg2-libstdc++-0.1.sh b/encap/tools/bcfg2-client/bcfg2-libstdc++-0.1.sh index 6b3fe4a98..6b3fe4a98 100755 --- a/encap/bcfg2-libstdc++-0.1.sh +++ b/encap/tools/bcfg2-client/bcfg2-libstdc++-0.1.sh diff --git a/encap/bcfg2-libxml2-2.6.26.ep b/encap/tools/bcfg2-client/bcfg2-libxml2-2.6.26.ep index 318f90787..318f90787 100644 --- a/encap/bcfg2-libxml2-2.6.26.ep +++ b/encap/tools/bcfg2-client/bcfg2-libxml2-2.6.26.ep diff --git a/encap/bcfg2-libxslt-1.1.17.ep b/encap/tools/bcfg2-client/bcfg2-libxslt-1.1.17.ep index 8845c4a4f..8845c4a4f 100644 --- a/encap/bcfg2-libxslt-1.1.17.ep +++ b/encap/tools/bcfg2-client/bcfg2-libxslt-1.1.17.ep diff --git a/encap/bcfg2-lxml-1.0.1.ep b/encap/tools/bcfg2-client/bcfg2-lxml-1.0.1.ep index aa8e009e1..aa8e009e1 100644 --- a/encap/bcfg2-lxml-1.0.1.ep +++ b/encap/tools/bcfg2-client/bcfg2-lxml-1.0.1.ep diff --git a/encap/bcfg2-openssl-0.9.8b.ep b/encap/tools/bcfg2-client/bcfg2-openssl-0.9.8b.ep index 2fa76160b..2fa76160b 100644 --- a/encap/bcfg2-openssl-0.9.8b.ep +++ b/encap/tools/bcfg2-client/bcfg2-openssl-0.9.8b.ep diff --git a/encap/bcfg2-pkg-config-0.20.ep b/encap/tools/bcfg2-client/bcfg2-pkg-config-0.20.ep index 62db17661..62db17661 100644 --- a/encap/bcfg2-pkg-config-0.20.ep +++ b/encap/tools/bcfg2-client/bcfg2-pkg-config-0.20.ep diff --git a/encap/bcfg2-pyopenssl-0.6.ep b/encap/tools/bcfg2-client/bcfg2-pyopenssl-0.6.ep index 7f9fa97f6..7f9fa97f6 100644 --- a/encap/bcfg2-pyopenssl-0.6.ep +++ b/encap/tools/bcfg2-client/bcfg2-pyopenssl-0.6.ep diff --git a/encap/bcfg2-pyrex-0.9.4.1.ep b/encap/tools/bcfg2-client/bcfg2-pyrex-0.9.4.1.ep index 8fcc80449..8fcc80449 100644 --- a/encap/bcfg2-pyrex-0.9.4.1.ep +++ b/encap/tools/bcfg2-client/bcfg2-pyrex-0.9.4.1.ep diff --git a/encap/bcfg2-python-2.4.3.ep b/encap/tools/bcfg2-client/bcfg2-python-2.4.3.ep index f62184a08..f62184a08 100644 --- a/encap/bcfg2-python-2.4.3.ep +++ b/encap/tools/bcfg2-client/bcfg2-python-2.4.3.ep diff --git a/encap/bcfg2-zlib-1.2.3.ep b/encap/tools/bcfg2-client/bcfg2-zlib-1.2.3.ep index cba36bfb3..cba36bfb3 100644 --- a/encap/bcfg2-zlib-1.2.3.ep +++ b/encap/tools/bcfg2-client/bcfg2-zlib-1.2.3.ep diff --git a/encap/m4-1.4.4.sh b/encap/tools/bcfg2-client/m4-1.4.4.sh index b424007eb..b424007eb 100755 --- a/encap/m4-1.4.4.sh +++ b/encap/tools/bcfg2-client/m4-1.4.4.sh |