AmendHub

Download:

vkoskiv

/

MacNTP

/

amendments

/

21

Update README

Add download links and some more info. Some folks on the #cyberpals
IRC on Libera have tried building this from source over the years,
and the process is very manual and error-prone.
I verified the .sit archive on my Sys6 machine, and the extension
there works.

vkoskiv made amendment 21 about 5 hours ago
--- README Mon Sep 18 00:17:49 2023 +++ README Sun Aug 2 23:29:50 2026 @@ -6,6 +6,19 @@ If you find it useful, please don't hesitate to reach - Valtteri Koskivuori, P.O. Box 347, Helsinki, Finland - Just kidding, my details are at the end of this document +Downloads: + +A prebuilt binary is available in two formats here: +https://vkoskiv.com/downloads/68k/MacNTP/MacNTP_v0.1.sit +https://vkoskiv.com/downloads/68k/MacNTP/MacNTP_v0.1.sea.bin + +Usage: + +Extract the archive, drop 'zMacNTP' in your System Folder, and configure as desired in Control Panel. One caveat: v0.1 is rather picky about the format of the UTC offset, and doesn't indicate when input is invalid. The form must be *exactly* '+HH:MM' or '-HH:MM'. Another caveat is that it blindly applies the difference between the old and new setting to the current system clock when you click 'Apply', so you may have to adjust the clock manually one more time. + +Version History: +- 2024-01-21: v0.1 + More details: During boot, MacNTP will check the system clock, and if it detects a time in the 20th century, it will attempt to query the configured NTP servers for the current time. The INIT will display the MacNTP icon in the "pending" state. If the NTP request succeeds or fails, the icon is updated to reflect the result. @@ -17,12 +30,13 @@ Prerequisites: - System 6 (I haven't tested on other systems) - MacTCP installed and properly configured (check that your connection works before trying this!) - Think C 5.0.1 +- SARez & SADerez (available at http://jcs.org/tmp/ResEdit_SADerez_SARez.sit) Setup: Think C 5 doesn't support the kind of multi-target project that combines both an INIT and a cdev, so we have to work around it. We need two projects, and we will first build a cdev (Control Panel Document), and then build a second project to inject the INIT resource into our cdev. 1. Create new Think C project, name it "MacNTP.π" (option+p gets you π) 2. To this project, add only cdev.c and MacTraps from Think C's Mac Libraries. -3. Set the project settings like this: +3. Select 'Project' -> 'Set Project Type...' and set the options like this: - Select Code Resource. - File Type = "cdev" - Creator = "VKOS" @@ -30,7 +44,7 @@ Think C 5 doesn't support the kind of multi-target pro - ID = "-4064" - Attrs = 00 - Leave "Custom Header" deselected. -- Ensure that under Edit->Options... under Compiler Settings, "Generate 68020 instructions" is deselected. +Click OK, and then ensure that under 'Edit'->'Options...' under Compiler Settings, "Generate 68020 instructions" is deselected. 4. Use the SARez tool to compile "MacNTP.π.r" into a resource file, name it "MacNTP.π.rsrc" - It's important you name it exactly that, and that it resides in the same directory as the project file created above, otherwise Think C won't find it. 5. Select "Build Code Resource" under "Project" to build the cdev document. Think C will then prompt you for a file name for the cdev document. cdevs and INITs are loaded in alphabetical order, so it is important you choose a name that comes after "MacTCP" alphabetically, as MacNTP depends on MacTCP being present. I usually name it "nMacNTP" to have it load last. Save this file somewhere, and close the MacNTP project.