install: networkd.service depend on !--disable

It doesn't make any sense to symlink this unit file into /etc when the
unit file itself isn't even installed, with --disable-networkd. This
moves the GENERAL_ALIASES logic into the right "if" block.
This commit is contained in:
Jason A. Donenfeld 2014-02-21 16:36:59 +01:00 committed by Tom Gundersen
parent 96197df081
commit a2fef7701b

View file

@ -3955,6 +3955,9 @@ systemd_networkd_LDADD = \
nodist_systemunit_DATA += \
units/systemd-networkd.service
GENERAL_ALIASES += \
$(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service
test_network_SOURCES = \
src/network/test-network.c \
src/network/networkd.h \
@ -4745,7 +4748,6 @@ USER_UNIT_ALIASES += \
GENERAL_ALIASES += \
$(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
$(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
$(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
$(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service