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/modules/busybox | |
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/modules/busybox')
-rw-r--r-- | remote/modules/busybox/busybox.build | 27 | ||||
-rw-r--r-- | remote/modules/busybox/busybox.conf | 6 |
2 files changed, 33 insertions, 0 deletions
diff --git a/remote/modules/busybox/busybox.build b/remote/modules/busybox/busybox.build new file mode 100644 index 00000000..bc2adc64 --- /dev/null +++ b/remote/modules/busybox/busybox.build @@ -0,0 +1,27 @@ +#!/bin/bash + +fetch_source() +{ + [ ! -d src ] && mkdir src + if [ ! -e .fetched_source ]; then + git clone "${GIT}" src + touch .fetched_source + fi +} + +build() +{ + if [ ! -e .built ]; then + cd src + pinfo "Running make" + make -j5 || perror "failed." + pinfo "Running make install" + make CONFIG_PREFIX="${MODULE_DIR}"/build/"${PREFIX}" install || perror "failed" + cd - + touch .built + fi +} + +post_copy() { + : +} diff --git a/remote/modules/busybox/busybox.conf b/remote/modules/busybox/busybox.conf new file mode 100644 index 00000000..f7c866f2 --- /dev/null +++ b/remote/modules/busybox/busybox.conf @@ -0,0 +1,6 @@ +GIT=git://git.openslx.org/openslx/tools/busybox +PREFIX="/openslx" +REQUIRED_BINARIES=" busybox" +REQUIRED_DIRECTORIES=" ${PREFIX}/bin + ${PREFIX}/sbin + ${PREFIX}/usr" |