summaryrefslogtreecommitdiffstats
path: root/remote/tools/base/build.base
diff options
context:
space:
mode:
Diffstat (limited to 'remote/tools/base/build.base')
-rw-r--r--remote/tools/base/build.base34
1 files changed, 34 insertions, 0 deletions
diff --git a/remote/tools/base/build.base b/remote/tools/base/build.base
new file mode 100644
index 00000000..b6324d47
--- /dev/null
+++ b/remote/tools/base/build.base
@@ -0,0 +1,34 @@
+install_dependencies() {
+ :
+}
+
+fetch_source() {
+ :
+}
+
+build() {
+ if [ ! -e .built ]; then
+ [ ! -d $TOOL_DIR/$TOOL/build ] && mkdir -p $TOOL_DIR/$TOOL/build
+ FILELIST="filelist"
+ for bin in $REQUIRED_BINARIES
+ do
+ echo $(which $bin) >> $FILELIST
+ done
+ for file in $REQUIRED_FILES
+ do
+ echo $file >> $FILELIST
+ done
+
+ touch .built
+ tar -cpv $(cat $FILELIST) | tar -xpv -C $TOOL_DIR/$TOOL/build &>/dev/null
+
+ # quick fix for /etc/mtab
+ ln -s /proc/self/mounts $TOOL_DIR/$TOOL/build/etc/mtab
+
+ # quick fix for missing group in /etc/group
+ echo "lock:x:128:" >> $TOOL_DIR/$TOOL/build/etc/group && echo "FIXED GROUP"
+
+ sed -i.bak "s/root:.*/root:\$6\$QGcBjw6e\$sJvGXBfKuNd4Cx5\.aVxJT7PCq\/AWrP\/JLgvDHBGN164Rp2HRIENPQzieO\/2ctlQS7yRgWwaWTqJkZr7Uq37af1:15657:0:99999:7:::/g" $TOOL_DIR/$TOOL/build/etc/shadow
+
+ fi
+}