From 227c9a4bca760f7f38e255f459720888a8335eeb Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 6 Dec 2010 14:31:17 +0000 Subject: [PATCH] ubuntu: Make Ubuntu into a separate distro for the package list. This allows us to select Ubuntu packages separately from Debian ones. --- appliance/packagelist.in | 16 ++++++++++++---- configure.ac | 3 +++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/appliance/packagelist.in b/appliance/packagelist.in index c03357f..2b1a419 100644 --- a/appliance/packagelist.in +++ b/appliance/packagelist.in @@ -5,10 +5,16 @@ * following symbols defined (depending on the distro): * * REDHAT=1 For Fedora, RHEL, EPEL and workalikes. - * DEBIAN=1 For Debian based distros. + * DEBIAN=1 For Debian. + * UBUNTU=1 For Ubuntu. */ -#if REDHAT == 1 +/* Basically the same with a few minor tweaks. */ +#ifdef UBUNTU +#define DEBIAN 1 +#endif + +#ifdef REDHAT augeas-libs btrfs-progs cryptsetup-luks @@ -32,7 +38,9 @@ vim-minimal xz zfs-fuse -#elif DEBIAN == 1 +#endif /* REDHAT */ + +#ifdef DEBIAN bsdmainutils btrfs-tools cryptsetup @@ -52,7 +60,7 @@ vim-tiny xz-utils zfs-fuse -#endif +#endif /* DEBIAN */ bash binutils diff --git a/configure.ac b/configure.ac index 94995f1..912ea62 100644 --- a/configure.ac +++ b/configure.ac @@ -223,6 +223,9 @@ if test "x$enable_appliance" = "xyes"; then DISTRO=REDHAT if test -f /etc/debian_version; then DISTRO=DEBIAN + if grep -q 'DISTRIB_ID=Ubuntu' /etc/lsb-release 2>/dev/null; then + DISTRO=UBUNTU + fi fi AC_MSG_RESULT([$DISTRO]) AC_SUBST([DISTRO]) -- 1.8.3.1