summaryrefslogtreecommitdiffstats
path: root/remote/modules/busybox
diff options
context:
space:
mode:
authorJonathan Bauer2013-03-14 18:30:10 +0100
committerJonathan Bauer2013-03-14 18:30:10 +0100
commit765e0502c315d250ab8f671bc726fef6f63a026a (patch)
treee5624ec583c98fd3202caefad9b37289d9cad348 /remote/modules/busybox
parentbase -> base32 and started new base31 (diff)
downloadtm-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.build27
-rw-r--r--remote/modules/busybox/busybox.conf6
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"