summaryrefslogtreecommitdiff
path: root/data/cydia
diff options
context:
space:
mode:
Diffstat (limited to 'data/cydia')
-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