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

19 files changed:
sope-core/EOControl/ChangeLog
sope-core/EOControl/GNUmakefile
sope-core/EOControl/GNUmakefile.preamble
sope-core/EOControl/Version
sope-core/EOControl/fhs.make [new file with mode: 0644]
sope-core/NGExtensions/ChangeLog
sope-core/NGExtensions/GNUmakefile
sope-core/NGExtensions/NGBundleManager.m
sope-core/NGExtensions/Version
sope-core/NGExtensions/fhs.make [new file with mode: 0644]
sope-core/NGStreams/ChangeLog
sope-core/NGStreams/GNUmakefile
sope-core/NGStreams/Version
sope-core/NGStreams/fhs.make [new file with mode: 0644]
sope-core/samples/ChangeLog
sope-core/samples/GNUmakefile
sope-core/samples/GNUmakefile.preamble
sope-core/samples/fhs.make [new file with mode: 0644]
sope-core/samples/test_qpdecode.m [deleted file]

index 2193f9fa14f5a5f930120c1d04469045b61fcfbe..e911485fe8f57bd90b0204f527702044726d83ff 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.48)
+
 2004-08-29  Marcus Mueller  <znek@mulle-kybernetik.com>
 
        * EOControl.xcode: various fixes for project settings
index 0fd72a3fee34c3d342cde262681655431e9bf4b3..b4d9c099ba4a66f6c6f9819fb371b5963df8bd42 100644 (file)
@@ -1,4 +1,4 @@
-# $Id$
+# $Id: GNUmakefile 4 2004-08-20 17:04:31Z helge $
 
 include ../common.make
 
@@ -60,3 +60,4 @@ libEOControl_OBJC_FILES = \
 -include GNUmakefile.preamble
 include $(GNUSTEP_MAKEFILES)/library.make
 -include GNUmakefile.postamble
+-include fhs.make
index b96971670bb9ec889a0cab172653dc989f298a06..54a399014ed8e9bfb83159a5aa0554bb3539d06c 100644 (file)
@@ -1,9 +1,11 @@
-# $Id$
+# $Id: GNUmakefile.preamble 4 2004-08-20 17:04:31Z helge $
 
 libEOControl_INCLUDE_DIRS += -I..
 
 ADDITIONAL_CPPFLAGS += -Wall
 
+ADDITIONAL_LIB_DIRS += -L/usr/local/lib -L/usr/lib
+
 # libFoundation, gstep-base
 
 ifeq ($(FOUNDATION_LIB),fd)
index f060cc7116353ae9944bdc3ca4f79b079a829e13..4c2aac96029612cf7a37a5e36bf6c7e922362a5b 100644 (file)
@@ -1,3 +1,3 @@
-# $Id$
+# $Id: Version 4 2004-08-20 17:04:31Z helge $
 
