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 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'encap/tools/bcfg2-python-apt/Makefile') 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 -- cgit v1.2.3-1-g7c22