Updating Tokend building and installing documentation
Hi, So I've recently been trying to figure out how to build Tokend with all of modules including CAC-NG. Since the darwinbuild command downloads the Tokend source code that is slightly out of date, I pulled the new source code from http://opensource.apple.com/tarballs/Tokend/ and was able to build the latest version. I'd like to submit my own documentation on the process for building and installing the project for the benefit of other possible users of the project. How would I go about that and is that okay with the developers? Thanks, Jeff
2011/6/28 Jeff Bair <jeff.bair@centrify.com>
Hi,
Hello,
So I've recently been trying to figure out how to build Tokend with all of modules including CAC-NG. Since the darwinbuild command downloads the Tokend source code that is slightly out of date, I pulled the new source code from http://opensource.apple.com/tarballs/Tokend/ and was able to build the latest version. I'd like to submit my own documentation on the process for building and installing the project for the benefit of other possible users of the project. How would I go about that and is that okay with the developers?
I propose to post your documentation here, on this mailing list. I will update the wiki pages when I have some free time, unless someone else if faster than me :-) Thanks -- Dr. Ludovic Rousseau
Building CAC-NG for Mac OS X Unfortunately, as of 6/23/11, the source files pulled from darwinbuild are not up to date and do not include the CAC-NG files. In order to build CAC-NG you must go to http://opensource.apple.com/tarballs/Tokend/ and download the latest Tokend (for me it's Tokend-40596.tar.gz) Once you have that file and after you have followed the previous steps to build Tokend with the CAC, PIV, and BELPIC modules, extract the file into /Volumes/BuildRoot_*/SourceCache/Tokend/ so in this folder you should have the old version and the new version you just downloaded (For me it would be Tokend-40596 and Tokend-36720). Delete or move the old folder (Tokend-36720) and rename the new folder (Tokend-40596) to the same name as the old folder. Go back to your directory where you first did darwinbuild -init. Then build the files again with the -nosource flag and create the packages. e.g. Once inside your /Volumes/BuildRoot_*/SourceCache/Tokend/ directory 1 $ sudo rm -r Tokend-36720 2 $ sudo mv Tokend-40596 Tokend-36720 3 $ cd ~/workspace/10A432 4 $ sudo darwinbuild -nosource Tokend 5 $ /usr/local/share/darwinbuild/packageRoots Now your packages in the Packages folder should include the new CAC-NG files. NOTE: The initial darwinbuild seems to only run on older versions of Mac OSX and Xcode. I personally used 10.6.0 Build 10A432 on an older Mac Mini with a 1.83 GHz Intel Core 2 Duo and XCode version 3.2.0. Reference http://darwinbuild.macosforge.org/trac/ticket/113 for more info. On 6/28/11 1:24 PM, "Ludovic Rousseau" <ludovic.rousseau@gmail.com> wrote:
2011/6/28 Jeff Bair <jeff.bair@centrify.com>
Hi,
Hello,
So I've recently been trying to figure out how to build Tokend with all of modules including CAC-NG. Since the darwinbuild command downloads the Tokend source code that is slightly out of date, I pulled the new source code from http://opensource.apple.com/tarballs/Tokend/ and was able to build the latest version. I'd like to submit my own documentation on the process for building and installing the project for the benefit of other possible users of the project. How would I go about that and is that okay with the developers?
I propose to post your documentation here, on this mailing list. I will update the wiki pages when I have some free time, unless someone else if faster than me :-)
Thanks
-- Dr. Ludovic Rousseau
2011/6/29 Jeff Bair <jeff.bair@centrify.com>:
Building CAC-NG for Mac OS X
Unfortunately, as of 6/23/11, the source files pulled from darwinbuild are not up to date and do not include the CAC-NG files. In order to build CAC-NG you must go to http://opensource.apple.com/tarballs/Tokend/ and download the latest Tokend (for me it's Tokend-40596.tar.gz)
This version of Tokend is not yet available in the subversion repository at http://smartcardservices.macosforge.org/ It looks like Apple does not use the tools thy provide to "share" open source projects.
Once you have that file and after you have followed the previous steps to build Tokend with the CAC, PIV, and BELPIC modules, extract the file into /Volumes/BuildRoot_*/SourceCache/Tokend/ so in this folder you should have the old version and the new version you just downloaded (For me it would be Tokend-40596 and Tokend-36720). Delete or move the old folder (Tokend-36720) and rename the new folder (Tokend-40596) to the same name as the old folder. Go back to your directory where you first did darwinbuild -init. Then build the files again with the -nosource flag and create the packages. e.g. Once inside your /Volumes/BuildRoot_*/SourceCache/Tokend/ directory 1 $ sudo rm -r Tokend-36720 2 $ sudo mv Tokend-40596 Tokend-36720 3 $ cd ~/workspace/10A432 4 $ sudo darwinbuild -nosource Tokend 5 $ /usr/local/share/darwinbuild/packageRoots Now your packages in the Packages folder should include the new CAC-NG files.
Thanks for the procedure. I do not want to update the wiki since this is not the normal procedure. But I added a reference to your mail in the wiki page.
NOTE: The initial darwinbuild seems to only run on older versions of Mac OSX and Xcode. I personally used 10.6.0 Build 10A432 on an older Mac Mini with a 1.83 GHz Intel Core 2 Duo and XCode version 3.2.0. Reference http://darwinbuild.macosforge.org/trac/ticket/113 for more info.
I had not tried to reinstall an old version of OSX. Thanks for the info. Bye, -- Dr. Ludovic Rousseau
participants (2)
-
Jeff Bair
-
Ludovic Rousseau