diff options
author | Michael Neves | 2012-09-28 16:24:52 +0200 |
---|---|---|
committer | Michael Neves | 2012-09-28 16:24:52 +0200 |
commit | 0100f9bf58ce11b242099ece59e68dbf3b6ad625 (patch) | |
tree | 3f0fcc30bfaea71564789faea00de1d1dc150167 | |
parent | file permissions... (diff) | |
download | tm-scripts-0100f9bf58ce11b242099ece59e68dbf3b6ad625.tar.gz tm-scripts-0100f9bf58ce11b242099ece59e68dbf3b6ad625.tar.xz tm-scripts-0100f9bf58ce11b242099ece59e68dbf3b6ad625.zip |
git ignore
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | remote/tools/systemd/build.systemd | 33 | ||||
-rw-r--r-- | remote/tools/systemd/systemd.conf | 2 |
3 files changed, 39 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..9782d8d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*~ +tools/initramfs +source/*/tmp +source/*/build diff --git a/remote/tools/systemd/build.systemd b/remote/tools/systemd/build.systemd index e69de29b..f8616da2 100644 --- a/remote/tools/systemd/build.systemd +++ b/remote/tools/systemd/build.systemd @@ -0,0 +1,33 @@ +#tool/distro specific functions for fetching, building and installing dependencies + +fetch_source () +{ +# if [ -d $VERSION/ ]; then +# read -p "$VERSION already exists and would be overwritten, continue anyway (y/n)?" +# [ "$REPLY" == "n" ] && exit 1 +# fi + + if [ ! -z "$GIT" ]; then + git clone $GIT $VERSION + elif [ ! -z "$URL" ]; then + wget $URL + tar xJf $VERSION.tar.xz + rm $VERSION.tar.xz + else + echo "Could not fetch source for $TOOL. No location specified." + fi +} + +install_dependencies() +{ + apt-get install --force-yes $DEPS +} + +build () +{ + cd $VERSION + ./configure --disable-manpages + make + mkdir -p $TMP_DIR + DESTDIR=$DESTDIR make install +} diff --git a/remote/tools/systemd/systemd.conf b/remote/tools/systemd/systemd.conf index d2a5ab75..7a25b08a 100644 --- a/remote/tools/systemd/systemd.conf +++ b/remote/tools/systemd/systemd.conf @@ -1,3 +1,5 @@ +#tool config + version=systemd-43 url=http://www.freedesktop.org/software/systemd/${version}.tar.xz deps="intltool gperf libcap-dev dbus libudev-dev pkg-config libdbus-1-dev libkmod-dev" |