summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2009-01-27 21:19:12 +0000
committerJay Freeman <saurik@saurik.com>2009-01-27 21:19:12 +0000
commit3299c92e57545f87dd99f0e5f5aaf46dfb9c9d21 (patch)
tree269d14baa2687b98984576c99349a7f454b4bdde
parent182b1b2ee8b50c50fa71cbc724499894361f82d0 (diff)
Use scripts to do permissions with PwnageTool.
git-svn-id: http://svn.telesphoreo.org/trunk@544 514c082c-b64e-11dc-b46d-3d985efe055d
-rwxr-xr-xbootstrap.sh32
1 files changed, 19 insertions, 13 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 2b7685fca..e9062cb0d 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -12,7 +12,7 @@ svn export "${PKG_BASE}/over" "${PKG_BOOT}"
mkdir -p "${PKG_BOOT}/var/lib/dpkg/info"
-PKG_REQS=(adv-cmds apt base bash coreutils cydia cydia-sources gawk grep inetutils less libarmfp libgcc nano network-cmds nvi rsync sed shell-cmds system-cmds tar unzip zip)
+PKG_REQS=(adv-cmds apt base bash coreutils cydia cydia-sources grep inetutils less libgcc nano network-cmds sed shell-cmds system-cmds tar unzip)
cd "${PKG_BASE}/data"
PKG_REQS=($({
@@ -49,6 +49,8 @@ done
rm -rf "${PKG_BASE}/temp"
cd "${PKG_BOOT}"
+"${PKG_BASE}"/fix.sh
+
PKG_RSLT="${PKG_BASE}/rslt"
mkdir -p "${PKG_RSLT}"
@@ -72,19 +74,17 @@ cp -a * "${PKG_RSLT}/CydiaInstaller.bundle/files"
<key>Identifier</key>
<string>org.saurik.cydia</string>
<key>Description</key>
- <string>/Working/ set of Unix tools and frameworks.</string>
+ <string>Unix Subsystem w/ Advanced Installer</string>
<key>SupportedFirmware</key>
<array>
- <string>iPod1,1_2.0_5A240d</string>
- <string>iPod1,1_2.0_5A225c</string>
- <string>iPhone1,1_1.2.0_5A147p</string>
- <string>iPhone1,1_1.2.0_5A225c</string>
- <string>iPhone1,1_2.0_5A240d</string>
- <string>iPhone1,1_2.0_5A274d</string>
- <string>iPhone1,1_2.0_5A308</string>
- <string>iPhone1,1_2.0_5A311</string>
- <string>iPhone1,1_2.0_5A331</string>
- <string>iPhone1,1_2.0_5A345</string>
+EOF
+
+ cat "${PKG_BASE}/arch/${PKG_ARCH}/firmware" | sed -e '
+ s/^/ <string>/
+ s/$/<\/string>/
+ '
+
+ cat <<EOF
</array>
<key>Commands</key>
<array>
@@ -121,6 +121,12 @@ EOF
done
cat <<EOF
+ <dict>
+ <key>Action</key>
+ <string>RunScript</string>
+ <key>File</key>
+ <string>space.sh</string>
+ </dict>
</array>
<key>Size</key>
<integer>$(du -bs "${PKG_RSLT}/CydiaInstaller.bundle/files" | cut -d $'\t' -f 1)</integer>
@@ -129,6 +135,7 @@ EOF
EOF
} >"${PKG_RSLT}/CydiaInstaller.bundle/Info.plist"
+cp -a "${PKG_BASE}"/pwnr/* "${PKG_RSLT}"/CydiaInstaller.bundle
tar -zcf "${PKG_RSLT}/Pwnage_${PKG_ARCH}.tgz" -C "${PKG_RSLT}" CydiaInstaller.bundle
rm -f "${PKG_RSLT}/Manual_${PKG_ARCH}.zip"
@@ -157,7 +164,6 @@ if [[ ${PKG_ARCH} == darwin-arm ]]; then
cp -a usr/lib/libintl.8.0.2.dylib usr/libexec/cydia_
cp -a usr/lib/libncurses.5.dylib usr/libexec/cydia_
cp -a usr/lib/libreadline.5.2.dylib usr/libexec/cydia_
- cp -a usr/libexec/cydia/move.sh usr/libexec/cydia_
rm -f "${PKG_RSLT}/AppTapp_${PKG_ARCH}.xml"
find * -type l -print -o -name "terminfo" -prune | while read -r link; do