Changeset 2975
- Timestamp:
- 06/19/05 04:09:46 (3 years ago)
- Files:
-
- WiredServer/trunk/Package/ReadMe.rtf (added)
- WiredServer/trunk/Panel/WPWired.h (modified) (2 diffs)
- WiredServer/trunk/Panel/WPWired.m (modified) (3 diffs)
- WiredServer/trunk/Panel/prefix.pch (modified) (2 diffs)
- WiredServer/trunk/Status (deleted)
- WiredServer/trunk/WCAccounts.m (modified) (2 diffs)
- WiredServer/trunk/WCAccountsController.h (modified) (2 diffs)
- WiredServer/trunk/WCAccountsController.m (modified) (3 diffs)
- WiredServer/trunk/WCAuthorization.m (modified) (2 diffs)
- WiredServer/trunk/WCConfig.m (modified) (2 diffs)
- WiredServer/trunk/WCConfigController.h (modified) (3 diffs)
- WiredServer/trunk/WCConfigController.m (modified) (3 diffs)
- WiredServer/trunk/WCDashboardController.m (modified) (2 diffs)
- WiredServer/trunk/WCLogController.m (modified) (1 diff)
- WiredServer/trunk/WCSettings.m (modified) (3 diffs)
- WiredServer/trunk/WCStatusController.m (modified) (2 diffs)
- WiredServer/trunk/WiredCommon.h (modified) (2 diffs)
- WiredServer/trunk/WiredServer.xcconfig (added)
- WiredServer/trunk/WiredServer.xcode/project.pbxproj (deleted)
- WiredServer/trunk/WiredServer.xcodeproj (added)
- WiredServer/trunk/WiredServer.xcodeproj/project.pbxproj (added)
- WiredServer/trunk/install.sh (modified) (2 diffs)
- WiredServer/trunk/makedmg.sh (deleted)
- WiredServer/trunk/version.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredServer/trunk/Panel/WPWired.h
r942 r2975 1 /* $Id : WPWired.h,v 1.3 2005/01/15 17:21:25 morris Exp$ */1 /* $Id$ */ 2 2 3 3 /* … … 27 27 */ 28 28 29 @class WCAccountsController, WCConfigController, WCDashboardController; 30 @class WCLogController, WCStatusController; 31 29 32 @interface WPWired : NSPreferencePane { 30 33 IBOutlet WCAccountsController *_accountsController; WiredServer/trunk/Panel/WPWired.m
r1639 r2975 27 27 */ 28 28 29 #import "WCAccountsController.h" 30 #import "WCAuthorization.h" 31 #import "WCConfigController.h" 32 #import "WCDashboardController.h" 33 #import "WCSettings.h" 34 #import "WCStatusController.h" 29 35 #import "WPWired.h" 30 31 NSBundle *zankaAdditionsBundle;32 33 36 34 37 @interface WPWired(Private) … … 43 46 44 47 + (void)load { 48 NSBundle *bundle; 45 49 NSString *path; 46 50 … … 48 52 stringByAppendingPathComponent:@"ZankaAdditions.framework"]; 49 53 50 zankaAdditionsBundle = [[NSBundle bundleWithPath:path] retain];54 bundle = [NSBundle bundleWithPath:path]; 51 55 52 if(![zankaAdditionsBundle load]) 53 NSLog(@"Failed to load %@", zankaAdditionsBundle); 56 if(!bundle) 57 NSLog(@"Failed to load ZankaAdditions.framework from %@", path); 58 59 if(![bundle load]) 60 NSLog(@"Failed to load %@", bundle); 54 61 } 55 62 WiredServer/trunk/Panel/prefix.pch
r923 r2975 1 /* $Id : prefix.pch,v 1.1 2005/01/07 23:14:20 morris Exp$ */1 /* $Id$ */ 2 2 3 3 /* … … 47 47 #import <openssl/pem.h> 48 48 #import <openssl/rsa.h> 49 50 // --- Wired common classes51 #import "WiredCommon.h"WiredServer/trunk/WCAccounts.m
r923 r2975 1 /* $Id : WCAccounts.m,v 1.1 2005/01/07 23:14:19 morris Exp$ */1 /* $Id$ */ 2 2 3 3 /* … … 27 27 */ 28 28 29 #import "WCAccounts.h" 30 29 31 @implementation WCAccount 30 32 WiredServer/trunk/WCAccountsController.h
r938 r2975 1 /* $Id : WCAccountsController.h,v 1.2 2005/01/14 16:09:22 morris Exp$ */1 /* $Id$ */ 2 2 3 3 /* … … 27 27 */ 28 28 29 @class WCConfigController ;29 @class WCConfigController, WCAccounts; 30 30 31 31 @interface WCAccountsController : NSObject { WiredServer/trunk/WCAccountsController.m
r938 r2975 1 /* $Id : WCAccountsController.m,v 1.3 2005/01/14 16:09:22 morris Exp$ */1 /* $Id$ */ 2 2 3 3 /* … … 27 27 */ 28 28 29 #import "WCAccounts.h" 30 #import "WCAccountsController.h" 31 #import "WCAuthorization.h" 32 #import "WCConfig.h" 33 #import "WCConfigController.h" 34 #import "WCSettings.h" 35 29 36 @interface WCAccountsController(Private) 30 37 … … 67 74 _accounts = [[NSMutableArray alloc] init]; 68 75 69 cell = [[ [zankaAdditionsBundle classNamed:@"ZAIconCell"]alloc] init];76 cell = [[ZAIconCell alloc] init]; 70 77 [cell setImageWidth:16.0]; 71 78 [cell setDrawsWhitespace:YES]; WiredServer/trunk/WCAuthorization.m
r938 r2975 1 /* $Id : WCAuthorization.m,v 1.2 2005/01/14 16:09:22 morris Exp$ */1 /* $Id$ */ 2 2 3 3 /* … … 27 27 */ 28 28 29 #import "WCAuthorization.h" 30 #import "WCLogController.h" 31 29 32 @implementation WCAuthorization 30 33 WiredServer/trunk/WCConfig.m
r1750 r2975 20 20 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 21 21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 22 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)22 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 24 24 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN … … 26 26 * POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 29 #import "WCConfig.h" 30 #import "WCSettings.h" 28 31 29 32 @implementation WCConfig WiredServer/trunk/WCConfigController.h
r938 r2975 1 /* $Id : WCConfigController.h,v 1.2 2005/01/14 16:09:22 morris Exp$ */1 /* $Id$ */ 2 2 3 3 /* … … 27 27 */ 28 28 29 @class WCDashboardController ;29 @class WCDashboardController, WCConfig; 30 30 31 31 @interface WCConfigController : NSObject { … … 100 100 101 101 102 #define WCControlPort 2000 103 #define WCTransferPort 2001 104 #define WCTrackerPort 2002 105 102 106 #define WCConfigDidChange @"WCConfigDidChange" 103 107 #define WCLogConfigDidChange @"WCLogConfigDidChange" WiredServer/trunk/WCConfigController.m
r1644 r2975 30 30 #import <syslog.h> 31 31 #undef SYSLOG_NAMES 32 33 #import "WCAuthorization.h" 34 #import "WCConfig.h" 35 #import "WCConfigController.h" 36 #import "WCSettings.h" 37 #import "WCStatusController.h" 32 38 33 39 @interface WCConfigController(Private) … … 1033 1039 1034 1040 tracker = [[_config arrayForKey:@"tracker"] objectAtIndex:row]; 1035 url = [ [zankaAdditionsBundle classNamed:@"ZAURL"]URLWithString:tracker];1041 url = [ZAURL URLWithString:tracker]; 1036 1042 1037 1043 if(url) { … … 1058 1064 1059 1065 tracker = [[_config arrayForKey:@"tracker"] objectAtIndex:row]; 1060 url = [ [zankaAdditionsBundle classNamed:@"ZAURL"]URLWithString:tracker];1066 url = [ZAURL URLWithString:tracker]; 1061 1067 1062 1068 if(tableColumn == _trackerTableColumn) { WiredServer/trunk/WCDashboardController.m
r934 r2975 1 /* $Id : WCDashboardController.m,v 1.1 2005/01/14 15:25:34 morris Exp$ */1 /* $Id$ */ 2 2 3 3 /* … … 27 27 */ 28 28 29 #import "WCAuthorization.h" 30 #import "WCConfigController.h" 31 #import "WCDashboardController.h" 32 #import "WCSettings.h" 33 #import "WCStatusController.h" 34 29 35 @interface WCDashboardController(Private) 30 36 WiredServer/trunk/WCLogController.m
r1644 r2975 27 27 */ 28 28 29 #import "WCLogController.h" 29 30 #import "WCConfigController.h" 31 #import "WCSettings.h" 30 32 31 33 @interface WCLogController(Private) WiredServer/trunk/WCSettings.m
r938 r2975 1 /* $Id : WCSettings.m,v 1.3 2005/01/14 16:09:22 morris Exp$ */1 /* $Id$ */ 2 2 3 3 /* … … 27 27 */ 28 28 29 #import "WCSettings.h" 30 29 31 @interface WCSettings(Private) 30 32 … … 59 61 + (NSDictionary *)defaults { 60 62 return [NSDictionary dictionaryWithObjectsAndKeys: 61 @"/ usr/local/wired",63 @"/Library/Wired", 62 64 WCPrefixPath, 63 65 WiredServer/trunk/WCStatusController.m
r940 r2975 1 /* $Id : WCStatusController.m,v 1.3 2005/01/15 15:56:39 morris Exp$ */1 /* $Id$ */ 2 2 3 3 /* … … 27 27 */ 28 28 29 #import "WCSettings.h" 30 #import "WCStatusController.h" 31 29 32 @interface WCStatusController(Private) 30 33 WiredServer/trunk/WiredCommon.h
r938 r2975 1 /* $Id : WiredCommon.h,v 1.3 2005/01/14 16:09:22 morris Exp$ */1 /* $Id$ */ 2 2 3 3 /* … … 42 42 #define WCTransferPort 2001 43 43 #define WCTrackerPort 2002 44 45 // --- Globals46 extern NSBundle *zankaAdditionsBundle;WiredServer/trunk/install.sh
r1777 r2975 2 2 3 3 ROOT="$1" 4 SVNURL="svn +ssh://anonsvn@svn.zankasoftware.com/svn"4 SVNURL="svn://svn.zankasoftware.com" 5 5 6 mkdir -p "$BUILT_PRODUCTS_DIR/Wired Server" 6 # create skeleton directories 7 7 mkdir -p "$ROOT/Library/PreferencePanes" 8 8 mkdir -p "$ROOT/Library/StartupItems" 9 mkdir -p "$ROOT/Library/Wired" 9 10 mkdir -p "$ROOT/usr/local" 10 11 11 # / usr/local/wired12 cd "$ BUILT_PRODUCTS_DIR"12 # /Library/Wired 13 cd "$PROJECT_TEMP_DIR" 13 14 rm -rf wired 14 15 svn co "$SVNURL/wired/trunk" wired || exit 1 … … 16 17 svn co "$SVNURL/libzanka/trunk" libzanka || exit 1 17 18 18 rm -rf "$ROOT/ usr/local/wired" "$ROOT/usr/local/man"19 ./configure -C --prefix="$ROOT/ usr/local" --with-fake-prefix="/usr/local" --enable-warnings19 rm -rf "$ROOT/Library/Wired" "$ROOT/usr/local/man" 20 ./configure -C --prefix="$ROOT/Library" --with-fake-prefix="/Library" --with-wireddir="Wired" --mandir="$ROOT/usr/local/man" --enable-warnings 20 21 make || exit 1 21 22 sudo make install || exit 1 22 23 23 cd "$BUILT_PRODUCTS_DIR"24 rm -rf wired25 26 24 # /Library 27 25 cd "$SRCROOT" 28 rm -rf "$ROOT/Library/PreferencePanes/Wired.prefPane"29 26 cp -rp "$BUILT_PRODUCTS_DIR/Wired.prefPane" "$ROOT/Library/PreferencePanes/" 30 rm -rf "$ROOT/Library/StartupItems/Wired"31 27 cp -rp "StartupItems/Wired" "$ROOT/Library/StartupItems/" 32 28 33 34 29 # clean 35 find "$ROOT" -name .DS_Store -print0 | xargs -0 rm -f36 chmod 1775 "$ROOT"30 find "$ROOT" -name .DS_Store -print0 | sudo xargs -0 rm -f 31 sudo chmod 1775 "$ROOT" 37 32 sudo chown root:wheel "$ROOT" 38 33 39 find "$ROOT/Library" -type d -o -perm +111 -print0 | xargs -0 chmod 77540 find "$ROOT/Library" -type f -a ! -perm +111 -print0 | xargs -0 chmod 66434 find "$ROOT/Library" -type d -o -perm +111 -print0 | sudo xargs -0 chmod 775 35 find "$ROOT/Library" -type f -a ! -perm +111 -print0 | sudo xargs -0 chmod 664 41 36 sudo chown -R root:admin "$ROOT/Library" 42 37 43 chmod 775 "$ROOT/usr" "$ROOT/usr/local"38 sudo chmod 775 "$ROOT/usr" "$ROOT/usr/local" 44 39 sudo chown root:wheel "$ROOT/usr" "$ROOT/usr/local" 45 40 WiredServer/trunk/version.pl
r1652 r2975 20 20 print FH $info; 21 21 close(FH); 22 23 system("rm -rf '$ENV{BUILT_PRODUCTS_DIR}/$ENV{EXECUTABLE_NAME} build $prevversion.$ENV{WRAPPER_EXTENSION}'");24 system("ln -sf '$ENV{BUILT_PRODUCTS_DIR}/$ENV{WRAPPER_NAME}' '$ENV{BUILD_DIR}/$ENV{EXECUTABLE_NAME} build $version.$ENV{WRAPPER_EXTENSION}'");
