summaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-02-14 14:32:59 +0000
committerJay Freeman <saurik@saurik.com>2008-02-14 14:32:59 +0000
commit6b964b69935fcc52a1c0a95695ca436e00b6690f (patch)
treea863dd50c7cc7fe19b9759360ed4d5b545f9ba0f /bootstrap.sh
parent459c9779557e19437de4a02f6311c322989228b3 (diff)
Drastically reworked bootstrap package.
git-svn-id: http://svn.telesphoreo.org/trunk@88 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh22
1 files changed, 20 insertions, 2 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index e014e820b..0033e56ad 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -8,9 +8,13 @@ export PKG_BOOT=${PKG_BASE}/Packager
rm -rf "${PKG_BOOT}"
svn export "${PKG_BASE}/over" "${PKG_BOOT}"
+arm-apple-darwin-gcc -o "${PKG_BOOT}/usr/libexec/cydia_/godmode" "${PKG_BASE}/tool/godmode.c"
+arm-apple-darwin-gcc -o "${PKG_BOOT}/usr/libexec/cydia_/symlink" "${PKG_BASE}/tool/symlink.c"
+chmod +s "${PKG_BOOT}/usr/libexec/cydia_/godmode"
+
mkdir -p "${PKG_BOOT}/var/lib/dpkg/info"
-PKG_REQS=(adv-cmds base bash coreutils cydia gawk grep inetutils nano network-cmds nvi saurik sed shell-cmds system-cmds unzip zip)
+PKG_REQS=(adv-cmds base bash coreutils cydia gawk grep inetutils less libarmfp nano network-cmds saurik sed shell-cmds system-cmds unzip zip)
cd "${PKG_BASE}/data"
PKG_REQS=($(find -L "${PKG_REQS[@]}" | while read -r line; do realpath "${line}"; done | grep "/home/saurik/telesphoreo/data/[^/]*$" | sed -e 's/.*\///' | sort -u))
@@ -37,10 +41,24 @@ cd "${PKG_BOOT}"
rm -f ../Packager.xml
find * -type l -print -o -name "terminfo" -prune | while read -r link; do
- echo "<array><string>Exec</string><string>/bin/ln -fs $(readlink "${link}") /${link}</string></array>"
+ echo "<array><string>Exec</string><string>/usr/libexec/cydia/symlink $(readlink "${link}") /${link}</string></array>"
rm -f "${link}"
done >>../Packager.xml
+mkdir -p usr/libexec/cydia/boot
+
+cp -a bin/bash usr/libexec/cydia/boot
+cp -a bin/df usr/libexec/cydia/boot
+cp -a bin/ln usr/libexec/cydia/boot
+cp -a bin/mktemp usr/libexec/cydia/boot
+cp -a bin/mv usr/libexec/cydia/boot
+cp -a usr/bin/basename usr/libexec/cydia/boot
+cp -a usr/bin/du usr/libexec/cydia/boot
+cp -a usr/lib/libhistory.5.2.dylib usr/libexec/cydia/boot
+cp -a usr/lib/libintl.8.0.2.dylib usr/libexec/cydia/boot
+cp -a usr/lib/libncurses.5.dylib usr/libexec/cydia/boot
+cp -a usr/lib/libreadline.5.2.dylib usr/libexec/cydia/boot
+
rm -f ../Packager.zip
zip -qry ../Packager.zip *
rm -rf "${PKG_BOOT}"