This allows us to select Ubuntu packages separately from Debian ones.
* 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
vim-minimal
xz
zfs-fuse
-#elif DEBIAN == 1
+#endif /* REDHAT */
+
+#ifdef DEBIAN
bsdmainutils
btrfs-tools
cryptsetup
vim-tiny
xz-utils
zfs-fuse
-#endif
+#endif /* DEBIAN */
bash
binutils
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])