├── CHANGES ├── CONTRIBUTING.md ├── LICENSE.txt ├── PULL_REQUEST_TEMPLATE.md ├── README ├── archs.sh ├── common.mk ├── darwinbuild.xcodeproj └── project.pbxproj ├── darwinbuild ├── Info.plist ├── SDKSettings.plist ├── buildlist ├── buildorder ├── createChroot ├── darwinbuild.common ├── darwinbuild.in ├── darwinmaster.in ├── digest.c ├── ditto ├── installXcode.in ├── installXcode2 ├── installXcode3 ├── installXcode31 ├── installXcode32.in ├── log-index.pl ├── manifest.c ├── packageRoots.in ├── processtrace.sh ├── synthfat ├── thinFile └── thinPackages.in ├── darwintrace └── darwintrace.c ├── darwinup ├── Archive.cpp ├── Archive.h ├── Column.cpp ├── Column.h ├── DB.cpp ├── DB.h ├── Database.cpp ├── Database.h ├── Depot.cpp ├── Depot.h ├── Digest.cpp ├── Digest.h ├── File.cpp ├── File.h ├── NOTES ├── SerialSet.cpp ├── SerialSet.h ├── Table.cpp ├── Table.h ├── Utils.cpp ├── Utils.h ├── darwinup.1 └── main.cpp ├── darwinxref ├── DBDataStore.c ├── DBDataStore.h ├── DBPlugin.c ├── DBPlugin.h ├── DBPluginPriv.h ├── DBTclPlugin.c ├── cfutils.c ├── cfutils.h ├── main.c ├── plugins-darwinports │ ├── Portfile.tcl │ ├── categories.tcl │ ├── depends_build.tcl │ ├── depends_lib.tcl │ ├── description.tcl │ ├── homepage.tcl │ ├── loadPortfile.c │ ├── long_description.tcl │ ├── maintainers.tcl │ ├── master_sites.tcl │ ├── patch_sites.tcl │ └── platforms.tcl ├── plugins │ ├── binary_sites.tcl │ ├── branch.tcl │ ├── c_plugins.xcconfig │ ├── configuration.c │ ├── currentBuild.tcl │ ├── darwin.tcl │ ├── dependencies.c │ ├── descrip.txt │ ├── diff.c │ ├── dot.c │ ├── edit.c │ ├── environment.c │ ├── exportFiles.c │ ├── exportIndex.c │ ├── exportProject.c │ ├── findFile.c │ ├── group.tcl │ ├── inherits.c │ ├── loadDeps.c │ ├── loadFiles.c │ ├── loadIndex.c │ ├── macosx.tcl │ ├── mergeBuild.c │ ├── original.c │ ├── patchfiles.c │ ├── plist_sites.c │ ├── query.c │ ├── register.c │ ├── resolveDeps.c │ ├── source_sites.c │ ├── target.c │ └── version.c └── upgrade_plist.c ├── patches ├── CarbonHeaders-18.1.ccdest.patch ├── IOKitUser-502.nohidevent.patch ├── PowerManagement-209.1.unused_symbols.patch ├── SmartCardServices-34733.MacTypes.patch ├── Tokend-35209.MacTypes.patch ├── clamav-125.noupdate.patch ├── launchd-258.22.CFNotification.patch ├── libsecurity_utilities-36984.MacTypes.patch ├── perl-63.pldtrace.patch ├── postfix-197.dtrace-postfix.patch ├── ppp-412.miniterm_and_noerr.patch ├── ppp-412.xauthvendor.patch ├── security_systemkeychain-36515.kCFDateFormatterIsLenientKey.patch ├── system_cmds-433.8.patch └── top-67.kNilOptions.patch ├── plists ├── 10A432.plist ├── 10B504.plist ├── 10C540.plist ├── 10D573.plist ├── 10F569.plist ├── 10H574.plist ├── 10J567.plist ├── 10J869.plist ├── 10K540.plist ├── 11A511a.plist ├── 11B26.plist ├── 11C74.plist ├── 11D50.plist ├── 11E53.plist ├── 12A269.plist ├── 7B85.plist ├── 7C107.plist ├── 7D24.plist ├── 7F44.plist ├── 7H63.plist ├── 7M34.plist ├── 7R28.plist ├── 7S215.plist ├── 7U16.plist ├── 7W98.plist ├── 8A428.plist ├── 8B15.plist ├── 8C46.plist ├── 8F46.plist ├── 8G1165.plist ├── 8G1454.plist ├── 8G32.plist ├── 8H14.plist ├── 8I1119.plist ├── 8I127.plist ├── 8J135.plist ├── 8J2135.plist ├── 8L127.plist ├── 8L2127.plist ├── 8M1910.plist ├── 8M2558.plist ├── 8P135.plist ├── 8P2137.plist ├── 8R218.plist ├── 8R2218.plist ├── 8S165.plist ├── 8S2167.plist ├── 9A581.plist ├── 9B18.plist ├── 9C31.plist ├── 9D34.plist ├── 9E17.plist ├── 9F33.plist ├── 9G55.plist ├── 9J61.plist └── 9L30.plist ├── prefix.xcconfig └── testing ├── darwintrace ├── close-test ├── exec ├── realpath ├── redirection-test └── run-tests.sh ├── darwinup ├── 300dirs.tbz2 ├── 300files.tbz2 ├── corrupt.tgz ├── deep-rollback-2.xar ├── deep-rollback.cpgz ├── depotroot.tar.gz ├── dest.tar.gz ├── extension.tar.bz2 ├── rep_dir_file.tar.gz ├── rep_dir_link.tar.gz ├── rep_file_dir.tar.gz ├── rep_file_link.tar.gz ├── rep_flink_dir.tar.gz ├── rep_flink_file.tar.gz ├── rep_link_dir.tar.gz ├── rep_link_file.tar.gz ├── root.tar.gz ├── root2.tar.gz ├── root3.tar.gz ├── root5.tar.gz ├── root6.tar.gz ├── root7.tar.gz ├── run-tests.sh ├── sandboxprofile.tar.bz2 ├── symlink_update.tar.gz ├── symlinks.tar.gz └── xpcservice.tar.bz2 └── run-all-tests.sh /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | By submitting a request, you represent that you have the right to license 2 | your contribution to the community, and agree that your contributions are 3 | licensed under the [BSD License accompanying darwinbuild](LICENSE.txt). 4 | 5 | For existing files modified by your request, you represent that you have 6 | retained any existing copyright notices and licensing terms. For each new 7 | file in your request, you represent that you have added to the file a 8 | copyright notice (including the year and the copyright owner's name) and 9 | darwinbuild's licensing terms. 10 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright © 2004-2012 Apple Inc. All rights reserved. 2 | Portions of the file DBTclPlugin.c are copyright © 2003 Kevin Van Vechten 3 | Portions of the file dot.c are copyright © 2008 Michael Franz 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions 7 | are met: 8 | 1. Redistributions of source code must retain the above copyright 9 | notice, this list of conditions and the following disclaimer. 10 | 2. Redistributions in binary form must reproduce the above copyright 11 | notice, this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | 3. Neither the name of Apple Inc. ("Apple") nor the names of 14 | its contributors may be used to endorse or promote products derived 15 | from this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND 18 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | ARE DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR 21 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 | OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 25 | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26 | IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | POSSIBILITY OF SUCH DAMAGE. 28 | -------------------------------------------------------------------------------- /PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | By submitting a request, you represent that you have the right to license 2 | your contribution to the community, and agree that your contributions are 3 | licensed under the [BSD License accompanying darwinbuild](LICENSE.txt). 4 | 5 | For existing files modified by your request, you represent that you have 6 | retained any existing copyright notices and licensing terms. For each new 7 | file in your request, you represent that you have added to the file a 8 | copyright notice (including the year and the copyright owner's name) and 9 | darwinbuild's licensing terms. 10 | -------------------------------------------------------------------------------- /archs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Detect which arches we should build for 5 | # 6 | 7 | SQLITE_ARCHS=`lipo -info /usr/lib/libsqlite3.dylib | cut -d : -f 3` 8 | TCL_ARCHS=`lipo -info /usr/lib/libtcl.dylib | cut -d : -f 3` 9 | SYSTEM_ARCHS=`lipo -info /usr/lib/libSystem.dylib | cut -d : -f 3` 10 | 11 | # start with one set of archs 12 | FINAL_ARCHS=$SYSTEM_ARCHS 13 | 14 | for ARCH in $SYSTEM_ARCHS; 15 | do 16 | # crosscheck against the remaining sets... 17 | for ALIST in "$SQLITE_ARCHS" "$TCL_ARCHS"; 18 | do 19 | # see if ARCH is not in ALIST 20 | if [[ ${ALIST/$ARCH} == $ALIST ]]; 21 | then 22 | # ARCH was not found, so remove from final archs 23 | FINAL_ARCHS="${FINAL_ARCHS/$ARCH}"; 24 | fi 25 | done; 26 | done; 27 | 28 | # print what is left over 29 | echo $FINAL_ARCHS 30 | 31 | -------------------------------------------------------------------------------- /common.mk: -------------------------------------------------------------------------------- 1 | ### 2 | ### Common makefile variables potentially set by autoconf 3 | ### 4 | PREFIX?=/usr/local 5 | DESTDIR?=$(DSTROOT) 6 | 7 | ### makefile variables normally set by XBS 8 | SRCROOT?=. 9 | OBJROOT?=. 10 | SYMROOT?=. 11 | 12 | ### 13 | ### 14 | BINDIR=$(DESTDIR)$(PREFIX)/bin 15 | DATDIR=$(DESTDIR)$(PREFIX)/share 16 | INCDIR=$(DESTDIR)$(PREFIX)/include 17 | INSTALL=install 18 | INSTALL_EXE_FLAGS=-m 0755 -o root -g wheel 19 | INSTALL_DIR_FLAGS=$(INSTALL_EXE_FLAGS) 20 | INSTALL_DOC_FLAGS=-m 0644 -o root -g wheel 21 | 22 | SED=/usr/bin/sed 23 | 24 | RC_CFLAGS?=$(shell ../archs.sh | awk '{ ORS=" "; for(i=1;i<=NF;i++) print "-arch", $$i}') 25 | CFLAGS+=$(RC_CFLAGS) 26 | 27 | -------------------------------------------------------------------------------- /darwinbuild/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleIdentifier 8 | org.macosforge.darwinbuild.platforms.%%PLATFORM%% 9 | CFBundleName 10 | %%PLATFORM%% SDKs 11 | CFBundleShortVersionString 12 | 1 13 | Description 14 | %%PLATFORM%% 15 | FamilyIdentifier 16 | %%PLATFORM%% 17 | FamilyName 18 | %%PLATFORM%% 19 | Identifier 20 | org.macosforge.darwinbuild.platforms.%%PLATFORM%% 21 | Name 22 | %%PLATFORM%% 23 | Type 24 | Platform 25 | Version 26 | 1 27 | 28 | 29 | -------------------------------------------------------------------------------- /darwinbuild/SDKSettings.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CanonicalName 6 | %%PLATFORM%% 7 | DefaultProperties 8 | 9 | MACOSX_DEPLOYMENT_TARGET 10 | 10.6 11 | PLATFORM_NAME 12 | %%PLATFORM%% 13 | 14 | DisplayName 15 | %%PLATFORM%% 16 | MaximumDeploymentTarget 17 | 10.6 18 | MinimalDisplayName 19 | 10.6 20 | MinimumSupportedToolsVersion 21 | 3.2 22 | Version 23 | 10.6 24 | isBaseSDK 25 | YES 26 | 27 | 28 | -------------------------------------------------------------------------------- /darwinbuild/buildlist: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ $# -ne 1 ]; then 4 | echo "Usage: $0 projects.txt" 1>&2 5 | exit 1 6 | fi 7 | 8 | PROJECTS="$1" 9 | 10 | function SkipBuild() { 11 | local project="$1" 12 | for exclude in `darwinxref group nobuild`; do 13 | if [ "$project" = "$exclude" ]; then 14 | return 0 15 | fi 16 | done 17 | return 1 18 | } 19 | 20 | cat "$PROJECTS" | while read proj; do 21 | SkipBuild $proj 22 | if [ $? -eq 0 ]; then 23 | continue 24 | fi 25 | echo -n "Building $proj..." 26 | mkdir -p WholeLogs 27 | darwinbuild -noload $proj 2>&1 | tee WholeLogs/$proj >> WholeLogs/All 28 | if [ ${PIPESTATUS[0]} -eq 0 ]; then 29 | echo " done" 30 | darwinbuild -load $proj 2>&1 | tee -a WholeLogs/$proj >> WholeLogs/All 31 | else 32 | echo " FAILED" 33 | fi 34 | 35 | rm -rf BuildRoot/SourceCache 36 | rm -rf BuildRoot/var/tmp/$proj 37 | rm -rf Symbols/$proj 38 | 39 | done 40 | -------------------------------------------------------------------------------- /darwinbuild/buildorder: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | use strict; 4 | 5 | sub CommandAsList { 6 | my $command = $_[0]; 7 | my @output = split(' ', `$command`); 8 | return @output; 9 | } 10 | 11 | if ($#ARGV < 0 || $#ARGV > 1) { 12 | print STDERR "Usage: $0 projects.txt [output.txt]\n"; 13 | exit(1); 14 | } 15 | 16 | my $projectlist = $ARGV[0]; 17 | my $outputlist = $#ARGV == 1 ? $ARGV[1] : ""; 18 | my @NoBuild = CommandAsList("darwinxref group nobuild"); 19 | my %NoBuildHash = map { $_ => 1 } @NoBuild; 20 | 21 | my @Compilers = CommandAsList("darwinxref group compilertools"); 22 | my %CompilersHash = map { $_ => 1 } @Compilers; 23 | 24 | my @UnbuiltProjects = grep { !defined($NoBuildHash{$_}) } CommandAsList("cat $projectlist"); 25 | my %UnbuiltProjectsHash = map { $_ => 1 } @UnbuiltProjects; 26 | 27 | 28 | # sequenced list of projects 29 | my @BuiltProjectsOrder = (); 30 | my %BuiltProjectsHash = (); # has project built? 31 | 32 | my %Dependencies = (); 33 | my %InvertedDependencies = (); 34 | 35 | my %DepExceptions = ( "passwordserver_sasl" => { "Kerberos" => 1}, 36 | "IOKitUser" => { "configd" => 1 }, 37 | "configd" => { "configd_plugins" => 1}); 38 | 39 | print "Considering projects: @UnbuiltProjects\n"; 40 | print "Compilers: @Compilers\n"; 41 | 42 | print "Generating dependency graph..."; 43 | 44 | foreach my $proj (@UnbuiltProjects) { 45 | my @deps = (); 46 | my @xrefdeps = CommandAsList("darwinxref dependencies -lib $proj; " . 47 | "darwinxref dependencies -staticlib $proj"); 48 | # print "$proj depends on @xrefdeps\n"; 49 | foreach my $xdep (@xrefdeps) { 50 | # don't depend on ourself, compilers, or projects 51 | # not being built currently 52 | if ($xdep eq $proj 53 | || $CompilersHash{$xdep} 54 | || !defined($UnbuiltProjectsHash{$xdep}) 55 | || ( defined($DepExceptions{$proj}) && $DepExceptions{$proj}->{$xdep})) { 56 | next; 57 | } 58 | push @deps, ($xdep); 59 | if(defined($InvertedDependencies{$xdep})) { 60 | push @{$InvertedDependencies{$xdep}}, ( $proj ); 61 | } else { 62 | $InvertedDependencies{$xdep} = [ $proj ]; 63 | } 64 | } 65 | $Dependencies{$proj} = \@deps; 66 | 67 | # try to make sure there's even an empty list of 68 | # inverted deps (things that depend on me) 69 | if(!defined($InvertedDependencies{$proj})) { 70 | $InvertedDependencies{$proj} = []; 71 | } 72 | } 73 | 74 | print " done\n"; 75 | 76 | #use Data::Dumper; 77 | #print Dumper(\%Dependencies) . "\n"; 78 | #print Dumper(\%InvertedDependencies) . "\n"; 79 | 80 | print "Sequencing based on dependencies..."; 81 | 82 | # treat UnbuiltProjects like a circular queue 83 | unshift @UnbuiltProjects, "SENTINEL"; 84 | my $builtone = 1; 85 | my $loopdebug = 0; 86 | while ($#UnbuiltProjects > 0) { 87 | my $proj = shift(@UnbuiltProjects); 88 | 89 | # got back to he beginning. Make sure we're making forward progress 90 | if($proj eq "SENTINEL") { 91 | print "SENTINEL reached\n" if $loopdebug; 92 | if($builtone) { 93 | # great! 94 | $builtone = 0; 95 | goto Unmet; 96 | } else { 97 | print STDERR "Aborting, unmet dependency loop\n"; 98 | print STDERR "Remaining projects: @UnbuiltProjects\n"; 99 | exit(1); 100 | } 101 | } 102 | 103 | # See if all dependencies have been built 104 | my @deps = @{$Dependencies{$proj}}; 105 | print "$proj: " if $loopdebug; 106 | foreach my $dep (@deps) { 107 | if(!defined($BuiltProjectsHash{$dep})) { 108 | # dep hasn't built yet 109 | print "$dep unbuilt\n" if $loopdebug; 110 | goto Unmet; 111 | } 112 | } 113 | 114 | print "all deps built\n" if $loopdebug; 115 | 116 | push @BuiltProjectsOrder, ($proj); 117 | $BuiltProjectsHash{$proj} = 1; 118 | $builtone = 1; 119 | next; 120 | 121 | Unmet: 122 | push @UnbuiltProjects, ($proj); 123 | } 124 | 125 | print " done\n"; 126 | 127 | print "Build Order: @BuiltProjectsOrder\n"; 128 | 129 | if ($outputlist ne "") { 130 | open(OUTPUT, ">$outputlist"); 131 | print OUTPUT join("\n", @BuiltProjectsOrder) . "\n"; 132 | close(OUTPUT); 133 | } 134 | -------------------------------------------------------------------------------- /darwinbuild/createChroot: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | FORCE="YES" 4 | 5 | XCODEBUILD=/usr/bin/xcodebuild 6 | BUILDROOT="$1" 7 | 8 | EXTRADIR=( \ 9 | /.vol \ 10 | /cores \ 11 | /dev \ 12 | /private/tmp \ 13 | /private/var \ 14 | /private/var/tmp ) 15 | 16 | EXTRACOPY=( \ 17 | /Developer/Makefiles \ 18 | /Library/Application\ Support \ 19 | /System/Library/Frameworks \ 20 | /System/Library/PrivateFrameworks \ 21 | /System/Library/DTDs \ 22 | /System/Library/Fonts \ 23 | /System/Library/Keyboard\ Layouts \ 24 | /System/Library/Perl \ 25 | /System/Library/Tcl \ 26 | /System/Library/CoreServices/CharacterSets \ 27 | /bin \ 28 | /private/etc \ 29 | /sbin \ 30 | /usr/bin \ 31 | /usr/include \ 32 | /usr/lib \ 33 | /usr/libexec \ 34 | /usr/sbin \ 35 | /usr/share ) 36 | 37 | EXTRALINKS=( \ 38 | private/tmp \ 39 | private/var \ 40 | private/etc ) 41 | 42 | if [ -z "$BUILDROOT" ]; then 43 | echo "Usage: $0 /Volumes/DarwinBuild/BuildRoot" 1>&2 44 | exit 1 45 | fi 46 | 47 | mkdir -p "$BUILDROOT" 48 | 49 | RemoveTemps() { 50 | rm -f /tmp/installXcode.libs.$$ 51 | rm -f /tmp/installXcode.seen.$$ 52 | rm -f /tmp/installXcode.tmplibs.$$ 53 | rm -f /tmp/installXcode.tmpfiles.$$ 54 | rm -f /tmp/installXcode.files.$$ 55 | } 56 | 57 | AppendExtraFiles() { 58 | for X in "${EXTRACOPY[@]}"; do 59 | echo "$X" >> /tmp/installXcode.libs.$$ 60 | done 61 | } 62 | 63 | GenerateFileNames() { 64 | cat /tmp/installXcode.libs.$$ | sort -u | while read X; do 65 | # echo adding children for "$X" 66 | 67 | # first mkdir parent directories 68 | PARENT=$(dirname "$X") 69 | while [ "$PARENT" != "/" -a "$PARENT" != "." ]; do 70 | echo ".$PARENT" >> /tmp/installXcode.tmpfiles.$$ 71 | PARENT=$(dirname "$PARENT") 72 | done 73 | find -x ".$X" \! \( -name \*_debug\* -o -name \*_profile\* -o -path \*.lproj\* -o -path \*.dict\* \) >> /tmp/installXcode.tmpfiles.$$ 74 | done 75 | sort -u /tmp/installXcode.tmpfiles.$$ > /tmp/installXcode.files.$$ 76 | } 77 | 78 | CopyFiles() { 79 | # VERBOSECPIO="v" 80 | VERBOSECPIO="" 81 | echo -n "Copying system ..." 82 | cpio -o -c < /tmp/installXcode.files.$$ | \ 83 | (cd "$BUILDROOT"; cpio -ium${VERBOSECPIO}d ) 84 | 85 | echo "done" 86 | } 87 | 88 | 89 | 90 | ### 91 | ### Find all the framework and library dependencies of Xcode build 92 | ### For frameworks, copy over all supporting files. 93 | ### 94 | 95 | pushd / > /dev/null 96 | 97 | RemoveTemps 98 | touch /tmp/installXcode.seen.$$ 99 | echo Analyzing files to copy into chroot ... 100 | AppendExtraFiles 101 | GenerateFileNames 102 | CopyFiles 103 | 104 | for X in "${EXTRADIR[@]}"; do 105 | mkdir -p $BUILDROOT/$X 106 | done 107 | 108 | for X in "${EXTRALINKS[@]}"; do 109 | ln -sf $X $BUILDROOT/ 110 | done 111 | 112 | # We provide this functionality, at least 113 | mkdir -p $BUILDROOT/usr/local/darwinbuild/receipts 114 | for i in "files" "bash"; do 115 | touch $BUILDROOT/usr/local/darwinbuild/receipts/$i 116 | done 117 | 118 | popd > /dev/null 119 | 120 | RemoveTemps 121 | -------------------------------------------------------------------------------- /darwinbuild/digest.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include 39 | #include 40 | 41 | 42 | void print_usage() { 43 | fprintf(stdout, "digest [-1] \n"); 44 | fprintf(stdout, " Print digest hash of stdin to stdout. \n"); 45 | fprintf(stdout, " \n"); 46 | fprintf(stdout, " -1 Use SHA1 hash (default) \n"); 47 | fprintf(stdout, " \n"); 48 | } 49 | 50 | char* format_digest(const unsigned char* m) { 51 | char* result = NULL; 52 | // SHA-1 53 | asprintf(&result, 54 | "%02x%02x%02x%02x" 55 | "%02x%02x%02x%02x" 56 | "%02x%02x%02x%02x" 57 | "%02x%02x%02x%02x" 58 | "%02x%02x%02x%02x", 59 | m[0], m[1], m[2], m[3], 60 | m[4], m[5], m[6], m[7], 61 | m[8], m[9], m[10], m[11], 62 | m[12], m[13], m[14], m[15], 63 | m[16], m[17], m[18], m[19] 64 | ); 65 | return result; 66 | } 67 | 68 | char* calculate_digest(int fd) { 69 | unsigned char md[CC_SHA1_DIGEST_LENGTH]; 70 | CC_SHA1_CTX c; 71 | CC_SHA1_Init(&c); 72 | 73 | memset(md, 0, CC_SHA1_DIGEST_LENGTH); 74 | 75 | ssize_t len; 76 | const unsigned int blocklen = 8192; 77 | unsigned char* block = (unsigned char*)malloc(blocklen); 78 | if (!block) { 79 | errno = ENOMEM; 80 | return NULL; 81 | } 82 | while(1) { 83 | len = read(fd, block, blocklen); 84 | if (len == 0) { close(fd); break; } 85 | if ((len < 0) && (errno == EINTR)) continue; 86 | if (len < 0) { close(fd); return NULL; } 87 | CC_SHA1_Update(&c, block, (CC_LONG)len); 88 | } 89 | 90 | CC_SHA1_Final(md, &c); 91 | free(block); 92 | return format_digest(md); 93 | } 94 | 95 | 96 | int main(int argc, char* argv[]) { 97 | 98 | int digest = 1; // default to SHA1 99 | 100 | int ch; 101 | while ((ch = getopt(argc, argv, "1")) != -1) { 102 | switch (ch) { 103 | case '1': 104 | digest = 1; 105 | break; 106 | case '?': 107 | default: 108 | print_usage(); 109 | exit(1); 110 | } 111 | } 112 | argc -= optind; 113 | argv += optind; 114 | 115 | fprintf(stdout, "%s\n", calculate_digest(fileno(stdin))); 116 | 117 | return 0; 118 | } 119 | -------------------------------------------------------------------------------- /darwinbuild/ditto: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | INDEX=0 4 | COUNT=$# 5 | for ARG in "$@" ; do 6 | INDEX=$(($INDEX + 1)) 7 | if [ "$ARG" == "-c" -o "$ARG" == "-x" ]; then 8 | echo "Error: -c and -x are not supported by this ditto." 1>&2 9 | exit 1 10 | elif [ "${ARG:0:1}" != "-" -o "$ARG" == "--" ]; then 11 | break 12 | fi 13 | done 14 | 15 | DST=${@:$COUNT:1} 16 | for SRC in ${@:$INDEX:$(($COUNT - $INDEX))} ; do 17 | if [ -d "$SRC" ]; then 18 | if [ ! -d "$DST" ]; then 19 | mkdir -p "$DST" 20 | fi 21 | tar cf - -C "$SRC" . | tar xpf - -C "$DST" 22 | elif [ -f "$SRC" ]; then 23 | cp -p "$SRC" "$DST" 24 | fi 25 | done 26 | -------------------------------------------------------------------------------- /darwinbuild/installXcode.in: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | PREFIX=%%PREFIX%% 4 | BINDIR=$PREFIX/share/darwinbuild 5 | 6 | BROOT=$1 7 | VER=$(/usr/bin/xcodebuild -version | grep version | cut -d "-" -f 2 | cut -d ";" -f 1 | cut -d "." -f 1) 8 | 9 | if [ "$VER" -gt "920" ]; 10 | then 11 | if [ "$VER" -gt "1000" ]; 12 | then 13 | if [ "$VER" -gt "1600" ]; 14 | then 15 | "$BINDIR/installXcode32" "$BROOT"; 16 | else 17 | "$BINDIR/installXcode31" "$BROOT"; 18 | fi 19 | else 20 | "$BINDIR/installXcode3" "$BROOT"; 21 | fi 22 | else 23 | "$BINDIR/installXcode2" "$BROOT"; 24 | fi 25 | 26 | 27 | -------------------------------------------------------------------------------- /darwinbuild/installXcode32.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | FORCE="YES" 4 | XCODEBUILD=/Developer/usr/bin/xcodebuild 5 | BUILDROOT="$1" 6 | DBROOT=$(dirname $BUILDROOT) 7 | PLATFORMDIR="${DBROOT}/Platform" 8 | STAMP=$(date +%Y%m%d%H%M%S) 9 | BUILD=$(cat $DBROOT/.build/build) 10 | PLATFORM="Darwinbuild_${BUILD}_${STAMP}" 11 | INFOPLIST=%%PREFIX%%/share/darwinbuild/Info.plist 12 | SDKPLIST=%%PREFIX%%/share/darwinbuild/SDKSettings.plist 13 | 14 | echo $PLATFORM > "${DBROOT}/.build/platform" 15 | echo "Installing Platform/SDK $PLATFORM for Xcode 3.2" 16 | 17 | mkdir -p "${PLATFORMDIR}/Developer/SDKs" 18 | mkdir -p "${PLATFORMDIR}/Developer/Library/Xcode" 19 | 20 | rsync -a "/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/" \ 21 | "${PLATFORMDIR}/Developer/Library/Xcode" 22 | 23 | sed -e "s,%%PLATFORM%%,${PLATFORM}," $INFOPLIST > "${PLATFORMDIR}/Info.plist" 24 | sed -e "s,%%PLATFORM%%,${PLATFORM}," $SDKPLIST > "${BUILDROOT}/SDKSettings.plist" 25 | 26 | pushd "${PLATFORMDIR}/Developer" > /dev/null 27 | ln -s ../../BuildRoot/usr/ usr 28 | popd > /dev/null 29 | 30 | pushd "${PLATFORMDIR}/Developer/SDKs" > /dev/null 31 | ln -s ../../../BuildRoot/ "${PLATFORM}.sdk" 32 | popd > /dev/null 33 | 34 | pushd "/Developer/Platforms" > /dev/null 35 | ln -s "$PLATFORMDIR" "${PLATFORM}.platform" 36 | popd > /dev/null 37 | 38 | mkdir -p "${DBROOT}/BuildRoot/Developer/" 39 | pushd "${DBROOT}/BuildRoot/Developer/" > /dev/null 40 | ln -s ../usr usr 41 | popd > /dev/null 42 | 43 | echo "Completed Platform/SDK install" 44 | 45 | -------------------------------------------------------------------------------- /darwinbuild/processtrace.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # expects input on stdin 4 | 5 | TRACE_TYPES='\(execve\|open\)[[:space:]]\+' 6 | DARWIN_BUILDROOT=$(pwd -P) 7 | 8 | sort -u | \ 9 | sed "s|$DARWIN_BUILDROOT/BuildRoot||" | \ 10 | grep -i "^$TRACE_TYPES/" | \ 11 | grep -v "^$TRACE_TYPES/SourceCache/" | \ 12 | grep -vi "^$TRACE_TYPES\(/private\)\?\(/var\)\?/tmp/" | \ 13 | grep -vi "^$TRACE_TYPES/XCD/" | \ 14 | grep -vi "^$TRACE_TYPES/dev/" | \ 15 | sort -u 16 | -------------------------------------------------------------------------------- /darwinbuild/thinFile: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Copyright (c) 2005, Apple Computer, Inc. All rights reserved. 4 | # 5 | # @APPLE_BSD_LICENSE_HEADER_START@ 6 | # 7 | # Redistribution and use in source and binary forms, with or without 8 | # modification, are permitted provided that the following conditions 9 | # are met: 10 | # 1. Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # 2. Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in the 14 | # documentation and/or other materials provided with the distribution. 15 | # 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | # its contributors may be used to endorse or promote products derived 17 | # from this software without specific prior written permission. 18 | # 19 | # THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND 20 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22 | # ARE DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR 23 | # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 | # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 | # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 27 | # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 28 | # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 | # POSSIBILITY OF SUCH DAMAGE. 30 | # 31 | # @APPLE_BSD_LICENSE_HEADER_END@ 32 | # 33 | # Kevin Van Vechten 34 | 35 | ### 36 | ### If the file is Mach-O and fat, thin to the specified architecture 37 | ### 38 | 39 | ARCH="$1" 40 | FILE="$2" 41 | 42 | if [ "$ARCH" == "" -o "$FILE" == "" ]; then 43 | exit 1 44 | fi 45 | 46 | if file "$FILE" | grep -q "Mach-O fat" ; then 47 | MODES=$(stat -f%p "$FILE" | cut -b3-6) 48 | echo ... thinning $(basename "$FILE") to "$ARCH" 49 | lipo "$FILE" -thin "$ARCH" -output "$FILE" 50 | chmod "$MODES" "$FILE" 51 | fi 52 | -------------------------------------------------------------------------------- /darwinbuild/thinPackages.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Copyright (c) 2005, Apple Computer, Inc. All rights reserved. 4 | # 5 | # @APPLE_BSD_LICENSE_HEADER_START@ 6 | # 7 | # Redistribution and use in source and binary forms, with or without 8 | # modification, are permitted provided that the following conditions 9 | # are met: 10 | # 1. Redistributions of source code must retain the above copyright 11 | # notice, this list of conditions and the following disclaimer. 12 | # 2. Redistributions in binary form must reproduce the above copyright 13 | # notice, this list of conditions and the following disclaimer in the 14 | # documentation and/or other materials provided with the distribution. 15 | # 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | # its contributors may be used to endorse or promote products derived 17 | # from this software without specific prior written permission. 18 | # 19 | # THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND 20 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22 | # ARE DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR 23 | # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 | # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 | # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 27 | # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 28 | # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 | # POSSIBILITY OF SUCH DAMAGE. 30 | # 31 | # @APPLE_BSD_LICENSE_HEADER_END@ 32 | # 33 | # Kevin Van Vechten 34 | 35 | PREFIX=%%PREFIX%% 36 | XREFDB=.build/xref.db 37 | DARWINXREF=$PREFIX/bin/darwinxref 38 | DATADIR=$PREFIX/share/darwinbuild 39 | COMMONFILE=$DATADIR/darwinbuild.common 40 | 41 | THINFILE="$DATADIR/thinFile" 42 | 43 | ### 44 | ### Interpret our arguments: 45 | ### the architecture to thin to 46 | ARCH="$1" 47 | 48 | if [ "$ARCH" != "ppc" -a "$ARCH" != "i386" ]; then 49 | echo "usage: $(basename $0) " 1>&2 50 | exit 1 51 | fi 52 | 53 | ### 54 | ### Include some common subroutines 55 | ### 56 | . "$COMMONFILE" 57 | 58 | shopt -s nullglob 59 | 60 | ### 61 | ### Check that we're property situated in an initialized directory 62 | ### 63 | CheckDarwinBuildRoot 64 | 65 | PKGDIR="$DARWIN_BUILDROOT/Packages" 66 | DESTDIR="${PKGDIR}_$ARCH" 67 | 68 | for X in $PKGDIR/*-*.tar.gz ; do 69 | Y=$(basename $X .gz).bz2 70 | if [ $X -nt $DESTDIR/$Y ]; then 71 | echo "Extracting $Y ..." 72 | rm -rf "$DESTDIR/tmp" 73 | mkdir -p "$DESTDIR/tmp" 74 | tar xzf $X -C "$DESTDIR/tmp" . 75 | echo "Thinning $Y ..." 76 | find "$DESTDIR/tmp" -type f -exec "$THINFILE" "$ARCH" {} ';' 77 | echo "Archiving $Y ..." 78 | tar cjf "$DESTDIR/$Y" -C "$DESTDIR/tmp" . 79 | #else 80 | # echo $Y is up to date 81 | fi 82 | done 83 | rm -rf "$DESTDIR/tmp" 84 | -------------------------------------------------------------------------------- /darwinup/Column.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include 34 | #include 35 | #include 36 | 37 | #include "Column.h" 38 | 39 | Column::Column(const char* name, uint32_t type) { 40 | m_name = strdup(name); 41 | m_create_sql = NULL; 42 | m_alter_sql = NULL; 43 | m_type = type; 44 | m_is_index = false; 45 | m_is_pk = false; 46 | m_is_unique = false; 47 | m_version = 0; 48 | } 49 | 50 | Column::Column(const char* name, uint32_t type, 51 | bool is_index, bool is_pk, bool is_unique) { 52 | m_name = strdup(name); 53 | m_create_sql = NULL; 54 | m_alter_sql = NULL; 55 | m_type = type; 56 | m_is_index = is_index; 57 | m_is_pk = is_pk; 58 | m_is_unique = is_unique; 59 | m_version = 0; 60 | } 61 | 62 | Column::~Column() { 63 | free(m_name); 64 | free(m_create_sql); 65 | free(m_alter_sql); 66 | } 67 | 68 | const char* Column::name() { 69 | return m_name; 70 | } 71 | 72 | uint32_t Column::type() { 73 | return m_type; 74 | } 75 | 76 | const bool Column::is_index() { 77 | return m_is_index; 78 | } 79 | 80 | const bool Column::is_pk() { 81 | return m_is_pk; 82 | } 83 | 84 | const bool Column::is_unique() { 85 | return m_is_unique; 86 | } 87 | 88 | uint32_t Column::version() { 89 | return m_version; 90 | } 91 | 92 | const char* Column::typestr() { 93 | switch(m_type) { 94 | case SQLITE_INTEGER: 95 | return "INTEGER"; 96 | break; 97 | case SQLITE_TEXT: 98 | return "TEXT"; 99 | break; 100 | case SQLITE_BLOB: 101 | return "BLOB"; 102 | break; 103 | default: 104 | fprintf(stderr, "Error: unknown column type: %d \n", m_type); 105 | return "UNKNOWN"; 106 | } 107 | } 108 | 109 | uint32_t Column::size() { 110 | // integers are stored inband in the record 111 | if (m_type == SQLITE_INTEGER) return sizeof(uint64_t); 112 | // everything else is stored out of band 113 | return sizeof(void*); 114 | } 115 | 116 | int Column::offset() { 117 | return m_offset; 118 | } 119 | 120 | const char* Column::create() { 121 | if (!m_create_sql) { 122 | asprintf(&m_create_sql, "%s %s%s%s", m_name, this->typestr(), 123 | (this->is_pk() ? " PRIMARY KEY AUTOINCREMENT" : ""), 124 | (this->is_unique() ? " UNIQUE" : "")); 125 | } 126 | return (const char*)m_create_sql; 127 | } 128 | 129 | const char* Column::alter(const char* table_name) { 130 | if (!m_alter_sql) { 131 | asprintf(&m_alter_sql, "ALTER TABLE %s ADD COLUMN %s;", 132 | table_name, this->create()); 133 | } 134 | return (const char*)m_alter_sql; 135 | } 136 | 137 | -------------------------------------------------------------------------------- /darwinup/Column.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #ifndef _COLUMN_H 34 | #define _COLUMN_H 35 | 36 | #include 37 | #include 38 | 39 | #include "Utils.h" 40 | 41 | /** 42 | * Column objects represent a column in a database table. They store 43 | * type information and chunks of sql for their Table to build 44 | * queries with. 45 | */ 46 | struct Column { 47 | Column(const char* name, uint32_t type); 48 | Column(const char* name, uint32_t type, 49 | bool is_index, bool is_pk, bool is_unique); 50 | virtual ~Column(); 51 | 52 | const char* name(); 53 | uint32_t type(); 54 | const bool is_index(); 55 | const bool is_pk(); 56 | const bool is_unique(); 57 | 58 | uint32_t version(); 59 | 60 | // return size of this column when packed into a result record 61 | uint32_t size(); 62 | 63 | protected: 64 | // return a string representation of this columns type suitable 65 | // for sql queries 66 | const char* typestr(); 67 | 68 | // return the offset of this column in the Table's result record 69 | int offset(); 70 | 71 | // generate the sql needed to create this column 72 | const char* create(); 73 | // generate alter table sql for this column for table named table_name 74 | const char* alter(const char* table_name); 75 | 76 | char* m_name; 77 | uint32_t m_version; // schema version this was added 78 | char* m_create_sql; // sql fragment for use in CREATE TABLE 79 | char* m_alter_sql; // entire ALTER TABLE ADD COLUMN sql 80 | uint32_t m_type; // SQLITE_* type definition 81 | bool m_is_index; 82 | bool m_is_pk; 83 | bool m_is_unique; 84 | int m_offset; 85 | 86 | friend struct Table; 87 | }; 88 | 89 | #endif 90 | -------------------------------------------------------------------------------- /darwinup/Digest.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2010 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #ifndef _DIGEST_H 34 | #define _DIGEST_H 35 | 36 | #include 37 | #include 38 | #include 39 | 40 | #include "Utils.h" 41 | 42 | //// 43 | // Digest 44 | // 45 | // Digest is the abstract root class for all message digest algorithms 46 | // supported by darwinup. Subclasses must implement the constructors 47 | // and digest() APIs. 48 | // 49 | // SHA1Digest is the only concrete subclass. There are two 50 | // subclasses of SHA1Digest which add convenience functions 51 | // for digesting a canonicalized Mach-O binary, and the 52 | // target of a symlink obtained by readlink(2). 53 | // 54 | //// 55 | 56 | struct Digest { 57 | 58 | //// 59 | // Accessor functions 60 | //// 61 | 62 | // Returns the raw digest. 63 | virtual uint8_t* data(); 64 | 65 | // Returns the size of the raw digest. 66 | virtual uint32_t size(); 67 | 68 | // Returns the digest as an ASCII string, represented in hexidecimal. 69 | virtual char* string(); 70 | 71 | virtual ~Digest(); 72 | 73 | //// 74 | // Class functions 75 | //// 76 | 77 | // Compares two digest objects for equality. 78 | // Returns 1 if equal, 0 if not. 79 | static int equal(Digest* a, Digest* b); 80 | 81 | 82 | protected: 83 | 84 | virtual void digest(unsigned char* md, int fd) = 0; 85 | virtual void digest(unsigned char* md, uint8_t* data, uint32_t size) = 0; 86 | 87 | unsigned char m_data[CC_SHA512_DIGEST_LENGTH]; // support up to 64 bytes 88 | uint32_t m_size; 89 | 90 | friend struct Depot; 91 | friend struct DarwinupDatabase; 92 | }; 93 | 94 | //// 95 | // SHA1Digest 96 | //// 97 | struct SHA1Digest : Digest { 98 | // Creates an empty digest. 99 | SHA1Digest(); 100 | 101 | // Computes the SHA-1 digest of data read from the stream. 102 | SHA1Digest(int fd); 103 | 104 | // Computes the SHA-1 digest of data in the file. 105 | SHA1Digest(const char* filename); 106 | 107 | // Computes the SHA-1 digest of the block of memory. 108 | SHA1Digest(uint8_t* data, uint32_t size); 109 | 110 | ~SHA1Digest(); 111 | 112 | void digest(unsigned char* md, int fd); 113 | void digest(unsigned char* md, uint8_t* data, uint32_t size); 114 | 115 | }; 116 | 117 | //// 118 | // SHA1DigestSymlink 119 | // Digests of the target of a symlink. 120 | //// 121 | struct SHA1DigestSymlink : SHA1Digest { 122 | // Computes the SHA-1 digest of the target of the symlink. 123 | // The target is obtained via readlink(2). 124 | SHA1DigestSymlink(const char* filename); 125 | ~SHA1DigestSymlink(); 126 | }; 127 | 128 | #endif 129 | 130 | -------------------------------------------------------------------------------- /darwinup/SerialSet.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2010 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include "SerialSet.h" 34 | 35 | #include 36 | #include 37 | #include 38 | 39 | SerialSet::SerialSet() { 40 | capacity = 0; 41 | count = 0; 42 | values = (uint64_t*)malloc(0); 43 | } 44 | 45 | SerialSet::~SerialSet() { 46 | if (values) free(values); 47 | } 48 | 49 | int SerialSet::add(uint64_t value) { 50 | // If the serial already exists in the set, then there's nothing to be done 51 | uint32_t i; 52 | for (i = 0; i < this->count; ++i) { 53 | if (this->values[i] == value) { 54 | return 0; 55 | } 56 | } 57 | 58 | // Otherwise, append it to the end of the set 59 | this->count++; 60 | if (this->count > this->capacity) { 61 | this->capacity += 10; 62 | this->values = (uint64_t*)realloc(this->values, this->capacity * sizeof(uint64_t)); 63 | assert(this->values != NULL); 64 | } 65 | this->values[this->count-1] = value; 66 | 67 | return 0; 68 | } 69 | -------------------------------------------------------------------------------- /darwinup/SerialSet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2010 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #ifndef _SERIALSET_H 34 | #define _SERIALSET_H 35 | 36 | #include 37 | #include 38 | 39 | // a variably lengthed set of serial numbers from the database 40 | struct SerialSet { 41 | SerialSet(); 42 | ~SerialSet(); 43 | 44 | int add(uint64_t value); 45 | 46 | uint32_t capacity; 47 | uint32_t count; 48 | uint64_t* values; 49 | }; 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /darwinup/Utils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005-2010 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #ifndef _UTILS_H 34 | #define _UTILS_H 35 | 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | #include 42 | #include 43 | #include 44 | #include 45 | #include 46 | #include 47 | #include 48 | #include 49 | #include 50 | #include 51 | #include 52 | 53 | 54 | const uint32_t VERBOSE = 0x1; 55 | const uint32_t VERBOSE_DEBUG = 0x2; 56 | const uint32_t VERBOSE_SQL = 0x4; 57 | 58 | #define IF_DEBUG(...) do { extern uint32_t verbosity; if (verbosity & VERBOSE_DEBUG) fprintf(stderr, "DEBUG: " __VA_ARGS__); } while (0) 59 | #define IF_SQL(...) do { extern uint32_t verbosity; if (verbosity & VERBOSE_SQL) fprintf(stderr, "DEBUG: " __VA_ARGS__); } while (0) 60 | 61 | int fts_compare(const FTSENT **a, const FTSENT **b); 62 | size_t ftsent_filename(FTSENT* ent, char* filename, size_t bufsiz); 63 | int mkdir_p(const char* path); 64 | int remove_directory(const char* path); 65 | int is_directory(const char* path); 66 | int is_directory(const char* path, bool followlinks); 67 | int is_regular_file(const char* path); 68 | int is_url_path(const char* path); 69 | int is_userhost_path(const char* path); 70 | int has_suffix(const char* str, const char* sfx); 71 | 72 | int exec_with_args(const char** args); 73 | int exec_with_args_pipe(const char** args, int fd); 74 | int exec_with_args_fa(const char** args, posix_spawn_file_actions_t* fa); 75 | 76 | int join_path(char** out, const char* p1, const char* p2); 77 | int compact_slashes(char* orig, int slashes); 78 | 79 | char* fetch_url(const char* srcpath, const char* dstpath); 80 | char* fetch_userhost(const char* srcpath, const char* dstpath); 81 | 82 | int find_base_system_path(char** output, const char* path); 83 | int update_dyld_shared_cache(const char* path); 84 | int update_xpc_services_cache(const char* path); 85 | 86 | #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 87 | int build_number_for_path(char** build, const char* path); 88 | int tell_finder_to_restart(); 89 | #endif 90 | 91 | void __data_hex(FILE* f, uint8_t* data, uint32_t size); 92 | 93 | // print a horizontal line to stdout 94 | void hr(); 95 | 96 | inline bool INFO_TEST(uint64_t word, uint64_t flag) { return ((word & flag) != 0); } 97 | inline uint64_t INFO_SET(uint64_t word, uint64_t flag) { return (word | flag); } 98 | inline uint64_t INFO_CLR(uint64_t word, uint64_t flag) { return (word & (~flag)); } 99 | 100 | #endif 101 | -------------------------------------------------------------------------------- /darwinxref/DBDataStore.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #ifndef __DARWINBUILD_DATASTORE_H__ 34 | #define __DARWINBUILD_DATASTORE_H__ 35 | 36 | #include "sqlite3.h" 37 | 38 | int SQL(const char* fmt, ...); 39 | int SQL_BOOLEAN(const char* fmt, ...); 40 | int SQL_CALLBACK(sqlite3_callback callback, void* context, const char* fmt, ...); 41 | void SQL_NOERR(char* sql); 42 | char* SQL_STRING(const char* fmt, ...); 43 | 44 | void* _DBPluginGetDataStorePtr(); 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /darwinxref/DBPluginPriv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include "DBPlugin.h" 34 | 35 | /*! 36 | @typedef DBPlugin 37 | Basic plugin data structure returned by plugin's initialize function. 38 | @field version kDBPluginCurrentVersion (this structure is version 0). 39 | @field type kDBPluginType, or kDBPluginPropertyType. 40 | @field name The name of the plugin (visible from the command line). 41 | @field run The function to call when the plugin is invoked from the 42 | command line. 43 | @field usage The function that returns the command line usage string 44 | for this plugin. 45 | @field datatype The datatype of this property 46 | (i.e. one of CFStringGetTypeID(), CFArrayGetTypeID(), CFDictionaryGetTypeID()) 47 | @field subdictdatatype For dictionary data types, force values to be 48 | this type (i.e. CFArrayGetTypeID()) 49 | @field getprop The property get accessor, NULL for default behavior 50 | @field setprop The property set accessor, NULL for default behavior 51 | */ 52 | struct DBPlugin { 53 | // for all plugins 54 | UInt32 type; 55 | CFStringRef name; 56 | // for compiled plugins 57 | DBPluginRunFunc run; 58 | DBPluginUsageFunc usage; 59 | #if HAVE_TCL_PLUGINS 60 | // for tcl plugins 61 | void* interp; 62 | #endif 63 | // for property plugins 64 | CFTypeID datatype; 65 | CFTypeID subdictdatatype; 66 | // DBPluginGetPropFunc getprop; 67 | // DBPluginSetPropFunc setprop; 68 | }; 69 | 70 | void* _DBPluginGetDataStorePtr(); 71 | DBPlugin* _DBPluginGetCurrentPlugin(); 72 | 73 | const DBPlugin* DBGetPluginWithName(CFStringRef name); 74 | 75 | int DBBeginTransaction(); 76 | int DBRollbackTransaction(); 77 | int DBCommitTransaction(); 78 | 79 | #if HAVE_TCL_PLUGINS 80 | int load_tcl_plugin(DBPlugin* plugin, const char* filename); 81 | CFStringRef _DBPluginTclUsage(); 82 | int _DBPluginTclRun(CFArrayRef args); 83 | #endif 84 | 85 | int DBPluginLoadPlugins(const char* path); 86 | int run_plugin(int argc, char* argv[]); 87 | int DBDataStoreInitialize(const char* datafile); 88 | void DBSetCurrentBuild(char* build); 89 | 90 | void print_usage(char* progname, int argc, char* argv[]); 91 | 92 | -------------------------------------------------------------------------------- /darwinxref/cfutils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #ifndef __cfutils_h__ 34 | #define __cfutils_h__ 35 | 36 | #include 37 | 38 | CFPropertyListRef read_plist(char* path); 39 | char* strdup_cfstr(CFStringRef str); 40 | CFStringRef cfstr(const char* str); 41 | int cfprintf(FILE* file, const char* format, ...); 42 | CFArrayRef dictionaryGetSortedKeys(CFDictionaryRef dictionary); 43 | int writePlist(FILE* f, CFPropertyListRef p, int tabs); 44 | CFArrayRef tokenizeString(CFStringRef str); 45 | CFDictionaryRef mergeDictionaries(CFDictionaryRef dst, CFDictionaryRef src); 46 | void arrayAppendArrayDistinct(CFMutableArrayRef array, CFArrayRef other); 47 | 48 | extern CFArrayCallBacks cfArrayCStringCallBacks; 49 | extern CFDictionaryKeyCallBacks cfDictionaryCStringKeyCallBacks; 50 | extern CFDictionaryValueCallBacks cfDictionaryCStringValueCallBacks; 51 | 52 | #endif // __cfutils_h__ 53 | -------------------------------------------------------------------------------- /darwinxref/plugins-darwinports/Portfile.tcl: -------------------------------------------------------------------------------- 1 | DBPluginSetName Portfile 2 | DBPluginSetType property.project 3 | DBPluginSetDatatype data 4 | 5 | proc run {args} { 6 | set project [lindex $args 0] 7 | set build [DBGetCurrentBuild] 8 | fconfigure stdout -encoding binary -translation binary 9 | puts -nonewline [DBCopyPropData $build $project Portfile] 10 | } 11 | -------------------------------------------------------------------------------- /darwinxref/plugins-darwinports/categories.tcl: -------------------------------------------------------------------------------- 1 | DBPluginSetName categories 2 | DBPluginSetType property.project 3 | DBPluginSetDatatype array 4 | -------------------------------------------------------------------------------- /darwinxref/plugins-darwinports/depends_build.tcl: -------------------------------------------------------------------------------- 1 | DBPluginSetName depends_build 2 | DBPluginSetType property.project 3 | DBPluginSetDatatype array 4 | -------------------------------------------------------------------------------- /darwinxref/plugins-darwinports/depends_lib.tcl: -------------------------------------------------------------------------------- 1 | DBPluginSetName depends_lib 2 | DBPluginSetType property.project 3 | DBPluginSetDatatype array 4 | -------------------------------------------------------------------------------- /darwinxref/plugins-darwinports/description.tcl: -------------------------------------------------------------------------------- 1 | DBPluginSetName description 2 | DBPluginSetType property.project 3 | DBPluginSetDatatype string 4 | -------------------------------------------------------------------------------- /darwinxref/plugins-darwinports/homepage.tcl: -------------------------------------------------------------------------------- 1 | DBPluginSetName homepage 2 | DBPluginSetType property.project 3 | DBPluginSetDatatype string 4 | -------------------------------------------------------------------------------- /darwinxref/plugins-darwinports/long_description.tcl: -------------------------------------------------------------------------------- 1 | DBPluginSetName long_description 2 | DBPluginSetType property.project 3 | DBPluginSetDatatype string 4 | -------------------------------------------------------------------------------- /darwinxref/plugins-darwinports/maintainers.tcl: -------------------------------------------------------------------------------- 1 | DBPluginSetName maintainers 2 | DBPluginSetType property.project 3 | DBPluginSetDatatype array 4 | -------------------------------------------------------------------------------- /darwinxref/plugins-darwinports/master_sites.tcl: -------------------------------------------------------------------------------- 1 | DBPluginSetName master_sites 2 | DBPluginSetType property.project 3 | DBPluginSetDatatype array 4 | -------------------------------------------------------------------------------- /darwinxref/plugins-darwinports/patch_sites.tcl: -------------------------------------------------------------------------------- 1 | DBPluginSetName patch_sites 2 | DBPluginSetType property.project 3 | DBPluginSetDatatype array 4 | -------------------------------------------------------------------------------- /darwinxref/plugins-darwinports/platforms.tcl: -------------------------------------------------------------------------------- 1 | DBPluginSetName platforms 2 | DBPluginSetType property.project 3 | DBPluginSetDatatype array 4 | -------------------------------------------------------------------------------- /darwinxref/plugins/binary_sites.tcl: -------------------------------------------------------------------------------- 1 | DBPluginSetName binary_sites 2 | DBPluginSetType property 3 | DBPluginSetDatatype array 4 | -------------------------------------------------------------------------------- /darwinxref/plugins/branch.tcl: -------------------------------------------------------------------------------- 1 | DBPluginSetName branch 2 | DBPluginSetType property.project 3 | DBPluginSetDatatype string 4 | -------------------------------------------------------------------------------- /darwinxref/plugins/c_plugins.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) 2009 Apple Computer, Inc. All rights reserved. 3 | // 4 | // @APPLE_BSD_LICENSE_HEADER_START@ 5 | // 6 | // Redistribution and use in source and binary forms, with or without 7 | // modification, are permitted provided that the following conditions 8 | // are met: 9 | // 10 | // 1. Redistributions of source code must retain the above copyright 11 | // notice, this list of conditions and the following disclaimer. 12 | // 2. Redistributions in binary form must reproduce the above copyright 13 | // notice, this list of conditions and the following disclaimer in the 14 | // documentation and/or other materials provided with the distribution. 15 | // 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | // its contributors may be used to endorse or promote products derived 17 | // from this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | // DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // @APPLE_BSD_LICENSE_HEADER_END@ 31 | // 32 | LINK_WITH_STANDARD_LIBRARIES = YES 33 | MACH_O_TYPE = mh_bundle 34 | LD_OPENMP_FLAGS = 35 | PREBINDING = NO 36 | KEEP_PRIVATE_EXTERNS = NO 37 | EXECUTABLE_EXTENSION = so 38 | ALWAYS_SEARCH_USER_PATHS = NO 39 | GCC_WARN_UNUSED_FUNCTION = YES 40 | GCC_WARN_UNUSED_LABEL = YES 41 | GCC_WARN_UNUSED_VALUE = YES 42 | GCC_WARN_UNUSED_VARIABLE = YES 43 | OTHER_CFLAGS = 44 | OTHER_LDFLAGS = -framework CoreFoundation -ltcl -lsqlite3 45 | PRODUCT_NAME = $(TARGET_NAME) 46 | WARNING_CFLAGS = -Werror -Wall 47 | PREFIX = /usr/local 48 | BINDIR = $(PREFIX)/bin 49 | DATDIR = $(PREFIX)/share 50 | INCDIR = $(PREFIX)/include 51 | INSTALL_PATH = $(DATDIR)/darwinxref/plugins 52 | DSTROOT = $(BUILT_PRODUCTS_DIR) 53 | BUNDLE_LOADER = $(DSTROOT)/$(BINDIR)/darwinxref 54 | DEPLOYMENT_LOCATION = YES 55 | HEADER_SEARCH_PATHS = . 56 | SKIP_INSTALL = NO 57 | -------------------------------------------------------------------------------- /darwinxref/plugins/configuration.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2008 Apple Computer, Inc. All rights reserved. 3 | * Portions copyright (c) 2008 Ben Huntsman 4 | * 5 | * @APPLE_BSD_LICENSE_HEADER_START@ 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * 1. Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 2. Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in the 15 | * documentation and/or other materials provided with the distribution. 16 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 17 | * its contributors may be used to endorse or promote products derived 18 | * from this software without specific prior written permission. 19 | * 20 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 21 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 23 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 24 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 25 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 26 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 27 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | * 31 | * @APPLE_BSD_LICENSE_HEADER_END@ 32 | * 33 | */ 34 | 35 | 36 | /* 37 | * Support alternate build configurations, via 'xcodebuild -configuration' 38 | * 20081124 - Ben Huntsman 39 | */ 40 | 41 | #include "DBPlugin.h" 42 | 43 | int initialize(int version) { 44 | //if ( version < kDBPluginCurrentVersion ) return -1; 45 | 46 | DBPluginSetType(kDBPluginProjectPropertyType); 47 | DBPluginSetName(CFSTR("configuration")); 48 | DBPluginSetRunFunc(&DBPluginPropertyDefaultRun); 49 | DBPluginSetUsageFunc(&DBPluginPropertyDefaultUsage); 50 | DBPluginSetDataType(CFStringGetTypeID()); 51 | return 0; 52 | } 53 | 54 | -------------------------------------------------------------------------------- /darwinxref/plugins/currentBuild.tcl: -------------------------------------------------------------------------------- 1 | DBPluginSetName currentBuild 2 | DBPluginSetType basic 3 | 4 | proc usage {} { 5 | return {} 6 | } 7 | 8 | proc run {args} { 9 | puts [DBGetCurrentBuild] 10 | } 11 | -------------------------------------------------------------------------------- /darwinxref/plugins/darwin.tcl: -------------------------------------------------------------------------------- 1 | DBPluginSetName darwin 2 | DBPluginSetType property.build 3 | DBPluginSetDatatype string 4 | -------------------------------------------------------------------------------- /darwinxref/plugins/descrip.txt: -------------------------------------------------------------------------------- 1 | This is an informal document on the core darwinxref plugins, describing 2 | what queries the plugins support, and what plist input format they 3 | use. This should eventually make its way to the online documentation. 4 | 5 | * binary_sites 6 | Meaning: "binary_sites" stores a set of URLs from where archived 7 | build roots can be downloaded. 8 | Input plist: Each build can have an array of "binary_sites", 9 | which are URLs. Additionally, each project can have 10 | a set of URLs. 11 | Query: If a project had "binary_sites", it will be returned. 12 | If not, the global "binary_sites" for that build will 13 | be returned (not currently implemented XXX). If 14 | no project is specified, the global "binary_sites" for 15 | the build will be returned. 16 | 17 | * plist_sites 18 | Meaning: "plist_sites" stores a set of URLs from where 19 | additional build plists can be downloaded, for instance 20 | to resolve "inherits" build chains 21 | Input plist: Each build can have an array of "plist_sites" 22 | Query: The set of URLs for the build will be returned. 23 | 24 | 25 | * source_sites 26 | 27 | * patchfiles 28 | Meaning: "patchfiles" stores a set of patch file names 29 | for a project which can be downloaded from "source_sites". 30 | To avoid collisions, names should be unique unless 31 | a patch applies to multiple project versions. 32 | Input plist: Each project can have an array of "patchfiles" 33 | Query: The set of patch file names for a given build and 34 | project will be returned. 35 | -------------------------------------------------------------------------------- /darwinxref/plugins/dot.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * Portions copyright (c) 2008 Michael Franz 4 | * 5 | * @APPLE_BSD_LICENSE_HEADER_START@ 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * 1. Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 2. Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in the 15 | * documentation and/or other materials provided with the distribution. 16 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 17 | * its contributors may be used to endorse or promote products derived 18 | * from this software without specific prior written permission. 19 | * 20 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 21 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 23 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 24 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 25 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 26 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 27 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | * 31 | * @APPLE_BSD_LICENSE_HEADER_END@ 32 | */ 33 | 34 | #include "DBPlugin.h" 35 | 36 | static int run(CFArrayRef argv) { 37 | 38 | // get a list of all builds in the database 39 | CFArrayRef builds = DBCopyBuilds(); 40 | CFIndex buildCount = CFArrayGetCount(builds); 41 | 42 | // make a directed graph in dot format 43 | cfprintf(stdout, "digraph \"all_builds\" {\n"); 44 | 45 | int j; 46 | for (j =0; j < buildCount; ++j) { 47 | // get the j-th build and the build it inherits from 48 | CFStringRef build = CFArrayGetValueAtIndex(builds, j); 49 | CFStringRef parent = DBCopyOnePropString(build, NULL, CFSTR("inherits")); 50 | 51 | // if there is an inheritance, print an edgeop 52 | if (parent) { 53 | cfprintf(stdout, "\t\"%@\" -> \"%@\"\n", parent, build); 54 | CFRelease(parent); 55 | } else { 56 | // else just print a node in case its an orphan 57 | cfprintf(stdout, "\t\"%@\"\n", build); 58 | } 59 | } 60 | 61 | // close the digraph stanza 62 | cfprintf(stdout, "}\n"); 63 | 64 | CFRelease(builds); 65 | 66 | return 0; 67 | } 68 | 69 | static CFStringRef usage() { 70 | return CFRetain(CFSTR("")); 71 | } 72 | 73 | int initialize(int version) { 74 | 75 | DBPluginSetType(kDBPluginPropertyType); 76 | DBPluginSetName(CFSTR("dot")); 77 | DBPluginSetRunFunc(&run); 78 | DBPluginSetUsageFunc(&usage); 79 | DBPluginSetDataType(CFStringGetTypeID()); 80 | 81 | return 0; 82 | } 83 | -------------------------------------------------------------------------------- /darwinxref/plugins/environment.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include "DBPlugin.h" 34 | 35 | static int run(CFArrayRef argv) { 36 | if (CFArrayGetCount(argv) > 1) return -1; 37 | CFStringRef build = DBGetCurrentBuild(); 38 | CFStringRef project = NULL; 39 | CFDictionaryRef projectEnv = NULL; 40 | CFDictionaryRef globalEnv = DBCopyPropDictionary(build, NULL, CFSTR("environment")); 41 | if (CFArrayGetCount(argv) == 1) { 42 | project = CFArrayGetValueAtIndex(argv, 0); 43 | projectEnv = DBCopyPropDictionary(build, project, CFSTR("environment")); 44 | } 45 | 46 | CFMutableDictionaryRef env = NULL; 47 | 48 | if (globalEnv && projectEnv) { 49 | env = (CFMutableDictionaryRef)mergeDictionaries(projectEnv, globalEnv); 50 | } else if (globalEnv) { 51 | env = (CFMutableDictionaryRef)globalEnv; 52 | } else if (projectEnv) { 53 | env = (CFMutableDictionaryRef)projectEnv; 54 | } else { 55 | return 0; 56 | } 57 | 58 | // Auto-generate some variables based on RC_ARCHS and RC_NONARCH_CFLAGS 59 | // RC_CFLAGS=$RC_NONARCH_CFLAGS -arch ${arch} 60 | // RC_${arch}=YES 61 | CFStringRef str = CFDictionaryGetValue(env, CFSTR("RC_NONARCH_CFLAGS")); 62 | if (!str) str = CFSTR(""); 63 | CFMutableStringRef cflags = CFStringCreateMutableCopy(NULL, 0, str); 64 | str = CFDictionaryGetValue(env, CFSTR("RC_ARCHS")); 65 | if (str) { 66 | CFMutableStringRef trimmed = CFStringCreateMutableCopy(NULL, 0, str); 67 | CFStringTrimWhitespace(trimmed); 68 | CFArrayRef archs = tokenizeString(trimmed); 69 | CFIndex i, count = CFArrayGetCount(archs); 70 | for (i = 0; i < count; ++i) { 71 | CFStringRef arch = CFArrayGetValueAtIndex(archs, i); 72 | // -arch ${arch} 73 | CFStringAppendFormat(cflags, NULL, CFSTR(" -arch %@"), arch); 74 | 75 | // RC_${arch}=YES 76 | CFStringRef name = CFStringCreateWithFormat(NULL, NULL, CFSTR("RC_%@"), arch); 77 | CFDictionarySetValue(env, name, CFSTR("YES")); 78 | CFRelease(name); 79 | } 80 | CFRelease(trimmed); 81 | } 82 | CFDictionarySetValue(env, CFSTR("RC_CFLAGS"), cflags); 83 | 84 | // print variables to stdout 85 | CFArrayRef keys = dictionaryGetSortedKeys(env); 86 | CFIndex i, count = CFArrayGetCount(keys); 87 | for (i = 0; i < count; ++i) { 88 | CFStringRef name = CFArrayGetValueAtIndex(keys, i); 89 | CFStringRef value = CFDictionaryGetValue(env, name); 90 | cfprintf(stdout, "%@=%@\n", name, value); 91 | } 92 | return 0; 93 | } 94 | 95 | int initialize(int version) { 96 | //if ( version < kDBPluginCurrentVersion ) return -1; 97 | 98 | DBPluginSetType(kDBPluginPropertyType); 99 | DBPluginSetName(CFSTR("environment")); 100 | DBPluginSetRunFunc(&run); 101 | DBPluginSetUsageFunc(&DBPluginPropertyDefaultUsage); 102 | DBPluginSetDataType(CFDictionaryGetTypeID()); 103 | return 0; 104 | } 105 | -------------------------------------------------------------------------------- /darwinxref/plugins/exportFiles.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include "DBPlugin.h" 34 | #include "DBDataStore.h" 35 | #include 36 | #include 37 | #include 38 | 39 | static int exportFiles(char* buildparam, char* project); 40 | 41 | static int run(CFArrayRef argv) { 42 | int res = 0; 43 | CFIndex count = CFArrayGetCount(argv); 44 | if (count > 1) return -1; 45 | 46 | char* project = NULL; 47 | if (count == 1) { 48 | project = strdup_cfstr(CFArrayGetValueAtIndex(argv, 0)); 49 | } 50 | 51 | char* build = strdup_cfstr(DBGetCurrentBuild()); 52 | exportFiles(build, project); 53 | if (project) free(project); 54 | return res; 55 | } 56 | 57 | static CFStringRef usage() { 58 | return CFRetain(CFSTR("[]")); 59 | } 60 | 61 | int initialize(int version) { 62 | //if ( version < kDBPluginCurrentVersion ) return -1; 63 | 64 | DBPluginSetType(kDBPluginBasicType); 65 | DBPluginSetName(CFSTR("exportFiles")); 66 | DBPluginSetRunFunc(&run); 67 | DBPluginSetUsageFunc(&usage); 68 | return 0; 69 | } 70 | 71 | int printFiles(void* pArg, int argc, char **argv, char** columnNames) { 72 | fprintf(stdout, "\t%s\n", argv[0]); 73 | return 0; 74 | } 75 | 76 | static int exportFiles(char* build, char* project) { 77 | int res; 78 | 79 | char* table = "CREATE TABLE files (build text, project text, path text)"; 80 | char* index = "CREATE INDEX files_index ON files (build, project, path)"; 81 | SQL_NOERR(table); 82 | SQL_NOERR(index); 83 | 84 | fprintf(stdout, "# BUILD %s\n", build); 85 | 86 | if (project) { 87 | fprintf(stdout, "%s:\n", project); 88 | res = SQL_CALLBACK(&printFiles, NULL, 89 | "SELECT path FROM files WHERE build=%Q AND project=%Q", 90 | build, project); 91 | } else { 92 | CFArrayRef projects = DBCopyProjectNames(DBGetCurrentBuild()); 93 | if (projects) { 94 | CFIndex i, count = CFArrayGetCount(projects); 95 | for (i = 0; i < count; ++i) { 96 | CFStringRef name = CFArrayGetValueAtIndex(projects, i); 97 | char* project = strdup_cfstr(name); 98 | fprintf(stdout, "%s:\n", project); 99 | res = SQL_CALLBACK(&printFiles, NULL, 100 | "SELECT path FROM files WHERE build=%Q AND project=%Q", 101 | build, project); 102 | free(project); 103 | } 104 | CFRelease(projects); 105 | } 106 | } 107 | 108 | return 0; 109 | } 110 | -------------------------------------------------------------------------------- /darwinxref/plugins/exportIndex.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include "DBPlugin.h" 34 | #include 35 | #include 36 | 37 | static int run(CFArrayRef argv) { 38 | ssize_t res = 0; 39 | CFIndex count = CFArrayGetCount(argv); 40 | if (count > 2) return -1; 41 | int xml = 0; 42 | CFStringRef build = DBGetCurrentBuild(); 43 | if (count >= 1) { 44 | CFStringRef arg = CFArrayGetValueAtIndex(argv, 0); 45 | xml = CFEqual(arg, CFSTR("-xml")); 46 | // -xml is the only supported option 47 | if (xml && count == 2) { 48 | build = CFArrayGetValueAtIndex(argv, 1); 49 | } else if (!xml && count == 1) { 50 | build = arg; 51 | } 52 | } 53 | 54 | CFPropertyListRef plist = DBCopyBuildPlist(build); 55 | if (xml) { 56 | CFDataRef data = CFPropertyListCreateData(kCFAllocatorDefault, 57 | plist, 58 | kCFPropertyListXMLFormat_v1_0, 59 | 0, 60 | NULL); 61 | res = write(STDOUT_FILENO, CFDataGetBytePtr(data), (size_t)CFDataGetLength(data)); 62 | } else { 63 | res = writePlist(stdout, plist, 0); 64 | } 65 | return (int)res; 66 | } 67 | 68 | static CFStringRef usage() { 69 | return CFRetain(CFSTR("[-xml] []")); 70 | } 71 | 72 | int initialize(int version) { 73 | //if ( version < kDBPluginCurrentVersion ) return -1; 74 | 75 | DBPluginSetType(kDBPluginBasicType); 76 | DBPluginSetName(CFSTR("exportIndex")); 77 | DBPluginSetRunFunc(&run); 78 | DBPluginSetUsageFunc(&usage); 79 | return 0; 80 | } 81 | 82 | -------------------------------------------------------------------------------- /darwinxref/plugins/exportProject.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include "DBPlugin.h" 34 | #include 35 | #include 36 | #include 37 | 38 | static int run(CFArrayRef argv) { 39 | ssize_t res = 0; 40 | CFIndex count = CFArrayGetCount(argv); 41 | if (count > 2) return -1; 42 | int xml = 0, i; 43 | CFMutableDictionaryRef dict, preplist; 44 | CFDictionaryRef project = NULL; 45 | CFStringRef projname; 46 | CFArrayRef builds; 47 | const void *ssites, *bsites; 48 | CFStringRef build = DBGetCurrentBuild(); 49 | 50 | if (count == 2) { 51 | CFStringRef arg = CFArrayGetValueAtIndex(argv, 0); 52 | xml = CFEqual(arg, CFSTR("-xml")); 53 | // -xml is the only supported option 54 | if (!xml) return -1; 55 | projname = CFArrayGetValueAtIndex(argv, 1); 56 | } else if (count == 1 ) { 57 | projname = CFArrayGetValueAtIndex(argv, 0); 58 | } else 59 | return -1; 60 | 61 | builds = DBCopyBuildInheritance(build); 62 | dict = CFDictionaryCreateMutable(NULL, 0, &kCFTypeDictionaryKeyCallBacks,&kCFTypeDictionaryValueCallBacks); 63 | 64 | preplist = (CFMutableDictionaryRef)DBCopyProjectPlist(build, NULL); 65 | ssites = CFDictionaryGetValue(preplist, CFSTR("source_sites")); 66 | bsites = CFDictionaryGetValue(preplist, CFSTR("binary_sites")); 67 | 68 | preplist = CFDictionaryCreateMutable(NULL, 0, &kCFTypeDictionaryKeyCallBacks,&kCFTypeDictionaryValueCallBacks); 69 | for( i = 0; i < CFArrayGetCount(builds); i++ ) { 70 | build = CFArrayGetValueAtIndex(builds, i); 71 | project = DBCopyProjectPlist(build, projname); 72 | if( CFDictionaryGetCount(project) > 0 ) 73 | break; 74 | } 75 | if( CFDictionaryGetCount(project) < 1 ) 76 | return -1; 77 | CFDictionaryAddValue(dict, projname, project); 78 | CFRelease(project); 79 | CFDictionarySetValue(preplist, CFSTR("build"), build); 80 | CFDictionarySetValue(preplist, CFSTR("projects"), dict); 81 | if(ssites) CFDictionarySetValue(preplist, CFSTR("source_sites"), ssites); 82 | if(bsites) CFDictionarySetValue(preplist, CFSTR("binary_sites"), bsites); 83 | 84 | CFPropertyListRef plist = preplist; 85 | if (xml) { 86 | CFDataRef data = CFPropertyListCreateXMLData(NULL, plist); 87 | res = write(STDOUT_FILENO, CFDataGetBytePtr(data), (ssize_t)CFDataGetLength(data)); 88 | } else { 89 | res = writePlist(stdout, plist, 0); 90 | } 91 | return (int)res; 92 | } 93 | 94 | static CFStringRef usage() { 95 | return CFRetain(CFSTR("[-xml] project")); 96 | } 97 | 98 | int initialize(int version) { 99 | //if ( version < kDBPluginCurrentVersion ) return -1; 100 | 101 | DBPluginSetType(kDBPluginBasicType); 102 | DBPluginSetName(CFSTR("exportProject")); 103 | DBPluginSetRunFunc(&run); 104 | DBPluginSetUsageFunc(&usage); 105 | return 0; 106 | } 107 | 108 | -------------------------------------------------------------------------------- /darwinxref/plugins/findFile.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include "DBPlugin.h" 34 | #include "DBDataStore.h" 35 | #include 36 | #include 37 | #include 38 | 39 | static int findFile(char* file, char* build); 40 | 41 | static int run(CFArrayRef argv) { 42 | int res = 0; 43 | CFIndex count = CFArrayGetCount(argv); 44 | if (count != 1) return -1; 45 | 46 | char* file = strdup_cfstr(CFArrayGetValueAtIndex(argv, 0)); 47 | char* build = strdup_cfstr(DBGetCurrentBuild()); 48 | 49 | findFile(file, build); 50 | 51 | if (file) free(file); 52 | return res; 53 | } 54 | 55 | static CFStringRef usage() { 56 | return CFRetain(CFSTR("")); 57 | } 58 | 59 | int initialize(int version) { 60 | //if ( version < kDBPluginCurrentVersion ) return -1; 61 | 62 | DBPluginSetType(kDBPluginBasicType); 63 | DBPluginSetName(CFSTR("findFile")); 64 | DBPluginSetRunFunc(&run); 65 | DBPluginSetUsageFunc(&usage); 66 | return 0; 67 | } 68 | 69 | int printFiles(void* pArg, int argc, char **argv, char** columnNames) { 70 | char* project = (char*)pArg; 71 | if (strcmp(project, argv[0]) != 0) { 72 | strncpy(project, argv[0], BUFSIZ); 73 | fprintf(stdout, "%s:\n", project); 74 | } 75 | fprintf(stdout, "\t%s\n", argv[1]); 76 | return 0; 77 | } 78 | 79 | static int findFile(char* file, char* build) { 80 | char project[BUFSIZ]; 81 | project[0] = 0; 82 | asprintf(&file, "%%%s", file); 83 | SQL_CALLBACK(&printFiles, project, 84 | "SELECT project,path FROM files WHERE build=%Q AND path LIKE %Q ORDER BY project, path", 85 | build, file); 86 | return 0; 87 | } 88 | -------------------------------------------------------------------------------- /darwinxref/plugins/group.tcl: -------------------------------------------------------------------------------- 1 | DBPluginSetName group 2 | DBPluginSetType basic 3 | 4 | proc usage {} { 5 | return {} 6 | } 7 | 8 | proc run {args} { 9 | set group [lindex $args 0] 10 | if {$group == ""} { return -1 } 11 | foreach member [DBCopyGroupMembers [DBGetCurrentBuild] $group] { 12 | puts $member 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /darwinxref/plugins/inherits.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include "DBPlugin.h" 34 | 35 | int initialize(int version) { 36 | //if ( version < kDBPluginCurrentVersion ) return -1; 37 | 38 | DBPluginSetType(kDBPluginBuildPropertyType); 39 | DBPluginSetName(CFSTR("inherits")); 40 | DBPluginSetRunFunc(&DBPluginPropertyDefaultRun); 41 | DBPluginSetUsageFunc(&DBPluginPropertyDefaultUsage); 42 | DBPluginSetDataType(CFStringGetTypeID()); 43 | return 0; 44 | } 45 | -------------------------------------------------------------------------------- /darwinxref/plugins/loadIndex.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include "DBPlugin.h" 34 | #include 35 | 36 | static int run(CFArrayRef argv) { 37 | int res = 0; 38 | CFIndex count = CFArrayGetCount(argv); 39 | if (count != 1) return -1; 40 | char* filename = strdup_cfstr(CFArrayGetValueAtIndex(argv, 0)); 41 | CFPropertyListRef plist = read_plist(filename); 42 | if (plist) { 43 | res = DBSetPlist(NULL, NULL, plist); 44 | } 45 | free(filename); 46 | return res; 47 | } 48 | 49 | static CFStringRef usage() { 50 | return CFRetain(CFSTR("")); 51 | } 52 | 53 | int initialize(int version) { 54 | //if ( version < kDBPluginCurrentVersion ) return -1; 55 | 56 | DBPluginSetType(kDBPluginBasicType); 57 | DBPluginSetName(CFSTR("loadIndex")); 58 | DBPluginSetRunFunc(&run); 59 | DBPluginSetUsageFunc(&usage); 60 | return 0; 61 | } 62 | -------------------------------------------------------------------------------- /darwinxref/plugins/macosx.tcl: -------------------------------------------------------------------------------- 1 | DBPluginSetName macosx 2 | DBPluginSetType property.build 3 | DBPluginSetDatatype string 4 | -------------------------------------------------------------------------------- /darwinxref/plugins/mergeBuild.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include "DBPlugin.h" 34 | 35 | static void addValues(const void* key, const void* value, void* context); 36 | 37 | int run(CFArrayRef argv) { 38 | int res = 0; 39 | CFIndex count = CFArrayGetCount(argv); 40 | if (count != 2) return -1; 41 | 42 | CFStringRef oldbuild = CFArrayGetValueAtIndex(argv, 0); 43 | CFStringRef newbuild = CFArrayGetValueAtIndex(argv, 1); 44 | 45 | if (!DBHasBuild(oldbuild)) cfprintf(stderr, "Error: no such build: %@\n", oldbuild); 46 | if (!DBHasBuild(newbuild)) cfprintf(stderr, "Error: no such build: %@\n", newbuild); 47 | 48 | CFPropertyListRef oldplist = DBCopyBuildPlist(oldbuild); 49 | CFPropertyListRef newplist = DBCopyBuildPlist(newbuild); 50 | 51 | CFDictionaryRef oldprojects = CFDictionaryGetValue(oldplist, CFSTR("projects")); 52 | CFDictionaryRef newprojects = CFDictionaryGetValue(newplist, CFSTR("projects")); 53 | 54 | CFArrayRef names = dictionaryGetSortedKeys(newprojects); 55 | 56 | CFIndex i; 57 | count = CFArrayGetCount(names); 58 | for (i = 0; i < count; ++i) { 59 | CFStringRef name = CFArrayGetValueAtIndex(names, i); 60 | CFDictionaryRef oldproj = CFDictionaryGetValue(oldprojects, name); 61 | CFDictionaryRef newproj = CFDictionaryGetValue(newprojects, name); 62 | 63 | if (oldproj && newproj) { 64 | CFDictionaryApplyFunction(oldproj, addValues, (void*)newproj); 65 | } 66 | } 67 | DBSetPlist(newbuild, NULL, newplist); 68 | CFRelease(oldplist); 69 | CFRelease(newplist); 70 | 71 | return res; 72 | } 73 | 74 | static void addValues(const void* key, const void* value, void* context) { 75 | CFDictionaryAddValue((CFMutableDictionaryRef)context, (CFStringRef)key, (CFTypeRef)value); 76 | } 77 | 78 | static CFStringRef usage() { 79 | return CFRetain(CFSTR(" ")); 80 | } 81 | 82 | int initialize(int version) { 83 | //if ( version < kDBPluginCurrentVersion ) return -1; 84 | 85 | DBPluginSetType(kDBPluginBasicType); 86 | DBPluginSetName(CFSTR("mergeBuild")); 87 | DBPluginSetRunFunc(&run); 88 | DBPluginSetUsageFunc(&usage); 89 | return 0; 90 | } 91 | -------------------------------------------------------------------------------- /darwinxref/plugins/original.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include "DBPlugin.h" 34 | 35 | int initialize(int version) { 36 | //if ( version < kDBPluginCurrentVersion ) return -1; 37 | 38 | DBPluginSetType(kDBPluginProjectPropertyType); 39 | DBPluginSetName(CFSTR("original")); 40 | DBPluginSetRunFunc(&DBPluginPropertyDefaultRun); 41 | DBPluginSetUsageFunc(&DBPluginPropertyDefaultUsage); 42 | DBPluginSetDataType(CFStringGetTypeID()); 43 | return 0; 44 | } 45 | -------------------------------------------------------------------------------- /darwinxref/plugins/patchfiles.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include "DBPlugin.h" 34 | 35 | int initialize(int version) { 36 | //if ( version < kDBPluginCurrentVersion ) return -1; 37 | 38 | DBPluginSetType(kDBPluginProjectPropertyType); 39 | DBPluginSetName(CFSTR("patchfiles")); 40 | DBPluginSetRunFunc(&DBPluginPropertyDefaultRun); 41 | DBPluginSetUsageFunc(&DBPluginPropertyDefaultUsage); 42 | DBPluginSetDataType(CFArrayGetTypeID()); 43 | return 0; 44 | } 45 | -------------------------------------------------------------------------------- /darwinxref/plugins/plist_sites.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include "DBPlugin.h" 34 | 35 | int initialize(int version) { 36 | //if ( version < kDBPluginCurrentVersion ) return -1; 37 | 38 | DBPluginSetType(kDBPluginBuildPropertyType); 39 | DBPluginSetName(CFSTR("plist_sites")); 40 | DBPluginSetRunFunc(&DBPluginPropertyDefaultRun); 41 | DBPluginSetUsageFunc(&DBPluginPropertyDefaultUsage); 42 | DBPluginSetDataType(CFArrayGetTypeID()); 43 | return 0; 44 | } 45 | -------------------------------------------------------------------------------- /darwinxref/plugins/query.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2010 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include "DBPlugin.h" 34 | 35 | int run(CFArrayRef argv) { 36 | 37 | // check usage 38 | CFIndex count = CFArrayGetCount(argv); 39 | if (count != 3) return -1; 40 | 41 | // get arguments 42 | CFStringRef property = CFArrayGetValueAtIndex(argv, 0); 43 | CFStringRef comparison = CFArrayGetValueAtIndex(argv, 1); 44 | CFStringRef desired_value = CFArrayGetValueAtIndex(argv, 2); 45 | 46 | // get current build and project list 47 | CFStringRef build = DBGetCurrentBuild(); 48 | CFArrayRef projects = DBCopyProjectNames(build); 49 | CFIndex projcount = CFArrayGetCount(projects); 50 | 51 | // test each project for matching query 52 | for (int i=0; i < projcount; i++) { 53 | CFStringRef project = CFArrayGetValueAtIndex(projects, i); 54 | CFStringRef current_value = DBCopyPropString(build, project, property); 55 | 56 | if (current_value && ( 57 | ((CFStringCompare(comparison, CFSTR("="), 0) == 0) && 58 | (CFStringCompare(desired_value, current_value, kCFCompareCaseInsensitive) == kCFCompareEqualTo)) 59 | || 60 | ((CFStringCompare(comparison, CFSTR("!="), 0) == 0) && 61 | (CFStringCompare(desired_value, current_value, kCFCompareCaseInsensitive) != kCFCompareEqualTo)) 62 | || 63 | ((CFStringCompare(comparison, CFSTR(">"), 0) == 0) && 64 | (CFStringCompare(desired_value, current_value, kCFCompareCaseInsensitive) == kCFCompareGreaterThan)) 65 | || 66 | ((CFStringCompare(comparison, CFSTR(">="), 0) == 0) && 67 | (CFStringCompare(desired_value, current_value, kCFCompareCaseInsensitive) != kCFCompareLessThan)) 68 | || 69 | ((CFStringCompare(comparison, CFSTR("<="), 0) == 0) && 70 | (CFStringCompare(desired_value, current_value, kCFCompareCaseInsensitive) != kCFCompareGreaterThan)) 71 | || 72 | ((CFStringCompare(comparison, CFSTR("<"), 0) == 0) && 73 | (CFStringCompare(desired_value, current_value, kCFCompareCaseInsensitive) == kCFCompareLessThan)) 74 | )) { 75 | cfprintf(stdout, "%@\n", project); 76 | } 77 | 78 | if (current_value) CFRelease(current_value); 79 | } 80 | 81 | if (projects) CFRelease(projects); 82 | return 0; 83 | } 84 | 85 | static CFStringRef usage() { 86 | return CFRetain(CFSTR(" " 87 | "\n\t\t... comparison is one of =, !=, >, <, <=, >=")); 88 | } 89 | 90 | int initialize(int version) { 91 | DBPluginSetType(kDBPluginBasicType); 92 | DBPluginSetName(CFSTR("query")); 93 | DBPluginSetRunFunc(&run); 94 | DBPluginSetUsageFunc(&usage); 95 | return 0; 96 | } 97 | -------------------------------------------------------------------------------- /darwinxref/plugins/source_sites.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include "DBPlugin.h" 34 | 35 | int initialize(int version) { 36 | //if ( version < kDBPluginCurrentVersion ) return -1; 37 | 38 | DBPluginSetType(kDBPluginPropertyType); 39 | DBPluginSetName(CFSTR("source_sites")); 40 | DBPluginSetRunFunc(&DBPluginPropertyDefaultRun); 41 | DBPluginSetUsageFunc(&DBPluginPropertyDefaultUsage); 42 | DBPluginSetDataType(CFArrayGetTypeID()); 43 | return 0; 44 | } 45 | -------------------------------------------------------------------------------- /darwinxref/plugins/target.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include "DBPlugin.h" 34 | 35 | int initialize(int version) { 36 | //if ( version < kDBPluginCurrentVersion ) return -1; 37 | 38 | DBPluginSetType(kDBPluginProjectPropertyType); 39 | DBPluginSetName(CFSTR("target")); 40 | DBPluginSetRunFunc(&DBPluginPropertyDefaultRun); 41 | DBPluginSetUsageFunc(&DBPluginPropertyDefaultUsage); 42 | DBPluginSetDataType(CFStringGetTypeID()); 43 | return 0; 44 | } 45 | -------------------------------------------------------------------------------- /darwinxref/plugins/version.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_BSD_LICENSE_HEADER_START@ 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 10 | * 1. Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 2. Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | * its contributors may be used to endorse or promote products derived 17 | * from this software without specific prior written permission. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @APPLE_BSD_LICENSE_HEADER_END@ 31 | */ 32 | 33 | #include "DBPlugin.h" 34 | 35 | void printProjectVersion(CFStringRef project) { 36 | CFStringRef build = DBGetCurrentBuild(); 37 | CFStringRef version = DBCopyPropString(build, project, CFSTR("version")); 38 | if (version) cfprintf(stdout, "%@-%@\n", project, version); 39 | } 40 | 41 | static int run(CFArrayRef argv) { 42 | if (CFArrayGetCount(argv) != 1) return -1; 43 | CFStringRef project = CFArrayGetValueAtIndex(argv, 0); 44 | CFStringRef build = DBGetCurrentBuild(); 45 | 46 | if (CFEqual(project, CFSTR("*"))) { 47 | CFArrayRef projects = DBCopyProjectNames(build); 48 | CFIndex i, count = CFArrayGetCount(projects); 49 | for (i = 0; i < count; ++i) { 50 | printProjectVersion(CFArrayGetValueAtIndex(projects, i)); 51 | } 52 | } else if (CFEqual(project, CFSTR("?"))) { 53 | CFArrayRef projects = DBCopyOneProjectNames(build); 54 | CFIndex i, count = CFArrayGetCount(projects); 55 | for (i = 0; i < count; ++i) { 56 | printProjectVersion(CFArrayGetValueAtIndex(projects, i)); 57 | } 58 | } else { 59 | printProjectVersion(project); 60 | } 61 | 62 | return 0; 63 | } 64 | 65 | static CFStringRef usage() { 66 | return CFRetain(CFSTR("\n*: all projects (including inheritance)\n?: all projects (without inheritance)")); 67 | } 68 | 69 | int initialize(int version) { 70 | //if ( version < kDBPluginCurrentVersion ) return -1; 71 | 72 | DBPluginSetType(kDBPluginPropertyType); 73 | DBPluginSetName(CFSTR("version")); 74 | DBPluginSetRunFunc(&run); 75 | DBPluginSetUsageFunc(&usage); 76 | DBPluginSetDataType(CFStringGetTypeID()); 77 | return 0; 78 | } 79 | -------------------------------------------------------------------------------- /patches/CarbonHeaders-18.1.ccdest.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/patches/CarbonHeaders-18.1.ccdest.patch -------------------------------------------------------------------------------- /patches/IOKitUser-502.nohidevent.patch: -------------------------------------------------------------------------------- 1 | Only in ./IOKitUser.xcodeproj: local.pbxuser 2 | diff -ru ../IOKitUser-502.orig/IOKitUser.xcodeproj/project.pbxproj ./IOKitUser.xcodeproj/project.pbxproj 3 | --- ../IOKitUser-502.orig/IOKitUser.xcodeproj/project.pbxproj 2009-09-08 15:09:09.000000000 -0700 4 | +++ ./IOKitUser.xcodeproj/project.pbxproj 2009-09-08 15:12:01.000000000 -0700 5 | @@ -349,9 +349,6 @@ 6 | 8472D5770CFA183F003111DE /* IOUSBDeviceDataPrivate.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 8472D46E0CFA0E38003111DE /* IOUSBDeviceDataPrivate.h */; }; 7 | 8472D57B0CFA1888003111DE /* IOUSBDeviceData.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 8472D46D0CFA0E38003111DE /* IOUSBDeviceData.h */; }; 8 | 8473A6B60D06351300DD8515 /* IOHIDEventSystemPrivate.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 847A12500C07C3A400F3CCDB /* IOHIDEventSystemPrivate.h */; }; 9 | - 847A125C0C07C3A400F3CCDB /* IOHIDEventSystem.c in Sources */ = {isa = PBXBuildFile; fileRef = 847A124A0C07C3A400F3CCDB /* IOHIDEventSystem.c */; }; 10 | - 847A125D0C07C3A400F3CCDB /* IOHIDEventSystem.defs in Sources */ = {isa = PBXBuildFile; fileRef = 847A124B0C07C3A400F3CCDB /* IOHIDEventSystem.defs */; settings = {ATTRIBUTES = (Client, Server, ); }; }; 11 | - 847A125E0C07C3A400F3CCDB /* IOHIDEventSystem.h in Headers */ = {isa = PBXBuildFile; fileRef = 847A124C0C07C3A400F3CCDB /* IOHIDEventSystem.h */; }; 12 | 847A125F0C07C3A400F3CCDB /* IOHIDEventSystemClient.c in Sources */ = {isa = PBXBuildFile; fileRef = 847A124D0C07C3A400F3CCDB /* IOHIDEventSystemClient.c */; }; 13 | 847A12600C07C3A400F3CCDB /* IOHIDEventSystemClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 847A124E0C07C3A400F3CCDB /* IOHIDEventSystemClient.h */; }; 14 | 847A12610C07C3A400F3CCDB /* IOHIDEventSystemKeys.h in Headers */ = {isa = PBXBuildFile; fileRef = 847A124F0C07C3A400F3CCDB /* IOHIDEventSystemKeys.h */; }; 15 | @@ -2042,7 +2039,6 @@ 16 | 843C1FF00C0790410009057F /* IOHIDEvent.h in Headers */, 17 | 843C1FF90C0792DB0009057F /* IOHIDServicePlugIn.h in Headers */, 18 | 843C1FFC0C0792FA0009057F /* IOHIDServiceKeys.h in Headers */, 19 | - 847A125E0C07C3A400F3CCDB /* IOHIDEventSystem.h in Headers */, 20 | 847A12600C07C3A400F3CCDB /* IOHIDEventSystemClient.h in Headers */, 21 | 847A12610C07C3A400F3CCDB /* IOHIDEventSystemKeys.h in Headers */, 22 | 847A12620C07C3A400F3CCDB /* IOHIDEventSystemPrivate.h in Headers */, 23 | @@ -2457,8 +2453,6 @@ 24 | 844A55E50A54A92E00FAE0BC /* IOHIDQueue.c in Sources */, 25 | 844A55E60A54A92E00FAE0BC /* IOHIDTransaction.c in Sources */, 26 | 843C1FEF0C0790410009057F /* IOHIDEvent.c in Sources */, 27 | - 847A125C0C07C3A400F3CCDB /* IOHIDEventSystem.c in Sources */, 28 | - 847A125D0C07C3A400F3CCDB /* IOHIDEventSystem.defs in Sources */, 29 | 847A125F0C07C3A400F3CCDB /* IOHIDEventSystemClient.c in Sources */, 30 | 847A12630C07C3A400F3CCDB /* IOHIDNotification.c in Sources */, 31 | 847A12650C07C3A400F3CCDB /* IOHIDService.c in Sources */, 32 | Only in ./: build 33 | -------------------------------------------------------------------------------- /patches/SmartCardServices-34733.MacTypes.patch: -------------------------------------------------------------------------------- 1 | diff -ru ../SmartCardServices-34733.orig/src/PCSC/PCSCDevice.h ./src/PCSC/PCSCDevice.h 2 | --- ../SmartCardServices-34733.orig/src/PCSC/PCSCDevice.h 2009-07-08 14:40:32.000000000 -0700 3 | +++ ./src/PCSC/PCSCDevice.h 2009-07-08 15:39:08.000000000 -0700 4 | @@ -30,6 +30,7 @@ 5 | #ifndef _H_PCSCDEVICE 6 | #define _H_PCSCDEVICE 7 | 8 | +#include 9 | #include 10 | #include 11 | 12 | diff -ru ../SmartCardServices-34733.orig/src/PCSC/PCSCDriverBundle.h ./src/PCSC/PCSCDriverBundle.h 13 | --- ../SmartCardServices-34733.orig/src/PCSC/PCSCDriverBundle.h 2009-07-08 14:40:32.000000000 -0700 14 | +++ ./src/PCSC/PCSCDriverBundle.h 2009-07-08 15:41:29.000000000 -0700 15 | @@ -31,6 +31,7 @@ 16 | 17 | #include 18 | #include 19 | +#include 20 | #include 21 | #include 22 | #include "PCSCDevice.h" 23 | diff -ru ../SmartCardServices-34733.orig/src/PCSC/hotplug_macosx.cpp ./src/PCSC/hotplug_macosx.cpp 24 | --- ../SmartCardServices-34733.orig/src/PCSC/hotplug_macosx.cpp 2009-07-08 14:40:32.000000000 -0700 25 | +++ ./src/PCSC/hotplug_macosx.cpp 2009-07-08 15:38:14.000000000 -0700 26 | @@ -29,6 +29,7 @@ 27 | 28 | ********************************************************************/ 29 | 30 | +#include 31 | #include "wintypes.h" 32 | 33 | #include "hotplug.h" 34 | diff -ru ../SmartCardServices-34733.orig/src/PCSC/pcscdmonitor.h ./src/PCSC/pcscdmonitor.h 35 | --- ../SmartCardServices-34733.orig/src/PCSC/pcscdmonitor.h 2009-07-08 14:40:32.000000000 -0700 36 | +++ ./src/PCSC/pcscdmonitor.h 2009-07-08 15:40:40.000000000 -0700 37 | @@ -28,6 +28,7 @@ 38 | #ifndef _H_PCSCDMONITOR 39 | #define _H_PCSCDMONITOR 40 | 41 | +#include 42 | #include 43 | #include 44 | #include 45 | diff -ru ../SmartCardServices-34733.orig/src/PCSC/pcscdserver.h ./src/PCSC/pcscdserver.h 46 | --- ../SmartCardServices-34733.orig/src/PCSC/pcscdserver.h 2009-07-08 14:40:32.000000000 -0700 47 | +++ ./src/PCSC/pcscdserver.h 2009-07-08 15:39:59.000000000 -0700 48 | @@ -27,6 +27,7 @@ 49 | #ifndef _H_PCSCDSERVER 50 | #define _H_PCSCDSERVER 51 | 52 | +#include 53 | #include 54 | #include 55 | #include 56 | diff -ru ../SmartCardServices-34733.orig/src/PCSC/reader.h ./src/PCSC/reader.h 57 | --- ../SmartCardServices-34733.orig/src/PCSC/reader.h 2009-07-08 14:40:32.000000000 -0700 58 | +++ ./src/PCSC/reader.h 2009-07-08 15:40:55.000000000 -0700 59 | @@ -29,6 +29,7 @@ 60 | #ifndef _H_PCSCD_READER 61 | #define _H_PCSCD_READER 62 | 63 | +#include 64 | #include "wintypes.h" 65 | #include "pcsclite.h" 66 | #include "readerfactory.h" 67 | diff -ru ../SmartCardServices-34733.orig/src/PCSC/readerstate.h ./src/PCSC/readerstate.h 68 | --- ../SmartCardServices-34733.orig/src/PCSC/readerstate.h 2009-07-08 14:40:32.000000000 -0700 69 | +++ ./src/PCSC/readerstate.h 2009-07-08 14:41:10.000000000 -0700 70 | @@ -33,6 +33,7 @@ 71 | #include "pcsclite.h" 72 | #include "readerfactory.h" 73 | #include "eventhandler.h" 74 | +#include 75 | 76 | #ifdef __cplusplus 77 | extern "C" 78 | diff -ru ../SmartCardServices-34733.orig/src/PCSC/sys_macosx.cpp ./src/PCSC/sys_macosx.cpp 79 | --- ../SmartCardServices-34733.orig/src/PCSC/sys_macosx.cpp 2009-07-08 14:40:32.000000000 -0700 80 | +++ ./src/PCSC/sys_macosx.cpp 2009-07-08 15:36:59.000000000 -0700 81 | @@ -44,6 +44,7 @@ 82 | #include 83 | #include 84 | #include 85 | +#include 86 | #include "pcscexport.h" 87 | #include "debug.h" 88 | 89 | -------------------------------------------------------------------------------- /patches/clamav-125.noupdate.patch: -------------------------------------------------------------------------------- 1 | diff -ru ../clamav-125.orig/Makefile ../clamav-125/Makefile 2 | --- ../clamav-125.orig/Makefile 2009-09-11 18:30:19.000000000 -0700 3 | +++ ../clamav-125/Makefile 2009-09-11 18:31:00.000000000 -0700 4 | @@ -128,9 +128,6 @@ 5 | fi 6 | $(SILENT) ($(CD) "$(SRCROOT)$(CLAMAV_BUILD_DIR)" && make CFLAGS="$(CFLAGS)") 7 | $(SILENT) ($(CD) "$(SRCROOT)$(CLAMAV_BUILD_DIR)" && make "DESTDIR=$(SRCROOT)/$(TEMP_DIR)" CFLAGS="$(CFLAGS)" install) 8 | - install -m 0755 "$(DSTROOT)/System/Library/ServerSetup/MigrationExtras/UpgradeClamAV" \ 9 | - "$(DSTROOT)/System/Library/ServerSetup/MigrationExtras/66_clamav_migrator" 10 | - $(SILENT) ($(RM) -rf "$(DSTROOT)/System/Library/ServerSetup/MigrationExtras/UpgradeClamAV") 11 | 12 | # Create install directories 13 | install -d -m 0755 "$(DSTROOT)$(ETC_DIR)" 14 | 15 | -------------------------------------------------------------------------------- /patches/launchd-258.22.CFNotification.patch: -------------------------------------------------------------------------------- 1 | Only in ./: build 2 | diff -ru ../launchd-258.22.orig/launchd/src/SystemStarter.c ./launchd/src/SystemStarter.c 3 | --- ../launchd-258.22.orig/launchd/src/SystemStarter.c 2009-07-16 15:30:00.000000000 -0700 4 | +++ ./launchd/src/SystemStarter.c 2009-07-16 15:36:37.000000000 -0700 5 | @@ -152,12 +152,6 @@ 6 | fwexec(_PATH_BSHELL, "/etc/rc.local", NULL); 7 | } 8 | 9 | - CFNotificationCenterPostNotificationWithOptions( 10 | - CFNotificationCenterGetDistributedCenter(), 11 | - CFSTR("com.apple.startupitems.completed"), 12 | - NULL, NULL, 13 | - kCFNotificationDeliverImmediately | kCFNotificationPostToAllSessions); 14 | - 15 | r = kevent(kq, NULL, 0, &kev, 1, NULL); 16 | assert(r != -1); 17 | assert(kev.filter == EVFILT_SIGNAL && kev.ident == SIGTERM); 18 | Only in ./launchd.xcodeproj: wms.pbxuser 19 | -------------------------------------------------------------------------------- /patches/libsecurity_utilities-36984.MacTypes.patch: -------------------------------------------------------------------------------- 1 | diff -ru ../libsecurity_utilities-36984.orig/lib/errors.h ./lib/errors.h 2 | --- ../libsecurity_utilities-36984.orig/lib/errors.h 2009-10-01 17:23:50.000000000 -0700 3 | +++ ./lib/errors.h 2009-10-01 17:24:30.000000000 -0700 4 | @@ -30,6 +30,7 @@ 5 | 6 | #include 7 | #include 8 | +#include 9 | 10 | #undef check 11 | 12 | -------------------------------------------------------------------------------- /patches/postfix-197.dtrace-postfix.patch: -------------------------------------------------------------------------------- 1 | diff -ruN ../postfix-197.orig/postfix/src/util/dtrace-postfix.h ./postfix/src/util/dtrace-postfix.h 2 | --- ../postfix-197.orig/postfix/src/util/dtrace-postfix.h 1969-12-31 16:00:00.000000000 -0800 3 | +++ ./postfix/src/util/dtrace-postfix.h 2009-10-14 19:01:12.000000000 -0700 4 | @@ -0,0 +1,65 @@ 5 | +/* 6 | + * Generated by dtrace(1M). 7 | + */ 8 | + 9 | +#ifndef _DTRACE_POSTFIX_H 10 | +#define _DTRACE_POSTFIX_H 11 | + 12 | +#include 13 | + 14 | +#ifdef __cplusplus 15 | +extern "C" { 16 | +#endif 17 | + 18 | +#define POSTFIX_STABILITY "___dtrace_stability$postfix$v1$1_1_0_1_1_0_1_1_0_1_1_0_1_1_0" 19 | + 20 | +#define POSTFIX_TYPEDEFS "___dtrace_typedefs$postfix$v2" 21 | + 22 | +#define POSTFIX_OD_LOOKUP_FINISH(arg0, arg1, arg2) \ 23 | +do { \ 24 | + __asm__ volatile(".reference " POSTFIX_TYPEDEFS); \ 25 | + __dtrace_probe$postfix$od__lookup__finish$v1$63686172202a$766f6964202a$696e74(arg0, arg1, arg2); \ 26 | + __asm__ volatile(".reference " POSTFIX_STABILITY); \ 27 | +} while (0) 28 | +#define POSTFIX_OD_LOOKUP_FINISH_ENABLED() \ 29 | + __dtrace_isenabled$postfix$od__lookup__finish$v1() 30 | +#define POSTFIX_OD_LOOKUP_START(arg0, arg1) \ 31 | +do { \ 32 | + __asm__ volatile(".reference " POSTFIX_TYPEDEFS); \ 33 | + __dtrace_probe$postfix$od__lookup__start$v1$63686172202a$766f6964202a(arg0, arg1); \ 34 | + __asm__ volatile(".reference " POSTFIX_STABILITY); \ 35 | +} while (0) 36 | +#define POSTFIX_OD_LOOKUP_START_ENABLED() \ 37 | + __dtrace_isenabled$postfix$od__lookup__start$v1() 38 | +#define POSTFIX_SMTP_DEQUEUE(arg0) \ 39 | +do { \ 40 | + __asm__ volatile(".reference " POSTFIX_TYPEDEFS); \ 41 | + __dtrace_probe$postfix$smtp__dequeue$v1$766f6964202a(arg0); \ 42 | + __asm__ volatile(".reference " POSTFIX_STABILITY); \ 43 | +} while (0) 44 | +#define POSTFIX_SMTP_DEQUEUE_ENABLED() \ 45 | + __dtrace_isenabled$postfix$smtp__dequeue$v1() 46 | +#define POSTFIX_SMTP_RECEIVE(arg0) \ 47 | +do { \ 48 | + __asm__ volatile(".reference " POSTFIX_TYPEDEFS); \ 49 | + __dtrace_probe$postfix$smtp__receive$v1$766f6964202a(arg0); \ 50 | + __asm__ volatile(".reference " POSTFIX_STABILITY); \ 51 | +} while (0) 52 | +#define POSTFIX_SMTP_RECEIVE_ENABLED() \ 53 | + __dtrace_isenabled$postfix$smtp__receive$v1() 54 | + 55 | + 56 | +extern void __dtrace_probe$postfix$od__lookup__finish$v1$63686172202a$766f6964202a$696e74(char *, void *, int); 57 | +extern int __dtrace_isenabled$postfix$od__lookup__finish$v1(void); 58 | +extern void __dtrace_probe$postfix$od__lookup__start$v1$63686172202a$766f6964202a(char *, void *); 59 | +extern int __dtrace_isenabled$postfix$od__lookup__start$v1(void); 60 | +extern void __dtrace_probe$postfix$smtp__dequeue$v1$766f6964202a(void *); 61 | +extern int __dtrace_isenabled$postfix$smtp__dequeue$v1(void); 62 | +extern void __dtrace_probe$postfix$smtp__receive$v1$766f6964202a(void *); 63 | +extern int __dtrace_isenabled$postfix$smtp__receive$v1(void); 64 | + 65 | +#ifdef __cplusplus 66 | +} 67 | +#endif 68 | + 69 | +#endif /* _DTRACE_POSTFIX_H */ 70 | -------------------------------------------------------------------------------- /patches/ppp-412.xauthvendor.patch: -------------------------------------------------------------------------------- 1 | diff -ru ../ppp-412.orig/Controller/ipsec_manager.c ./Controller/ipsec_manager.c 2 | --- ../ppp-412.orig/Controller/ipsec_manager.c 2009-09-09 18:46:52.000000000 -0700 3 | +++ ./Controller/ipsec_manager.c 2009-09-09 18:48:10.000000000 -0700 4 | @@ -308,7 +308,6 @@ 5 | case XAUTH_STATUS: return "XAUTH_STATUS"; 6 | case XAUTH_NEXT_PIN: return "XAUTH_NEXT_PIN"; 7 | case XAUTH_ANSWER: return "XAUTH_ANSWER"; 8 | - case XAUTH_VENDOR: return "XAUTH_VENDOR"; 9 | } 10 | return "XAUTH_TYPE unknown type"; 11 | } 12 | -------------------------------------------------------------------------------- /patches/security_systemkeychain-36515.kCFDateFormatterIsLenientKey.patch: -------------------------------------------------------------------------------- 1 | diff -ru ../security_systemkeychain-36515.orig/src/cs_utils.cpp ./src/cs_utils.cpp 2 | --- ../security_systemkeychain-36515.orig/src/cs_utils.cpp 2009-10-02 16:47:29.000000000 -0700 3 | +++ ./src/cs_utils.cpp 2009-10-02 18:14:28.000000000 -0700 4 | @@ -301,7 +301,7 @@ 5 | CFRef userLocale = CFLocaleCopyCurrent(); 6 | CFRef formatter = CFDateFormatterCreate(NULL, userLocale, 7 | kCFDateFormatterMediumStyle, kCFDateFormatterMediumStyle); 8 | - CFDateFormatterSetProperty(formatter, kCFDateFormatterIsLenient, kCFBooleanTrue); 9 | + CFDateFormatterSetProperty(formatter, kCFDateFormatterIsLenientKey, kCFBooleanTrue); 10 | CFRef date = CFDateFormatterCreateDateFromString(NULL, formatter, CFTempString(string), NULL); 11 | if (!date) 12 | fail("%s: invalid date/time", string); 13 | diff -ru ../security_systemkeychain-36515.orig/src/cs_utils.h ./src/cs_utils.h 14 | --- ../security_systemkeychain-36515.orig/src/cs_utils.h 2009-10-02 16:47:29.000000000 -0700 15 | +++ ./src/cs_utils.h 2009-10-02 18:27:32.000000000 -0700 16 | @@ -38,6 +38,7 @@ 17 | #include 18 | #include 19 | 20 | +CF_EXPORT CFStringRef const kCFDateFormatterIsLenientKey; 21 | 22 | // 23 | // Exit codes 24 | -------------------------------------------------------------------------------- /patches/top-67.kNilOptions.patch: -------------------------------------------------------------------------------- 1 | diff -ru ../top-67.orig/libtop.c ./libtop.c 2 | --- ../top-67.orig/libtop.c 2009-10-01 11:06:25.000000000 -0700 3 | +++ ./libtop.c 2009-10-01 11:07:15.000000000 -0700 4 | @@ -1150,7 +1150,7 @@ 5 | /* Obtain the properties for this drive object. */ 6 | if (IORegistryEntryCreateCFProperties(drive, 7 | (CFMutableDictionaryRef *)&properties, kCFAllocatorDefault, 8 | - kNilOptions)) { 9 | + 0)) { 10 | libtop_print(libtop_user_data, 11 | "Error in IORegistryEntryCreateCFProperties()"); 12 | retval = -1; 13 | -------------------------------------------------------------------------------- /plists/10B504.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | binary_sites = ( 4 | "http://src.macosforge.org/Roots/10B504/", 5 | ); 6 | build = 10B504; 7 | darwin = "Darwin 10.0"; 8 | inherits = 10A432; 9 | macosx = "Mac OS X 10.6.1"; 10 | projects = { 11 | Libsystem = { 12 | version = 124.1.1; 13 | }; 14 | cups = { 15 | version = 218.1; 16 | }; 17 | libdispatch = { 18 | version = 84.5.1; 19 | }; 20 | }; 21 | } 22 | 23 | -------------------------------------------------------------------------------- /plists/10C540.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | binary_sites = ( 4 | "http://src.macosforge.org/Roots/10C540/", 5 | ); 6 | build = 10C540; 7 | darwin = "Darwin 10.2"; 8 | inherits = 10B504; 9 | macosx = "Mac OS X 10.6.2"; 10 | projects = { 11 | AppleDisplays = { 12 | version = 1170.0.10; 13 | }; 14 | AppleUSBAudio = { 15 | version = 266.2.2; 16 | }; 17 | CF = { 18 | version = 550.13; 19 | }; 20 | ChatServer = { 21 | version = 326.1; 22 | }; 23 | DirectoryService = { 24 | target = DirectoryServiceFW; 25 | version = 621.1; 26 | }; 27 | ICU = { 28 | version = 400.38; 29 | }; 30 | IOAudioFamily = { 31 | version = 172.4.1; 32 | }; 33 | IOHIDFamily = { 34 | version = 308; 35 | }; 36 | IOKitUser = { 37 | version = 502.0.3; 38 | }; 39 | IONetworkingFamily = { 40 | version = 62.1; 41 | }; 42 | IOSerialFamily = { 43 | version = 56; 44 | }; 45 | IOUSBFamily = { 46 | version = 385.4.1; 47 | }; 48 | IOUSBMassStorageClass = { 49 | version = 251.0.2; 50 | }; 51 | KerberosHelper = { 52 | version = 62.1; 53 | }; 54 | KerberosLibraries = { 55 | version = 81.46.1; 56 | }; 57 | Libinfo = { 58 | version = 324.1; 59 | }; 60 | Libsystem = { 61 | version = 125; 62 | }; 63 | OpenLDAP = { 64 | version = 143.1; 65 | }; 66 | PowerManagement = { 67 | version = 211; 68 | }; 69 | TimeZoneData = { 70 | version = 20; 71 | }; 72 | apache = { 73 | version = 747; 74 | }; 75 | apr = { 76 | version = 24; 77 | }; 78 | autozone = { 79 | version = 141.1; 80 | }; 81 | cddafs = { 82 | version = 242.0.1; 83 | }; 84 | configd = { 85 | target = configd_base; 86 | version = 289.2; 87 | }; 88 | cups = { 89 | version = 218.4; 90 | }; 91 | fetchmail = { 92 | version = 31; 93 | }; 94 | file = { 95 | version = 37; 96 | }; 97 | files = { 98 | version = 553.1; 99 | }; 100 | iodbc = { 101 | version = 37; 102 | }; 103 | ipsec = { 104 | target = "IPSec (Aggregate)"; 105 | version = 92.4; 106 | }; 107 | kext_tools = { 108 | version = 177.1; 109 | }; 110 | libdispatch = { 111 | version = 84.5.3; 112 | }; 113 | libpcap = { 114 | version = 20.2; 115 | }; 116 | libsecurity_apple_x509_tp = { 117 | version = 37202; 118 | }; 119 | libsecurity_keychain = { 120 | version = 37184; 121 | }; 122 | libxml2 = { 123 | version = 21.3; 124 | }; 125 | mDNSResponder = { 126 | version = 214; 127 | }; 128 | network_cmds = { 129 | version = 325.1; 130 | }; 131 | ntfs = { 132 | version = 65.1; 133 | }; 134 | objc4 = { 135 | version = 437.1; 136 | }; 137 | postfix = { 138 | version = 197.1; 139 | }; 140 | security_certificates = { 141 | version = 37194; 142 | }; 143 | securityd = { 144 | version = 37180; 145 | }; 146 | subversion = { 147 | version = 35; 148 | }; 149 | webdavfs = { 150 | version = 293; 151 | }; 152 | xnu = { 153 | version = 1486.2.11; 154 | }; 155 | }; 156 | } 157 | 158 | -------------------------------------------------------------------------------- /plists/10F569.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | binary_sites = ( 4 | "http://src.macosforge.org/Roots/10F569/", 5 | ); 6 | build = 10F569; 7 | darwin = "Darwin 10.4"; 8 | inherits = 10D573; 9 | macosx = "Mac OS X 10.6.4"; 10 | projects = { 11 | AppleDisplays = { 12 | version = 1170.0.40; 13 | }; 14 | AppleSMBIOS = { 15 | version = 41; 16 | }; 17 | AppleUSBAudio = { 18 | version = 273.4.1; 19 | }; 20 | CF = { 21 | version = 550.29; 22 | }; 23 | DirectoryService = { 24 | target = DirectoryServiceFW; 25 | version = 621.4; 26 | }; 27 | ICU = { 28 | version = 400.40; 29 | }; 30 | IOGraphics = { 31 | version = 373.2; 32 | }; 33 | IOHIDFamily = { 34 | version = 315.7.2; 35 | }; 36 | IOKitUser = { 37 | version = 514.16.2; 38 | }; 39 | IONetworkingFamily = { 40 | version = 65; 41 | }; 42 | IOStorageFamily = { 43 | version = 116.1; 44 | }; 45 | IOUSBFamily = { 46 | version = 402.4.1; 47 | }; 48 | JavaScriptCore = { 49 | version = 7533.13; 50 | }; 51 | JavaScriptGlue = { 52 | version = 7533.13; 53 | }; 54 | KerberosLibraries = { 55 | version = 81.46.3; 56 | }; 57 | Libc = { 58 | version = 594.9.1; 59 | }; 60 | Libinfo = { 61 | version = 330.3; 62 | }; 63 | Libnotify = { 64 | version = 54.3; 65 | }; 66 | Libsystem = { 67 | version = 125.2; 68 | }; 69 | PowerManagement = { 70 | version = 211.3; 71 | }; 72 | RubyCocoa = { 73 | version = 67.1; 74 | }; 75 | SquirrelMail = { 76 | version = 36; 77 | }; 78 | TimeZoneData = { 79 | version = 27; 80 | }; 81 | WebCore = { 82 | version = 7533.16; 83 | }; 84 | WebKit = { 85 | version = 7533.16; 86 | }; 87 | bootp = { 88 | version = 198.1; 89 | }; 90 | configd = { 91 | target = configd_base; 92 | version = 293.5; 93 | }; 94 | cups = { 95 | version = 218.12; 96 | }; 97 | curl = { 98 | version = 57.2; 99 | }; 100 | diskdev_cmds = { 101 | version = 491.2; 102 | }; 103 | file = { 104 | version = 39; 105 | }; 106 | files = { 107 | version = 556.3; 108 | }; 109 | ipsec = { 110 | target = "IPSec (Aggregate)"; 111 | version = 93.8; 112 | }; 113 | kext_tools = { 114 | version = 180.2; 115 | }; 116 | launchd = { 117 | version = 329.3.1; 118 | }; 119 | libresolv = { 120 | version = 41; 121 | }; 122 | libsecurity_keychain = { 123 | version = 38504; 124 | }; 125 | libsecurity_ldap_dl = { 126 | version = 38579; 127 | }; 128 | libsecurity_ssl = { 129 | version = 38500; 130 | }; 131 | libsecurity_utilities = { 132 | version = 38535; 133 | }; 134 | libutil = { 135 | version = 21; 136 | }; 137 | mDNSResponder = { 138 | version = 214.3.2; 139 | }; 140 | ncurses = { 141 | version = 27; 142 | }; 143 | network_cmds = { 144 | version = 329.2; 145 | }; 146 | notify = { 147 | version = 25.1; 148 | }; 149 | ppp = { 150 | version = 412.3; 151 | }; 152 | ruby = { 153 | version = 75.2; 154 | }; 155 | samba = { 156 | version = 235.4; 157 | }; 158 | security_certificates = { 159 | version = 38512; 160 | }; 161 | security_dotmac_tp = { 162 | version = 38498; 163 | }; 164 | smb = { 165 | version = 431.3; 166 | }; 167 | syslog = { 168 | version = 100.2; 169 | }; 170 | system_cmds = { 171 | version = 498.2; 172 | }; 173 | xar = { 174 | version = 36.1; 175 | }; 176 | xnu = { 177 | version = 1504.7.4; 178 | }; 179 | zlib = { 180 | version = 23.4; 181 | }; 182 | }; 183 | } 184 | -------------------------------------------------------------------------------- /plists/10J567.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | binary_sites 6 | 7 | http://src.macosforge.org/Roots/10J567/ 8 | 9 | build 10 | 10J567 11 | darwin 12 | Darwin 10.6 13 | inherits 14 | 10H574 15 | macosx 16 | Mac OS X 10.6.6 17 | projects 18 | 19 | IOAudioFamily 20 | 21 | version 22 | 180.4.1 23 | 24 | SecurityTool 25 | 26 | version 27 | 40418 28 | 29 | cups 30 | 31 | version 32 | 218.28 33 | 34 | launchd 35 | 36 | version 37 | 329.3.3 38 | 39 | libsecurity_apple_x509_tp 40 | 41 | version 42 | 40473 43 | 44 | libsecurity_cssm 45 | 46 | version 47 | 40418 48 | 49 | libsecurity_keychain 50 | 51 | version 52 | 40418 53 | 54 | mDNSResponder 55 | 56 | version 57 | 258.14 58 | 59 | xnu 60 | 61 | version 62 | 1504.9.26 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /plists/11B26.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | build 6 | 11B26 7 | darwin 8 | Darwin 11.1 9 | inherits 10 | 11A511a 11 | macosx 12 | Mac OS X 10.7.1 13 | projects 14 | 15 | mDNSResponder 16 | 17 | version 18 | 320.5.1 19 | 20 | xnu 21 | 22 | version 23 | 1699.22.81 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /plists/7C107.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 7C107; 4 | darwin = "Darwin 7.1"; 5 | inherits = 7B85; 6 | macosx = "Mac OS X 10.3.1"; 7 | projects = { 8 | IOStorageFamily = { 9 | version = 44.1; 10 | }; 11 | fetchmail = { 12 | version = 10; 13 | }; 14 | webdavfs = { 15 | version = 148.2; 16 | }; 17 | }; 18 | } 19 | -------------------------------------------------------------------------------- /plists/7D24.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 7D24; 4 | darwin = "Darwin 7.2"; 5 | inherits = 7C107; 6 | macosx = "Mac OS X 10.3.2"; 7 | projects = { 8 | AppleADBMouse = { 9 | version = 209.0.10; 10 | }; 11 | AppleDisplays = { 12 | version = 142; 13 | }; 14 | AppleOnboardAudio = { 15 | version = 211.3.2; 16 | }; 17 | AppleUSBAudio = { 18 | version = 186.3.1; 19 | }; 20 | BootCache = { 21 | version = 17.5.2; 22 | }; 23 | BootX = { 24 | version = 59.1.1; 25 | }; 26 | CyrusIMAP = { 27 | version = 125; 28 | }; 29 | DSNSLPlugins = { 30 | version = 79.2; 31 | }; 32 | DirectoryService = { 33 | version = 255.1; 34 | }; 35 | DiskArbitration = { 36 | version = 129.1; 37 | }; 38 | IOAudioFamily = { 39 | version = 141.3.1; 40 | }; 41 | IOFireWireFamily = { 42 | version = 172.4.0; 43 | }; 44 | IOFireWireSerialBusProtocolTransport = { 45 | version = 131.0.2; 46 | }; 47 | IOHIDFamily = { 48 | version = 86.1; 49 | }; 50 | IOSCSIArchitectureModelFamily = { 51 | version = 131.0.4; 52 | }; 53 | IOSCSIParallelFamily = { 54 | version = 131.0.1; 55 | }; 56 | IOUSBFamily = { 57 | version = 206.4.1; 58 | }; 59 | MySQL = { 60 | version = 17; 61 | }; 62 | OpenLDAP = { 63 | version = 37.0.1; 64 | }; 65 | OpenSSL096 = { 66 | version = 3; 67 | }; 68 | SquirrelMail = { 69 | version = 12; 70 | }; 71 | WebCore = { 72 | version = 106.3; 73 | }; 74 | bootp = { 75 | version = 110.3; 76 | }; 77 | cddafs = { 78 | version = 212.0.3; 79 | }; 80 | configd = { 81 | version = 84.1; 82 | }; 83 | cups = { 84 | version = 59; 85 | }; 86 | efax = { 87 | version = 13; 88 | }; 89 | fetchmail = { 90 | version = 9; 91 | }; 92 | gas = { 93 | version = 495; 94 | }; 95 | mDNSResponder = { 96 | version = 58.1; 97 | }; 98 | mailman = { 99 | version = 105.1; 100 | }; 101 | ppp = { 102 | version = 143.2; 103 | }; 104 | webdavfs = { 105 | version = 148.4; 106 | }; 107 | xnu = { 108 | version = 517.3.7; 109 | }; 110 | }; 111 | } 112 | -------------------------------------------------------------------------------- /plists/7F44.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 7F44; 4 | darwin = "Darwin 7.3"; 5 | inherits = 7D24; 6 | macosx = "Mac OS X 10.3.3"; 7 | projects = { 8 | Apple16X50Serial = { 9 | version = 15.1; 10 | }; 11 | AppleGMACEthernet = { 12 | version = 132.2.2; 13 | }; 14 | AppleI2C = { 15 | version = 342.0.1; 16 | }; 17 | AppleK2SATA = { 18 | version = 102.3.4; 19 | }; 20 | AppleK2SATARoot = { 21 | version = 102.3.2; 22 | }; 23 | AppleKauaiATA = { 24 | version = 103.2.1; 25 | }; 26 | AppleKeyLargo = { 27 | version = 150.0.3; 28 | }; 29 | AppleMacRISC4PE = { 30 | version = 112.1.17; 31 | }; 32 | AppleMacRiscPCI = { 33 | version = 2.1.0; 34 | }; 35 | AppleOnboardAudio = { 36 | version = 220.2.6; 37 | }; 38 | AppleRAID = { 39 | version = 1.5; 40 | }; 41 | AppleRS232Serial = { 42 | version = 123.4.0; 43 | }; 44 | AppleUSBAudio = { 45 | version = 188.2.5; 46 | }; 47 | AppleUSBIrDA = { 48 | version = 132.2.2; 49 | }; 50 | AppleVIA = { 51 | version = 1.3; 52 | }; 53 | BootCache = { 54 | version = 17.5.4; 55 | }; 56 | CF = { 57 | version = 299.3; 58 | }; 59 | CyrusIMAP = { 60 | version = 125.4; 61 | }; 62 | DSNSLPlugins = { 63 | version = 79.4; 64 | }; 65 | DSPasswordServerPlugin = { 66 | version = 68.1; 67 | }; 68 | DirectoryService = { 69 | version = 255.5; 70 | }; 71 | DiskArbitration = { 72 | version = 129.2; 73 | }; 74 | IOAudioFamily = { 75 | version = 144.2.1; 76 | }; 77 | IOHIDFamily = { 78 | version = 86.6.8; 79 | }; 80 | IOKitUser = { 81 | version = 177; 82 | }; 83 | IONetworkingFamily = { 84 | version = 15.3; 85 | }; 86 | IOSCSIArchitectureModelFamily = { 87 | version = 133.3.1; 88 | }; 89 | IOSCSIParallelFamily = { 90 | version = 132.3.1; 91 | }; 92 | IOUSBFamily = { 93 | version = 208.4.5; 94 | }; 95 | IOUSBMassStorageClass = { 96 | version = 131.3.1; 97 | }; 98 | JBoss = { 99 | target = magnum; 100 | version = 734; 101 | }; 102 | JavaScriptCore = { 103 | version = 125.3; 104 | }; 105 | Libinfo = { 106 | version = 173.1; 107 | }; 108 | MySQL = { 109 | version = 20; 110 | }; 111 | OpenLDAP = { 112 | version = 37.1.1; 113 | }; 114 | PowerManagement = { 115 | version = 63; 116 | }; 117 | Security = { 118 | version = 164.1; 119 | }; 120 | SecurityNssAsn1 = { 121 | version = 11.1; 122 | }; 123 | SecurityNssPkcs12 = { 124 | version = 7; 125 | }; 126 | SmartCardServices = { 127 | version = 15.1; 128 | }; 129 | Startup = { 130 | version = 177.2; 131 | }; 132 | WebCore = { 133 | version = 125; 134 | }; 135 | apache = { 136 | version = 671; 137 | }; 138 | apache2 = { 139 | version = 12; 140 | }; 141 | apache_mod_ssl = { 142 | version = 15; 143 | }; 144 | automount = { 145 | version = 81.1; 146 | }; 147 | bootp = { 148 | version = 110.6; 149 | }; 150 | cctools = { 151 | version = 495.2; 152 | }; 153 | configd = { 154 | version = 84.6; 155 | }; 156 | configd_plugins = { 157 | target = configd_plugins; 158 | version = 75.3; 159 | }; 160 | cups = { 161 | version = 62; 162 | }; 163 | diskdev_cmds = { 164 | version = 277.1; 165 | }; 166 | fetchmail = { 167 | version = 10; 168 | }; 169 | files = { 170 | target = ""; 171 | version = 436.0.1; 172 | }; 173 | gas = { 174 | version = 495.2; 175 | }; 176 | gimp_print = { 177 | version = 6; 178 | }; 179 | isoutil = { 180 | version = 28.1; 181 | }; 182 | libpcap = { 183 | version = 11; 184 | }; 185 | mDNSResponder = { 186 | version = 58.5; 187 | }; 188 | netinfo = { 189 | version = 324.2.1; 190 | }; 191 | network_cmds = { 192 | version = 176.2.1; 193 | }; 194 | objc4 = { 195 | version = 237; 196 | }; 197 | ppp = { 198 | version = 143.3; 199 | }; 200 | rsync = { 201 | version = 12; 202 | }; 203 | samba = { 204 | version = 56; 205 | }; 206 | smb = { 207 | version = 115.1; 208 | }; 209 | system_cmds = { 210 | version = 279.1; 211 | }; 212 | tcpdump = { 213 | version = 8; 214 | }; 215 | webdavfs = { 216 | version = 148.5; 217 | }; 218 | xinetd = { 219 | version = 26.4; 220 | }; 221 | xnu = { 222 | version = 517.3.15; 223 | }; 224 | }; 225 | } 226 | -------------------------------------------------------------------------------- /plists/7H63.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 7H63; 4 | darwin = "Darwin 7.4"; 5 | inherits = 7F44; 6 | macosx = "Mac OS X 10.3.4"; 7 | projects = { 8 | Apple16X50Serial = { 9 | version = 16; 10 | }; 11 | AppleADBKeyboard = { 12 | version = 237.3.3; 13 | }; 14 | AppleDisplays = { 15 | version = 143.1.2; 16 | }; 17 | AppleI2C = { 18 | version = 343.0.1; 19 | }; 20 | AppleKauaiATA = { 21 | version = 105.3.1; 22 | }; 23 | AppleKeyLargo = { 24 | version = 152.0.3; 25 | }; 26 | AppleMacRISC2PE = { 27 | version = 146.2.1; 28 | }; 29 | AppleMacRISC4PE = { 30 | version = 120.0.8; 31 | }; 32 | AppleMacRiscPCI = { 33 | version = 2.2.0; 34 | }; 35 | AppleOnboardAudio = { 36 | version = 224.2.2; 37 | }; 38 | AppleRS232Serial = { 39 | version = 124.3.1; 40 | }; 41 | AppleUSBAudio = { 42 | version = 191.2.2; 43 | }; 44 | CF = { 45 | version = 299.31; 46 | }; 47 | DSPasswordServerPlugin = { 48 | version = 69; 49 | }; 50 | DirectoryService = { 51 | version = 256.6; 52 | }; 53 | DiskArbitration = { 54 | version = 129.3; 55 | }; 56 | IOATAPIProtocolTransport = { 57 | version = 131.3.2; 58 | }; 59 | IOCDStorageFamily = { 60 | version = 25.1; 61 | }; 62 | IODVDStorageFamily = { 63 | version = 14.1; 64 | }; 65 | IOFWDVComponents = { 66 | version = 161.4.0; 67 | }; 68 | IOFireWireAVC = { 69 | version = 160.4.0; 70 | }; 71 | IOFireWireFamily = { 72 | version = 184.4.0; 73 | }; 74 | IOFireWireSBP2 = { 75 | version = 161.4.0; 76 | }; 77 | IOGraphics = { 78 | version = 125; 79 | }; 80 | IOHIDFamily = { 81 | version = 86.15; 82 | }; 83 | IOSCSIArchitectureModelFamily = { 84 | version = 135.3.2; 85 | }; 86 | IOSCSIParallelFamily = { 87 | version = 133.3.2; 88 | }; 89 | IOStorageFamily = { 90 | version = 44.2; 91 | }; 92 | IOUSBFamily = { 93 | version = 210.4.5; 94 | }; 95 | JavaScriptCore = { 96 | version = 125.4.2; 97 | }; 98 | Libc = { 99 | version = 320.1.3; 100 | }; 101 | Libm = { 102 | target = libm; 103 | version = 47.1; 104 | }; 105 | Libsystem = { 106 | version = 71.1.1; 107 | }; 108 | OpenLDAP = { 109 | version = 37.2.1; 110 | }; 111 | OpenSSH = { 112 | version = 41; 113 | }; 114 | OpenSSL = { 115 | version = 23; 116 | }; 117 | Security = { 118 | version = 176; 119 | }; 120 | SecurityNssAsn1 = { 121 | version = 12; 122 | }; 123 | SecurityNssSmime = { 124 | version = 11; 125 | }; 126 | SecurityTool = { 127 | version = 8; 128 | }; 129 | Startup = { 130 | version = 177.3; 131 | }; 132 | WebCore = { 133 | version = 125.6.4; 134 | }; 135 | X11 = { 136 | version = 0.30.4; 137 | }; 138 | apache2 = { 139 | version = 13; 140 | }; 141 | automount = { 142 | version = 81.4; 143 | }; 144 | bsm = { 145 | version = 2.10; 146 | }; 147 | cctools = { 148 | version = 495.8; 149 | }; 150 | diskdev_cmds = { 151 | version = 277.2; 152 | }; 153 | efax = { 154 | version = 15; 155 | }; 156 | gas = { 157 | version = 495.8; 158 | }; 159 | hfs = { 160 | version = 145.1; 161 | }; 162 | libxml2 = { 163 | version = 7; 164 | }; 165 | mDNSResponder = { 166 | version = 58.8; 167 | }; 168 | mailman = { 169 | version = 110; 170 | }; 171 | netinfo = { 172 | version = 324.5; 173 | }; 174 | network_cmds = { 175 | version = 176.3.1; 176 | }; 177 | ppp = { 178 | version = 144.3; 179 | }; 180 | shell_cmds = { 181 | version = 56; 182 | }; 183 | sudo = { 184 | version = 13; 185 | }; 186 | system_cmds = { 187 | version = 279.6; 188 | }; 189 | xnu = { 190 | version = 517.7.7; 191 | }; 192 | }; 193 | } 194 | -------------------------------------------------------------------------------- /plists/7M34.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 7M34; 4 | darwin = "Darwin 7.5"; 5 | inherits = 7H63; 6 | macosx = "Mac OS X 10.3.5"; 7 | projects = { 8 | AppleCuda = { 9 | version = 103.0.1; 10 | }; 11 | AppleDisplays = { 12 | version = 144.1.1; 13 | }; 14 | AppleI2C = { 15 | version = 344.0.1; 16 | }; 17 | AppleKeyLargo = { 18 | version = 154.0.1; 19 | }; 20 | AppleMacRISC2PE = { 21 | version = 150.2.1; 22 | }; 23 | AppleMacRISC4PE = { 24 | version = 125.2.2; 25 | }; 26 | AppleOnboardAudio = { 27 | version = 226.2.12; 28 | }; 29 | AppleUSBAudio = { 30 | version = 195.2.3; 31 | }; 32 | AppleUSBCDCDriver = { 33 | version = 300.4.3; 34 | }; 35 | CyrusIMAP = { 36 | version = 125.5; 37 | }; 38 | DSAgent = { 39 | version = 32.1; 40 | }; 41 | DSPasswordServerPlugin = { 42 | version = 70; 43 | }; 44 | DirectoryService = { 45 | version = 257.1; 46 | }; 47 | IOFWDVComponents = { 48 | version = 162.4.1; 49 | }; 50 | IOGraphics = { 51 | version = 126; 52 | }; 53 | IOKitUser = { 54 | version = 179.7; 55 | }; 56 | IOSCSIArchitectureModelFamily = { 57 | version = 136.3.4; 58 | }; 59 | IOSCSIParallelFamily = { 60 | version = 136.3.1; 61 | }; 62 | IOStorageFamily = { 63 | version = 44.3; 64 | }; 65 | IOUSBFamily = { 66 | version = 211.4.2; 67 | }; 68 | PowerManagement = { 69 | version = 63.3; 70 | }; 71 | Security = { 72 | version = 177; 73 | }; 74 | Startup = { 75 | version = 177.7; 76 | }; 77 | WebCore = { 78 | version = 125.8.6; 79 | }; 80 | bootp = { 81 | version = 110.7; 82 | }; 83 | netinfo = { 84 | version = 324.6; 85 | }; 86 | network_cmds = { 87 | version = 176.3.3; 88 | }; 89 | ntfs = { 90 | version = 8.1; 91 | }; 92 | xnu = { 93 | version = 517.7.21; 94 | }; 95 | }; 96 | } 97 | -------------------------------------------------------------------------------- /plists/7R28.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 7R28; 4 | darwin = "Darwin 7.6"; 5 | inherits = 7M34; 6 | macosx = "Mac OS X 10.3.6"; 7 | projects = { 8 | AppleDisplays = { 9 | version = 145.4.4; 10 | }; 11 | AppleGMACEthernet = { 12 | version = 134.3.2; 13 | }; 14 | AppleK2SATARoot = { 15 | version = 104.3.1; 16 | }; 17 | AppleMacRISC2PE = { 18 | version = 160.2.5; 19 | }; 20 | AppleMacRISC4PE = { 21 | version = 140.2.1; 22 | }; 23 | AppleMacRiscPCI = { 24 | version = 2.3; 25 | }; 26 | AppleOnboardAudio = { 27 | version = 241.2.1; 28 | }; 29 | AppleUSBAudio = { 30 | version = 197.2.1; 31 | }; 32 | AppleUSBCDCDriver = { 33 | version = 301.4.1; 34 | }; 35 | CF = { 36 | version = 299.32; 37 | }; 38 | DSNSLPlugins = { 39 | version = 79.5; 40 | }; 41 | DSPasswordServerPlugin = { 42 | version = 70.2; 43 | }; 44 | DiskArbitration = { 45 | version = 129.4; 46 | }; 47 | IOATABlockStorage = { 48 | version = 131.3.2; 49 | }; 50 | IOAudioFamily = { 51 | version = 150.2.9; 52 | }; 53 | IOFireWireFamily = { 54 | version = 186.4.0; 55 | }; 56 | IOHIDFamily = { 57 | version = 86.21; 58 | }; 59 | IOKitUser = { 60 | version = 182; 61 | }; 62 | IOSCSIArchitectureModelFamily = { 63 | version = 137.3.5; 64 | }; 65 | IOSCSIParallelFamily = { 66 | version = 137.3.2; 67 | }; 68 | IOStorageFamily = { 69 | version = 44.4; 70 | }; 71 | IOUSBFamily = { 72 | version = 214.4.5; 73 | }; 74 | JavaScriptCore = { 75 | version = 125.6; 76 | }; 77 | Kerberos = { 78 | version = 47.5; 79 | }; 80 | OpenLDAP = { 81 | version = 37.3.1; 82 | }; 83 | OpenSSH = { 84 | version = 42; 85 | }; 86 | SquirrelMail = { 87 | version = 12.1; 88 | }; 89 | WebCore = { 90 | version = 125.8.10; 91 | }; 92 | apache2 = { 93 | version = 15; 94 | }; 95 | bsm = { 96 | version = 2.11; 97 | }; 98 | cups = { 99 | version = 62.3; 100 | }; 101 | libpcap = { 102 | version = 12; 103 | }; 104 | lukemftpd = { 105 | version = 11; 106 | }; 107 | netinfo = { 108 | version = 324.7; 109 | }; 110 | network_cmds = { 111 | version = 176.3.5; 112 | }; 113 | postfix = { 114 | version = 132.1; 115 | }; 116 | rsync = { 117 | version = 14; 118 | }; 119 | samba = { 120 | version = 59; 121 | }; 122 | tcpdump = { 123 | version = 9; 124 | }; 125 | xnu = { 126 | version = 517.9.4; 127 | }; 128 | }; 129 | } 130 | -------------------------------------------------------------------------------- /plists/7S215.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 7S215; 4 | darwin = "Darwin 7.7"; 5 | inherits = 7R28; 6 | macosx = "Mac OS X 10.3.7"; 7 | projects = { 8 | CF = { 9 | version = 299.33; 10 | }; 11 | CyrusIMAP = { 12 | version = 125.6; 13 | }; 14 | IOSCSIArchitectureModelFamily = { 15 | version = 138.3.1; 16 | }; 17 | Kerberos = { 18 | version = 47.7; 19 | }; 20 | WebCore = { 21 | version = 125.8.12; 22 | }; 23 | apache = { 24 | version = 678; 25 | }; 26 | apache2 = { 27 | version = 17; 28 | }; 29 | apache_mod_ssl = { 30 | version = 678; 31 | }; 32 | netinfo = { 33 | version = 324.9; 34 | }; 35 | postfix = { 36 | version = 132.2; 37 | }; 38 | xnu = { 39 | version = 517.9.5; 40 | }; 41 | }; 42 | } 43 | -------------------------------------------------------------------------------- /plists/7U16.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 7U16; 4 | darwin = "Darwin 7.8"; 5 | inherits = 7S215; 6 | macosx = "Mac OS X 10.3.8"; 7 | projects = { 8 | AppleDisplays = { 9 | version = 146.1.2; 10 | }; 11 | AppleI2C = { 12 | version = 345.0.2; 13 | }; 14 | AppleKeyLargo = { 15 | version = 156.0.0; 16 | }; 17 | AppleMacRISC2PE = { 18 | version = 161.2.2; 19 | }; 20 | AppleMacRISC4PE = { 21 | version = 151.0.3; 22 | }; 23 | AppleOnboardAudio = { 24 | version = 247.2.2; 25 | }; 26 | AppleUSBCDCDriver = { 27 | version = 302.2.1; 28 | }; 29 | AppleVIA = { 30 | version = 150.0.1; 31 | }; 32 | DSNSLPlugins = { 33 | version = 79.6; 34 | }; 35 | IOAudioFamily = { 36 | version = 150.2.10; 37 | }; 38 | IOGraphics = { 39 | version = 127.1; 40 | }; 41 | IOHIDFamily = { 42 | version = 86.26; 43 | }; 44 | IOKitUser = { 45 | version = 184; 46 | }; 47 | IOUSBFamily = { 48 | version = 215.4.4; 49 | }; 50 | PowerManagement = { 51 | version = 63.6; 52 | }; 53 | SquirrelMail = { 54 | version = 12.2; 55 | }; 56 | WebCore = { 57 | version = 125.8.13; 58 | }; 59 | apache_mod_perl = { 60 | version = 5.2; 61 | }; 62 | apache_mod_php = { 63 | version = 17.5; 64 | }; 65 | libxml2 = { 66 | version = 7.1; 67 | }; 68 | netinfo = { 69 | version = 324.11; 70 | }; 71 | system_cmds = { 72 | version = 279.6.1; 73 | }; 74 | xnu = { 75 | version = 517.11.1; 76 | }; 77 | }; 78 | } 79 | -------------------------------------------------------------------------------- /plists/8B15.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | binary_sites = ( 4 | "http://src.macosforge.org/Roots/8B15/", 5 | ); 6 | build = 8B15; 7 | darwin = "Darwin 8.1"; 8 | inherits = 8A428; 9 | macosx = "Mac OS X 10.4.1"; 10 | projects = { 11 | CF = { 12 | version = 368.1; 13 | }; 14 | CyrusIMAP = { 15 | version = 156.3; 16 | }; 17 | DirectoryService = { 18 | version = 349; 19 | }; 20 | GraphicsDrivers = { 21 | version = 4.2.9; 22 | binary_sites = ( 23 | "http://src.macosforge.org/BinaryDrivers/8B15/", 24 | ); 25 | }; 26 | Libm = { 27 | version = 93; 28 | }; 29 | WebCore = { 30 | version = 415.5; 31 | }; 32 | blojsom = { 33 | version = 48; 34 | }; 35 | bootp = { 36 | version = 133.3; 37 | }; 38 | cctools = { 39 | version = 576.2; 40 | }; 41 | xnu = { 42 | version = 792.1.5; 43 | }; 44 | }; 45 | } 46 | -------------------------------------------------------------------------------- /plists/8C46.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | binary_sites = ( 4 | "http://src.macosforge.org/Roots/8C46/", 5 | ); 6 | build = 8C46; 7 | darwin = "Darwin 8.2"; 8 | inherits = 8B15; 9 | macosx = "Mac OS X 10.4.2"; 10 | projects = { 11 | AppleMacRISC4PE = { 12 | version = 162.0.0; 13 | binary_sites = ( 14 | "http://src.macosforge.org/BinaryDrivers/8C46/", 15 | ); 16 | }; 17 | AppleUSBCDCDriver = { 18 | version = 315.4.1; 19 | }; 20 | BootCache = { 21 | version = 25.1; 22 | }; 23 | CF = { 24 | version = 368.11; 25 | }; 26 | CFNetwork = { 27 | version = 128.2; 28 | }; 29 | DSNSLPlugins = { 30 | version = 112.1; 31 | }; 32 | DirectoryService = { 33 | version = 350; 34 | }; 35 | GraphicsDrivers = { 36 | version = 4.6.8; 37 | binary_sites = ( 38 | "http://src.macosforge.org/BinaryDrivers/8C46/", 39 | ); 40 | }; 41 | JavaScriptCore = { 42 | version = 412.3; 43 | }; 44 | Security = { 45 | version = 223; 46 | }; 47 | SpamAssassin = { 48 | version = 124.1; 49 | }; 50 | WebCore = { 51 | version = 415.11; 52 | }; 53 | apache_mod_php = { 54 | version = 18; 55 | }; 56 | cctools = { 57 | version = 576.3; 58 | }; 59 | cups = { 60 | version = 87; 61 | }; 62 | diskdev_cmds = { 63 | version = 332.5; 64 | }; 65 | dyld = { 66 | version = 43.1; 67 | }; 68 | eap8021x = { 69 | version = 33.1; 70 | }; 71 | files = { 72 | version = 469; 73 | }; 74 | launchd = { 75 | version = 106.3; 76 | }; 77 | libsecurity_apple_x509_tp = { 78 | version = 22; 79 | }; 80 | libsecurity_cssm = { 81 | version = 31; 82 | }; 83 | libsecurity_utilities = { 84 | version = 25; 85 | }; 86 | msdosfs = { 87 | version = 88.1; 88 | }; 89 | net_snmp = { 90 | version = 18; 91 | }; 92 | ppp = { 93 | version = 229.2; 94 | }; 95 | security_certificates = { 96 | version = 17; 97 | }; 98 | securityd = { 99 | version = 67; 100 | }; 101 | smb = { 102 | version = 217.2; 103 | }; 104 | tcp_wrappers = { 105 | version = 14; 106 | }; 107 | usertemplate = { 108 | version = 41.2; 109 | }; 110 | webdavfs = { 111 | version = 214.1; 112 | }; 113 | xnu = { 114 | version = 792.2.4; 115 | }; 116 | }; 117 | } 118 | -------------------------------------------------------------------------------- /plists/8G1454.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | binary_sites = ( 4 | "http://src.macosforge.org/Roots/8G1454/", 5 | ); 6 | build = 8G1454; 7 | darwin = "Darwin 8.5"; 8 | inherits = 8G1165; 9 | macosx = "Mac OS X 10.4.5"; 10 | projects = { 11 | ICU = { 12 | version = 6.2.7; 13 | }; 14 | IOKitUser = { 15 | version = 296; 16 | }; 17 | Libc = { 18 | version = 391.4.1; 19 | }; 20 | Libsystem = { 21 | version = 88.1.5; 22 | }; 23 | PowerManagement = { 24 | version = 94.18; 25 | }; 26 | WebCore = { 27 | version = 417.19; 28 | }; 29 | bless = { 30 | version = 37.1; 31 | }; 32 | libsecurity_utilities = { 33 | version = 26545; 34 | }; 35 | libsecurityd = { 36 | version = 26483; 37 | }; 38 | netinfo = { 39 | version = 369.3; 40 | }; 41 | network_cmds = { 42 | version = 245.11; 43 | }; 44 | system_cmds = { 45 | version = 336.10; 46 | }; 47 | }; 48 | } 49 | -------------------------------------------------------------------------------- /plists/8G32.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | binary_sites = ( 4 | "http://src.macosforge.org/Roots/8G32/", 5 | ); 6 | build = 8G32; 7 | darwin = "Darwin 8.4"; 8 | inherits = 8F46; 9 | macosx = "Mac OS X 10.4.4"; 10 | projects = { 11 | AppleI2C = { 12 | version = 350.0.2; 13 | }; 14 | AppleKiwiRoot = { 15 | version = 104.2.1; 16 | }; 17 | AppleMacRISC4PE = { 18 | version = 185.0.0; 19 | }; 20 | CF = { 21 | version = 368.25; 22 | }; 23 | CFNetwork = { 24 | version = 129.9; 25 | }; 26 | CyrusIMAP = { 27 | version = 156.9; 28 | }; 29 | DirectoryService = { 30 | target = DirectoryServiceFW; 31 | version = 352.1; 32 | }; 33 | IOFWDVComponents = { 34 | version = 179.4.0; 35 | }; 36 | IOFireWireFamily = { 37 | version = 209.4.1; 38 | }; 39 | IOSerialFamily = { 40 | version = 30.1; 41 | }; 42 | IOStorageFamily = { 43 | version = 69.1; 44 | }; 45 | IOUSBFamily = { 46 | version = 228.4.0; 47 | }; 48 | JBoss = { 49 | target = magnum; 50 | version = 737; 51 | }; 52 | JavaScriptCore = { 53 | version = 417.8; 54 | }; 55 | JavaScriptGlue = { 56 | version = 417; 57 | }; 58 | OpenSSL = { 59 | version = 26.2; 60 | }; 61 | Security = { 62 | version = 25966; 63 | }; 64 | SpamAssassin = { 65 | version = 124.2; 66 | }; 67 | Tokend = { 68 | version = 25868; 69 | }; 70 | WebCore = { 71 | version = 417.17; 72 | }; 73 | apache2 = { 74 | version = 19.4; 75 | }; 76 | apache_mod_php = { 77 | version = 18.2; 78 | }; 79 | apache_mod_ssl = { 80 | version = 680; 81 | }; 82 | bootp = { 83 | version = 133.6; 84 | }; 85 | configd = { 86 | target = configd_base; 87 | version = 136.1; 88 | }; 89 | curl = { 90 | version = 28.0.2; 91 | }; 92 | diskdev_cmds = { 93 | version = 332.11.1; 94 | }; 95 | libsecurity_keychain = { 96 | version = 25886; 97 | }; 98 | libsecurityd = { 99 | version = 25847; 100 | }; 101 | mDNSResponder = { 102 | version = 107.4; 103 | }; 104 | msdosfs = { 105 | version = 89.3.1; 106 | }; 107 | netinfo = { 108 | version = 369.2; 109 | }; 110 | network_cmds = { 111 | version = 245.1.3; 112 | }; 113 | passwordserver_sasl = { 114 | version = 59.3; 115 | }; 116 | samba = { 117 | version = 92.15; 118 | }; 119 | securityd = { 120 | version = 25991; 121 | }; 122 | sudo = { 123 | version = 17; 124 | }; 125 | syslog = { 126 | version = 13.1; 127 | }; 128 | xnu = { 129 | version = 792.6.56; 130 | }; 131 | }; 132 | } 133 | -------------------------------------------------------------------------------- /plists/8H14.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 8H14; 4 | darwin = "Darwin 8.5"; 5 | inherits = 8G32; 6 | macosx = "Mac OS X 10.4.5"; 7 | projects = { 8 | AppleFileSystemDriver = { 9 | version = 7; 10 | }; 11 | ICU = { 12 | version = 6.2.8; 13 | }; 14 | IOI2CFamily = { 15 | version = 109.0.1; 16 | }; 17 | Libc = { 18 | version = 391.2.5; 19 | }; 20 | Libsystem = { 21 | version = 88.1.5; 22 | }; 23 | WebCore = { 24 | version = 417.19; 25 | }; 26 | msdosfs = { 27 | version = 89.9; 28 | }; 29 | network_cmds = { 30 | version = 245.1.4; 31 | }; 32 | system_cmds = { 33 | version = 336.1.2; 34 | }; 35 | xnu = { 36 | version = 792.6.61; 37 | }; 38 | }; 39 | } 40 | -------------------------------------------------------------------------------- /plists/8I1119.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 8I1119; 4 | darwin = "Darwin 8.6"; 5 | inherits = 8G1454; 6 | macosx = "Mac OS X 10.4.6"; 7 | projects = { 8 | AppleDisplays = { 9 | version = 150.1.2; 10 | }; 11 | AppleRAID = { 12 | version = 2.3.3; 13 | }; 14 | AppleUSBAudio = { 15 | version = 204.2.2; 16 | }; 17 | CFNetwork = { 18 | version = 129.13; 19 | }; 20 | CyrusIMAP = { 21 | version = 156.10; 22 | }; 23 | DSNISPlugin = { 24 | version = 17.7; 25 | }; 26 | DSPasswordServerPlugin = { 27 | version = 114.3; 28 | }; 29 | DirectoryService = { 30 | target = DirectoryServiceFW; 31 | version = 353.3; 32 | }; 33 | DynamicPowerStep = { 34 | version = 1.5.0; 35 | }; 36 | ICU = { 37 | version = 6.2.10; 38 | }; 39 | IOAudioFamily = { 40 | version = 158.2.2; 41 | }; 42 | IOFireWireFamily = { 43 | version = 217.4.0; 44 | }; 45 | IOHIDFamily = { 46 | version = 185.8; 47 | }; 48 | IOI2CFamily = { 49 | version = 110; 50 | }; 51 | IOKitUser = { 52 | version = 297; 53 | }; 54 | IOPCIFamily = { 55 | version = 60; 56 | }; 57 | IOUSBFamily = { 58 | version = 246.4.0; 59 | }; 60 | JavaScriptCore = { 61 | version = 417.11; 62 | }; 63 | Kerberos = { 64 | version = 65.10; 65 | }; 66 | Libc = { 67 | version = 391.4.2; 68 | }; 69 | Libm = { 70 | target = libm; 71 | version = 213; 72 | }; 73 | SmartCardServices = { 74 | version = 26777; 75 | }; 76 | WebCore = { 77 | version = 417.24; 78 | }; 79 | apache_mod_php = { 80 | version = 18.4; 81 | }; 82 | automount = { 83 | version = 133.3; 84 | }; 85 | bless = { 86 | version = 37.1.4; 87 | }; 88 | cups = { 89 | target = installfat; 90 | version = 97.1; 91 | }; 92 | launchd = { 93 | version = 106.13; 94 | }; 95 | netinfo = { 96 | version = 369.5; 97 | }; 98 | network_cmds = { 99 | version = 245.12; 100 | }; 101 | ppp = { 102 | version = 233.10; 103 | }; 104 | rsync = { 105 | version = 24; 106 | }; 107 | samba = { 108 | version = 92.19; 109 | }; 110 | securityd = { 111 | version = 26674; 112 | }; 113 | smb = { 114 | version = 217.18; 115 | }; 116 | system_cmds = { 117 | version = 336.13; 118 | }; 119 | webdavfs = { 120 | version = 221.2; 121 | }; 122 | xnu = { 123 | version = 792.9.22; 124 | }; 125 | }; 126 | } 127 | -------------------------------------------------------------------------------- /plists/8I127.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 8I127; 4 | darwin = "Darwin 8.6"; 5 | inherits = 8H14; 6 | macosx = "Mac OS X 10.4.6"; 7 | projects = { 8 | AppleRAID = { 9 | version = 2.3.3; 10 | }; 11 | AppleUSBAudio = { 12 | version = 204.2.2; 13 | }; 14 | CFNetwork = { 15 | version = 129.13; 16 | }; 17 | CoreOSMakefiles = { 18 | version = 31; 19 | }; 20 | Csu = { 21 | environment = { 22 | RC_ARCHS = "i386 ppc ppc64"; 23 | CC = "gcc-4.0"; 24 | }; 25 | version = 58; 26 | }; 27 | CyrusIMAP = { 28 | version = 156.10; 29 | }; 30 | DSNISPlugin = { 31 | version = 17.7; 32 | }; 33 | DSPasswordServerPlugin = { 34 | version = 113.3; 35 | }; 36 | DirectoryService = { 37 | target = DirectoryServiceFW; 38 | version = 353.3; 39 | }; 40 | FirewallTool = { 41 | version = 17; 42 | }; 43 | ICU = { 44 | version = 6.2.9; 45 | }; 46 | IOATABlockStorage = { 47 | version = 143.0.3; 48 | }; 49 | IOI2CFamily = { 50 | version = 110; 51 | }; 52 | IOUSBFamily = { 53 | version = 229.4.0; 54 | }; 55 | JavaScriptCore = { 56 | version = 417.11; 57 | }; 58 | Kerberos = { 59 | version = 65.10; 60 | }; 61 | Libm = { 62 | target = libm; 63 | version = 213; 64 | }; 65 | SmartCardServices = { 66 | version = 26726; 67 | }; 68 | SpamAssassin = { 69 | version = 124.3; 70 | }; 71 | WebCore = { 72 | version = 417.24; 73 | }; 74 | apache_mod_php = { 75 | version = 18.4; 76 | }; 77 | automount = { 78 | version = 133.3; 79 | }; 80 | bless = { 81 | version = 37; 82 | }; 83 | blojsom = { 84 | version = 59; 85 | }; 86 | cctools = { 87 | version = 590.23.2; 88 | }; 89 | cups = { 90 | target = installfat; 91 | version = 97.1; 92 | }; 93 | dyld = { 94 | target = dyld; 95 | version = 44.4; 96 | }; 97 | gcc = { 98 | version = 5250; 99 | }; 100 | gcc_os = { 101 | version = 1819; 102 | }; 103 | gcc_select = { 104 | version = 50; 105 | }; 106 | gccfast = { 107 | version = 1622; 108 | }; 109 | gdb = { 110 | version = 437; 111 | }; 112 | jam = { 113 | version = 700; 114 | }; 115 | launchd = { 116 | version = 106.13; 117 | }; 118 | ld64 = { 119 | version = 26.0.81; 120 | }; 121 | libstdcxx = { 122 | environment = { 123 | RC_ARCHS = "i386 ppc ppc64"; 124 | CC = "/usr/bin/gcc-4.0"; 125 | }; 126 | version = 5.1; 127 | }; 128 | netinfo = { 129 | version = 369.5; 130 | }; 131 | network_cmds = { 132 | version = 245.12; 133 | }; 134 | objc4 = { 135 | version = 267.1; 136 | }; 137 | pbx_jamfiles = { 138 | version = 628; 139 | }; 140 | ppp = { 141 | version = 233.0.2; 142 | }; 143 | rsync = { 144 | version = 24; 145 | }; 146 | ruby = { 147 | version = 22.2; 148 | }; 149 | samba = { 150 | version = 92.19; 151 | }; 152 | securityd = { 153 | version = 26692; 154 | }; 155 | smb = { 156 | version = 217.18; 157 | }; 158 | system_cmds = { 159 | version = 336.1.5; 160 | }; 161 | webdavfs = { 162 | version = 221.2; 163 | }; 164 | xnu = { 165 | version = 792.6.70; 166 | }; 167 | }; 168 | } 169 | -------------------------------------------------------------------------------- /plists/8J135.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 8J135; 4 | darwin = "Darwin 8.7"; 5 | inherits = 8I127; 6 | macosx = "Mac OS X 10.4.7"; 7 | projects = { 8 | AppleUSBAudio = { 9 | version = 205.2.1; 10 | }; 11 | CF = { 12 | version = 368.27; 13 | }; 14 | CFNetwork = { 15 | version = 129.16; 16 | }; 17 | IOFireWireAVC = { 18 | version = 182.4.1; 19 | }; 20 | IOFireWireFamily = { 21 | version = 225.4.1; 22 | }; 23 | IOFireWireSerialBusProtocolTransport = { 24 | version = 144.0.1; 25 | }; 26 | IOKitUser = { 27 | version = 277.8; 28 | }; 29 | IOSCSIArchitectureModelFamily = { 30 | version = 149.0.2; 31 | }; 32 | IOUSBFamily = { 33 | version = 256.4.2; 34 | }; 35 | IOUSBMassStorageClass = { 36 | version = 145.0.4; 37 | }; 38 | JavaScriptCore = { 39 | version = 418.3; 40 | }; 41 | JavaScriptGlue = { 42 | version = 418; 43 | }; 44 | Libc = { 45 | version = 391.2.6; 46 | }; 47 | Libinfo = { 48 | version = 222.3.3; 49 | }; 50 | Libsystem = { 51 | version = 88.1.6; 52 | }; 53 | MySQL = { 54 | version = 34; 55 | }; 56 | OpenAL = { 57 | version = 16; 58 | }; 59 | OpenLDAP = { 60 | version = 69.0.2; 61 | }; 62 | Security = { 63 | version = 27566; 64 | }; 65 | SmartCardServices = { 66 | version = 27738; 67 | }; 68 | SpamAssassin = { 69 | version = 124.5; 70 | }; 71 | WebCore = { 72 | version = 418.19; 73 | }; 74 | architecture = { 75 | version = 246; 76 | }; 77 | bash = { 78 | version = 44.4; 79 | }; 80 | bootp = { 81 | version = 133.7; 82 | }; 83 | cctools = { 84 | version = 590.23.6; 85 | }; 86 | configd = { 87 | target = configd_base; 88 | version = 136.2; 89 | }; 90 | cups = { 91 | target = installfat; 92 | version = 97.2; 93 | }; 94 | curl = { 95 | version = 28.0.3; 96 | }; 97 | diskdev_cmds = { 98 | version = 332.11.5; 99 | }; 100 | dyld = { 101 | target = dyld; 102 | version = 45.1; 103 | }; 104 | file_cmds = { 105 | version = 116.10; 106 | }; 107 | gcc_select = { 108 | version = 55.2; 109 | }; 110 | gnutar = { 111 | version = 433.1; 112 | }; 113 | ipv6configuration = { 114 | version = 22.1; 115 | }; 116 | kext_tools = { 117 | version = 65.2.1; 118 | }; 119 | launchd = { 120 | version = 106.14; 121 | }; 122 | libsecurity_apple_x509_tp = { 123 | version = 27666; 124 | }; 125 | libsecurity_cssm = { 126 | version = 27544; 127 | }; 128 | libsecurity_keychain = { 129 | version = 27723; 130 | }; 131 | libsecurity_manifest = { 132 | version = 28178; 133 | }; 134 | libsecurity_utilities = { 135 | version = 27756; 136 | }; 137 | lsof = { 138 | version = 28; 139 | }; 140 | msdosfs = { 141 | version = 89.10; 142 | }; 143 | ruby = { 144 | version = 22.2.2; 145 | }; 146 | samba = { 147 | version = 92.20; 148 | }; 149 | security_certificates = { 150 | version = 27797; 151 | }; 152 | securityd = { 153 | version = 27887; 154 | }; 155 | xnu = { 156 | version = 792.6.76; 157 | }; 158 | }; 159 | } 160 | -------------------------------------------------------------------------------- /plists/8J2135.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 8J2135; 4 | darwin = "Darwin 8.7"; 5 | inherits = 8I1119; 6 | macosx = "Mac OS X 10.4.7"; 7 | projects = { 8 | AppleDisplays = { 9 | version = 151.1.5; 10 | }; 11 | AppleUSBAudio = { 12 | version = 205.2.1; 13 | }; 14 | CF = { 15 | version = 368.27; 16 | }; 17 | CFNetwork = { 18 | version = 129.16; 19 | }; 20 | IOAudioFamily = { 21 | version = 159.2.2; 22 | }; 23 | IOFireWireAVC = { 24 | version = 196.4.1; 25 | }; 26 | IOFireWireFamily = { 27 | version = 241.4.1; 28 | }; 29 | IOFireWireIP = { 30 | version = 144.4.0; 31 | }; 32 | IOFireWireSBP2 = { 33 | version = 183.4.0; 34 | }; 35 | IOHIDFamily = { 36 | version = 185.10; 37 | }; 38 | IOKitUser = { 39 | version = 297.0.2; 40 | }; 41 | IOUSBFamily = { 42 | version = 256.4.2; 43 | }; 44 | IOUSBMassStorageClass = { 45 | version = 145.0.4; 46 | }; 47 | JavaScriptCore = { 48 | version = 418.3; 49 | }; 50 | JavaScriptGlue = { 51 | version = 418; 52 | }; 53 | Libc = { 54 | version = 391.4.3; 55 | }; 56 | Libinfo = { 57 | version = 222.4.6; 58 | }; 59 | Libsystem = { 60 | version = 88.1.6; 61 | }; 62 | MySQL = { 63 | version = 34; 64 | }; 65 | OpenAL = { 66 | version = 16; 67 | }; 68 | OpenLDAP = { 69 | version = 69.0.2; 70 | }; 71 | PowerManagement = { 72 | version = 97.5; 73 | }; 74 | Security = { 75 | version = 27569; 76 | }; 77 | SmartCardServices = { 78 | version = 27378; 79 | }; 80 | WebCore = { 81 | version = 418.19; 82 | }; 83 | adv_cmds = { 84 | version = 79.1.1; 85 | }; 86 | bash = { 87 | version = 44.4; 88 | }; 89 | bless = { 90 | version = 40; 91 | }; 92 | bootp = { 93 | version = 133.7; 94 | }; 95 | cctools = { 96 | version = 590.23.6; 97 | }; 98 | cddafs = { 99 | version = 224.0.1; 100 | }; 101 | configd = { 102 | target = configd_base; 103 | version = 137.3; 104 | }; 105 | cups = { 106 | target = installfat; 107 | version = 97.2; 108 | }; 109 | curl = { 110 | version = 28.0.3; 111 | }; 112 | diskdev_cmds = { 113 | version = 332.14.3; 114 | }; 115 | disklabel = { 116 | version = 2; 117 | }; 118 | dyld = { 119 | target = dyld; 120 | version = 45.1; 121 | }; 122 | file_cmds = { 123 | version = 116.10; 124 | }; 125 | gnutar = { 126 | version = 433.1; 127 | }; 128 | ipv6configuration = { 129 | version = 22.1; 130 | }; 131 | kext_tools = { 132 | version = 65.2.1; 133 | }; 134 | launchd = { 135 | version = 106.14; 136 | }; 137 | libsecurity_apple_x509_tp = { 138 | version = 27667; 139 | }; 140 | libsecurity_cssm = { 141 | version = 27545; 142 | }; 143 | libsecurity_keychain = { 144 | version = 27773; 145 | }; 146 | libsecurity_manifest = { 147 | version = 28179; 148 | }; 149 | libsecurity_sd_cspdl = { 150 | version = 27751; 151 | }; 152 | libsecurity_utilities = { 153 | version = 27774; 154 | }; 155 | lsof = { 156 | version = 28; 157 | }; 158 | msdosfs = { 159 | version = 89.10; 160 | }; 161 | ruby = { 162 | version = 22.0.1; 163 | }; 164 | samba = { 165 | version = 92.20; 166 | }; 167 | security_certificates = { 168 | version = 27799; 169 | }; 170 | securityd = { 171 | version = 27896; 172 | }; 173 | tcp_wrappers = { 174 | version = 15; 175 | }; 176 | xnu = { 177 | version = 792.9.72; 178 | }; 179 | }; 180 | } 181 | -------------------------------------------------------------------------------- /plists/8L127.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 8L127; 4 | darwin = "Darwin 8.8"; 5 | inherits = 8J135; 6 | macosx = "Mac OS X 10.4.8"; 7 | environment = { 8 | INSTALLED_PRODUCT_ASIDES = YES; 9 | MACOSX_DEPLOYMENT_TARGET = 10.4; 10 | NEXT_ROOT = ""; 11 | RC_ARCHS = "ppc i386"; 12 | RC_JASPER = YES; 13 | RC_NONARCH_CFLAGS = "-pipe -no-cpp-precomp"; 14 | RC_OS = macos; 15 | RC_PRIVATE = /private; 16 | RC_RELEASE = SUTiMiami; 17 | RC_USE_GCC35_FOR_PPC64 = YES; 18 | RC_XBS = YES; 19 | SEPARATE_STRIP = YES; 20 | UNAME_RELEASE = 8.0; 21 | UNAME_SYSNAME = Darwin; 22 | }; 23 | projects = { 24 | CFNetwork = { 25 | version = 129.18; 26 | }; 27 | CyrusIMAP = { 28 | version = 156.11; 29 | }; 30 | DSNSLPlugins = { 31 | version = 115.1; 32 | }; 33 | IOI2CFamily = { 34 | version = 1011.0.1; 35 | }; 36 | IOUSBFamily = { 37 | version = 258.4.1; 38 | }; 39 | Libc = { 40 | version = 391.2.7; 41 | }; 42 | Libsystem = { 43 | version = 88.1.7; 44 | }; 45 | OpenSSH = { 46 | version = 57.3; 47 | }; 48 | Security = { 49 | version = 28992; 50 | }; 51 | WebCore = { 52 | version = 418.21; 53 | }; 54 | bootp = { 55 | version = 133.8; 56 | }; 57 | cctools = { 58 | version = 622.5.1; 59 | }; 60 | dyld = { 61 | target = dyld; 62 | version = 45.3; 63 | }; 64 | eap8021x = { 65 | version = 33.5; 66 | }; 67 | fetchmail = { 68 | version = 16; 69 | }; 70 | gcc_select = { 71 | version = 55.3; 72 | }; 73 | gnuzip = { 74 | version = 22; 75 | }; 76 | libsecurity_ssl = { 77 | version = 28976; 78 | }; 79 | msdosfs = { 80 | version = 89.13; 81 | }; 82 | network_cmds = { 83 | version = 245.15; 84 | }; 85 | pam_modules = { 86 | version = 17.1; 87 | }; 88 | passwordserver_sasl = { 89 | version = 59.4; 90 | }; 91 | samba = { 92 | version = 100.4; 93 | }; 94 | xnu = { 95 | version = 792.12.6; 96 | }; 97 | }; 98 | } 99 | -------------------------------------------------------------------------------- /plists/8M1910.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 8M1910; 4 | inherits = 8M1780; 5 | projects = { 6 | cctools = { 7 | version = 622.5; 8 | }; 9 | distcc = { 10 | version = 43; 11 | }; 12 | gcc = { 13 | version = 5367; 14 | }; 15 | gcc_select = { 16 | version = 58; 17 | }; 18 | gdb = { 19 | version = 573; 20 | }; 21 | gnutar = { 22 | version = 433.1; 23 | }; 24 | ld64 = { 25 | version = 62.1; 26 | }; 27 | pb_makefiles = { 28 | version = 127; 29 | }; 30 | pbx_jamfiles = { 31 | version = 751.1; 32 | }; 33 | }; 34 | } 35 | -------------------------------------------------------------------------------- /plists/8M2558.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 8M2558; 4 | inherits = 8M1910; 5 | projects = { 6 | bison = { 7 | version = 6.1.1; 8 | }; 9 | cctools = { 10 | version = 622.9; 11 | }; 12 | cvs_wrapped = { 13 | version = 5.1; 14 | }; 15 | distcc = { 16 | version = 786; 17 | }; 18 | gcc = { 19 | version = 5370; 20 | }; 21 | gcc_select = { 22 | version = 58.2; 23 | }; 24 | gdb = { 25 | version = 696; 26 | }; 27 | gnutar = { 28 | version = 433.3; 29 | }; 30 | pbx_jamfiles = { 31 | version = 781; 32 | }; 33 | }; 34 | } 35 | -------------------------------------------------------------------------------- /plists/8P135.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 8P135; 4 | darwin = "Darwin 8.9"; 5 | inherits = 8L127; 6 | macosx = "Mac OS X 10.4.9"; 7 | projects = { 8 | AppleThermal = { 9 | version = 101.3.1; 10 | }; 11 | CF = { 12 | version = 368.28; 13 | }; 14 | CFNetwork = { 15 | version = 129.20; 16 | }; 17 | DirectoryService = { 18 | target = DirectoryServiceFW; 19 | version = 353.6; 20 | }; 21 | FirewallTool = { 22 | version = 18; 23 | }; 24 | ICU = { 25 | version = 6.2.13; 26 | }; 27 | IOHIDFamily = { 28 | version = 185.19; 29 | }; 30 | IOUSBFamily = { 31 | version = 259.4.1; 32 | }; 33 | Libc = { 34 | version = 391.2.9; 35 | }; 36 | Libinfo = { 37 | version = 222.3.5; 38 | }; 39 | Libsystem = { 40 | version = 88.1.8; 41 | }; 42 | MySQL = { 43 | version = 34.3; 44 | }; 45 | OpenSSH = { 46 | version = 74; 47 | }; 48 | OpenSSL = { 49 | version = 38; 50 | }; 51 | Security = { 52 | version = 29770; 53 | }; 54 | SpamAssassin = { 55 | version = 124.6; 56 | }; 57 | Tokend = { 58 | version = 30544; 59 | }; 60 | X11 = { 61 | version = 0.46.4; 62 | }; 63 | apache_mod_php = { 64 | version = 18.8; 65 | }; 66 | bash = { 67 | version = 44.5; 68 | }; 69 | bind9 = { 70 | version = 13.0.1; 71 | }; 72 | blojsom = { 73 | version = 67; 74 | }; 75 | cups = { 76 | target = installfat; 77 | version = 97.3; 78 | }; 79 | diskdev_cmds = { 80 | version = 332.11.9; 81 | }; 82 | dyld = { 83 | target = dyld; 84 | version = 46.12; 85 | }; 86 | eap8021x = { 87 | version = 33.6; 88 | }; 89 | gnutar = { 90 | version = 433.2; 91 | }; 92 | gnuzip = { 93 | version = 22.1; 94 | }; 95 | libsecurity_agent = { 96 | version = 28479; 97 | }; 98 | libsecurity_apple_csp = { 99 | version = 29770; 100 | }; 101 | libsecurity_apple_x509_tp = { 102 | version = 30430; 103 | }; 104 | libsecurity_cssm = { 105 | version = 30430; 106 | }; 107 | libsecurity_utilities = { 108 | version = 30544; 109 | }; 110 | mDNSResponder = { 111 | version = 108.4; 112 | }; 113 | modemccl = { 114 | version = 7.1; 115 | }; 116 | msdosfs = { 117 | version = 89.14; 118 | }; 119 | network_cmds = { 120 | version = 245.16; 121 | }; 122 | ntfs = { 123 | version = 36.4; 124 | }; 125 | perl = { 126 | version = 35.1.1; 127 | }; 128 | ppp = { 129 | version = 233.0.6; 130 | }; 131 | rsync = { 132 | version = 24.1; 133 | }; 134 | samba = { 135 | version = 100.7; 136 | }; 137 | security_certificates = { 138 | version = 30663; 139 | }; 140 | security_ocspd = { 141 | version = 29770; 142 | }; 143 | securityd = { 144 | version = 30544; 145 | }; 146 | sudo = { 147 | version = 23; 148 | }; 149 | system_cmds = { 150 | version = 336.1.8; 151 | }; 152 | xnu = { 153 | version = 792.17.14; 154 | }; 155 | }; 156 | } 157 | -------------------------------------------------------------------------------- /plists/8P2137.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | binary_sites = ( 4 | "http://src.macosforge.org/Roots/8P2137/", 5 | ); 6 | build = 8P2137; 7 | darwin = "Darwin 8.9"; 8 | inherits = 8L2127; 9 | macosx = "Mac OS X 10.4.9"; 10 | projects = { 11 | Apple16X50Serial = { 12 | version = 19.2; 13 | }; 14 | AppleHWSensor = { 15 | version = 155.0.2; 16 | }; 17 | AppleIntelPIIXATA = { 18 | version = 30; 19 | }; 20 | AppleKeyswitch = { 21 | version = 104.0.1; 22 | }; 23 | AppleSMBIOS = { 24 | version = 25; 25 | }; 26 | AppleThermal = { 27 | version = 101.3.1; 28 | }; 29 | AppleUSBAudio = { 30 | version = 210.2.1; 31 | }; 32 | CF = { 33 | version = 368.28; 34 | }; 35 | CFNetwork = { 36 | version = 129.20; 37 | }; 38 | DirectoryService = { 39 | target = DirectoryServiceFW; 40 | version = 353.6; 41 | }; 42 | FirewallTool = { 43 | version = 18; 44 | }; 45 | ICU = { 46 | version = 6.2.14; 47 | }; 48 | IOAudioFamily = { 49 | version = 160.2.6; 50 | }; 51 | IOFireWireFamily = { 52 | version = 255.4.0; 53 | }; 54 | IOFireWireIP = { 55 | version = 154.4.0; 56 | }; 57 | IOFireWireSBP2 = { 58 | version = 188.4.0; 59 | }; 60 | IOGraphics = { 61 | version = 193.2; 62 | }; 63 | IOHIDFamily = { 64 | version = 185.19; 65 | }; 66 | IOPCIFamily = { 67 | version = 79.5; 68 | }; 69 | IOSCSIParallelFamily = { 70 | version = 144.0.4; 71 | }; 72 | IOUSBFamily = { 73 | version = 270.4.1; 74 | }; 75 | IOUSBMassStorageClass = { 76 | version = 147.0.7; 77 | }; 78 | Libc = { 79 | version = 391.5.21; 80 | }; 81 | Libinfo = { 82 | version = 222.4.11; 83 | }; 84 | Libm = { 85 | target = libm; 86 | version = 236.1; 87 | }; 88 | Libsystem = { 89 | version = 88.3.6; 90 | }; 91 | MySQL = { 92 | version = 38; 93 | }; 94 | OpenSSH = { 95 | version = 74; 96 | }; 97 | OpenSSL = { 98 | version = 38; 99 | }; 100 | PowerManagement = { 101 | version = 111.7; 102 | }; 103 | Security = { 104 | version = 29774; 105 | }; 106 | SecurityTool = { 107 | version = 30489; 108 | }; 109 | SmartCardServices = { 110 | version = 30487; 111 | }; 112 | SpamAssassin = { 113 | version = 124.6; 114 | }; 115 | Tokend = { 116 | version = 30557; 117 | }; 118 | X11 = { 119 | version = 0.46.4; 120 | }; 121 | apache_mod_php = { 122 | version = 18.8; 123 | }; 124 | bash = { 125 | version = 44.5; 126 | }; 127 | blojsom = { 128 | version = 67; 129 | }; 130 | cups = { 131 | target = installfat; 132 | version = 97.3; 133 | }; 134 | diskdev_cmds = { 135 | version = 332.22; 136 | }; 137 | dyld = { 138 | target = dyld; 139 | version = 46.12; 140 | }; 141 | eap8021x = { 142 | version = 33.6; 143 | }; 144 | gnutar = { 145 | version = 433.2; 146 | }; 147 | gnuzip = { 148 | version = 22.1; 149 | }; 150 | libsecurity_apple_csp = { 151 | version = 29774; 152 | }; 153 | libsecurity_apple_x509_tp = { 154 | version = 30431; 155 | }; 156 | libsecurity_cssm = { 157 | version = 30431; 158 | }; 159 | libsecurity_keychain = { 160 | version = 30542; 161 | }; 162 | libsecurity_utilities = { 163 | version = 30557; 164 | }; 165 | mDNSResponder = { 166 | version = 108.4; 167 | }; 168 | modemccl = { 169 | version = 7.1; 170 | }; 171 | msdosfs = { 172 | version = 89.14; 173 | }; 174 | network_cmds = { 175 | version = 245.16; 176 | }; 177 | ntfs = { 178 | version = 36.4; 179 | }; 180 | perl = { 181 | version = 38.1.1; 182 | }; 183 | ppp = { 184 | version = 233.15; 185 | }; 186 | rsync = { 187 | version = 24.1; 188 | }; 189 | samba = { 190 | version = 100.7; 191 | }; 192 | security_certificates = { 193 | version = 30663; 194 | }; 195 | security_ocspd = { 196 | version = 29774; 197 | }; 198 | securityd = { 199 | version = 30557; 200 | }; 201 | sudo = { 202 | version = 23; 203 | }; 204 | system_cmds = { 205 | version = 336.20; 206 | }; 207 | xnu = { 208 | version = 792.18.15; 209 | }; 210 | }; 211 | } 212 | -------------------------------------------------------------------------------- /plists/8R218.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 8R218; 4 | darwin = "Darwin 8.10"; 5 | inherits = 8P135; 6 | macosx = "Mac OS X 10.4.10"; 7 | projects = { 8 | ICU = { 9 | version = 6.2.15; 10 | }; 11 | IOHIDFamily = { 12 | version = 185.22; 13 | }; 14 | IOUSBFamily = { 15 | version = 281.4.1; 16 | }; 17 | JavaScriptCore = { 18 | version = 418.5; 19 | }; 20 | Kerberos = { 21 | version = 65.15; 22 | }; 23 | Libc = { 24 | version = 391.2.10; 25 | }; 26 | Libinfo = { 27 | version = 222.3.6; 28 | }; 29 | Libsystem = { 30 | version = 88.1.10; 31 | }; 32 | WebCore = { 33 | version = 418.22; 34 | }; 35 | bind9 = { 36 | version = 13.0.2; 37 | }; 38 | crontabs = { 39 | version = 23.1; 40 | }; 41 | diskdev_cmds = { 42 | version = 332.11.10; 43 | }; 44 | fetchmail = { 45 | version = 28; 46 | }; 47 | file = { 48 | version = 6.0.1; 49 | }; 50 | gnutar = { 51 | version = 433.3; 52 | }; 53 | lukemftpd = { 54 | version = 32; 55 | }; 56 | mDNSResponder = { 57 | version = 108.5; 58 | }; 59 | network_cmds = { 60 | version = 245.17; 61 | }; 62 | ppp = { 63 | version = 233.0.7; 64 | }; 65 | ruby = { 66 | version = 22.3; 67 | }; 68 | screen = { 69 | version = 6.2; 70 | }; 71 | smb = { 72 | version = 217.19; 73 | }; 74 | texinfo = { 75 | version = 12.1; 76 | }; 77 | webdavfs = { 78 | version = 221.3; 79 | }; 80 | xnu = { 81 | version = 792.21.3; 82 | }; 83 | }; 84 | } 85 | -------------------------------------------------------------------------------- /plists/8R2218.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 8R2218; 4 | darwin = "Darwin 8.10"; 5 | inherits = 8P2137; 6 | macosx = "Mac OS X 10.4.10"; 7 | projects = { 8 | AppleDisplays = { 9 | version = 155.1.7; 10 | }; 11 | AppleFileSystemDriver = { 12 | version = 8.1; 13 | }; 14 | AppleSMBIOS = { 15 | version = 26; 16 | }; 17 | AppleUSBAudio = { 18 | version = 250.2.8; 19 | }; 20 | ICU = { 21 | version = 6.2.16; 22 | }; 23 | IOATAPIProtocolTransport = { 24 | version = 151.0.1; 25 | }; 26 | IOAudioFamily = { 27 | version = 160.2.7; 28 | }; 29 | IOFireWireFamily = { 30 | version = 257.4.2; 31 | }; 32 | IOGraphics = { 33 | version = 193.2.1; 34 | }; 35 | IOHIDFamily = { 36 | version = 185.22; 37 | }; 38 | IOKitUser = { 39 | version = 297.13; 40 | }; 41 | IOSCSIParallelFamily = { 42 | version = 145.0.2; 43 | }; 44 | IOUSBFamily = { 45 | version = 276.4.0; 46 | }; 47 | IOUSBMassStorageClass = { 48 | version = 149.0.6; 49 | }; 50 | JavaScriptCore = { 51 | version = 418.5; 52 | }; 53 | Kerberos = { 54 | version = 65.15; 55 | }; 56 | Libc = { 57 | version = 391.5.22; 58 | }; 59 | Libinfo = { 60 | version = 222.4.12; 61 | }; 62 | Libsystem = { 63 | version = 88.3.9; 64 | }; 65 | PowerManagement = { 66 | version = 111.8; 67 | }; 68 | WebCore = { 69 | version = 418.22; 70 | }; 71 | bind9 = { 72 | version = 13.0.2; 73 | }; 74 | bless = { 75 | version = 56; 76 | }; 77 | crontabs = { 78 | version = 23.1; 79 | }; 80 | diskdev_cmds = { 81 | version = 332.23; 82 | }; 83 | fetchmail = { 84 | version = 28; 85 | }; 86 | file = { 87 | version = 6.2.1; 88 | }; 89 | gcc = { 90 | version = 5363.0.5; 91 | }; 92 | gnutar = { 93 | version = 433.3; 94 | }; 95 | lukemftpd = { 96 | version = 32; 97 | }; 98 | mDNSResponder = { 99 | version = 108.5; 100 | }; 101 | network_cmds = { 102 | version = 245.17; 103 | }; 104 | ppp = { 105 | version = 233.16; 106 | }; 107 | ruby = { 108 | version = 22.1.1; 109 | }; 110 | screen = { 111 | version = 6.2; 112 | }; 113 | smb = { 114 | version = 217.19; 115 | }; 116 | texinfo = { 117 | version = 12.1; 118 | }; 119 | webdavfs = { 120 | version = 221.3; 121 | }; 122 | xnu = { 123 | version = 792.22.5; 124 | }; 125 | zip = { 126 | version = 6.1; 127 | }; 128 | }; 129 | } 130 | -------------------------------------------------------------------------------- /plists/8S165.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 8S165; 4 | inherits = 8R218; 5 | darwin = "Darwin 8.11"; 6 | macosx = "Mac OS X 10.4.11"; 7 | projects = { 8 | AppleMacRISC4PE = { 9 | version = 186.3.1; 10 | }; 11 | AppleRAID = { 12 | version = 2.3.4; 13 | }; 14 | AppleUSBAudio = { 15 | version = 252.2.9; 16 | }; 17 | CF = { 18 | version = 368.31; 19 | }; 20 | CFNetwork = { 21 | version = 129.22; 22 | }; 23 | DiskArbitration = { 24 | version = 156.3; 25 | }; 26 | ICU = { 27 | version = 6.2.21; 28 | }; 29 | IOGraphics = { 30 | version = 179.2.1; 31 | }; 32 | IOHIDFamily = { 33 | version = 185.38; 34 | }; 35 | JBoss = { 36 | target = magnum; 37 | version = 737.1; 38 | }; 39 | JavaScriptCore = { 40 | version = 4523.12; 41 | }; 42 | JavaScriptGlue = { 43 | version = 4523.12; 44 | }; 45 | Kerberos = { 46 | version = 65.18; 47 | }; 48 | SquirrelMail = { 49 | version = 21; 50 | }; 51 | Tokend = { 52 | version = 32296; 53 | }; 54 | WebCore = { 55 | version = 4523.12; 56 | }; 57 | apache_mod_php = { 58 | version = 18.9; 59 | }; 60 | bind9 = { 61 | version = 13.0.3; 62 | }; 63 | bzip2 = { 64 | version = 15; 65 | }; 66 | cscope = { 67 | version = 13; 68 | }; 69 | cups = { 70 | target = installfat; 71 | version = 97.4; 72 | }; 73 | diskdev_cmds = { 74 | version = 332.11.12; 75 | }; 76 | dyld = { 77 | target = dyld; 78 | version = 46.16; 79 | }; 80 | file_cmds = { 81 | version = 116.11; 82 | }; 83 | gnuzip = { 84 | version = 22.2; 85 | }; 86 | mDNSResponder = { 87 | version = 108.6; 88 | }; 89 | memberd = { 90 | version = 21.1; 91 | }; 92 | network_cmds = { 93 | version = 245.19; 94 | }; 95 | ntfs = { 96 | version = 36.5; 97 | }; 98 | ppp = { 99 | version = 233.0.8; 100 | }; 101 | samba = { 102 | version = 100.9; 103 | }; 104 | security_certificates = { 105 | version = 32290; 106 | }; 107 | securityd = { 108 | version = 32596; 109 | }; 110 | shell_cmds = { 111 | version = 74.1.1; 112 | }; 113 | system_cmds = { 114 | version = 336.1.11; 115 | }; 116 | xnu = { 117 | version = 792.24.17; 118 | }; 119 | }; 120 | } 121 | -------------------------------------------------------------------------------- /plists/8S2167.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 8S2167; 4 | inherits = 8R2218; 5 | darwin = "Darwin 8.11"; 6 | macosx = "Mac OS X 10.4.11"; 7 | projects = { 8 | AppleDisplays = { 9 | version = 155.1.12; 10 | }; 11 | AppleKeyLargo = { 12 | version = 171.3.1; 13 | }; 14 | AppleRAID = { 15 | version = 2.5.7; 16 | }; 17 | AppleUSBAudio = { 18 | version = 252.2.9; 19 | }; 20 | CF = { 21 | version = 368.31; 22 | }; 23 | CFNetwork = { 24 | version = 129.22; 25 | }; 26 | DiskArbitration = { 27 | version = 156.3; 28 | }; 29 | ICU = { 30 | version = 6.2.22; 31 | }; 32 | IOFireWireFamily = { 33 | version = 260.4.0; 34 | }; 35 | IOGraphics = { 36 | version = 193.2.2; 37 | }; 38 | IOHIDFamily = { 39 | version = 185.38; 40 | }; 41 | IOPCCardFamily = { 42 | version = 47; 43 | }; 44 | IOUSBFamily = { 45 | version = 277.4.1; 46 | }; 47 | IOUSBMassStorageClass = { 48 | version = 150.1.3; 49 | }; 50 | JBoss = { 51 | target = magnum; 52 | version = 742; 53 | }; 54 | JavaScriptCore = { 55 | version = 4523.12; 56 | }; 57 | JavaScriptGlue = { 58 | version = 4523.12; 59 | }; 60 | Kerberos = { 61 | version = 65.18; 62 | }; 63 | PowerManagement = { 64 | version = 111.9; 65 | }; 66 | SquirrelMail = { 67 | version = 21; 68 | }; 69 | Tokend = { 70 | version = 32404; 71 | }; 72 | WebCore = { 73 | version = 4523.12; 74 | }; 75 | apache_mod_php = { 76 | version = 18.9; 77 | }; 78 | bind9 = { 79 | version = 13.0.3; 80 | }; 81 | bless = { 82 | version = 57; 83 | }; 84 | bzip2 = { 85 | version = 15; 86 | }; 87 | cscope = { 88 | version = 13; 89 | }; 90 | cups = { 91 | target = installfat; 92 | version = 97.4; 93 | }; 94 | diskdev_cmds = { 95 | version = 332.25; 96 | }; 97 | dyld = { 98 | target = dyld; 99 | version = 46.16; 100 | }; 101 | file_cmds = { 102 | version = 116.11; 103 | }; 104 | gnumake = { 105 | version = 119; 106 | }; 107 | gnuzip = { 108 | version = 22.2; 109 | }; 110 | ipv6configuration = { 111 | version = 22.3; 112 | }; 113 | mDNSResponder = { 114 | version = 108.6; 115 | }; 116 | memberd = { 117 | version = 21.1; 118 | }; 119 | network_cmds = { 120 | version = 245.19; 121 | }; 122 | ntfs = { 123 | version = 36.5; 124 | }; 125 | ppp = { 126 | version = 233.18; 127 | }; 128 | samba = { 129 | version = 100.9; 130 | }; 131 | security_certificates = { 132 | version = 32290; 133 | }; 134 | securityd = { 135 | version = 32597; 136 | }; 137 | shell_cmds = { 138 | version = 81.1; 139 | }; 140 | system_cmds = { 141 | version = 336.23; 142 | }; 143 | xnu = { 144 | version = 792.25.20; 145 | }; 146 | }; 147 | } 148 | -------------------------------------------------------------------------------- /plists/9B18.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 9B18; 4 | inherits = 9A581; 5 | darwin = "Darwin 9.1"; 6 | macosx = "Mac OS X 10.5.1"; 7 | binary_sites = ( 8 | "http://src.macosforge.org/Roots/9B18/", 9 | ); 10 | projects = { 11 | DSPasswordServerPlugin = { 12 | version = 207.1; 13 | }; 14 | IOKitUser = { 15 | version = 376.0.1; 16 | }; 17 | Security = { 18 | version = 32736; 19 | }; 20 | diskdev_cmds = { 21 | version = 420; 22 | }; 23 | libsecurity_keychain = { 24 | version = 32768; 25 | }; 26 | mDNSResponder = { 27 | version = 164; 28 | }; 29 | samba = { 30 | version = 187.1; 31 | }; 32 | smb = { 33 | version = 345; 34 | }; 35 | xnu = { 36 | version = 1228.0.2; 37 | }; 38 | }; 39 | } 40 | -------------------------------------------------------------------------------- /plists/9E17.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 9E17; 4 | inherits = 9D34; 5 | darwin = "Darwin 9.4"; 6 | macosx = "Mac OS X 10.5.4"; 7 | binary_sites = ( 8 | "http://src.macosforge.org/Roots/9E17/", 9 | ); 10 | projects = { 11 | CF = { 12 | version = 476.14; 13 | }; 14 | DirectoryService = { 15 | target = DirectoryServiceFW; 16 | version = 514.21; 17 | }; 18 | JavaScriptCore = { 19 | version = 5525.18; 20 | }; 21 | Security = { 22 | version = 34102; 23 | }; 24 | cxxfilt = { 25 | version = 7; 26 | }; 27 | eap8021x = { 28 | version = 49.6; 29 | }; 30 | ipsec = { 31 | version = 34.0.1; 32 | }; 33 | libsecurity_keychain = { 34 | version = 34101; 35 | }; 36 | libsecurity_sd_cspdl = { 37 | version = 34101; 38 | }; 39 | net_snmp = { 40 | version = 112.1; 41 | }; 42 | ppp = { 43 | version = 314.0.1; 44 | }; 45 | ruby = { 46 | version = 67.3; 47 | }; 48 | samba = { 49 | version = 187.7; 50 | }; 51 | xnu = { 52 | version = 1228.5.20; 53 | }; 54 | }; 55 | } 56 | -------------------------------------------------------------------------------- /plists/9F33.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 9F33; 4 | inherits = 9E17; 5 | darwin = "Darwin 9.5"; 6 | macosx = "Mac OS X 10.5.5"; 7 | binary_sites = ( 8 | "http://src.macosforge.org/Roots/9F33/", 9 | ); 10 | projects = { 11 | AppleUSBCDCDriver = { 12 | version = 3310.4.1; 13 | }; 14 | BootCache = { 15 | version = 43.5; 16 | }; 17 | CF = { 18 | version = 476.15; 19 | }; 20 | ChatServer = { 21 | version = 263.1; 22 | }; 23 | DirectoryService = { 24 | target = DirectoryServiceFW; 25 | version = 514.23; 26 | }; 27 | IOHIDFamily = { 28 | version = 258.3; 29 | }; 30 | IOKitUser = { 31 | version = 388.2.1; 32 | }; 33 | IOUSBMassStorageClass = { 34 | version = 202.1.0; 35 | }; 36 | Kerberos = { 37 | version = 75.10.5; 38 | }; 39 | OpenLDAP = { 40 | version = 110; 41 | }; 42 | OpenSSH = { 43 | version = 95.1.4; 44 | }; 45 | OpenSSL = { 46 | version = 46.10; 47 | }; 48 | PowerManagement = { 49 | version = 143.11; 50 | }; 51 | TimeZoneData = { 52 | version = 13; 53 | }; 54 | X11apps = { 55 | version = 14.1; 56 | }; 57 | X11fonts = { 58 | version = 5.1; 59 | }; 60 | X11libs = { 61 | version = 17.3; 62 | }; 63 | X11proto = { 64 | version = 15.1; 65 | }; 66 | X11server = { 67 | version = 48.4; 68 | }; 69 | apache_mod_php = { 70 | version = 44.1; 71 | }; 72 | autozone = { 73 | version = 77.1; 74 | }; 75 | bind9 = { 76 | version = 26.1.2; 77 | }; 78 | clamav = { 79 | version = 116.4; 80 | }; 81 | cups = { 82 | target = installfat; 83 | version = 136.11; 84 | }; 85 | eap8021x = { 86 | version = 49.7; 87 | }; 88 | ipsec = { 89 | version = 34.0.2; 90 | }; 91 | launchd = { 92 | version = 258.18; 93 | }; 94 | libresolv = { 95 | version = 25.0.2; 96 | }; 97 | mDNSResponder = { 98 | version = 176.2; 99 | }; 100 | objc4 = { 101 | version = 371.2; 102 | }; 103 | rsync = { 104 | version = 35.2; 105 | }; 106 | ruby = { 107 | version = 67.4; 108 | }; 109 | samba = { 110 | version = 187.8; 111 | }; 112 | security_certificates = { 113 | version = 34618; 114 | }; 115 | smb = { 116 | version = 348.5; 117 | }; 118 | xar = { 119 | version = 30; 120 | }; 121 | xnu = { 122 | version = 1228.7.58; 123 | }; 124 | }; 125 | } 126 | -------------------------------------------------------------------------------- /plists/9L30.plist: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | build = 9L30; 4 | darwin = "Darwin 9.8"; 5 | macosx = "Mac OS X 10.5.8"; 6 | binary_sites = ( 7 | "http://src.macosforge.org/Roots/9L30/", 8 | ); 9 | inherits = 9J61; 10 | projects = { 11 | AppleDisplays = { 12 | version = 1151.0.0; 13 | }; 14 | AppleGMACEthernet = { 15 | version = 159.3.1; 16 | }; 17 | AppleIntelPIIXATA = { 18 | version = 201.0.2; 19 | }; 20 | AppleUSBAudio = { 21 | version = 264.2.17; 22 | }; 23 | AppleUSBCDCDriver = { 24 | version = 3213.4.1; 25 | }; 26 | CF = { 27 | version = 476.19; 28 | }; 29 | DSPasswordServerPlugin = { 30 | version = 208.6; 31 | }; 32 | IOATAFamily = { 33 | version = 202.0.1; 34 | }; 35 | IOATAPIProtocolTransport = { 36 | version = 153.0.1; 37 | }; 38 | IOAudioFamily = { 39 | version = 169.4.5; 40 | }; 41 | IOFireWireFamily = { 42 | version = 349.4.0; 43 | }; 44 | IOHIDFamily = { 45 | version = 258.14; 46 | }; 47 | IOKitUser = { 48 | version = 388.53.30; 49 | }; 50 | IOUSBFamily = { 51 | version = 349.4.3; 52 | }; 53 | IOUSBMassStorageClass = { 54 | version = 208.0.1; 55 | }; 56 | JavaScriptCore = { 57 | version = 5530.19; 58 | }; 59 | JavaScriptGlue = { 60 | version = 5530.19; 61 | }; 62 | PowerManagement = { 63 | version = 158.10.9; 64 | }; 65 | SecurityTool = { 66 | version = 36956; 67 | }; 68 | TimeZoneData = { 69 | version = 19; 70 | }; 71 | WebCore = { 72 | version = 5530.19; 73 | }; 74 | bzip2 = { 75 | version = 16.5; 76 | }; 77 | eap8021x = { 78 | version = 49.9; 79 | }; 80 | launchd = { 81 | version = 258.25; 82 | }; 83 | libsecurity_codesigning = { 84 | version = 36924; 85 | }; 86 | libxml2 = { 87 | version = 17.7.8; 88 | }; 89 | msdosfs = { 90 | version = 136.6; 91 | }; 92 | security_certificates = { 93 | version = 36946; 94 | }; 95 | xnu = { 96 | version = 1228.15.4; 97 | }; 98 | }; 99 | } 100 | -------------------------------------------------------------------------------- /prefix.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) 2009 Apple Computer, Inc. All rights reserved. 3 | // 4 | // @APPLE_BSD_LICENSE_HEADER_START@ 5 | // 6 | // Redistribution and use in source and binary forms, with or without 7 | // modification, are permitted provided that the following conditions 8 | // are met: 9 | // 10 | // 1. Redistributions of source code must retain the above copyright 11 | // notice, this list of conditions and the following disclaimer. 12 | // 2. Redistributions in binary form must reproduce the above copyright 13 | // notice, this list of conditions and the following disclaimer in the 14 | // documentation and/or other materials provided with the distribution. 15 | // 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 16 | // its contributors may be used to endorse or promote products derived 17 | // from this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 | // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | // DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 | // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | // 30 | // @APPLE_BSD_LICENSE_HEADER_END@ 31 | // 32 | PREFIX = /usr/local 33 | BINDIR = $(PREFIX)/bin 34 | DATDIR = $(PREFIX)/share 35 | INCDIR = $(PREFIX)/include 36 | DEPLOYMENT_LOCATION = YES 37 | DSTROOT = $(BUILT_PRODUCTS_DIR) 38 | ARCHS = x86_64 i386 39 | -------------------------------------------------------------------------------- /testing/darwintrace/close-test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import os 3 | for i in range(101,200): 4 | print " ... trying to close(%s)" % i 5 | try: 6 | os.close(i) 7 | print " ... closed %s" % i 8 | exit(1) 9 | except Exception, e: 10 | # test for EBADF 11 | if e.errno == 9: 12 | print " ... got EBADF as expected" 13 | else: 14 | print " ... got wrong error back: %s" % e 15 | exit(2) 16 | exit(0) 17 | -------------------------------------------------------------------------------- /testing/darwintrace/exec: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import subprocess, sys 3 | subprocess.call(sys.argv[1:]) 4 | -------------------------------------------------------------------------------- /testing/darwintrace/realpath: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import os 3 | import sys 4 | print os.path.realpath(sys.argv[1]) 5 | -------------------------------------------------------------------------------- /testing/darwintrace/redirection-test: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PREFIX=$1 3 | ROOT=$PREFIX/root 4 | 5 | /bin/cat $PREFIX/datafile 6 | -------------------------------------------------------------------------------- /testing/darwintrace/run-tests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Run test suite for darwintrace 4 | # 5 | set -e 6 | set -x 7 | pushd $(dirname $0) >> /dev/null 8 | 9 | PREFIX=/tmp/testing/darwintrace 10 | LOGS=$PREFIX/logs 11 | ROOT=$PREFIX/root 12 | BIN=$PREFIX/bin 13 | 14 | DARWINTRACE="/usr/local/share/darwinbuild/darwintrace.dylib" 15 | export DYLD_INSERT_LIBRARIES=$DARWINTRACE 16 | export DARWINTRACE_LOG="${LOGS}/trace.log" 17 | 18 | echo "INFO: Cleaning up testing area ..." 19 | rm -rf $PREFIX 20 | mkdir -p $PREFIX 21 | mkdir -p $ROOT 22 | mkdir -p $LOGS 23 | mkdir -p $BIN 24 | 25 | REALPATH=$BIN/realpath 26 | cp realpath $REALPATH 27 | 28 | EXEC=$BIN/exec 29 | cp exec $EXEC 30 | 31 | CLOSETEST=$BIN/close-test 32 | cp close-test $CLOSETEST 33 | 34 | REDIRECTIONTEST=$BIN/redirection-test 35 | cp redirection-test $REDIRECTIONTEST 36 | 37 | 38 | echo "========== TEST: execve() Trace ==========" 39 | for FILE in cp echo chmod date df expr hostname ls ps pwd test; 40 | do 41 | # some of these commands will error out when run without arguments, 42 | # so just ignore that since all we want is the execve() call to happen 43 | set +e 44 | $EXEC /bin/$FILE 2>&1 >> /dev/null 45 | set -e 46 | LOGPAT="[Pp]ython\[[0-9]+\][[:space:]]execve[[:space:]]/bin/${FILE}" 47 | C=$(grep -cE $LOGPAT $DARWINTRACE_LOG) 48 | test $C -eq 1 49 | done 50 | set -e 51 | 52 | 53 | echo "========== TEST: close() Safety ==========" 54 | $CLOSETEST 55 | 56 | 57 | echo "========== TEST: open() Trace ==========" 58 | for FILE in /System/Library/LaunchDaemons/*.plist; 59 | do 60 | cat $FILE >> /dev/null; 61 | RP=$($REALPATH $FILE); 62 | LOGPAT="cat\[[0-9]+\][[:space:]]open[[:space:]]${RP}" 63 | C=$(grep -cE $LOGPAT $DARWINTRACE_LOG) 64 | test $C -eq 1 65 | done 66 | 67 | 68 | echo "========== TEST: readlink() Trace ==========" 69 | for FILE in $(find /System/Library/Frameworks/*Foundation.framework -type l | xargs); 70 | do 71 | readlink $FILE 72 | LOGPAT="readlink\[[0-9]+\][[:space:]]readlink[[:space:]]${FILE}" 73 | C=$(grep -cE $LOGPAT $DARWINTRACE_LOG) 74 | test $C -eq 1 75 | done 76 | 77 | 78 | echo "========== TEST: ROOT Ignores ==========" 79 | export DARWINTRACE_IGNORE_ROOTS="" 80 | export DSTROOT="/System/Library/LaunchAgents" 81 | for FILE in /var/log/*.log; 82 | do 83 | cat $FILE >> /dev/null; 84 | RP=$($REALPATH $FILE); 85 | LOGPAT="cat\[[0-9]+\][[:space:]]open[[:space:]]${RP}" 86 | C=$(grep -cE $LOGPAT $DARWINTRACE_LOG) 87 | test $C -eq 1 88 | done 89 | 90 | for FILE in /System/Library/LaunchAgents/com.apple.*; 91 | do 92 | cat $FILE >> /dev/null; 93 | RP=$($REALPATH $FILE); 94 | LOGPAT="cat\[[0-9]+\][[:space:]]open[[:space:]]${RP}" 95 | set +e 96 | C=$(grep -cE $LOGPAT $DARWINTRACE_LOG) 97 | set -e 98 | test $C -eq 0 99 | done 100 | unset DARWINTRACE_IGNORE_ROOTS 101 | unset DSTROOT 102 | 103 | 104 | echo "========== TEST: Redirection ==========" 105 | mkdir -p $ROOT/$PREFIX 106 | mkdir -p $ROOT/usr/lib 107 | cp /usr/lib/libSystem.B.dylib $ROOT/usr/lib/libSystem.B.dylib 108 | mkdir -p $ROOT/bin 109 | cp /bin/cat $ROOT/bin/cat 110 | echo "Outside of root" > $PREFIX/datafile 111 | echo "Inside of root" > $ROOT/$PREFIX/datafile 112 | export DARWINTRACE_REDIRECT="${ROOT}" 113 | export DARWIN_BUILDROOT="${ROOT}" 114 | $REDIRECTIONTEST $PREFIX 115 | unset DARWINTRACE_REDIRECT 116 | unset DARWIN_BUILDROOT 117 | # test that execve(/bin/cat) was redirected 118 | RP=$($REALPATH ${ROOT}/bin/cat) 119 | LOGPAT="bash\[[0-9]+\][[:space:]]execve[[:space:]]${RP}" 120 | C=$(grep -cE $LOGPAT $DARWINTRACE_LOG) 121 | test $C -eq 1 122 | # test that open(/tmp/.../datafile) does not get redirected 123 | # since /tmp/ is one of the redirection exceptions 124 | RP=$($REALPATH ${PREFIX}/datafile) 125 | LOGPAT="cat\[[0-9]+\][[:space:]]open[[:space:]]${RP}" 126 | C=$(grep -cE $LOGPAT $DARWINTRACE_LOG) 127 | test $C -eq 1 128 | 129 | popd >> /dev/null 130 | echo "INFO: Done testing!" 131 | -------------------------------------------------------------------------------- /testing/darwinup/300dirs.tbz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/300dirs.tbz2 -------------------------------------------------------------------------------- /testing/darwinup/300files.tbz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/300files.tbz2 -------------------------------------------------------------------------------- /testing/darwinup/corrupt.tgz: -------------------------------------------------------------------------------- 1 | This is a text file. Darwinup will see the .tgz extension and try to use tar on it. 2 | This will fail, which allows us to test early failures from external tools (like ditto and tar). 3 | -------------------------------------------------------------------------------- /testing/darwinup/deep-rollback-2.xar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/deep-rollback-2.xar -------------------------------------------------------------------------------- /testing/darwinup/deep-rollback.cpgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/deep-rollback.cpgz -------------------------------------------------------------------------------- /testing/darwinup/depotroot.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/depotroot.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/dest.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/dest.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/extension.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/extension.tar.bz2 -------------------------------------------------------------------------------- /testing/darwinup/rep_dir_file.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/rep_dir_file.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/rep_dir_link.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/rep_dir_link.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/rep_file_dir.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/rep_file_dir.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/rep_file_link.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/rep_file_link.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/rep_flink_dir.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/rep_flink_dir.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/rep_flink_file.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/rep_flink_file.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/rep_link_dir.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/rep_link_dir.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/rep_link_file.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/rep_link_file.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/root.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/root.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/root2.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/root2.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/root3.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/root3.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/root5.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/root5.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/root6.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/root6.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/root7.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/root7.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/sandboxprofile.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/sandboxprofile.tar.bz2 -------------------------------------------------------------------------------- /testing/darwinup/symlink_update.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/symlink_update.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/symlinks.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/symlinks.tar.gz -------------------------------------------------------------------------------- /testing/darwinup/xpcservice.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macosforge/darwinbuild/056f0d8ba94c78b53da8b1e7f9d82d7563974612/testing/darwinup/xpcservice.tar.bz2 -------------------------------------------------------------------------------- /testing/run-all-tests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | pushd $(dirname $0) >> /dev/null 4 | 5 | for X in *; 6 | do 7 | if [ -d $X ]; then 8 | $X/run-tests.sh 9 | fi 10 | done 11 | 12 | echo "INFO: All testing completed!" 13 | --------------------------------------------------------------------------------