This repository has been archived by the owner on Jan 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[makefile,{pre,post}{inst,rm}] this really sucks 😕
- Loading branch information
Showing
5 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# relaunch imagent so we get injected into it | ||
launchctl stop com.apple.imagent | ||
|
||
# create our providers directory and move it to the stash | ||
if [[ -x /usr/libexec/cydia/move.sh ]]; then | ||
/usr/libexec/cydia/move.sh /Library/TypeStatus | ||
fi | ||
|
||
mkdir -p /Library/TypeStatus/Providers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# relaunch imagent so we get injected into it, but not when we’re upgrading | ||
# or it’ll get stopped again by postinst | ||
if [[ "$1" != "upgrade" ]]; then | ||
if [[ $1 != upgrade ]]; then | ||
launchctl stop com.apple.imagent | ||
else | ||
: | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# if /Library/TypeStatus exists and /usr/lib/TypeStatus/Providers doesn’t yet, move it over. else if | ||
# cydia’s move script exists, use it to create a stashed providers dir. else, just create it ourselves | ||
if [[ -d /Library/TypeStatus || -h /Library/TypeStatus ]] && [[ ! -d /usr/lib/TypeStatus/Providers ]]; then | ||
mv /Library/TypeStatus /usr/lib/TypeStatus | ||
rm -rf /Library/TypeStatus | ||
elif [[ -x /usr/libexec/cydia/move.sh ]]; then | ||
bash /usr/libexec/cydia/move.sh /usr/lib/TypeStatus | ||
else | ||
mkdir -p /usr/lib/TypeStatus/Providers | ||
fi | ||
|
||
# if /Library/TypeStatus isn’t a symlink, make it be one now | ||
if [[ ! -h /Library/TypeStatus ]]; then | ||
ln -s /usr/lib/TypeStatus /Library/TypeStatus | ||
fi |