chiark / gitweb /
build-sys: make network files respect --rootprefix
authorSamuli Suominen <ssuominen@gentoo.org>
Fri, 21 Feb 2014 14:14:51 +0000 (16:14 +0200)
committerTom Gundersen <teg@jklm.no>
Fri, 21 Feb 2014 15:05:02 +0000 (16:05 +0100)
With --rootprefix= systemd-udevd gets installed to /lib/systemd, and since
the network configuration is also required during early boot, it should be
available there with it. Using --prefix= is not an option since it would
put everything, including pkg-config files, man pages, documentation, to /
which is not wanted. This commit puts 99-default.link to
/lib/systemd/network/ when required.

Makefile.am

index f6c22bd28149f723eacac42a3ef45eb794323493..1fc23f72f80dd11c7a20612dc10ba68197a6cc15 100644 (file)
@@ -87,7 +87,7 @@ userunitdir=$(prefix)/lib/systemd/user
 userpresetdir=$(prefix)/lib/systemd/user-preset
 tmpfilesdir=$(prefix)/lib/tmpfiles.d
 sysctldir=$(prefix)/lib/sysctl.d
-networkdir=$(prefix)/lib/systemd/network
+networkdir=$(rootprefix)/lib/systemd/network
 pkgincludedir=$(includedir)/systemd
 systemgeneratordir=$(rootlibexecdir)/system-generators
 usergeneratordir=$(prefix)/lib/systemd/user-generators