Theoretically this framework can create installer packages for OS X from versions 10.3 to 10.8 (and higher) inclusive, and for all three processor architectures on which OS X is supported (PowerPC, Intel x86 and Intel x86_64). Packages have so far been tested on the following platforms:
+10.8 x86_64
10.7 x86_64
10.6 x86_64 & x86
10.5 x86_64, x86 & PPC
ATTRIBUTION
-This module is based on the previous work done by Mark Miller (macsetup module) and David Schmidt & John Daniels (osxsetup module), to whom I am indebted. Thanks also to Fabian Keil for occasional technical and significant licensing guidance, and to Andrew Jones, Andreas Rutkauskas, Julien Joubert and Lizik Grelier for testing.
+This module is based on the previous work done by Mark Miller (macsetup module) and David Schmidt & John Daniels (osxsetup module), to whom I am indebted. Thanks also to Fabian Keil for occasional technical and significant licensing guidance, and to Andrew Jones, Andreas Rutkauskas, Julien Joubert, Lizik Grelier and Steven Kolins for testing.
Ian Silvester February 2012
\ No newline at end of file
# check the release number
#
case "${darwin_major_rel_num}" in
- # Mac OS X 10.7, 10.6, 10.5
- 11|10|9)
+ # Mac OS X 10.5 or higher
+ 9|1*)
GNAME="`/usr/bin/dscl /Local/Default -list /groups | /usr/bin/grep -E '^(_)?privoxy?'`"
UNAME="`/usr/bin/dscl /Local/Default -list /users | /usr/bin/grep -E '^(_)?privoxy?'`"
SCRIPT="privoxy-create-dscl.sh"
\b Thanks\
\b0 \
-This installer is based on previous work done by Mark Miller, David Schmidt and John Daniels, to whom I am indebted. Thanks also to Fabian Keil for occasional technical and significant licensing guidance, and to Andrew Jones, Andreas Rutkauskas, Julien Joubert and Lizik Grelier for testing.\
+This installer is based on previous work done by Mark Miller, David Schmidt and John Daniels, to whom I am indebted. Thanks also to Fabian Keil for occasional technical and significant licensing guidance, and to Andrew Jones, Andreas Rutkauskas, Julien Joubert, Lizik Grelier and Steven Kolins for testing.\
\
\
\
# what is the kernel version
darwin_major_rel_num="`/usr/bin/uname -r | /usr/bin/sed 's/\..*//'`"
case "${darwin_major_rel_num}" in
- # Mac OS X 10.7, 10.6, 10.5
- 11|10|9)
+ # Mac OS X 10.5 or higher
+ 9|1*)
/bin/launchctl load /Library/LaunchDaemons/org.ijbswa.privoxy.plist
;;
# Mac OS X 10.4, 10.3
# what is the kernel version
darwin_major_rel_num="`/usr/bin/uname -r | /usr/bin/sed 's/\..*//'`"
case "${darwin_major_rel_num}" in
- # Mac OS X 10.7, 10.6, 10.5
- 11|10|9)
+ # Mac OS X 10.5 or higher
+ 9|1*)
/bin/launchctl unload /Library/LaunchDaemons/org.ijbswa.privoxy.plist
;;
# Mac OS X 10.4, 10.3
darwin_major_rel_num="`/usr/bin/uname -r | /usr/bin/sed 's/\..*//'`"
case "${darwin_major_rel_num}" in
- # Mac OS X 10.7, 10.6, 10.5
- 11|10|9)
+ # Mac OS X 10.5 or higher
+ 9|1*)
# Delete Privoxy LaunchDaemon
echo 'Delete Privoxy LaunchDaemon (an error will be thrown regarding "no such process")'
/bin/launchctl unload /Library/LaunchDaemons/org.ijbswa.privoxy.plist
# 5. Disable the startup method not necessary for the host's OS X version and start Privoxy
#
case "${darwin_major_rel_num}" in
- # Mac OS X 10.7, 10.6, 10.5
- 11|10|9)
+ # Mac OS X 10.5 or higher
+ 9|1*)
# delete Privoxy StartupItem
echo 'Delete the Privoxy StartupItem since it is not required for this OS X version' >> ${logfile}
if [ -d /Library/StartupItems/Disabled/Privoxy ]; then
# 5. Disable the startup method not necessary for the host's OS X version and start Privoxy
#
case "${darwin_major_rel_num}" in
- # Mac OS X 10.7, 10.6, 10.5
- 11|10|9)
+ # Mac OS X 10.5 or higher
+ 9|1*)
# delete Privoxy StartupItem
echo 'Delete the Privoxy StartupItem since it is not required for this OS X version' >> ${logfile}
if [ -d /Library/StartupItems/Disabled/Privoxy ]; then
# 3. Create the privoxy group and user (using the host-specific command to do so)
#
case "${darwin_major_rel_num}" in
- # Mac OS X 10.7, 10.6, 10.5
- 11|10|9)
+ # Mac OS X 10.5 or higher
+ 9|1*)
GNAME="`/usr/bin/dscl /Local/Default -list /groups | /usr/bin/grep -E '^(_)?privoxy?'`"
UNAME="`/usr/bin/dscl /Local/Default -list /users | /usr/bin/grep -E '^(_)?privoxy?'`"
# create group if it does not exist
# 3. Create the privoxy group and user (using the host-specific command to do so)
#
case "${darwin_major_rel_num}" in
- # Mac OS X 10.7, 10.6, 10.5
- 11|10|9)
+ # Mac OS X 10.5 or higher
+ 9|1*)
GNAME="`/usr/bin/dscl /Local/Default -list /groups | /usr/bin/grep -E '^(_)?privoxy?'`"
UNAME="`/usr/bin/dscl /Local/Default -list /users | /usr/bin/grep -E '^(_)?privoxy?'`"
# create group if it does not exist