diff options
| author | root | 2013-02-27 22:19:53 +0100 |
|---|---|---|
| committer | root | 2013-02-27 22:19:53 +0100 |
| commit | 83dcd2b34cefd5b324b5a4f54be141a858dc5238 (patch) | |
| tree | d0b5db5602029646fe4af2e22891bed813406258 /remote/tools/systemd | |
| parent | tihi (diff) | |
| download | tm-scripts-83dcd2b34cefd5b324b5a4f54be141a858dc5238.tar.gz tm-scripts-83dcd2b34cefd5b324b5a4f54be141a858dc5238.tar.xz tm-scripts-83dcd2b34cefd5b324b5a4f54be141a858dc5238.zip | |
Generalization:
- Rework install_dependencies: make it a global function, not per tools.build
- Determine packet manager of local system (currently supports apt/dpkg and zypper/rpm)
- Look for packet manager specific tools.conf.$MANAGER first, use tools.conf otherwise
- Added list_package_files which should be used instead of "for $(dpkg -L | grep ...) ... >> ... done"
Diffstat (limited to 'remote/tools/systemd')
| -rw-r--r-- | remote/tools/systemd/systemd.build | 37 | ||||
| -rw-r--r-- | remote/tools/systemd/systemd.conf | 2 |
2 files changed, 12 insertions, 27 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." diff --git a/remote/tools/systemd/systemd.conf b/remote/tools/systemd/systemd.conf index 98cd8ba9..c5e72aeb 100644 --- a/remote/tools/systemd/systemd.conf +++ b/remote/tools/systemd/systemd.conf @@ -1,6 +1,6 @@ VERSION=systemd-197 URL=http://www.freedesktop.org/software/systemd/${VERSION}.tar.xz -DEPS=" intltool +REQUIRED_DEPENDENCIES=" intltool gperf dbus pkg-config |
