summaryrefslogtreecommitdiffstats
path: root/remote/modules/systemd/systemd.build
diff options
context:
space:
mode:
authorSimon Rettberg2013-06-10 16:13:03 +0200
committerSimon Rettberg2013-06-10 16:13:03 +0200
commitfa1c2cf93b27191a77a31fc0fa718f66de2c2956 (patch)
tree268dc88fab5d52c5d18155864dce51e38a9d443b /remote/modules/systemd/systemd.build
parent[vmplayer] enable sound and 3D in vmplayer (diff)
downloadtm-scripts-fa1c2cf93b27191a77a31fc0fa718f66de2c2956.tar.gz
tm-scripts-fa1c2cf93b27191a77a31fc0fa718f66de2c2956.tar.xz
tm-scripts-fa1c2cf93b27191a77a31fc0fa718f66de2c2956.zip
[systemd] patch PATH environment variable in systemd-src
Diffstat (limited to 'remote/modules/systemd/systemd.build')
-rw-r--r--remote/modules/systemd/systemd.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/remote/modules/systemd/systemd.build b/remote/modules/systemd/systemd.build
index a84cc7b3..a0a57b4d 100644
--- a/remote/modules/systemd/systemd.build
+++ b/remote/modules/systemd/systemd.build
@@ -3,7 +3,10 @@
fetch_source () {
download_untar "$REQUIRED_URL" "src/"
download_untar "$REQUIRED_LIBKMOD_URL" "src/"
-}
+ # Patch PATH environment
+ sed -s -i -r 's#"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin(:/sbin:/bin)?"#& ":/opt/openslx/usr/sbin:/opt/openslx/usr/bin:/opt/openslx/sbin:/opt/openslx/bin"#g' src/systemd-*/src/core/main.c
+ sed -s -i -r 's#"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"#& ":/opt/openslx/usr/sbin:/opt/openslx/usr/bin:/opt/openslx/sbin:/opt/openslx/bin"#g' src/systemd-*/src/nspawn/nspawn.c
+}
build () {
#build libkmod