ubuntu: Treat Ubuntu as a distinct distro in configure.ac etc

Previously Ubuntu was treated as being equivalent to Debian, but the two
distributions require different behaviour in certain places.  This commit does
not change the behaviour of systemd on either distro but it creates a
framework for changes to be introduced by later commits.

The following previously meant "Target is Debian or Ubuntu".
    * configure option "--with-distro=debian"
    * C preprocessor symbol "TARGET_DEBIAN"
    * Automake conditional "TARGET_DEBIAN"
After this commit, all of the above are redefined to mean "Target is Debian"

The following are introduced to mean "Target is Ubuntu".
    * configure option "--with-distro=ubuntu"
    * C preprocessor symbol "TARGET_UBUNTU"
    * Automake conditional "TARGET_UBUNTU"

Most code written for Debian will also be applicable to Ubuntu. An extra
Automake conditional "TARGET_DEBIAN_OR_UBUNTU" is introduced to avoid
duplication of code that would otherwise occur.

This commit updates configure.ac, Makefile.am and distro-specific source files
in line with the above definitions.
This commit is contained in:
Andrew Edmunds
2010-10-25 21:09:56 +02:00
committed by Lennart Poettering
parent 1104f3c160
commit 858dae181b
6 changed files with 24 additions and 8 deletions
+4 -2
View File
@@ -303,7 +303,7 @@ dist_systemunit_DATA += \
units/fedora/plymouth-halt.service
endif
if TARGET_DEBIAN
if TARGET_DEBIAN_OR_UBUNTU
dist_systemunit_DATA += \
units/debian/fsck.target \
units/debian/umountfs.service \
@@ -1218,7 +1218,7 @@ if TARGET_GENTOO
rm -f xdm.service && \
$(LN_S) $(systemunitdir)/xdm.service xdm.service )
endif
if TARGET_DEBIAN
if TARGET_DEBIAN_OR_UBUNTU
$(MKDIR_P) -m 0755 \
$(DESTDIR)$(systemunitdir)/umount.target.wants
( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
@@ -1232,11 +1232,13 @@ if TARGET_DEBIAN
endif
if !TARGET_SUSE
if !TARGET_DEBIAN
if !TARGET_UBUNTU
( cd $(DESTDIR)$(systemunitdir) && \
rm -f fsck.target && \
$(LN_S) sysinit.target fsck.target )
endif
endif
endif
DISTCHECK_CONFIGURE_FLAGS = \
--with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \