summaryrefslogtreecommitdiffstats
path: root/encap/src/encap-profiles
diff options
context:
space:
mode:
authorDaniel Joseph Barnhart Clark <dclark@pobox.com>2006-10-10 03:19:54 +0000
committerDaniel Joseph Barnhart Clark <dclark@pobox.com>2006-10-10 03:19:54 +0000
commit9cbb37a7d7e7036f2c3e2555833ad77ccb4876b6 (patch)
treeb0dca7db6648bb3d4f4e312ef07d9173591ce392 /encap/src/encap-profiles
parente32b6824c295135e794e88786017c9166fb472ae (diff)
downloadbcfg2-9cbb37a7d7e7036f2c3e2555833ad77ccb4876b6.tar.gz
bcfg2-9cbb37a7d7e7036f2c3e2555833ad77ccb4876b6.tar.bz2
bcfg2-9cbb37a7d7e7036f2c3e2555833ad77ccb4876b6.zip
EncapPackages: Switch to using elementtree on client, as there is difficulty
compiling libxml2+libxslt+lxml on some platforms. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2420 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'encap/src/encap-profiles')
-rw-r--r--encap/src/encap-profiles/Makefile11
-rw-r--r--encap/src/encap-profiles/bcfg2-elementtree-1.2.6.ep68
2 files changed, 75 insertions, 4 deletions
diff --git a/encap/src/encap-profiles/Makefile b/encap/src/encap-profiles/Makefile
index 3ddf1cf31..4378ba451 100644
--- a/encap/src/encap-profiles/Makefile
+++ b/encap/src/encap-profiles/Makefile
@@ -16,6 +16,7 @@ PAGER ?= more
BCFG2 := $(basename $(wildcard bcfg2-[0-9].[0-9]*.ep))
BCFG2_CHEETAH := $(basename $(wildcard bcfg2-cheetah-[0-9].[0-9]*.ep))
BCFG2_CHEETAH_DOC := $(basename $(wildcard bcfg2-cheetah-doc-*.ep))
+BCFG2_ELEMENTTREE := $(basename $(wildcard bcfg2-elementtree-*.ep))
BCFG2_GAMIN := $(basename $(wildcard bcfg2-gamin-*.ep))
BCFG2_GLIB := $(basename $(wildcard bcfg2-glib-*.ep))
BCFG2_GZIP := $(basename $(wildcard bcfg2-gzip-*.ep))
@@ -37,10 +38,12 @@ OSTIARTY := $(basename $(wildcard ostiary-[0-9].[0-9]*.ep))
OSTIARTY_DOC := $(basename $(wildcard ostiary-doc-*.ep))
PATCH := $(basename $(wildcard patch-*.ep))
-sources_ep := $(sort $(BCFG2) $(BCFG2_CHEETAH) $(BCFG2_CHEETAH_DOC) $(BCFG2_GZIP) $(BCFG2_LIBXML2) $(BCFG2_LIBXSLT) $(BCFG2_LXML) $(BCFG2_OPENSSL) $(BCFG2_PKG_CONFIG) $(BCFG2_PYOPENSSL) $(BCFG2_PYREX) $(BCFG2_PYTHON) $(BCFG2_READLINE) $(BCFG2_ZLIB) $(DAEMONTOOLS) $(DAEMONTOOLS_DOC) $(MAKESELF) $(OSTIARTY) $(OSTIARTY_DOC) $(PATCH))
+sources_ep := $(sort $(BCFG2) $(BCFG2_CHEETAH) $(BCFG2_ELEMENTTREE) $(BCFG2_GZIP) $(BCFG2_OPENSSL) $(BCFG2_PKG_CONFIG) $(BCFG2_PYOPENSSL) $(BCFG2_PYTHON) $(BCFG2_READLINE) $(BCFG2_ZLIB) $(DAEMONTOOLS) $(MAKESELF) $(OSTIARTY) $(PATCH))
sources_sh := $(sort $(M4))
+sources_server := $(sort $(BCFG2_GLIB) $(BCFG2_GAMIN) $(BCFG2_LIBXML2) $(BCFG2_LIBXSLT) $(BCFG2_LXML) $(BCFG2_CHEETAH_DOC) $(BCFG2_PYREX) $(DAEMONTOOLS_DOC) $(OSTIARTY_DOC))
+
# Only compile bcfg2-glib and bcfg2-gamin (needed by bcfg2 server) on Linux
# (Gamin only supports Linux), and only compile bcfg2-python-apt on known
# Debian and Ubuntu systems (as python-apt is distribution-specific)
@@ -51,19 +54,19 @@ DISTRO := $(shell cat /etc/issue | grep ^[a-zA-Z] | head -1)
endif
ifeq ($(DISTRO),Debian GNU/Linux 3.1 \n \l)
-sources_ep += $(BCFG2_GLIB) $(BCFG2_GAMIN)
+sources_ep += $(sources_server)
BCFG2_PYTHON_APT = bcfg2-python-apt-0.5.10
OS ?= linux_debian_sarge
endif
ifeq ($(DISTRO),Debian GNU/Linux testing/unstable \n \l)
-sources_ep += $(BCFG2_GLIB) $(BCFG2_GAMIN)
+sources_ep += $(sources_server)
BCFG2_PYTHON_APT = bcfg2-python-apt-0.6.19
OS ?= linux_debian_sid
endif
ifeq ($(DISTRO),Ubuntu 6.06.1 LTS \n \l)
-sources_ep += $(BCFG2_GLIB) $(BCFG2_GAMIN)
+sources_ep += $(sources_server)
BCFG2_PYTHON_APT = bcfg2-python-apt-0.6.16.2ubuntu8
OS ?= linux_ubuntu_dapper
endif
diff --git a/encap/src/encap-profiles/bcfg2-elementtree-1.2.6.ep b/encap/src/encap-profiles/bcfg2-elementtree-1.2.6.ep
new file mode 100644
index 000000000..a0897fe8a
--- /dev/null
+++ b/encap/src/encap-profiles/bcfg2-elementtree-1.2.6.ep
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+
+<!-- $Id$ -->
+
+<encap_profile
+ profile_ver="1.0"
+ pkgspec="bcfg2-elementtree-1.2.6"
+>
+
+<prereq package="m4-1.4.4" />
+<prereq package="bcfg2-python-2.4.3" />
+
+<environment
+ variable="PATH"
+PLATFORM_IF_MATCH(solaris)
+ value="/usr/local/lib/bcfg2/bin:/usr/local/bin:/usr/sfw/bin:/usr/ccs/bin:"
+PLATFORM_ELSE
+ value="/usr/local/lib/bcfg2/bin:/usr/local/bin:"
+PLATFORM_ENDIF
+ type="prepend"
+/>
+
+PLATFORM_IF_MATCH(linux)
+PLATFORM_ELSE
+<environment
+ variable="MAKE"
+ value="gmake"
+ type="set"
+/>
+PLATFORM_ENDIF
+
+<source
+url="ftp://encapsrcdist/mirror/elementtree/elementtree-1.2.6-20050316.tar.gz
+http://www.pobox.com/users/dclark/mirror/elementtree/elementtree-1.2.6-20050316.tar.gz
+http://effbot.org/downloads/elementtree-1.2.6-20050316.tar.gz"
+>
+
+<configure type="unset" />
+
+<build>
+/usr/local/lib/bcfg2/bin/python setup.py build \
+--build-base=${builddir}/build
+</build>
+
+<install>
+/usr/local/lib/bcfg2/bin/python setup.py install \
+--prefix=${ENCAP_SOURCE}/${ENCAP_PKGNAME}/lib/bcfg2
+</install>
+
+<clean>
+/usr/local/lib/bcfg2/bin/python setup.py clean
+</clean>
+
+</source>
+
+<prepackage type="set">
+chmod -R o+r lib/bcfg2
+# Make "this encap is installed" sentinal file available in /usr/local/var/encap
+test -d var || mkdir var
+test -d var/encap || mkdir var/encap
+touch var/encap/${ENCAP_PKGNAME}
+</prepackage>
+
+<encapinfo>
+description elementtree - Light-weight toolkit for XML processing
+</encapinfo>
+
+</encap_profile>