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

sope-ldap/NGLdap/ChangeLog
sope-ldap/NGLdap/GNUmakefile
sope-ldap/NGLdap/Version
sope-ldap/NGLdap/fhs.make [new file with mode: 0644]
sope-ldap/samples/ChangeLog
sope-ldap/samples/GNUmakefile
sope-ldap/samples/fhs.make [new file with mode: 0644]

index 47d36465a1d81d00361276d85976ef9106e65863..5a5c13ece1a13f883492861292503fc6c4a3cca6 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.20)
+
 2004-08-29  Marcus Mueller  <znek@mulle-kybernetik.com>
 
        * NGLdap.xcode: new Xcode project
index f7f9586ce6730bac724c56cc3366718fabe8e512..6fef23875874f88e94f47fa75acdb2ec433e8aa3 100644 (file)
@@ -1,4 +1,4 @@
-# $Id$
+# $Id: GNUmakefile 32 2004-08-21 00:50:30Z helge $
 
 include $(GNUSTEP_MAKEFILES)/common.make
 include ./Version
@@ -13,20 +13,20 @@ libNGLdap_HEADER_FILES_INSTALL_DIR = /NGLdap
 libNGLdap_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
 
 libNGLdap_HEADER_FILES = \
-       NGLdap.h                \
+       NGLdap.h                        \
        \
-       EOQualifier+LDAP.h      \
-       NSString+DN.h           \
-       NGLdapEntry.h           \
-       NGLdapConnection.h      \
-       NGLdapAttribute.h       \
-       NGLdapModification.h    \
+       EOQualifier+LDAP.h              \
+       NSString+DN.h                   \
+       NGLdapEntry.h                   \
+       NGLdapConnection.h              \
+       NGLdapAttribute.h               \
+       NGLdapModification.h            \
        NGLdapSearchResultEnumerator.h  \
        \
-       NGLdapURL.h             \
-       NGLdapGlobalID.h        \
-       NGLdapFileManager.h     \
-       NGLdapDataSource.h      \
+       NGLdapURL.h                     \
+       NGLdapGlobalID.h                \
+       NGLdapFileManager.h             \
+       NGLdapDataSource.h              \
 
 libNGLdap_CORE_OBJC_FILES = \
        EOQualifier+LDAP.m              \
@@ -47,6 +47,4 @@ libNGLdap_OBJC_FILES = \
 -include GNUmakefile.preamble
 include $(GNUSTEP_MAKEFILES)/library.make
 -include GNUmakefile.postamble
-
-autodoc :
-       autodoc $(AUTODOC_FLAGS) -dest ../Documentation/NGLdap/ -proj .
+-include fhs.make
index 0a020cb680a05b4d249edb52327b2c8a126b212e..475368f352f44fbc9d2f650780f4eaabb6404a6f 100644 (file)
@@ -1,5 +1,5 @@
-# $Id$
+# $Id: Version 13 2004-08-20 20:08:20Z helge $
 
 MAJOR_VERSION=4
 MINOR_VERSION=3
-SUBMINOR_VERSION:=19
+SUBMINOR_VERSION:=20
diff --git a/sope-ldap/NGLdap/fhs.make b/sope-ldap/NGLdap/fhs.make
new file mode 100644 (file)
index 0000000..27422bd
--- /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)$(libNGLdap_HEADER_FILES_INSTALL_DIR)
+
+move-headers-to-fhs :: fhs-header-dirs
+       @echo "moving headers to $(FHS_INCLUDE_DIR) .."
+       mv $(GNUSTEP_HEADERS)$(libNGLdap_HEADER_FILES_INSTALL_DIR)/*.h \
+         $(FHS_INCLUDE_DIR)$(libNGLdap_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 587de7cebc4643b45cd75ebde0c1adb749efa328..0e1b4e25597b25e9d4d211c53589d6c75b483d55 100644 (file)
@@ -1,3 +1,9 @@
+2004-08-29  Helge Hess  <helge.hess@opengroupware.org>
+
+       * 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 in NGLdap samples from sope-core
index 67e844ed6e714aa92dca6b485199aa01667bddc7..6de6f0b519ff5a8e2b8239753a2076ef9eb8cdff 100644 (file)
@@ -1,4 +1,4 @@
-# $Id$
+# $Id: GNUmakefile 13 2004-08-20 20:08:20Z helge $
 
 include $(GNUSTEP_MAKEFILES)/common.make
 
@@ -21,3 +21,4 @@ ldapchkpwd_TOOL_LIBS += -lNGLdap
 -include GNUmakefile.preamble
 include $(GNUSTEP_MAKEFILES)/tool.make
 -include GNUmakefile.postamble
+-include fhs.make
diff --git a/sope-ldap/samples/fhs.make b/sope-ldap/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