From ca2512a466de0382edbd64bad4184504d9a44029 Mon Sep 17 00:00:00 2001 From: Daniel Joseph Barnhart Clark Date: Sun, 6 Aug 2006 16:32:03 +0000 Subject: Need older version for Debian Sarge git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2049 ce84e21b-d406-0410-9b95-82705330c041 --- encap/tools/bcfg2-python-apt/Makefile | 6 ++ .../bcfg2-python-apt/bcfg2-python-apt-0.5.10.ep | 93 ++++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 encap/tools/bcfg2-python-apt/bcfg2-python-apt-0.5.10.ep diff --git a/encap/tools/bcfg2-python-apt/Makefile b/encap/tools/bcfg2-python-apt/Makefile index 929bc97ec..0e4740002 100644 --- a/encap/tools/bcfg2-python-apt/Makefile +++ b/encap/tools/bcfg2-python-apt/Makefile @@ -12,7 +12,13 @@ export EPKG MKENCAP = ${BASEDIR}/bin/mkencap export MKENCAP +APTMAJOR := $(shell apt-get --version | head -1 | cut -c 7) + +ifeq ($(APTMAJOR),5) +PYTHON-APT = bcfg2-python-apt-0.5.10 +else ifeq ($(APTMAJOR),6) PYTHON-APT = bcfg2-python-apt-0.6.19 +endif .ep.installed : # Clean, compile and install an encap package @printf "***** START .ep.installed for |$*| ***** \n" diff --git a/encap/tools/bcfg2-python-apt/bcfg2-python-apt-0.5.10.ep b/encap/tools/bcfg2-python-apt/bcfg2-python-apt-0.5.10.ep new file mode 100644 index 000000000..57ce35310 --- /dev/null +++ b/encap/tools/bcfg2-python-apt/bcfg2-python-apt-0.5.10.ep @@ -0,0 +1,93 @@ + + + + + + + + + + +PLATFORM_IF_MATCH(linux) +PLATFORM_ELSE + +PLATFORM_ENDIF + + + + + + + + +/usr/local/lib/bcfg2/bin/python setup.py build_ext \ +-I/usr/local/lib/bcfg2/include \ +-L/usr/local/lib/bcfg2/lib \ +-L/usr/local/lib/bcfg2/lib/python2.4/site-packages + + + +/usr/local/lib/bcfg2/bin/python setup.py build \ +--build-base=${builddir}/build + + + +/usr/local/lib/bcfg2/bin/python setup.py install \ +--prefix=${ENCAP_SOURCE}/${ENCAP_PKGNAME}/lib/bcfg2 \ + + + +/usr/local/lib/bcfg2/bin/python setup.py clean --all + + + + + +mkdir var 2>/dev/null || exit 0 +mkdir var/encap 2>/dev/null || exit 0 +touch var/encap/${ENCAP_PKGNAME} + + + +description python-apt - python interface to libapt-pkg + + + -- cgit v1.2.3-1-g7c22