summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-02-14 11:04:55 +0000
committerJay Freeman <saurik@saurik.com>2008-02-14 11:04:55 +0000
commit365cff691a0c0b9663a4a90bcb22fa88afdaeee4 (patch)
treec1cfaa41521d96170543443fb64865f210c5e7db
parenta558f02107242688bdfcac53e0b8f70adff91c89 (diff)
Upgraded Cydia to latest version, and have began integrating installation scripts.
git-svn-id: http://svn.telesphoreo.org/trunk@76 514c082c-b64e-11dc-b46d-3d985efe055d
-rw-r--r--data/cydia/_metadata/version2
-rw-r--r--data/cydia/cydia-0.9.2305.tgzbin52981 -> 0 bytes
-rw-r--r--data/cydia/cydia-0.9.2309.tgzbin0 -> 54086 bytes
-rwxr-xr-xdata/cydia/install.sh37
-rw-r--r--data/cydia/make.sh3
5 files changed, 41 insertions, 1 deletions
diff --git a/data/cydia/_metadata/version b/data/cydia/_metadata/version
index d1676312b..f3e20f86a 100644
--- a/data/cydia/_metadata/version
+++ b/data/cydia/_metadata/version
@@ -1 +1 @@
-0.9.2305
+0.9.2309
diff --git a/data/cydia/cydia-0.9.2305.tgz b/data/cydia/cydia-0.9.2305.tgz
deleted file mode 100644
index b03d47239..000000000
--- a/data/cydia/cydia-0.9.2305.tgz
+++ /dev/null
Binary files differ
diff --git a/data/cydia/cydia-0.9.2309.tgz b/data/cydia/cydia-0.9.2309.tgz
new file mode 100644
index 000000000..72dc2f212
--- /dev/null
+++ b/data/cydia/cydia-0.9.2309.tgz
Binary files differ
diff --git a/data/cydia/install.sh b/data/cydia/install.sh
new file mode 100755
index 000000000..bfac1459d
--- /dev/null
+++ b/data/cydia/install.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+shopt -s extglob nullglob
+
+function df_() {
+ free=$(df -B1 "$1")
+ free=${free% *%*}
+ free=${free%%*( )}
+ free=${free##* }
+ echo "${free}"
+}
+
+for dir in \
+ /Applications \
+ /Library/Ringtones \
+ /Library/Wallpaper \
+ /System/Library/Fonts \
+ /usr/share
+do if [[ -d ${dir} && ! -h ${dir} ]]; then
+ used=$(du -bs "${dir}")
+ used=${used%%$'\t'*}
+ free=$(df_ /var)
+
+ if [[ ${used} -lt ${free} ]]; then
+ base=$(basename "${dir}")
+
+ new=/var/${base}
+ if [[ -e ${new} ]]; then
+ new=$(TMPDIR=/var mktemp -t /var -d cydia.XXXXXX)
+ fi
+
+ mv -T "${dir}" "${new}"
+ ln -s "${new}" "${dir}"
+ fi
+fi; done
+
+[[ $(df_ /) -gt 33554432 && $(df_ /var) -gt 33554432 ]]
diff --git a/data/cydia/make.sh b/data/cydia/make.sh
index 7e988c316..bc84601d2 100644
--- a/data/cydia/make.sh
+++ b/data/cydia/make.sh
@@ -12,3 +12,6 @@ pkg: chmod +s /Applications/Cydia.app/Cydia
pkg: mkdir -p /System/Library/PreferenceBundles
pkg: cp -a CydiaSettings.bundle /System/Library/PreferenceBundles
+
+pkg: mkdir -p /usr/libexec/cydia
+pkg: cp -a %/install.sh /usr/libexec/cydia