summaryrefslogtreecommitdiffstats
path: root/encap/tools/bcfg2-python-apt/Makefile
diff options
context:
space:
mode:
authorDaniel Joseph Barnhart Clark <dclark@pobox.com>2006-08-07 22:53:34 +0000
committerDaniel Joseph Barnhart Clark <dclark@pobox.com>2006-08-07 22:53:34 +0000
commit0589a284fbe23c7f20249a37295160be297e1692 (patch)
tree20ab73a64be41faf2f1dab61d3b589c0879e1c95 /encap/tools/bcfg2-python-apt/Makefile
parent05a68a44155216ab21ceef81aadf5187c46b44ad (diff)
downloadbcfg2-0589a284fbe23c7f20249a37295160be297e1692.tar.gz
bcfg2-0589a284fbe23c7f20249a37295160be297e1692.tar.bz2
bcfg2-0589a284fbe23c7f20249a37295160be297e1692.zip
* Added support for Ubuntu Dapper Drake
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2054 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'encap/tools/bcfg2-python-apt/Makefile')
-rw-r--r--encap/tools/bcfg2-python-apt/Makefile11
1 files changed, 8 insertions, 3 deletions
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