diff options
| author | Christian Rößler | 2013-08-06 15:05:58 +0200 |
|---|---|---|
| committer | Christian Rößler | 2013-08-06 15:05:58 +0200 |
| commit | de076c7eb22a58860345749a8a17b063649ba589 (patch) | |
| tree | b96b9f3b52e497de67aafb91f8fd0b1b733fcf08 /remote | |
| parent | [german] conf for Scientific Linux (diff) | |
| download | tm-scripts-de076c7eb22a58860345749a8a17b063649ba589.tar.gz tm-scripts-de076c7eb22a58860345749a8a17b063649ba589.tar.xz tm-scripts-de076c7eb22a58860345749a8a17b063649ba589.zip | |
[systemd] .build: Experimental: Special cases fir Scientific Linux
Diffstat (limited to 'remote')
| -rw-r--r-- | remote/modules/systemd/systemd.build | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/remote/modules/systemd/systemd.build b/remote/modules/systemd/systemd.build index e481f74e..710c4ea6 100644 --- a/remote/modules/systemd/systemd.build +++ b/remote/modules/systemd/systemd.build @@ -3,6 +3,10 @@ fetch_source () { download_untar "$REQUIRED_URL" "src/" download_untar "$REQUIRED_LIBKMOD_URL" "src/" + + # Another nice hack for Scientific Linux - experimental. + [ "$SYS_DISTRIBUTION" == "scientific" ] && download_untar "$REQUIRED_UTILLINUX_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 @@ -17,19 +21,35 @@ build () { make install || perror "kmod make install failed." cd - &> /dev/null - #build systemd - pinfo "Building systemd" - cd "${MODULE_DIR}/src/$REQUIRED_VERSION" - - # patching configure for Scientific Linux - cave - ugly hack! + # Scientific Linux specials if [ "$SYS_DISTRIBUTION" == "scientific" ]; then + # Utillinux stuff + penfo "Building util-linux" + cd "${MODULE_DIR}/src/util-linux-$REQUIRED_UTILLINUX_VERSION" + ./configure --prefix=${MODULE_DIR}/build --exec-prefix=${MODULE_DIR}/build --disable-libuuid --disable-libmount \ + --disable-mount --disable-losetup --disable-cytune --disable-fsck --disable-partx --disable-uuidd \ + --disable-mountpoint --disable-fallocate --disable-unshare --disable-nsenter --disable-setpriv \ + --disable-eject --disable-agetty --disable-cramfs --disable-bfs --disable-fdformat --disable-hwclock \ + --disable-wdctl --disable-switch_root --disable-pivot_root --disable-kill --disable-utmpdump --disable-raw \ + --disable-rename --disable-login --disable-sulogin --disable-su --disable-runuser --disable-ul --disable-more \ + --disable-pg --disable-schedutils --disable-wall --disable-bash-completion \ + || perror "./configure util-linux failed." + make || perror "util-linux make failed." + make install || perror "util-linux make install failed." + + # patching configure for Scientific Linux - cave - ugly hack! pinfo "Scientific Linux detected; patching systemd/configure..." + cd "${MODULE_DIR}/src/$REQUIRED_VERSION" sed 's/dbus-1 >= 1.3.2/dbus-1 >= 1.2.24/g' configure > configure.patched mv configure configure.orig mv configure.patched configure chmod +x configure fi + + #build systemd + pinfo "Building systemd" + cd "${MODULE_DIR}/src/$REQUIRED_VERSION" pinfo "calling configure" ./configure --disable-manpages --enable-split-usr --sysconfdir="/etc" --enable-gtk-doc-html=no --disable-nls --disable-microhttpd --disable-bootchart --disable-quotacheck --disable-hostnamed --disable-timedated --disable-localed --disable-coredump --disable-keymap --without-python --enable-blkid --enable-acl --enable-pam|| perror "configure failed." pinfo "calling make" |
