From 0589a284fbe23c7f20249a37295160be297e1692 Mon Sep 17 00:00:00 2001 From: Daniel Joseph Barnhart Clark Date: Mon, 7 Aug 2006 22:53:34 +0000 Subject: * Added support for Ubuntu Dapper Drake git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2054 ce84e21b-d406-0410-9b95-82705330c041 --- encap/tools/bcfg2-python-apt/Makefile | 11 ++- encap/tools/bcfg2-python-apt/README | 6 ++ .../bcfg2-python-apt-0.6.16.2ubuntu8.ep | 93 ++++++++++++++++++++++ 3 files changed, 107 insertions(+), 3 deletions(-) create mode 100644 encap/tools/bcfg2-python-apt/bcfg2-python-apt-0.6.16.2ubuntu8.ep diff --git a/encap/tools/bcfg2-python-apt/Makefile b/encap/tools/bcfg2-python-apt/Makefile index bd8d09857..2fa3a66d6 100644 --- a/encap/tools/bcfg2-python-apt/Makefile +++ b/encap/tools/bcfg2-python-apt/Makefile @@ -12,18 +12,23 @@ export EPKG MKENCAP = ${BASEDIR}/bin/mkencap export MKENCAP -APTMAJOR := $(shell apt-get --version | head -1 | cut -c 7) +DISTRO := $(shell cat /etc/issue | head -1) -ifeq ($(APTMAJOR),5) +ifeq ($(DISTRO),Debian GNU/Linux 3.1 \n \l) PYTHON-APT = bcfg2-python-apt-0.5.10 endif -ifeq ($(APTMAJOR),6) +ifeq ($(DISTRO),Debian GNU/Linux testing/unstable \n \l) PYTHON-APT = bcfg2-python-apt-0.6.19 endif +ifeq ($(DISTRO),Ubuntu 6.06.1 LTS \n \l) +PYTHON-APT = bcfg2-python-apt-0.6.16.2ubuntu8 +endif + .ep.installed : # Clean, compile and install an encap package @printf "***** START .ep.installed for |$*| ***** \n" + ( apt-get install libapt-pkg-dev || true ) ( ${EPKG} -q -r ${ENCAPDIR}/$* || true ) ( rm -rf ${ENCAPDIR}/$* || true ) ( ${MKENCAP} -m /usr/local/bin/m4 -b -DUP $*.ep || true ) > $*.log 2>&1 diff --git a/encap/tools/bcfg2-python-apt/README b/encap/tools/bcfg2-python-apt/README index 5b2a06e83..d95e472f2 100644 --- a/encap/tools/bcfg2-python-apt/README +++ b/encap/tools/bcfg2-python-apt/README @@ -3,3 +3,9 @@ Before building this, make sure that you have these libraries installed: * /usr/lib/libapt-inst* (Part of the "apt-utils" package on Debian) You also must have the "libapt-pkg-dev" package installed. + +To see if your Debian variant is supported, do "grep ifeq Makefile" and see if +any of those strings match "cat /etc/issue". + +It should be pretty trivial to add new Debian platforms; if you have any +issues, mail the bcfg2-dev list or open a ticket. diff --git a/encap/tools/bcfg2-python-apt/bcfg2-python-apt-0.6.16.2ubuntu8.ep b/encap/tools/bcfg2-python-apt/bcfg2-python-apt-0.6.16.2ubuntu8.ep new file mode 100644 index 000000000..4a2f11428 --- /dev/null +++ b/encap/tools/bcfg2-python-apt/bcfg2-python-apt-0.6.16.2ubuntu8.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