diff options
| author | root | 2013-03-19 15:28:56 +0100 |
|---|---|---|
| committer | root | 2013-03-19 15:28:56 +0100 |
| commit | cc112cd5c1b75403fa99357f981a5471784f5ab4 (patch) | |
| tree | c61196354a0112720b0181ae2b0cd9fb1736605e /remote/modules/systemd/systemd.build | |
| parent | openSUSE non-interactive zypper (diff) | |
| parent | binutil: add libs to blacklist, speeds up by a LOT (thanks michi:)) (diff) | |
| download | tm-scripts-cc112cd5c1b75403fa99357f981a5471784f5ab4.tar.gz tm-scripts-cc112cd5c1b75403fa99357f981a5471784f5ab4.tar.xz tm-scripts-cc112cd5c1b75403fa99357f981a5471784f5ab4.zip | |
Merge branch 'master' of ssh://openslx/openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/systemd/systemd.build')
| -rw-r--r-- | remote/modules/systemd/systemd.build | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/remote/modules/systemd/systemd.build b/remote/modules/systemd/systemd.build new file mode 100644 index 00000000..bb58fc1c --- /dev/null +++ b/remote/modules/systemd/systemd.build @@ -0,0 +1,47 @@ +#tool/distro specific functions for fetching, building and installing dependencies + +fetch_source () { + if [ ! -e .fetched_source ]; then + download_untar "$URL" "src/" + local LIBKMOD_VERSION="kmod-12" + download_untar "http://www.kernel.org/pub/linux/utils/kernel/kmod/${LIBKMOD_VERSION}.tar.gz" "src/" + touch .fetched_source + fi +} + +build () { + if [ ! -e .built ]; then + #build libkmod + cd "src/$LIBKMOD_VERSION/" + ./configure + make -j5 + make install + cd - + + #build systemd + cd "src/$VERSION/" + pinfo "calling configure" + ./configure --disable-manpages --enable-split-usr --sysconfdir="/etc" --enable-gtk-doc-html=no || perror "configure failed." + pinfo "calling make" + make -j5 || perror "make failed." + pinfo "calling make install" + DESTDIR="${MODULE_BUILD_DIR}" make install || perror "make install failed." + cd - + touch .built + fi +} + +post_copy() { + # dont clear systemd log at startup + sed -i.bak "s/TTYVTDisallocate=yes/TTYVTDisallocate=no/g" "${TARGET_BUILD_DIR}/usr/lib/systemd/system/getty@.service" + + #old agetty version doesn't support --noclear option in getty service + if [ "x$(dpkg -s util-linux | grep Version: | cut -d' ' -f2)" == "x2.19.1-2ubuntu3" ]; + then + sed -i.bak "s/ExecStart=-\/sbin\/agetty --noclear %I 38400 linux/ExecStart=-\/sbin\/agetty %I 38400 linux/g" "${TARGET_BUILD_DIR}/usr/lib/systemd/system/getty@.service" + fi + + # add nfs to modules-load list + echo "nfs" > "${TARGET_BUILD_DIR}/etc/modules-load.d/nfs.conf" +} + |