-SUBMINOR_VERSION:=47
+SUBMINOR_VERSION:=48
diff --git a/sope-core/EOControl/fhs.make b/sope-core/EOControl/fhs.make
new file mode 100644 (file)
index 0000000..a9b01e4
--- /dev/null
@@ -0,0 +1,30 @@
+# 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-header-dirs ::
+       $(MKDIRS) $(FHS_INCLUDE_DIR)$(libEOControl_HEADER_FILES_INSTALL_DIR)
+
+move-headers-to-fhs :: fhs-header-dirs
+       @echo "moving headers to $(FHS_INCLUDE_DIR) .."
+       mv $(GNUSTEP_HEADERS)$(libEOControl_HEADER_FILES_INSTALL_DIR)/*.h \
+         $(FHS_INCLUDE_DIR)$(libEOControl_HEADER_FILES_INSTALL_DIR)/
+
+NONFHS_LIBDIR="$(GNUSTEP_LIBRARIES)/$(GNUSTEP_TARGET_LDIR)/"
+NONFHS_LIBNAME="$(LIBRARY_NAME)$(LIBRARY_NAME_SUFFIX)$(SHARED_LIBEXT)"
+
+move-libs-to-fhs :: 
+       @echo "moving libs to $(FHS_LIB_DIR) .."
+       mv $(NONFHS_LIBDIR)/$(NONFHS_LIBNAME)* $(FHS_LIB_DIR)/
+
+move-to-fhs :: move-headers-to-fhs move-libs-to-fhs
+
+after-install :: move-to-fhs
+
+endif
index 13f496fb2bff4625fccae06ca6a1f7bd4ed2a30b..58b2504924c6d5f44867e14ee4d0e1ff4958718a 100644 (file)
@@ -1,3 +1,14 @@
+2004-08-29  Helge Hess  <helge.hess@opengroupware.org>
+
+       * v4.3.109
+
+       * NGBundleManager.m: look for bundles in GNUSTEP_PATHPREFIX_LIST and
+         GNUSTEP_PATHLIST
+
+       * 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)
+
 2004-08-29  Marcus Mueller  <znek@mulle-kybernetik.com>
 
        * NGExtensions.xcode: various fixes for project settings
index beb6bb54931304673fac84b5fcc7ae7c451e2293..b2075d9ca394bc69d641814dac0bdd11426262b0 100644 (file)
@@ -1,7 +1,7 @@
 #
 #   GNUmakefile
 #
-# $Id$
+# $Id: GNUmakefile 4 2004-08-20 17:04:31Z helge $
 
 include ../common.make
 
@@ -129,6 +129,4 @@ ADDITIONAL_INCLUDE_DIRS += \
 -include GNUmakefile.preamble
 include $(GNUSTEP_MAKEFILES)/library.make
 -include GNUmakefile.postamble
-
-autodoc :
-       autodoc $(AUTODOC_FLAGS) -dest ../Documentation/NGExtensions/ -proj .
+-include fhs.make
index 7abeb2f2cddf6c1e0110d36354c9220bfe159e4a..c2ab346f9a3452411f620af9b4526734f6cba085 100644 (file)
@@ -18,7 +18,7 @@
   Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
   02111-1307, USA.
 */
-// $Id$
+// $Id: NGBundleManager.m 4 2004-08-20 17:04:31Z helge $
 
 #include "NGBundleManager.h"
 #include "common.h"
@@ -307,9 +307,9 @@ static BOOL debugOn = NO;
   paths = [[pi environment] objectForKey:@"NGBundlePath"];
   if (paths) {
 #if defined(__MINGW32__)
-        paths = [paths componentsSeparatedByString:@";"];
+    paths = [paths componentsSeparatedByString:@";"];
 #else
-        paths = [paths componentsSeparatedByString:@":"];
+    paths = [paths componentsSeparatedByString:@":"];
 #endif
   }
   if (paths) [self->bundleSearchPaths addObjectsFromArray:paths];
@@ -321,25 +321,24 @@ static BOOL debugOn = NO;
     // TODO: whats that supposed to do?
     // TODO: replace with proper path locator function!
     NSDictionary *env;
-    NSString *p;
-      
+    NSString     *p;
+    unsigned     i, count;
+    id tmp;
+    
     env = [[NSProcessInfo processInfo] environment];
-    p = [[[env objectForKey:@"GNUSTEP_USER_ROOT"]
-                 stringByAppendingPathComponent:@"Library"]
-                 stringByAppendingPathComponent:@"Bundles"];
-    if (p) [self->bundleSearchPaths addObject:p];
-    p = [[[env objectForKey:@"GNUSTEP_LOCAL_ROOT"]
-                 stringByAppendingPathComponent:@"Library"]
-                 stringByAppendingPathComponent:@"Bundles"];
-    if (p) [self->bundleSearchPaths addObject:p];
-    p = [[[env objectForKey:@"GNUSTEP_NETWORK_ROOT"]
-                 stringByAppendingPathComponent:@"Library"]
-                 stringByAppendingPathComponent:@"Bundles"];
-    if (p) [self->bundleSearchPaths addObject:p];
-    p = [[[env objectForKey:@"GNUSTEP_SYSTEM_ROOT"]
-                 stringByAppendingPathComponent:@"Library"]
-                 stringByAppendingPathComponent:@"Bundles"];
-    if (p) [self->bundleSearchPaths addObject:p];
+
+    if ((tmp = [env objectForKey:@"GNUSTEP_PATHPREFIX_LIST"]) == nil)
+      tmp = [env objectForKey:@"GNUSTEP_PATHLIST"];
+    tmp = [tmp componentsSeparatedByString:@":"];
+
+    for (i = 0; i < count; i++) {
+      p = [tmp objectAtIndex:i];
+      p = [p stringByAppendingPathComponent:@"Library"];
+      p = [p stringByAppendingPathComponent:@"Bundles"];
+      if ([self->bundleSearchPaths containsObject:p]) continue;
+
+      [self->bundleSearchPaths addObject:p];
+    }
 #endif
   }
   
