]> err.no Git - sope/commitdiff
added FHS install hack to appserver
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Sun, 29 Aug 2004 21:28:41 +0000 (21:28 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Sun, 29 Aug 2004 21:28:41 +0000 (21:28 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@86 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

28 files changed:
sope-appserver/NGObjWeb/ChangeLog
sope-appserver/NGObjWeb/GNUmakefile
sope-appserver/NGObjWeb/GNUmakefile.preamble
sope-appserver/NGObjWeb/NSObject+WO.m
sope-appserver/NGObjWeb/SoObjects/SoProductRegistry.m
sope-appserver/NGObjWeb/Templates/WOApplication+Builders.m
sope-appserver/NGObjWeb/Version
sope-appserver/NGObjWeb/WOCoreApplication+Bundle.m
sope-appserver/NGObjWeb/WOCoreApplication.m
sope-appserver/NGObjWeb/WORequest.m
sope-appserver/NGObjWeb/WebDAV/SoObject+SoDAV.m
sope-appserver/NGObjWeb/fhs.make [new file with mode: 0644]
sope-appserver/NGXmlRpc/ChangeLog
sope-appserver/NGXmlRpc/GNUmakefile
sope-appserver/NGXmlRpc/Version
sope-appserver/NGXmlRpc/fhs.make [new file with mode: 0644]
sope-appserver/SoOFS/ChangeLog
sope-appserver/SoOFS/GNUmakefile
sope-appserver/SoOFS/Version
sope-appserver/SoOFS/fhs.make [new file with mode: 0644]
sope-appserver/WEExtensions/ChangeLog
sope-appserver/WEExtensions/GNUmakefile
sope-appserver/WEExtensions/Version
sope-appserver/WEExtensions/fhs.make [new file with mode: 0644]
sope-appserver/WOExtensions/ChangeLog
sope-appserver/WOExtensions/GNUmakefile
sope-appserver/WOExtensions/Version
sope-appserver/WOExtensions/fhs.make [new file with mode: 0644]

index 8120142e995a2dc7b5a6cf8718dcda923b653b79..572184a28ad506fa8e4a1a85a094c458a1501605 100644 (file)
@@ -1,3 +1,32 @@
+2004-08-29  Helge Hess  <helge.hess@opengroupware.org>
+
+       * v4.3.18
+       
+       * Templates/WOApplication+Builders.m: also look in
+         /usr/local/lib/sope-4.3/wox-builders/ and
+         /usr/lib/sope-4.3/wox-builders/ for SOPE WOx element builder bundles
+
+       * SoObjects/SoProductRegistry.m: also look in
+         /usr/local/share/sope-4.3/products and /usr/share/sope-4.3/products
+         for SOPE product bundles
+
+       * WORequest.m, WebDAV/SoObject+SoDAV.m: use new WOCoreApplication
+         method to lookup Languages.plist / DAVPropMap.plist resource
+
+       * WOCoreApplication.m: use GNUSTEP_PATHPREFIX_LIST and GNUSTEP_PATHLIST
+         to find libNGObjWeb resources, also look in
+         /usr/local/share/sope-4.3/ngobjweb/ and
+         /usr/share/sope-4.3/ngobjweb/. Added a method
+         +findNGObjWebResource:ofType: to locate library resources
+       
+       * WOCoreApplication+Bundle.m: use GNUSTEP_PATHPREFIX_LIST and
+         GNUSTEP_PATHLIST to load application bundles
+       
+       * added hack to install the project in FHS locations - the library,
+         its headers, the tools and the resources will be installed in
+         FHS_INSTALL_ROOT if specified (eg make FHS_INSTALL_ROOT=/usr/local),
+         SOPE products are installed in lib/sope-4.3/products/
+       
 2004-08-27  Helge Hess  <helge.hess@skyrix.com>
 
        * GNUmakefile: export WOComponentDefinition.h as a public header
index 34fa78d9c05e731b46d135340d8cd47083d1bb6d..7d2481eef2756ff49ddfef66a1f18b7537e606e5 100644 (file)
@@ -150,3 +150,4 @@ include $(GNUSTEP_MAKEFILES)/library.make
 include $(GNUSTEP_MAKEFILES)/bundle.make
 include $(GNUSTEP_MAKEFILES)/tool.make
 -include GNUmakefile.postamble
+-include fhs.make
index 40b7d64601b01b4245248ec080831c602e1f92ae..c9144011b027fd75c8e5da60e2bce557d7a21e2f 100644 (file)
@@ -31,7 +31,8 @@ ADDITIONAL_LIB_DIRS += \
        -L$(RELBUILD_DIR_SxCore)/EOControl/$(GNUSTEP_OBJ_DIR_NAME)      \
        -L$(RELBUILD_DIR_SxXml)/XmlRpc/$(GNUSTEP_OBJ_DIR_NAME)          \
        -L$(RELBUILD_DIR_SxXml)/DOM/$(GNUSTEP_OBJ_DIR_NAME)             \
-       -L$(RELBUILD_DIR_SxXml)/SaxObjC/$(GNUSTEP_OBJ_DIR_NAME)
+       -L$(RELBUILD_DIR_SxXml)/SaxObjC/$(GNUSTEP_OBJ_DIR_NAME)         \
+       -L/usr/local/lib -L/usr/lib
 
 else
 libNGObjWeb_LIB_DIRS += \
@@ -42,7 +43,8 @@ libNGObjWeb_LIB_DIRS += \
        -L$(CORE_ROOT)/EOControl/$(GNUSTEP_OBJ_DIR)             \
        -L$(SOPE_ROOT)/sope-xml/XmlRpc/$(GNUSTEP_OBJ_DIR)       \
        -L$(SOPE_ROOT)/sope-xml/DOM/$(GNUSTEP_OBJ_DIR)          \
-       -L$(SOPE_ROOT)/sope-xml/SaxObjC/$(GNUSTEP_OBJ_DIR)
+       -L$(SOPE_ROOT)/sope-xml/SaxObjC/$(GNUSTEP_OBJ_DIR)      \
+       -L/usr/local/lib -L/usr/lib
 endif
 
 libNGObjWeb_LIBRARIES_DEPEND_UPON += \
index 2882cc4973311eccb82d19b076291af9d8b09298..51b548f00d04ad0e7ba166fb44194295c50a751c 100644 (file)
@@ -18,7 +18,6 @@
   Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
   02111-1307, USA.
 */
-// $Id$
 
 #include "NSObject+WO.h"
 #include "common.h"
index a0f3dac9f2e2faf5d1d5d27611f3abb28cead3d7..af2c68ca46834923463bbb624af1b28644f208ae 100644 (file)
@@ -267,6 +267,28 @@ static int debugOn = 0;
     [self scanForProductsInDirectory:lPath];
   }
   
+  /* look into FHS pathes */
+  
+  pathes = [NSArray arrayWithObjects:
+                     @"/usr/local/lib/sope-4.3/products/",
+                     @"/usr/lib/sope-4.3/products/",
+                   nil];
+  for (i = 0; i < [pathes count]; i++) {
+    NSString *lPath;
+    BOOL     isDir;
+    
+    lPath = [pathes objectAtIndex:i];
+    if (![fm fileExistsAtPath:lPath isDirectory:&isDir])
+      continue;
+    if (!isDir)
+      continue;
+    
+    [self debugWithFormat:@"  directory %@", lPath];
+    [self scanForProductsInDirectory:lPath];
+  }
+  
+  /* report result */
+  
   [self debugWithFormat:
          @"finished scan for products (%i products registered).",
          [self->products count]];
index 8d84099a99dcf84f65c5d39d02419c7f3d9347f8..18b66a6e3e26565eb684ce4c2d9e425d4ffec607 100644 (file)
     [self scanForBuilderBundlesInDirectory:lPath];
   }
   
