mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 16:59:03 +03:00
858dae181b
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.
33 lines
844 B
Plaintext
33 lines
844 B
Plaintext
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
# See systemd.special(7) for details
|
|
|
|
[Unit]
|
|
Description=Multi-User
|
|
Requires=basic.target
|
|
Conflicts=rescue.target
|
|
After=basic.target rescue.target
|
|
m4_dnl
|
|
m4_ifdef(`TARGET_FEDORA',
|
|
m4_dnl On Fedora Runlevel 3 is multi-user
|
|
Names=runlevel3.target
|
|
)m4_dnl
|
|
m4_ifdef(`TARGET_SUSE',
|
|
Names=runlevel3.target
|
|
)m4_dnl
|
|
m4_ifdef(`TARGET_DEBIAN',
|
|
m4_ifdef(`TARGET_UBUNTU',
|
|
m4_dnl On Debian/Ubuntu Runlevel 2, 3, 4 and 5 are multi-user
|
|
Names=runlevel2.target runlevel3.target runlevel4.target runlevel5.target
|
|
)m4_dnl
|
|
)m4_dnl
|
|
AllowIsolate=yes
|
|
|
|
[Install]
|
|
Alias=default.target
|