diff options
| author | Jonathan Bauer | 2013-03-14 18:30:10 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2013-03-14 18:30:10 +0100 |
| commit | 765e0502c315d250ab8f671bc726fef6f63a026a (patch) | |
| tree | e5624ec583c98fd3202caefad9b37289d9cad348 /remote/tools/systemd/systemd.build | |
| parent | base -> base32 and started new base31 (diff) | |
| download | tm-scripts-765e0502c315d250ab8f671bc726fef6f63a026a.tar.gz tm-scripts-765e0502c315d250ab8f671bc726fef6f63a026a.tar.xz tm-scripts-765e0502c315d250ab8f671bc726fef6f63a026a.zip | |
restructuring...
Diffstat (limited to 'remote/tools/systemd/systemd.build')
| -rw-r--r-- | remote/tools/systemd/systemd.build | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/remote/tools/systemd/systemd.build b/remote/tools/systemd/systemd.build deleted file mode 100644 index c0e40f9f..00000000 --- a/remote/tools/systemd/systemd.build +++ /dev/null @@ -1,51 +0,0 @@ -#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." - mkdir -p $TOOL_DIR/$TOOL/build - pinfo "calling make install" - DESTDIR=$TOOL_DIR/$TOOL/build make install || perror "make install failed." - cd - - touch .built - fi -} - -post_copy() { - # copy static data files - cp -r $TOOL_DIR/$TOOL/data/* $TARGET_BUILD_DIR || perror "copying data files failed." - - # 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" -} - |
