. ${BUILDFILE%/*}/common.sh pkgver=20210617 package() { preamble pkgdesc="Parabola server configuration: Automatic networkd for ethernet devices" provides+=(config-parabola-mgmt-dhcpcd) conflicts+=(config-parabola-mgmt-dhcpcd) depends+=(config-parabola-mgmt-resolved) # ##### networking # We install a wildcard rule to automatically do DHCP on each ethernet # interface, to avoid any manual configuration of networking, that # could change if the host VM changes. add-file etc/systemd/network/ethernet.network <<-'EOF' [Match] Name=en* Name=eth* [Network] DHCP=ipv4 IPv6PrivacyExtensions=yes IPv6AcceptRA=false [DHCP] RouteMetric=512 EOF add-unit etc/systemd/system/multi-user.target.wants/systemd-networkd.service # base add-unit etc/systemd/system/sockets.target.wants/systemd-networkd.socket # Also= add-unit etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service # Also= ln -s /usr/lib/systemd/system/systemd-networkd.service etc/systemd/system/dbus-org.freedesktop.network1.service # Alias= postamble }