Anwar Shiekh wrote:
My problem is that the G5 PPC Mac is my main machine at home, so I can't afford to experiment on it; as a result I cannot be of much help. Hopefully you have access to a machine running 10.5
Nope. I don't. I was hoping that maybe when I do my final tests on my script you could test it for me on 10.5.
I'm using 10.6.7 on a 2010 Mac Pro so I have multiple internal drives available. Since my boot drive is separate from my home directory drive and can simply switch boot to another copy of my boot drive drive for testing without fear of any annoying disasters.
It is great how there is a PPC Bash installer for that bug, and hopefully soon also one for NTP for us still on PPC Macs. It would need universal binaries and I can compile the PPC binaries for anyone that might need them; I think the 4.2.8 NTP code is up to beta 5 of patch 1 at the moment, and this compiles without trouble on a PPC Mac running 10.5
FWIW, here's my initial summary comments from my script's "man page" (just part of the comments in the script) describing what it does (or tries to do until I complete my testing): [I had a little problem formatting this for this post -- there's a horizontal scroll bar at the end of the post -- weird]
# build-ntp is a bash shell script to build a version ntp from the www.ntp.org archives (http://archive.ntp.org/ntp4/ntp-4.2/).
# The specified ntp version (e.g., "ntp-4.2.8", "ntp-4.2.8p1-beta2", etc.) in the archives is downloaded and built. The choices
# of what to do with the download include building (--build), installing a build on the host system (--install), building an
# OS X installer package of the built ntp or a backup of ntp (--[build-]pkg), backing up (--backup) the current host ntp files,
# or restoring (installing) a backup into the host machine (--restore).
#
# Builds are permitted for the ppc, i386, and x86_64 architectures. One or more may be specified to build single or universal
# ("fat)" binaries. The default is to build for the host machine.
Although I test on a totally expendable copy of my boot drive I sort of got a little "carried away" adding features like backup/restore. That would let me flip various versions of ntp in and out for experimentation without having to fully dup the experimental boot drive again (at least that's the plan, I haven't rebooted to test this stuff out at the time I am writing this, not really in any hurry, have other things to do). I also had in the back of my mind your situation where you would have to take extra steps to create a experimental boot drive so you could simply restore from a backup of the original ntp files if you weren't happy with an update (although I assume you should always have full separate backups).
Since I had to tweak it for 10.5 (i.e., not clobber the 10.5 ntpd-wrapper) I was hoping you might test on your machine when I complete this script. Now that you posted your 10.5 version of ntp-restrict.conf (thanks for doing that) I see there are no surprises with that so I think my 10.5 tweaks are complete.
---
Note, building, package creation, creating backups are all tested. I just haven't rebooted to test restoring or using the installer packages yet.