+  /* look into FHS pathes */
+  
+  pathes = [NSArray arrayWithObjects:
+                     @"/usr/local/lib/sope-4.3/wox-builders/",
+                     @"/usr/lib/sope-4.3/wox-builders/",
+                   nil];
+  for (i = 0; i < [pathes count]; i++) {
+    NSString *lPath;
+    BOOL     isDir;
+    
+    lPath = [pathes objectAtIndex:i];
+    if (![fm fileExistsAtPath:lPath isDirectory:&isDir])
+      continue;
+    if (!isDir)
+      continue;
+    
+    [self debugWithFormat:@"  directory %@", lPath];
+    [self scanForBuilderBundlesInDirectory:lPath];
+  }
+  
+  /* report result */
+  
   [self debugWithFormat:@"finished scan for builders."];
 }
 
index 610acbde36953a4f4ddf59f2aaf88343cafaa7e2..1494d0b4fa435d15c24fbed3d7664716be2ed38d 100644 (file)
@@ -1,6 +1,6 @@
 # version file
 
-SUBMINOR_VERSION:=17
+SUBMINOR_VERSION:=18
 
 # v4.2.413 requires libSaxObjC      v4.2.33
 # v4.2.341 requires libNGExtensions v4.2.77
index 898c31a46699a8ddd3411cff36e8b450f1657c8c..c60e11acee6840bf980d51d14513895b2b6cd7ad 100644 (file)
@@ -1,7 +1,7 @@
 /*
-  Copyright (C) 2000-2003 SKYRIX Software AG
+  Copyright (C) 2000-2004 SKYRIX Software AG
 
-  This file is part of OGo
+  This file is part of OpenGroupware.org.
 
   OGo is free software; you can redistribute it and/or modify it under
   the terms of the GNU Lesser General Public License as published by the
@@ -18,7 +18,6 @@
   Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
   02111-1307, USA.
 */
-// $Id$
 
 #include <NGObjWeb/WOCoreApplication.h>
 #include "common.h"
@@ -32,6 +31,7 @@
 + (int)loadApplicationBundle:(NSString *)_bundleName
   domainPath:(NSString *)_domain
 {
+  // TODO: is this actually used somewhere?
   NSFileManager  *fm;
   NSString       *bp;
   NSBundle       *bundle;
   }
   else {
     NSDictionary *env;
+    NSEnumerator *e;
+    id tmp;
     
     env = [[NSProcessInfo processInfo] environment];
-  
+    
     [chkPathes addObject:@"."];
 #if COCOA_FRAMEWORK
     bp = [env objectForKey:@"HOME"];
     bp = [bp stringByAppendingPathComponent:_domain];
     [chkPathes addObject:bp];
 #else
-    bp = [env objectForKey:@"GNUSTEP_USER_ROOT"];
-    bp = [bp stringByAppendingPathComponent:@"Library"];
-    bp = [bp stringByAppendingPathComponent:_domain];
-    [chkPathes addObject:bp];
-    bp = [env objectForKey:@"GNUSTEP_LOCAL_ROOT"];
-    bp = [bp stringByAppendingPathComponent:@"Library"];
-    bp = [bp stringByAppendingPathComponent:_domain];
-    [chkPathes addObject:bp];
-    bp = [env objectForKey:@"GNUSTEP_SYSTEM_ROOT"];
-    bp = [bp stringByAppendingPathComponent:@"Library"];
-    bp = [bp stringByAppendingPathComponent:_domain];
-    [chkPathes addObject:bp];
+    if ((tmp = [env objectForKey:@"GNUSTEP_PATHPREFIX_LIST"]) == nil)
+      tmp = [env objectForKey:@"GNUSTEP_PATHLIST"];
+    tmp = [tmp componentsSeparatedByString:@":"];
+    e = [tmp objectEnumerator];
+    while ((tmp = [e nextObject])) {
+      bp = [tmp stringByAppendingPathComponent:@"Library"];
+      bp = [bp stringByAppendingPathComponent:_domain];
+      if ([chkPathes containsObject:bp]) continue;
+      
+      [chkPathes addObject:bp];
+    }
 #endif
   }
   
   e = [chkPathes objectEnumerator];
   while ((bp = [e nextObject])) {
     BOOL isDir;
+    
     bp = [bp stringByAppendingPathComponent:_bundleName];
     if (![fm fileExistsAtPath:bp isDirectory:&isDir]) continue;
     if (!isDir) continue;
@@ -97,7 +99,8 @@
   }
   
   if ((bundle = [NGBundle bundleWithPath:bp]) == nil) {
-    NSLog(@"%s: did not find %@ at %@ ...", __PRETTY_FUNCTION__, _bundleName, bp);
+    NSLog(@"%s: did not find %@ at %@ ...", __PRETTY_FUNCTION__, 
+         _bundleName, bp);
     //return 1;
   }
   