index 78cd4928339cc1c15475725e6bad6f21d642f069..0ce3d16d1d332488e12503f2940e41a76adf5d29 100644 (file)
@@ -1,5 +1,5 @@
 # $Id$
 
-SUBMINOR_VERSION:=108
+SUBMINOR_VERSION:=109
 
 # v4.2.72 requires libEOControl v4.2.39
diff --git a/sope-core/NGExtensions/fhs.make b/sope-core/NGExtensions/fhs.make
new file mode 100644 (file)
index 0000000..e9d3ea5
--- /dev/null
@@ -0,0 +1,30 @@
+# 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-header-dirs ::
+       $(MKDIRS) $(FHS_INCLUDE_DIR)$(libNGExtensions_HEADER_FILES_INSTALL_DIR)
+
+move-headers-to-fhs :: fhs-header-dirs
+       @echo "moving headers to $(FHS_INCLUDE_DIR) .."
+       mv $(GNUSTEP_HEADERS)$(libNGExtensions_HEADER_FILES_INSTALL_DIR)/*.h \
+         $(FHS_INCLUDE_DIR)$(libNGExtensions_HEADER_FILES_INSTALL_DIR)/
+
+NONFHS_LIBDIR="$(GNUSTEP_LIBRARIES)/$(GNUSTEP_TARGET_LDIR)/"
+NONFHS_LIBNAME="$(LIBRARY_NAME)$(LIBRARY_NAME_SUFFIX)$(SHARED_LIBEXT)"
+
+move-libs-to-fhs :: 
+       @echo "moving libs to $(FHS_LIB_DIR) .."
+       mv $(NONFHS_LIBDIR)/$(NONFHS_LIBNAME)* $(FHS_LIB_DIR)/
+
+move-to-fhs :: move-headers-to-fhs move-libs-to-fhs
+
+after-install :: move-to-fhs
+
+endif
index 612ac1e0b2cf46d00d56ade8193acee493f3ceb5..967e4f3b92230a17eee293fe300082718cf8038d 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.44)
+
 2004-08-29  Marcus Mueller  <znek@mulle-kybernetik.com>
 
        * NGStreams.xcode: various fixes for project settings
index 372fba42ff702e13ade8b40d4e8c70fe8ea580a6..445264542cc2bb6d4aaf0308d0d0d647a8408cf0 100644 (file)
@@ -1,7 +1,7 @@
 #
 #   GNUmakefile
 #
-# $Id$
+# $Id: GNUmakefile 4 2004-08-20 17:04:31Z helge $
 
 include ../common.make
 include ./Version
@@ -94,3 +94,4 @@ libNGStreams_OBJC_FILES = \
 -include GNUmakefile.preamble
 include $(GNUSTEP_MAKEFILES)/library.make
 -include GNUmakefile.postamble
+-include fhs.make
index a75e77c7712bf9b4038251adb5cce18df7b070da..492dc7cb753021c71a68ca8b60b3079430d8da79 100644 (file)
@@ -1,3 +1,3 @@
 # $Id: Version 4 2004-08-20 17:04:31Z helge $
 
-SUBMINOR_VERSION:=43
+SUBMINOR_VERSION:=44
diff --git a/sope-core/NGStreams/fhs.make b/sope-core/NGStreams/fhs.make
new file mode 100644 (file)
index 0000000..1b5e8e0
--- /dev/null
@@ -0,0 +1,30 @@
+# 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-header-dirs ::
+       $(MKDIRS) $(FHS_INCLUDE_DIR)$(libNGStreams_HEADER_FILES_INSTALL_DIR)
+
+move-headers-to-fhs :: fhs-header-dirs
+       @echo "moving headers to $(FHS_INCLUDE_DIR) .."
+       mv $(GNUSTEP_HEADERS)$(libNGStreams_HEADER_FILES_INSTALL_DIR)/*.h \
+         $(FHS_INCLUDE_DIR)$(libNGStreams_HEADER_FILES_INSTALL_DIR)/
+
+NONFHS_LIBDIR="$(GNUSTEP_LIBRARIES)/$(GNUSTEP_TARGET_LDIR)/"
+NONFHS_LIBNAME="$(LIBRARY_NAME)$(LIBRARY_NAME_SUFFIX)$(SHARED_LIBEXT)"
+
+move-libs-to-fhs :: 
+       @echo "moving libs to $(FHS_LIB_DIR) .."
+       mv $(NONFHS_LIBDIR)/$(NONFHS_LIBNAME)* $(FHS_LIB_DIR)/
+
+move-to-fhs :: move-headers-to-fhs move-libs-to-fhs
+
+after-install :: move-to-fhs
+
+endif
index 64c5448c0c8dd6f11c838036099b53b6db000df4..d15a54cd334a747cd49561bb7ad7b6f8b4f495bd 100644 (file)
@@ -1,3 +1,11 @@
+2004-08-29  Helge Hess  <helge.hess@opengroupware.org>
+
+       * moved test_qpdecode to NGMime/samples
+
+       * added hack to install the tools in FHS locations - the executables
+         will be installed in FHS_INSTALL_ROOT if specified (eg make
+         FHS_INSTALL_ROOT=/usr/local)
+
 2004-08-20  Helge Hess  <helge.hess@opengroupware.org>
 
        * moved samples to sope-mime, sope-ldap, sope-ical
index 5c93b9c7a846912b85bd42c9b344216a7177e531..03bab9a248a3482711948cc1719a1ead8f33427d 100644 (file)
@@ -1,4 +1,4 @@
-# $Id$
+# $Id: GNUmakefile 9 2004-08-20 18:40:42Z helge $
 
 include $(GNUSTEP_MAKEFILES)/common.make
 
@@ -7,7 +7,6 @@ TOOL_NAME = \
        fmdls           \
        testdirenum     \
        bmlookup        \
-       test_qpdecode   \
        eoqual          \
        testsock        \
        httpu_notify    \
@@ -23,7 +22,6 @@ subclassing_OBJC_FILES   = subclassing.m
 fmdls_OBJC_FILES         = fmdls.m
 bmlookup_OBJC_FILES      = bmlookup.m
 testdirenum_OBJC_FILES   = testdirenum.m
-test_qpdecode_OBJC_FILES = test_qpdecode.m
 eoqual_OBJC_FILES        = eoqual.m EOQualTool.m
 testsock_OBJC_FILES      = testsock.m
 parserule_OBJC_FILES     = parserule.m
@@ -33,3 +31,4 @@ testurl_OBJC_FILES       = testurl.m
 -include GNUmakefile.preamble
 include $(GNUSTEP_MAKEFILES)/tool.make
 -include GNUmakefile.postamble
+-include fhs.make
index 49f4ae0718b8a7ab86548ebe5688d72a199aa2d9..78d0a98a1b5bb91104a7418440b662d6a8146f7f 100644 (file)
@@ -1,4 +1,4 @@
-# $Id$
+# $Id: GNUmakefile.preamble 9 2004-08-20 18:40:42Z helge $
 
 ADDITIONAL_INCLUDE_DIRS += \
        -I..                    \
@@ -9,6 +9,7 @@ ADDITIONAL_LIB_DIRS += \
        -L../EOControl/$(GNUSTEP_OBJ_DIR)    \
        -L../NGExtensions/$(GNUSTEP_OBJ_DIR) \
        -L../NGStreams/$(GNUSTEP_OBJ_DIR)    \
+       -L/usr/local/lib -L/usr/lib
 
 ADDITIONAL_TOOL_LIBS += \
        -lNGStreams -lNGExtensions -lEOControl  \
diff --git a/sope-core/samples/fhs.make b/sope-core/samples/fhs.make
new file mode 100644 (file)
index 0000000..27c85d1
--- /dev/null
@@ -0,0 +1,26 @@
+# 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-bin-dirs ::
+       $(MKDIRS) $(FHS_BIN_DIR)
+
+NONFHS_BINDIR="$(GNUSTEP_TOOLS)/$(GNUSTEP_TARGET_LDIR)"
+
+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-tools-to-fhs
+
+after-install :: move-to-fhs
+
+endif
diff --git a/sope-core/samples/test_qpdecode.m b/sope-core/samples/test_qpdecode.m
deleted file mode 100644 (file)
index 3c8a431..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
-  Copyright (C) 2000-2003 SKYRIX Software AG
-
-  This file is part of OGo
-
-  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
-  Free Software Foundation; either version 2, or (at your option) any
-  later version.
-
-  OGo is distributed in the hope that it will be useful, but WITHOUT ANY
-  WARRANTY; without even the implied warranty of MERCHANTABILITY or
-  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
-  License for more details.
-
-  You should have received a copy of the GNU Lesser General Public
-  License along with OGo; see the file COPYING.  If not, write to the
-  Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-  02111-1307, USA.
-*/
-// $Id$
-
-/*
-  check whether the quoted printable MIME decoding works ...
-*/
-
-#include "common.h"
-
-static void test(void) {
-  static unsigned char *fields[] = {
-    "attachment; filename=\"Mappe langerp=?iso-8859-15?q?=FC=E4=F6=20Name=F6=F6=F6=201234456=2Exls?=\"",
-    "Umlaute: =?iso-8859-15?q?=FC=E4=F6?=",
-    "keine Umlaute: =?iso-8859-15?q?keine Umlaute?=",
-    "=?iso-8859-15?q?keine Umlaute?=",
-    "=?iso-8859-15?q?=FC=E4=F6?=",
-    "",
-    "hello world !",
-    "??doit??",
-    NULL
-  };
-  unsigned char *field;
-  int i;
-  
-  for (i = 0; (field = fields[i]); i++) {
-    NSData *fieldData;
-    id result;
-    
-    NSLog(@"decoding field: '%s'", field);
-    fieldData = [NSData dataWithBytes:field length:strlen(field)];
-    NSLog(@"  length: %i", [fieldData length]);
-    
-    result = [fieldData decodeQuotedPrintableValueOfMIMEHeaderField:
-                         @"content-disposition"];
-    
-    if (result == nil) {
-      NSLog(@"  got no result for field data %@ !!!", fieldData);
-    }
-    else if ([result isKindOfClass:[NSData class]]) {
-      NSLog(@"  got a data, length %i: %@", [result length], result);
-    }
-    else if ([result isKindOfClass:[NSString class]]) {
-      NSLog(@"  got a string, length %i: '%@'", [result length], result);
-    }
-    else {
-      NSLog(@"  got an unexpected object, class %@: %@",
-           NSStringFromClass([result class]), result);
-    }
-  }
-}
-
-int main(int argc, char **argv, char **env) {
-  NSAutoreleasePool *pool;
-  
-  pool = [NSAutoreleasePool new];
-  
-#if LIB_FOUNDATION_LIBRARY  
-  [NSProcessInfo initializeWithArguments:argv count:argc environment:env];
-#endif
-  
-  test();
-  
-  [pool release];
-  exit(0);
-  /* static linking */
-  [NGExtensions class];
-  return 0;
-}