diff options
Diffstat (limited to 'remote/tools/systemd/systemd.build')
| -rw-r--r-- | remote/tools/systemd/systemd.build | 37 |
1 files changed, 11 insertions, 26 deletions
diff --git a/remote/tools/systemd/systemd.build b/remote/tools/systemd/systemd.build index 7d9588c0..1d5a9a87 100644 --- a/remote/tools/systemd/systemd.build +++ b/remote/tools/systemd/systemd.build @@ -5,34 +5,19 @@ fetch_source () { touch .fetched_source } -install_dependencies() { - # quick fix for missing libkmod repo... - #libkmod=$(apt-cache search libkmod-dev) - #if [[ -z $libkmod ]]; - #then - # echo "libkmod cannot be found. Adding ppa:pitti/systemd" - # add-apt-repository --yes ppa:pitti/systemd - # apt-get update --force-yes - #fi - # install libkmod from source - # TODO: Use download_untar - local libkmodversion=kmod-12 - if [ ! -d $libkmodversion ]; then - wget http://www.kernel.org/pub/linux/utils/kernel/kmod/${libkmodversion}.tar.gz - tar xf $libkmodversion.tar.gz - rm ${libkmodversion}.tar.gz - cd $libkmodversion - ./configure - make -j5 - make install - cd - - fi - - apt-get install -y $DEPS -} - build () { if [ ! -e .built ]; then + local libkmodversion=kmod-12 + if [ ! -d $libkmodversion ]; then + wget http://www.kernel.org/pub/linux/utils/kernel/kmod/${libkmodversion}.tar.gz + tar xf $libkmodversion.tar.gz + rm ${libkmodversion}.tar.gz + cd $libkmodversion + ./configure + make -j5 + make install + cd - + fi cd "src/$VERSION/" pinfo "calling configure" ./configure --disable-manpages --enable-split-usr --sysconfdir="/etc" --enable-gtk-doc-html=no || perror "configure failed." |
