summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
authorMichael Neves2013-01-03 16:51:17 +0100
committerMichael Neves2013-01-03 16:51:17 +0100
commit449bc36e72973f151f73fc11901a4ee47192145d (patch)
treed15ee07cf263bfe29a07b1695809591f651e0022 /remote
parentadd libresolv to list of wanted libs in base (diff)
downloadtm-scripts-449bc36e72973f151f73fc11901a4ee47192145d.tar.gz
tm-scripts-449bc36e72973f151f73fc11901a4ee47192145d.tar.xz
tm-scripts-449bc36e72973f151f73fc11901a4ee47192145d.zip
check if file is ELF fix
Diffstat (limited to 'remote')
-rw-r--r--remote/.setup_tools.swpbin0 -> 16384 bytes
-rwxr-xr-xremote/setup_tools10
-rw-r--r--remote/tools/xorg/.xorg.conf.swpbin0 -> 12288 bytes
-rw-r--r--remote/tools/xorg/xorg.build34
-rw-r--r--remote/tools/xorg/xorg.conf27
5 files changed, 67 insertions, 4 deletions
diff --git a/remote/.setup_tools.swp b/remote/.setup_tools.swp
new file mode 100644
index 00000000..c2db4851
--- /dev/null
+++ b/remote/.setup_tools.swp
Binary files differ
diff --git a/remote/setup_tools b/remote/setup_tools
index 95e3e0a9..f04f082c 100755
--- a/remote/setup_tools
+++ b/remote/setup_tools
@@ -49,10 +49,12 @@ copyfileswithdependencies ()
for FILENAME in ${REQUIRED_BINARIES}
do
- for f in $(find . -name ${FILENAME} -type f -executable)
- do
- [ $(file $f |grep -c ELF) -eq 1 ] && FILE=$f
- done
+ FILE=$(find . -name ${FILENAME} -type f -executable | xargs grep -l ELF)
+ if [ -z "$FILE" ]; then
+ echo "No Binary found for ${FILENAME}. Skipping."
+ echo "-----------------------------------------------------------------"
+ continue
+ fi
echo "Found ${FILENAME} at ${FILE}. Searching libraries..."
echo ${FILE} >> ${COPYFILES_LIST}
# fetch dependencies
diff --git a/remote/tools/xorg/.xorg.conf.swp b/remote/tools/xorg/.xorg.conf.swp
new file mode 100644
index 00000000..166943d9
--- /dev/null
+++ b/remote/tools/xorg/.xorg.conf.swp
Binary files differ
diff --git a/remote/tools/xorg/xorg.build b/remote/tools/xorg/xorg.build
new file mode 100644
index 00000000..4f8e950d
--- /dev/null
+++ b/remote/tools/xorg/xorg.build
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+install_dependencies() {
+ echo "No dependencies."
+}
+
+fetch_source() {
+ echo "Extracting from running system..."
+}
+
+build() {
+
+ BUILDDIR=$TOOL_DIR/$TOOL/build
+
+ COPYLIST="list_dpkg_output"
+ [ -e $COPYLIST ] && rm $COPYLIST
+
+ for PACKAGE in ${REQUIRED_PACKAGES}
+ do
+ for FILE in $(dpkg -L ${PACKAGE} | grep -v share/doc | grep -v share/man)
+ do
+ [ ! -d $FILE ] && echo $FILE >> $COPYLIST
+ done
+ done
+
+ # prepare target dir & copy there
+ [ ! -d $BUILDDIR ] && mkdir -p $BUILDDIR
+ tar -cpv $(cat $COPYLIST|sort -u) | tar -xpv -C $BUILDDIR
+
+}
+
+post_copy() {
+ :
+}
diff --git a/remote/tools/xorg/xorg.conf b/remote/tools/xorg/xorg.conf
new file mode 100644
index 00000000..db547648
--- /dev/null
+++ b/remote/tools/xorg/xorg.conf
@@ -0,0 +1,27 @@
+REQUIRED_PACKAGES=" xserver-xorg
+ xserver-xorg-core
+ xserver-xorg-video-intel
+ xserver-xorg-video-openchrome
+ xserver-xorg-video-savage
+ xserver-xorg-video-trident
+ xserver-xorg-video-ati
+ xserver-xorg-video-mach64
+ xserver-xorg-video-qxl
+ xserver-xorg-video-siliconmotion
+ xserver-xorg-video-vesa
+ xserver-xorg-video-cirrus
+ xserver-xorg-video-mga
+ xserver-xorg-video-r128
+ xserver-xorg-video-sis
+ xserver-xorg-video-vmware
+ xserver-xorg-video-fbdev
+ xserver-xorg-video-neomagic
+ xserver-xorg-video-radeon
+ xserver-xorg-video-sisusb
+ xserver-xorg-video-geode
+ xserver-xorg-video-nouveau
+ xserver-xorg-video-s3
+ xserver-xorg-video-tdfx"
+REQUIRED_BINARIES=" Xorg vmwarectrl gtf cvt X"
+REQUIRED_DIRECTORIES="/lib/udev /usr/lib /usr/share/X11/xorg.conf.d"
+REQUIRED_FILES=""