index 218ec0bea2572ffaf7e594b36da992b545a2423b..789d28e22222b2ae26bb33b46e9cba69cd881974 100644 (file)
@@ -685,40 +685,20 @@ static NSMutableArray *activeApps = nil; // THREAD
                    ];
 }
 
-@end /* WOCoreApplication */
-
-@implementation WOCoreApplication(Defaults)
+/* defaults */
 
-+ (void)_initDefaults {
-  static BOOL didInit = NO;
-#if !COMPILE_AS_FRAMEWORK
-  NSFileManager *fm;
-  NSDictionary  *env;
-  NSString      *relPath;
-#else
-  NSBundle *bundle;
-#endif
-  NSDictionary  *owDefaults = nil;
-  NSString      *apath;
-  
-  if (didInit) return;
-  didInit = YES;
++ (NSArray *)resourcesSearchPathes {
+  NSMutableArray *ma;
+  NSDictionary   *env;
+  NSString       *relPath, *apath;
+  NSEnumerator   *e;
   
-#if COMPILE_AS_FRAMEWORK
-  bundle = [NSBundle bundleForClass:[WOCoreApplication class]];
-  apath  = [bundle pathForResource:@"Defaults" ofType:@"plist"];
-      
-  if (apath == nil) {
-    NSLog(@"ERROR: cannot find Defaults.plist "
-              @"resource of NGObjWeb framework (%@) !", bundle);
-  }
-#else
-  fm   = [NSFileManager defaultManager];
-  env  = [[NSProcessInfo processInfo] environment];
+  ma  = [NSMutableArray arrayWithCapacity:8];
+  env = [[NSProcessInfo processInfo] environment];
 
   /* 
-       TODO: the following is a dirty hack because GNUstep people decided
-             to change the directory structure. SIGH!
+     TODO: the following is a dirty hack because GNUstep people decided
+           to change the directory structure. SIGH!
   */
 #if APPLE_FOUNDATION_LIBRARY || NeXT_Foundation_LIBRARY || GNUSTEP_BASE_LIBRARY
   relPath = @"Library/Libraries";
@@ -727,28 +707,63 @@ static NSMutableArray *activeApps = nil; // THREAD
 #endif
   relPath = [relPath stringByAppendingPathComponent:@"Resources"];
   relPath = [relPath stringByAppendingPathComponent:@"NGObjWeb"];
-  relPath = [relPath stringByAppendingPathComponent:@"Defaults.plist"];
   
-  apath = [env objectForKey:@"GNUSTEP_USER_ROOT"];
-  apath = [apath stringByAppendingPathComponent:relPath];
-  if (![fm fileExistsAtPath:apath]) {
-      apath = [env objectForKey:@"GNUSTEP_LOCAL_ROOT"];
-      apath = [apath stringByAppendingPathComponent:relPath];
-  }
-  if (![fm fileExistsAtPath:apath]) {
-    apath = [env objectForKey:@"GNUSTEP_SYSTEM_ROOT"];
+  if ((apath = [env objectForKey:@"GNUSTEP_PATHPREFIX_LIST"]) == nil)
+    apath = [env objectForKey:@"GNUSTEP_PATHLIST"];
+  
+  e = [[apath componentsSeparatedByString:@":"] objectEnumerator];
+  while ((apath = [e nextObject])) {
     apath = [apath stringByAppendingPathComponent:relPath];
+    if ([ma containsObject:apath]) continue;
+    
+    [ma addObject:apath];
   }
-  if (![fm fileExistsAtPath:apath]) {
-    apath = relPath;
-  }
-  if (![fm fileExistsAtPath:apath]) {
-    NSLog(@"ERROR: cannot find Defaults.plist "
-         @"resource of NGObjWeb library !");
+  [ma addObject:relPath];
+  [ma addObject:@"/usr/local/share/sope-4.3/ngobjweb/"];
+  [ma addObject:@"/usr/share/sope-4.3/ngobjweb/"];
+  return ma;
+}
+
++ (NSString *)findNGObjWebResource:(NSString *)_name ofType:(NSString *)_ext {
+#if !COMPILE_AS_FRAMEWORK
+  NSFileManager *fm;
+  NSString      *filename;
+#else
+  NSBundle *bundle;
+#endif
+  NSEnumerator  *e;
+  NSString      *apath;
+  
+#if COMPILE_AS_FRAMEWORK
+  bundle = [NSBundle bundleForClass:[WOCoreApplication class]];
+  return [bundle pathForResource:_name ofType:_ext];
+#else
+  filename = [_name stringByAppendingPathExtension:_ext];
+  fm       = [NSFileManager defaultManager];
+  e        = [[self resourcesSearchPathes] objectEnumerator];
+  while ((apath = [e nextObject]) != nil) {
+    apath = [apath stringByAppendingPathComponent:filename];
+    
+    if ([fm fileExistsAtPath:apath])
+      return apath;
   }
+  return nil;
 #endif
-  owDefaults = [NSDictionary dictionaryWithContentsOfFile:apath];
+}
+
++ (void)_initDefaults {
+  static BOOL didInit = NO;
+  NSDictionary *owDefaults = nil;
+  NSString     *apath;
   
+  if (didInit) return;
+  didInit = YES;
+  
+  apath = [self findNGObjWebResource:@"Defaults" ofType:@"plist"];
+  if (apath == nil)
+    NSLog(@"ERROR: cannot find Defaults.plist resource of NGObjWeb library !");
+  
+  owDefaults = [NSDictionary dictionaryWithContentsOfFile:apath];
   if (owDefaults) {
     [[NSUserDefaults standardUserDefaults] registerDefaults:owDefaults];
 #if HEAVY_DEBUG
@@ -828,4 +843,4 @@ static NSMutableArray *activeApps = nil; // THREAD
   return s;
 }
 
-@end /* WOCoreApplication(Defaults) */
+@end /* WOCoreApplication */
index e0abe594dc157a77c7811571088f30642fe6e586..92a1843acdc72bac268dac5400cf5157d25b3056 100644 (file)
@@ -45,6 +45,10 @@ NGObjWeb_DECLARE NSString *WORequestValueSenderID   = @"_i";
 NGObjWeb_DECLARE NSString *WORequestValueSessionID  = @"wosid";
 NGObjWeb_DECLARE NSString *WONoSelectionString      = @"WONoSelectionString";
 
+@interface WOCoreApplication(Resources)
++ (NSString *)findNGObjWebResource:(NSString *)_name ofType:(NSString *)_ext;
+@end
+
 @implementation WORequest
 
 static BOOL debugOn = NO;
@@ -53,56 +57,6 @@ static BOOL debugOn = NO;
   return [super version] + 2 /* v7 */;
 }
 
-+ (NSString *)lookupLanguagesPlist {
-  NSString *apath;
-#if !COMPILE_AS_FRAMEWORK
-  NSFileManager *fm = [NSFileManager defaultManager];
-  NSDictionary  *env;
-  NSString      *relPath;
-#else
-  NSBundle *bundle;
-#endif
-  
-#if COMPILE_AS_FRAMEWORK
-  bundle = [NSBundle bundleForClass:self];
-  apath  = [bundle pathForResource:@"Languages" ofType:@"plist"];
-#else
-  env  = [[NSProcessInfo processInfo] environment];
-
-  /* 
-       TODO: the following is a dirty hack because GNUstep people decided
-             to change the directory structure. SIGH!
-  */
-#if APPLE_FOUNDATION_LIBRARY || NeXT_Foundation_LIBRARY || GNUSTEP_BASE_LIBRARY
-  relPath = @"Library/Libraries";
-#else    
-  relPath = @"Libraries";
-#endif
-  relPath = [relPath stringByAppendingPathComponent:@"Resources"];
-  relPath = [relPath stringByAppendingPathComponent:@"NGObjWeb"];
-  relPath = [relPath stringByAppendingPathComponent:@"Languages.plist"];
-    
-  apath = [env objectForKey:@"GNUSTEP_USER_ROOT"];
-  apath = [apath stringByAppendingPathComponent:relPath];
-  if (![fm fileExistsAtPath:apath]) {
-    apath = [env objectForKey:@"GNUSTEP_LOCAL_ROOT"];
-    apath = [apath stringByAppendingPathComponent:relPath];
-  }
-  if (![fm fileExistsAtPath:apath]) {
-    apath = [env objectForKey:@"GNUSTEP_SYSTEM_ROOT"];
-    apath = [apath stringByAppendingPathComponent:relPath];
-  }
-  if (![fm fileExistsAtPath:apath]) {
-    apath = relPath;
-  }
-  if (![fm fileExistsAtPath:apath]) {
-    NSLog(@"ERROR: cannot find Languages.plist resource "
-         @"of NGObjWeb library !");
-  }
-#endif
-  return apath;
-}
-
 + (void)initialize {
   static BOOL isInitialized = NO;
   NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
@@ -132,10 +86,16 @@ static BOOL debugOn = NO;
   
   /* load language mappings */
     
-  apath = [self lookupLanguagesPlist];
-  langMap = [NSDictionary dictionaryWithContentsOfFile:apath];
+  apath = [WOApplication findNGObjWebResource:@"Languages" ofType:@"plist"];
+  if (apath == nil) {
+    NSLog(@"ERROR: cannot find Languages.plist resource "
+         @"of NGObjWeb library !");
+    langMap = nil;
+  }
+  else
+    langMap = [NSDictionary dictionaryWithContentsOfFile:apath];
   
-  if (langMap) {
+  if (langMap != nil) {
     NSDictionary *defs;
     
     defs = [NSDictionary dictionaryWithObject:langMap
index e7ccb07bc5450623de49d203ffba36fb1b2764a6..751c96bb8fa3c5d951c353d1accb311ac4a56fad 100644 (file)
 
 @end /* NSObject(SoObjectSoDAV) */
 
-@implementation NSObject(SoObjectDAVMaps)
+@interface WOCoreApplication(Resources)
++ (NSString *)findNGObjWebResource:(NSString *)_name ofType:(NSString *)_ext;
+@end
 
-+ (NSString *)lookupDefMapPlist {
-  NSString *apath;
-#if !COMPILE_AS_FRAMEWORK
-    NSFileManager *fm = [NSFileManager defaultManager];
-    NSDictionary  *env;
-    NSString      *relPath;
-#endif
-#if COMPILE_AS_FRAMEWORK
-    {
-      NSBundle *bundle;
-      
-      bundle = [NSBundle bundleForClass:self];
-      apath  = [bundle pathForResource:@"DAVPropMap" ofType:@"plist"];
-    }
-#else
-    env  = [[NSProcessInfo processInfo] environment];
-    relPath = @"Libraries";
-    relPath = [relPath stringByAppendingPathComponent:@"Resources"];
-    relPath = [relPath stringByAppendingPathComponent:@"NGObjWeb"];
-    relPath = [relPath stringByAppendingPathComponent:@"DAVPropMap.plist"];
-    
-    apath = [env objectForKey:@"GNUSTEP_USER_ROOT"];
-    apath = [apath stringByAppendingPathComponent:relPath];
-    if (![fm fileExistsAtPath:apath]) {
-      apath = [env objectForKey:@"GNUSTEP_LOCAL_ROOT"];
-      apath = [apath stringByAppendingPathComponent:relPath];
-    }
-    if (![fm fileExistsAtPath:apath]) {
-      apath = [env objectForKey:@"GNUSTEP_SYSTEM_ROOT"];
-      apath = [apath stringByAppendingPathComponent:relPath];
-    }
-    if (![fm fileExistsAtPath:apath]) {
-      apath = relPath;
-    }
-    if (![fm fileExistsAtPath:apath]) {
-      NSLog(@"ERROR: cannot find DAVPropMap.plist resource "
-            @"of NGObjWeb library !");
-    }
-#endif
-  return apath;
-}
+@implementation NSObject(SoObjectDAVMaps)
 
 + (id)defaultWebDAVAttributeMap {
   static NSDictionary *defMap = nil;
   if (defMap == nil) {
     NSString *path;
     
-    if ((path = [self lookupDefMapPlist]))
+    path = [WOApplication findNGObjWebResource:@"DAVPropMap" ofType:@"plist"];
+    if (path != nil)
       defMap = [[NSDictionary alloc] initWithContentsOfFile:path];
   }
   return defMap;
diff --git a/sope-appserver/NGObjWeb/fhs.make b/sope-appserver/NGObjWeb/fhs.make
new file mode 100644 (file)
index 0000000..6e4c506
--- /dev/null
@@ -0,0 +1,55 @@
+# postprocessing
+
+# FHS support (this is a hack and is going to be done by gstep-make!)
+
+ifneq ($(FHS_INSTALL_ROOT),)
+
+FHS_INCLUDE_DIR=$(FHS_INSTALL_ROOT)/include/
+FHS_LIB_DIR=$(FHS_INSTALL_ROOT)/lib/
+FHS_BIN_DIR=$(FHS_INSTALL_ROOT)/bin/
+FHS_SO_DIR=$(FHS_LIB_DIR)sope-4.3/products/
+
+NONFHS_LIBDIR="$(GNUSTEP_LIBRARIES)/$(GNUSTEP_TARGET_LDIR)/"
+NONFHS_LIBNAME="$(LIBRARY_NAME)$(LIBRARY_NAME_SUFFIX)$(SHARED_LIBEXT)"
+NONFHS_BINDIR="$(GNUSTEP_TOOLS)/$(GNUSTEP_TARGET_LDIR)"
+
+
+fhs-header-dirs ::
+       $(MKDIRS) $(FHS_INCLUDE_DIR)$(libNGObjWeb_HEADER_FILES_INSTALL_DIR)
+
+fhs-bin-dirs ::
+       $(MKDIRS) $(FHS_BIN_DIR)
+
+fhs-products-dirs ::
+       $(MKDIRS) $(FHS_SO_DIR)
+
+
+move-headers-to-fhs :: fhs-header-dirs
+       @echo "moving headers to $(FHS_INCLUDE_DIR) .."
+       mv $(GNUSTEP_HEADERS)$(libNGObjWeb_HEADER_FILES_INSTALL_DIR)/*.h \
+         $(FHS_INCLUDE_DIR)$(libNGObjWeb_HEADER_FILES_INSTALL_DIR)/
+
+move-libs-to-fhs :: 
+       @echo "moving libs to $(FHS_LIB_DIR) .."
+       mv $(NONFHS_LIBDIR)/$(NONFHS_LIBNAME)* $(FHS_LIB_DIR)/
+
+move-tools-to-fhs :: fhs-bin-dirs
+       @echo "moving tools from $(NONFHS_BINDIR) to $(FHS_BIN_DIR) .."
+       for i in $(TOOL_NAME); do \
+         mv "$(NONFHS_BINDIR)/$${i}" $(FHS_BIN_DIR); \
+       done
+
+move-bundles-to-fhs :: fhs-products-dirs
+       @echo "moving bundles $(BUNDLE_INSTALL_DIR) to $(FHS_SO_DIR) .."
+       for i in $(BUNDLE_NAME); do \
+          j="$(FHS_SO_DIR)/$${i}$(BUNDLE_EXTENSION)"; \
+         if test -d $$j; then rm -r $$j; fi; \
+         mv "$(BUNDLE_INSTALL_DIR)/$${i}$(BUNDLE_EXTENSION)" $$j; \
+       done
+
+move-to-fhs :: move-headers-to-fhs move-libs-to-fhs move-tools-to-fhs \
+               move-bundles-to-fhs
+
+after-install :: move-to-fhs
+
+endif
index 51c964c64e631dfb9b81286ff1056ea30f740f2a..da445e9883090e352945994cc40c323ab33eff21 100644 (file)
@@ -1,3 +1,10 @@
+2004-08-29  Helge Hess  <helge.hess@opengroupware.org>
+
+       * added hack to install the project in FHS locations - the library,
+         its headers, the tools and the resources will be installed in
+         FHS_INSTALL_ROOT if specified (eg make FHS_INSTALL_ROOT=/usr/local)
+         (v4.3.3)
+
 2004-08-23  Helge Hess  <helge.hess@skyrix.com>
 
        * v4.3.2
index abc4d23b7999aa08d36c71bca0146e1ef302004b..4452fcc5027b7e67d16b63087f388ff7ccae8372 100644 (file)
@@ -53,3 +53,4 @@ xmlrpc_call_OBJC_FILES = xmlrpc_call.m
 include $(GNUSTEP_MAKEFILES)/library.make
 include $(GNUSTEP_MAKEFILES)/tool.make
 -include GNUmakefile.postamble
+-include fhs.make
index ed045adfeab4736fa025a4a2ef062f6515fc7a9c..81d0f5a4cff3edc3be75e404954d4eed90c1bd38 100644 (file)
@@ -1,3 +1,3 @@
 # version file
 
-SUBMINOR_VERSION:=2
+SUBMINOR_VERSION:=3
diff --git a/sope-appserver/NGXmlRpc/fhs.make b/sope-appserver/NGXmlRpc/fhs.make
new file mode 100644 (file)
index 0000000..33a66cd
--- /dev/null
@@ -0,0 +1,42 @@
+# postprocessing
+
+# FHS support (this is a hack and is going to be done by gstep-make!)
+
+ifneq ($(FHS_INSTALL_ROOT),)
+
+FHS_INCLUDE_DIR=$(FHS_INSTALL_ROOT)/include/
+FHS_LIB_DIR=$(FHS_INSTALL_ROOT)/lib/
+FHS_BIN_DIR=$(FHS_INSTALL_ROOT)/bin/
+
+NONFHS_LIBDIR="$(GNUSTEP_LIBRARIES)/$(GNUSTEP_TARGET_LDIR)/"
+NONFHS_LIBNAME="$(LIBRARY_NAME)$(LIBRARY_NAME_SUFFIX)$(SHARED_LIBEXT)"
+NONFHS_BINDIR="$(GNUSTEP_TOOLS)/$(GNUSTEP_TARGET_LDIR)"
+
+
+fhs-header-dirs ::
+       $(MKDIRS) $(FHS_INCLUDE_DIR)$(libNGXmlRpc_HEADER_FILES_INSTALL_DIR)
+
+fhs-bin-dirs ::
+       $(MKDIRS) $(FHS_BIN_DIR)
+
+
+move-headers-to-fhs :: fhs-header-dirs
+       @echo "moving headers to $(FHS_INCLUDE_DIR) .."
+       mv $(GNUSTEP_HEADERS)$(libNGXmlRpc_HEADER_FILES_INSTALL_DIR)/*.h \
+         $(FHS_INCLUDE_DIR)$(libNGXmlRpc_HEADER_FILES_INSTALL_DIR)/
+
+move-libs-to-fhs :: 
+       @echo "moving libs to $(FHS_LIB_DIR) .."
+       mv $(NONFHS_LIBDIR)/$(NONFHS_LIBNAME)* $(FHS_LIB_DIR)/
+
+move-tools-to-fhs :: fhs-bin-dirs
+       @echo "moving tools from $(NONFHS_BINDIR) to $(FHS_BIN_DIR) .."
+       for i in $(TOOL_NAME); do \
+         mv "$(NONFHS_BINDIR)/$${i}" $(FHS_BIN_DIR); \
+       done
+
+move-to-fhs :: move-headers-to-fhs move-libs-to-fhs move-tools-to-fhs
+
+after-install :: move-to-fhs
+
+endif
index cd179a88d2e0f7dff20a356143358a9bcb28728d..939592e93da0da26dfc908a67575233c8faf5115 100644 (file)
@@ -1,3 +1,10 @@
+2004-08-29  Helge Hess  <helge.hess@opengroupware.org>
+
+       * added hack to install the project in FHS locations - the library,
+         its headers, the tools and the resources will be installed in
+         FHS_INSTALL_ROOT if specified (eg make FHS_INSTALL_ROOT=/usr/local)
+         (v4.3.7)
+
 2004-08-29  Helge Hess  <helge.hess@opengroupware.org>
 
        * OFSResourceManager.m: fixed include for WOComponentDefinition.h
index 3c87520c9759204dadc2fc2dfccda11a64be2ffb..a5e6054c5b329a5afbbc3a3f16742a543bf8f220 100644 (file)
@@ -69,3 +69,4 @@ include $(GNUSTEP_MAKEFILES)/library.make
 include $(GNUSTEP_MAKEFILES)/bundle.make
 include $(GNUSTEP_MAKEFILES)/tool.make
 -include GNUmakefile.postamble
+-include fhs.make
index f3879a621640c27bcba29e6090db83d874417a83..e25d74084dc4c2e2906959e41a066ffe108ef7ca 100644 (file)
@@ -1,3 +1,3 @@
 # version file
 
-SUBMINOR_VERSION:=6
+SUBMINOR_VERSION:=7
diff --git a/sope-appserver/SoOFS/fhs.make b/sope-appserver/SoOFS/fhs.make
new file mode 100644 (file)
index 0000000..1f3b080
--- /dev/null
@@ -0,0 +1,55 @@
+# postprocessing
+
+# FHS support (this is a hack and is going to be done by gstep-make!)
+
+ifneq ($(FHS_INSTALL_ROOT),)
+
+FHS_INCLUDE_DIR=$(FHS_INSTALL_ROOT)/include/
+FHS_LIB_DIR=$(FHS_INSTALL_ROOT)/lib/
+FHS_BIN_DIR=$(FHS_INSTALL_ROOT)/bin/
+FHS_SO_DIR=$(FHS_LIB_DIR)sope-4.3/products/
+
+NONFHS_LIBDIR="$(GNUSTEP_LIBRARIES)/$(GNUSTEP_TARGET_LDIR)/"
+NONFHS_LIBNAME="$(LIBRARY_NAME)$(LIBRARY_NAME_SUFFIX)$(SHARED_LIBEXT)"
+NONFHS_BINDIR="$(GNUSTEP_TOOLS)/$(GNUSTEP_TARGET_LDIR)"
+
+
+fhs-header-dirs ::
+       $(MKDIRS) $(FHS_INCLUDE_DIR)$(libSoOFS_HEADER_FILES_INSTALL_DIR)
+
+fhs-bin-dirs ::
+       $(MKDIRS) $(FHS_BIN_DIR)
+
+fhs-products-dirs ::
+       $(MKDIRS) $(FHS_SO_DIR)
+
+
+move-headers-to-fhs :: fhs-header-dirs
+       @echo "moving headers to $(FHS_INCLUDE_DIR) .."
+       mv $(GNUSTEP_HEADERS)$(libSoOFS_HEADER_FILES_INSTALL_DIR)/*.h \
+         $(FHS_INCLUDE_DIR)$(libSoOFS_HEADER_FILES_INSTALL_DIR)/
+
+move-libs-to-fhs :: 
+       @echo "moving libs to $(FHS_LIB_DIR) .."
+       mv $(NONFHS_LIBDIR)/$(NONFHS_LIBNAME)* $(FHS_LIB_DIR)/
+
+move-tools-to-fhs :: fhs-bin-dirs
+       @echo "moving tools from $(NONFHS_BINDIR) to $(FHS_BIN_DIR) .."
+       for i in $(TOOL_NAME); do \
+         mv "$(NONFHS_BINDIR)/$${i}" $(FHS_BIN_DIR); \
+       done
+
+move-bundles-to-fhs :: fhs-products-dirs
+       @echo "moving bundles $(BUNDLE_INSTALL_DIR) to $(FHS_SO_DIR) .."
+       for i in $(BUNDLE_NAME); do \
+          j="$(FHS_SO_DIR)/$${i}$(BUNDLE_EXTENSION)"; \
+         if test -d $$j; then rm -r $$j; fi; \
+         mv "$(BUNDLE_INSTALL_DIR)/$${i}$(BUNDLE_EXTENSION)" $$j; \
+       done
+
+move-to-fhs :: move-headers-to-fhs move-libs-to-fhs move-tools-to-fhs \
+               move-bundles-to-fhs
+
+after-install :: move-to-fhs
+
+endif
index 5d0146dc9e39a656c49e93100441c24e5d10466a..c4aa97f1defe8ae5b12e335d3c12f16c8ad5adcc 100644 (file)
@@ -1,3 +1,10 @@
+2004-08-29  Helge Hess  <helge.hess@opengroupware.org>
+
+       * added hack to install the project in FHS locations - the library,
+         its headers, the tools and the resources will be installed in
+         FHS_INSTALL_ROOT if specified (eg make FHS_INSTALL_ROOT=/usr/local)
+         (v4.3.58)
+
 2004-08-24  Helge Hess  <helge.hess@skyrix.com>
 
        * install bundle in Library/WOxElemBuilders-4.3/ (v4.3.57)
index d2a0057dd61f284f2caea0d585cec2ec1cebdb1e..0ca4b0c680fb54df3a22611b32db92905dd8c6f4 100644 (file)
@@ -4,8 +4,9 @@ include $(GNUSTEP_MAKEFILES)/common.make
 include ../Version
 include ./Version
 
-LIBRARY_NAME = libWEExtensions
-BUNDLE_NAME  = WEExtensions
+LIBRARY_NAME     = libWEExtensions
+BUNDLE_NAME      = WEExtensions
+BUNDLE_EXTENSION = .wox
 BUNDLE_INSTALL_DIR = $(GNUSTEP_INSTALLATION_DIR)/Library/WOxElemBuilders-4.3/
 
 libWEExtensions_HEADER_FILES_DIR         = .
@@ -62,3 +63,4 @@ WEExtensions_PRINCIPAL_CLASS = WEExtensionsBundle
 include $(GNUSTEP_MAKEFILES)/library.make
 include $(GNUSTEP_MAKEFILES)/bundle.make
 -include GNUmakefile.postamble
+-include fhs.make
index 33ff92fa59afb607bc43c639e1e1e5ffb24ebeea..296d4b3c6560e21ea19676c248e5235bbd629427 100644 (file)
@@ -1,3 +1,3 @@
 # $Id$
 
-SUBMINOR_VERSION:=57
+SUBMINOR_VERSION:=58
diff --git a/sope-appserver/WEExtensions/fhs.make b/sope-appserver/WEExtensions/fhs.make
new file mode 100644 (file)
index 0000000..f87729b
--- /dev/null
@@ -0,0 +1,44 @@
+# postprocessing
+
+# FHS support (this is a hack and is going to be done by gstep-make!)
+
+ifneq ($(FHS_INSTALL_ROOT),)
+
+FHS_INCLUDE_DIR=$(FHS_INSTALL_ROOT)/include/
+FHS_LIB_DIR=$(FHS_INSTALL_ROOT)/lib/
+FHS_BIN_DIR=$(FHS_INSTALL_ROOT)/bin/
+FHS_WOx_DIR=$(FHS_LIB_DIR)sope-4.3/wox-builders/
+
+NONFHS_LIBDIR="$(GNUSTEP_LIBRARIES)/$(GNUSTEP_TARGET_LDIR)/"
+NONFHS_LIBNAME="$(LIBRARY_NAME)$(LIBRARY_NAME_SUFFIX)$(SHARED_LIBEXT)"
+
+
+fhs-header-dirs ::
+       $(MKDIRS) $(FHS_INCLUDE_DIR)$(libWEExtensions_HEADER_FILES_INSTALL_DIR)
+
+fhs-wox-dirs ::
+       $(MKDIRS) $(FHS_WOx_DIR)
+
+
+move-headers-to-fhs :: fhs-header-dirs
+       @echo "moving headers to $(FHS_INCLUDE_DIR) .."
+       mv $(GNUSTEP_HEADERS)$(libWEExtensions_HEADER_FILES_INSTALL_DIR)/*.h \
+         $(FHS_INCLUDE_DIR)$(libWEExtensions_HEADER_FILES_INSTALL_DIR)/
+
+move-libs-to-fhs :: 
+       @echo "moving libs to $(FHS_LIB_DIR) .."
+       mv $(NONFHS_LIBDIR)/$(NONFHS_LIBNAME)* $(FHS_LIB_DIR)/
+
+move-bundles-to-fhs :: fhs-wox-dirs
+       @echo "moving bundles $(BUNDLE_INSTALL_DIR) to $(FHS_WOx_DIR) .."
+       for i in $(BUNDLE_NAME); do \
+          j="$(FHS_WOx_DIR)/$${i}$(BUNDLE_EXTENSION)"; \
+         if test -d $$j; then rm -r $$j; fi; \
+         mv "$(BUNDLE_INSTALL_DIR)/$${i}$(BUNDLE_EXTENSION)" $$j; \
+       done
+
+move-to-fhs :: move-headers-to-fhs move-libs-to-fhs move-bundles-to-fhs
+
+after-install :: move-to-fhs
+
+endif
index 86fdf2e7d1fa25053fd3b7f4b77a8540dc58498d..b56a92dff7391827e5c0002538c980ad85aa10a3 100644 (file)
@@ -1,8 +1,15 @@
+2004-08-29  Helge Hess  <helge.hess@opengroupware.org>
+
+       * added hack to install the project in FHS locations - the library,
+         its headers, the tools and the resources will be installed in
+         FHS_INSTALL_ROOT if specified (eg make FHS_INSTALL_ROOT=/usr/local)
+         (v4.3.19)
+
 2004-08-24  Helge Hess  <helge.hess@skyrix.com>
 
-       * install bundle in Library/WOxElemBuilders-4.3/ (v4.3.57)
+       * install bundle in Library/WOxElemBuilders-4.3/ (v4.3.18)
 
-       * v4.3.56
+       * v4.3.17
 
        * added a bundle manager class (WOExtensionsBuilderModule)
 
index 9f77036a1b52058efc712aae4cf4b1b902096130..fc181b0dbcba3fbc0ec5d3f61ebf38131ce6da19 100644 (file)
@@ -4,8 +4,9 @@ include $(GNUSTEP_MAKEFILES)/common.make
 include ../Version
 include ./Version
 
-LIBRARY_NAME = libWOExtensions
-BUNDLE_NAME  = WOExtensions
+LIBRARY_NAME     = libWOExtensions
+BUNDLE_NAME      = WOExtensions
+BUNDLE_EXTENSION = .wox
 BUNDLE_INSTALL_DIR = $(GNUSTEP_INSTALLATION_DIR)/Library/WOxElemBuilders-4.3/
 
 libWOExtensions_HEADER_FILES_DIR        = .
@@ -41,3 +42,4 @@ WOExtensions_PRINCIPAL_CLASS = WOExtensionsBuilderModule
 include $(GNUSTEP_MAKEFILES)/library.make
 include $(GNUSTEP_MAKEFILES)/bundle.make
 -include GNUmakefile.postamble
+-include fhs.make
index 33dfbe1b04726220aa5142e7e070a02c182f5657..93c8cd1ddfe4862984d2fe8dffb82de3a02d010b 100644 (file)
@@ -1,3 +1,3 @@
 # $Id$
 
-SUBMINOR_VERSION:=17
+SUBMINOR_VERSION:=19
diff --git a/sope-appserver/WOExtensions/fhs.make b/sope-appserver/WOExtensions/fhs.make
new file mode 100644 (file)
index 0000000..08e2932
--- /dev/null
@@ -0,0 +1,44 @@
+# postprocessing
+
+# FHS support (this is a hack and is going to be done by gstep-make!)
+
+ifneq ($(FHS_INSTALL_ROOT),)
+
+FHS_INCLUDE_DIR=$(FHS_INSTALL_ROOT)/include/
+FHS_LIB_DIR=$(FHS_INSTALL_ROOT)/lib/
+FHS_BIN_DIR=$(FHS_INSTALL_ROOT)/bin/
+FHS_WOx_DIR=$(FHS_LIB_DIR)sope-4.3/wox-builders/
+
+NONFHS_LIBDIR="$(GNUSTEP_LIBRARIES)/$(GNUSTEP_TARGET_LDIR)/"
+NONFHS_LIBNAME="$(LIBRARY_NAME)$(LIBRARY_NAME_SUFFIX)$(SHARED_LIBEXT)"
+
+
+fhs-header-dirs ::
+       $(MKDIRS) $(FHS_INCLUDE_DIR)$(libWOExtensions_HEADER_FILES_INSTALL_DIR)
+
+fhs-wox-dirs ::
+       $(MKDIRS) $(FHS_WOx_DIR)
+
+
+move-headers-to-fhs :: fhs-header-dirs
+       @echo "moving headers to $(FHS_INCLUDE_DIR) .."
+       mv $(GNUSTEP_HEADERS)$(libWOExtensions_HEADER_FILES_INSTALL_DIR)/*.h \
+         $(FHS_INCLUDE_DIR)$(libWOExtensions_HEADER_FILES_INSTALL_DIR)/
+
+move-libs-to-fhs :: 
+       @echo "moving libs to $(FHS_LIB_DIR) .."
+       mv $(NONFHS_LIBDIR)/$(NONFHS_LIBNAME)* $(FHS_LIB_DIR)/
+
+move-bundles-to-fhs :: fhs-wox-dirs
+       @echo "moving bundles $(BUNDLE_INSTALL_DIR) to $(FHS_WOx_DIR) .."
+       for i in $(BUNDLE_NAME); do \
+          j="$(FHS_WOx_DIR)/$${i}$(BUNDLE_EXTENSION)"; \
+         if test -d $$j; then rm -r $$j; fi; \
+         mv "$(BUNDLE_INSTALL_DIR)/$${i}$(BUNDLE_EXTENSION)" $$j; \
+       done
+
+move-to-fhs :: move-headers-to-fhs move-libs-to-fhs move-bundles-to-fhs
+
+after-install :: move-to-fhs
+
+endif