diff options
| author | Jonathan Bauer | 2012-09-28 15:40:54 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2012-09-28 15:40:54 +0200 |
| commit | 19a3de20420827bed97b6ad0ae6fe3dd5d95c2a9 (patch) | |
| tree | 9c9eef5b0f6cb77099f8a035d9382174a913885f /remote | |
| parent | Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff) | |
| download | tm-scripts-19a3de20420827bed97b6ad0ae6fe3dd5d95c2a9.tar.gz tm-scripts-19a3de20420827bed97b6ad0ae6fe3dd5d95c2a9.tar.xz tm-scripts-19a3de20420827bed97b6ad0ae6fe3dd5d95c2a9.zip | |
plymouth and busybox scripts (not finished)
Diffstat (limited to 'remote')
| -rw-r--r-- | remote/foo | 1 | ||||
| -rwxr-xr-x | remote/tools/busybox/build.busybox | 19 | ||||
| -rw-r--r-- | remote/tools/busybox/setup-busybox.conf | 2 | ||||
| -rwxr-xr-x | remote/tools/plymouth/build.plymouth | 45 | ||||
| -rw-r--r-- | remote/tools/plymouth/setup-plymouth.conf | 3 |
5 files changed, 69 insertions, 1 deletions
diff --git a/remote/foo b/remote/foo deleted file mode 100644 index 844edf60..00000000 --- a/remote/foo +++ /dev/null @@ -1 +0,0 @@ -alösk diff --git a/remote/tools/busybox/build.busybox b/remote/tools/busybox/build.busybox new file mode 100755 index 00000000..8671f4b6 --- /dev/null +++ b/remote/tools/busybox/build.busybox @@ -0,0 +1,19 @@ +#!/bin/bash + +. setup-busybox.conf + +fetch_sources() { + if [ ! -e .fetched_sources ]; then + git clone $GIT + touch .fetched_sources + fi +} + +build() { + if [ ! -e .built ]; then + cd busybox + make + cd - + touch .built + fi +} diff --git a/remote/tools/busybox/setup-busybox.conf b/remote/tools/busybox/setup-busybox.conf new file mode 100644 index 00000000..239acb74 --- /dev/null +++ b/remote/tools/busybox/setup-busybox.conf @@ -0,0 +1,2 @@ +git=git://git.openslx.org/openslx/tools/busybox +deps="" diff --git a/remote/tools/plymouth/build.plymouth b/remote/tools/plymouth/build.plymouth new file mode 100755 index 00000000..fcaa66ea --- /dev/null +++ b/remote/tools/plymouth/build.plymouth @@ -0,0 +1,45 @@ +#!/bin/bash + +. setup-plymouth.conf + +install_dependencies() { + apt-get install --force-yes $deps +} + +fetch_sources() { + if [ ! -e .fetched_sources ]; then + # download and extract tarball + wget -q $url + TARBALL=`basename $url` + tar xvf $TARBALL + rm $TARBALL + touch .fetched_sources + fi +} + +build() { + if [ ! -e .built ]; then + ./configure --enable-systemd-integration + make + [ ! -d $INIT_DIR ] && mkdir $INIT_DIR + DESTDIR="$INIT_DIR" make install + touch .built + fi +} + +build_package() { + + COPYFILES_LIST="/tmp/plymouth_files_$$" + INSTALL_DIR=$INIT_DIR + + for bin in $INSTALL_DIR/bin/plymouth $INSTALL_DIR/sbin/plymouthd + do + for i in $(ldd $bin |awk -F ">" '{print $2}'|awk '{print $1}'|grep ^/) + do + filename_base=$(basename $i | awk -F "." '{print $1}') + filename_path=$(dirname $i) + echo "$filename_path/$filename_base*" >> $COPYFILES_LIST + done + done + tar -cpv $(cat $COPYFILES_LIST) | tar -xp -C $INSTALL_DIR +} diff --git a/remote/tools/plymouth/setup-plymouth.conf b/remote/tools/plymouth/setup-plymouth.conf new file mode 100644 index 00000000..e6c210b6 --- /dev/null +++ b/remote/tools/plymouth/setup-plymouth.conf @@ -0,0 +1,3 @@ +version=plymouth-0.8.6.1 +url=http://www.freedesktop.org/software/plymouth/releases/${version}.tar.bz2 +deps="libpng-dev libpango1.0-dev libcairo-dev libgtk2.0-dev libdrm-dev" |
