[csw-devel] SF.net SVN: gar:[16739] csw/mgar/pkg

cgrzemba at users.sourceforge.net cgrzemba at users.sourceforge.net
Tue Jan 10 15:22:37 CET 2012


Revision: 16739
          http://gar.svn.sourceforge.net/gar/?rev=16739&view=rev
Author:   cgrzemba
Date:     2012-01-10 14:22:37 +0000 (Tue, 10 Jan 2012)
Log Message:
-----------
389-ds-base/trunk: First try

Added Paths:
-----------
    csw/mgar/pkg/389-ds-base/
    csw/mgar/pkg/389-ds-base/Makefile
    csw/mgar/pkg/389-ds-base/branches/
    csw/mgar/pkg/389-ds-base/tags/
    csw/mgar/pkg/389-ds-base/trunk/
    csw/mgar/pkg/389-ds-base/trunk/Makefile
    csw/mgar/pkg/389-ds-base/trunk/checksums
    csw/mgar/pkg/389-ds-base/trunk/files/
    csw/mgar/pkg/389-ds-base/trunk/files/0005-add-standard-path.patch
    csw/mgar/pkg/389-ds-base/trunk/files/0006-replace-SV-sh-with-Posix-sh.patch
    csw/mgar/pkg/389-ds-base/trunk/files/0007-create-var-run-dirsrv.patch

Added: csw/mgar/pkg/389-ds-base/Makefile
===================================================================
--- csw/mgar/pkg/389-ds-base/Makefile	                        (rev 0)
+++ csw/mgar/pkg/389-ds-base/Makefile	2012-01-10 14:22:37 UTC (rev 16739)
@@ -0,0 +1,2 @@
+%:
+	$(MAKE) -C trunk $*


Property changes on: csw/mgar/pkg/389-ds-base/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/389-ds-base/trunk/Makefile
===================================================================
--- csw/mgar/pkg/389-ds-base/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/389-ds-base/trunk/Makefile	2012-01-10 14:22:37 UTC (rev 16739)
@@ -0,0 +1,76 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = 389-ds-base
+VERSION = 1.2.9.9
+GARTYPE = v2
+CATEGORIES = server
+
+DESCRIPTION = The enterprise-class Open Source LDAP server
+define BLURB
+The enterprise-class Open Source LDAP server for Linux. It is hardened by real-world use, is full-featured, supports multi-master replication, and already handles many of the largest LDAP deployments in the world. The 389 Directory Server can be downloaded for free and set up in less than an hour using the graphical console.
+endef
+
+MASTER_SITES = http://port389.org/sources
+DISTFILES  = $(NAME)-$(VERSION).tar.bz2
+# BUILD64	= 1
+
+PATCHFILES += 0005-add-standard-path.patch
+PATCHFILES += 0006-replace-SV-sh-with-Posix-sh.patch
+PATCHFILES += 0007-create-var-run-dirsrv.patch
+
+RUNTIME_DEP_PKGS_CSW389-ds-base += CSWlibssldap60
+RUNTIME_DEP_PKGS_CSW389-ds-base += CSWlibprldap60
+RUNTIME_DEP_PKGS_CSW389-ds-base += CSWperl
+RUNTIME_DEP_PKGS_CSW389-ds-base += CSWpython
+RUNTIME_DEP_PKGS_CSW389-ds-base += CSWsasl
+RUNTIME_DEP_PKGS_CSW389-ds-base += CSWlibldif60
+RUNTIME_DEP_PKGS_CSW389-ds-base += CSWlibsvrcore0
+RUNTIME_DEP_PKGS_CSW389-ds-base += CSWlibnspr4
+RUNTIME_DEP_PKGS_CSW389-ds-base += CSWlibicu46
+RUNTIME_DEP_PKGS_CSW389-ds-base += CSWlibldap60
+RUNTIME_DEP_PKGS_CSW389-ds-base += CSWnetsnmp
+RUNTIME_DEP_PKGS_CSW389-ds-base += CSWlibplds4
+RUNTIME_DEP_PKGS_CSW389-ds-base += CSWkrb5lib
+RUNTIME_DEP_PKGS_CSW389-ds-base += CSWlibpcre0
+RUNTIME_DEP_PKGS_CSW389-ds-base += CSWlibnss3
+RUNTIME_DEP_PKGS_CSW389-ds-base += CSWlibplc4
+CHECKPKG_OVERRIDES_CSW389-ds-base += file-with-bad-content|/usr/share|root/opt/csw/lib/dirsrv/perl/DSUpdate.pm
+CHECKPKG_OVERRIDES_CSW389-ds-base += file-with-bad-content|/usr/share|root/opt/csw/share/dirsrv/updates/exampleupdate.ldif
+CHECKPKG_OVERRIDES_CSW389-ds-base += file-with-bad-content|/usr/share|root/opt/csw/share/man/man1/dbgen.pl.1
+CHECKPKG_OVERRIDES_CSW389-ds-base += license-missing|/opt/csw/share/doc/389_ds_base/license
+CHECKPKG_OVERRIDES_CSW389-ds-base += init-file-missing-cswinitsmf-class|/etc/opt/csw/init.d/dirsrv|class=none
+CHECKPKG_OVERRIDES_CSW389-ds-base += init-file-missing-cswinitsmf-class|/etc/opt/csw/init.d/dirsrv-snmp|class=none
+CHECKPKG_OVERRIDES_CSW389-ds-base += soname-not-found|libdb-4.8.so|is|needed|by|opt/csw/lib/dirsrv/plugins/libback-ldbm.so
+CHECKPKG_OVERRIDES_CSW389-ds-base += soname-not-found|libdb-4.8.so|is|needed|by|opt/csw/bin/dbscan-bin
+CHECKPKG_OVERRIDES_CSW389-ds-base += soname-not-found|libdb-4.8.so|is|needed|by|opt/csw/lib/dirsrv/plugins/libreplication-plugin.so
+
+# GARCOMPILER = SOS12U2
+
+CONFIGURE_ARGS = $(DIRPATHS)
+CONFIGURE_ARGS_OPT += --with-ldapsdk-inc=/opt/csw/include/dirsrv 
+CONFIGURE_ARGS_OPT += --with-ldapsdk-lib=/opt/csw/lib
+CONFIGURE_ARGS_OPT += --with-ldapsdk-bin=/opt/csw/dirsrv/bin 
+CONFIGURE_ARGS_OPT += --with-db-inc=/opt/csw/bdb48/include 
+CONFIGURE_ARGS_OPT += --with-db-lib=/opt/csw/bdb48/lib
+CONFIGURE_ARGS_OPT += --with-icu-inc=/opt/csw/include 
+CONFIGURE_ARGS_OPT += --with-icu-lib=/opt/csw/lib
+CONFIGURE_ARGS_OPT += --with-icu-bin=/opt/csw/bin 
+CONFIGURE_ARGS_OPT += --with-netsnmp-inc=/opt/csw/include 
+CONFIGURE_ARGS_OPT += --with-netsnmp-lib=/opt/csw/lib
+CONFIGURE_ARGS_OPT += --with-sasl-inc=/opt/csw/include/sasl 
+CONFIGURE_ARGS_OPT += --with-sasl-lib=/opt/csw/lib
+CONFIGURE_ARGS_OPT += --with-nss-lib=/opt/csw/lib
+CONFIGURE_ARGS_OPT += --with-nss-inc=/opt/csw/include/nss 
+CONFIGURE_ARGS_OPT += --with-nspr-lib=/opt/csw/lib
+CONFIGURE_ARGS_OPT += --with-nspr-inc=/opt/csw/include/nspr
+CONFIGURE_ARGS += $(CONFIGURE_ARGS_$(GARFLAVOR))
+
+include gar/category.mk
+
+pre-configure-modulated:
+	cd $(WORKSRC) && rm ltmain.sh && libtoolize --copy --force
+	cd $(WORKSRC) && aclocal
+	cd $(WORKSRC) && autoconf --force
+	cd $(WORKSRC) && automake -a -c -f
+	@$(MAKECOOKIE)


Property changes on: csw/mgar/pkg/389-ds-base/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id

Added: csw/mgar/pkg/389-ds-base/trunk/checksums
===================================================================
--- csw/mgar/pkg/389-ds-base/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/389-ds-base/trunk/checksums	2012-01-10 14:22:37 UTC (rev 16739)
@@ -0,0 +1 @@
+85ca908b219b6b7689bcf411b800e2e2  389-ds-base-1.2.9.9.tar.bz2

Added: csw/mgar/pkg/389-ds-base/trunk/files/0005-add-standard-path.patch
===================================================================
--- csw/mgar/pkg/389-ds-base/trunk/files/0005-add-standard-path.patch	                        (rev 0)
+++ csw/mgar/pkg/389-ds-base/trunk/files/0005-add-standard-path.patch	2012-01-10 14:22:37 UTC (rev 16739)
@@ -0,0 +1,25 @@
+From 9e7786a9b7d088a656f17c00ab6b293450a8fdb4 Mon Sep 17 00:00:00 2001
+From: Carsten Grzemba <cgrzemba at opencsw.org>
+Date: Tue, 10 Jan 2012 14:25:16 +0100
+Subject: [PATCH 5/7] add standard path
+
+---
+ wrappers/dsktune.in |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/wrappers/dsktune.in b/wrappers/dsktune.in
+index 7c4777c..c269582 100755
+--- a/wrappers/dsktune.in
++++ b/wrappers/dsktune.in
+@@ -30,7 +30,7 @@ export LD_LIBRARY_PATH
+ ##             path on this platform.                                        ##
+ ###############################################################################
+ 
+-PATH=${BIN_DIR}
++PATH=${BIN_DIR}:$PATH
+ export PATH
+ 
+ 
+-- 
+1.7.6.1
+

Added: csw/mgar/pkg/389-ds-base/trunk/files/0006-replace-SV-sh-with-Posix-sh.patch
===================================================================
--- csw/mgar/pkg/389-ds-base/trunk/files/0006-replace-SV-sh-with-Posix-sh.patch	                        (rev 0)
+++ csw/mgar/pkg/389-ds-base/trunk/files/0006-replace-SV-sh-with-Posix-sh.patch	2012-01-10 14:22:37 UTC (rev 16739)
@@ -0,0 +1,44 @@
+From d0ae6040f0b211a6ce51d090213bf7a6c8fbc26b Mon Sep 17 00:00:00 2001
+From: Carsten Grzemba <cgrzemba at opencsw.org>
+Date: Tue, 10 Jan 2012 14:29:50 +0100
+Subject: [PATCH 6/7] replace SV sh with Posix sh
+
+---
+ ldap/admin/src/scripts/restart-dirsrv.in |    2 +-
+ ldap/admin/src/scripts/start-dirsrv.in   |    2 +-
+ ldap/admin/src/scripts/stop-dirsrv.in    |    2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/ldap/admin/src/scripts/restart-dirsrv.in b/ldap/admin/src/scripts/restart-dirsrv.in
+index 76fb176..cd4a9b0 100644
+--- a/ldap/admin/src/scripts/restart-dirsrv.in
++++ b/ldap/admin/src/scripts/restart-dirsrv.in
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/usr/xpg4/bin/sh
+ 
+ # Script that restarts the ns-slapd server.
+ # Exit status can be:
+diff --git a/ldap/admin/src/scripts/start-dirsrv.in b/ldap/admin/src/scripts/start-dirsrv.in
+index 291c821..dfdce06 100755
+--- a/ldap/admin/src/scripts/start-dirsrv.in
++++ b/ldap/admin/src/scripts/start-dirsrv.in
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/usr/xpg4/bin/sh
+ 
+ # Script that starts the ns-slapd server.
+ # Exit status can be:
+diff --git a/ldap/admin/src/scripts/stop-dirsrv.in b/ldap/admin/src/scripts/stop-dirsrv.in
+index 4d88585..40b646d 100755
+--- a/ldap/admin/src/scripts/stop-dirsrv.in
++++ b/ldap/admin/src/scripts/stop-dirsrv.in
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/usr/xpg4/bin/sh
+ 
+ # Script that stops the ns-slapd server.
+ # Exit status can be:
+-- 
+1.7.6.1
+

Added: csw/mgar/pkg/389-ds-base/trunk/files/0007-create-var-run-dirsrv.patch
===================================================================
--- csw/mgar/pkg/389-ds-base/trunk/files/0007-create-var-run-dirsrv.patch	                        (rev 0)
+++ csw/mgar/pkg/389-ds-base/trunk/files/0007-create-var-run-dirsrv.patch	2012-01-10 14:22:37 UTC (rev 16739)
@@ -0,0 +1,42 @@
+From e2a18924e644ee93ef31bed2a18a83bfbe78cf62 Mon Sep 17 00:00:00 2001
+From: Carsten Grzemba <cgrzemba at opencsw.org>
+Date: Tue, 10 Jan 2012 15:05:25 +0100
+Subject: [PATCH 7/7] create var run dirsrv
+
+---
+ ldap/admin/src/dirsrv |   12 ++++++++++++
+ 1 files changed, 12 insertions(+), 0 deletions(-)
+
+diff --git a/ldap/admin/src/dirsrv b/ldap/admin/src/dirsrv
+index 31753b3..f024586 100644
+--- a/ldap/admin/src/dirsrv
++++ b/ldap/admin/src/dirsrv
+@@ -33,6 +33,8 @@ OS=`uname -s`
+ # use the new mt slab memory allocator on Solaris
+ # this requires Solaris 9 update 3 or later
+ if [ "$OS" = "SunOS" -a -f /usr/lib/libumem.so ] ; then
++#   UMEM_DEBUG=default
++#   UMEM_LOGGING=transaction
+     LD_PRELOAD=/usr/lib/libumem.so
+     export LD_PRELOAD
+ fi
+@@ -41,6 +43,16 @@ if [ "$OS" = "SunOS" -a -f /usr/lib/64/libumem.so ] ; then
+     export LD_PRELOAD_64
+ fi
+ 
++USER=`/usr/xpg4/bin/id -u -n`
++export USER
++[ -d /var/run/dirsrv ] && mkdir -p /var/run/dirsrv
++if [ -f /etc/opt/csw/dirsrv/admin-serv/adm.conf ]; then
++  slapd-user=`grep SuiteSpotUserID /etc/opt/csw/dirsrv/admin-serv/adm.conf | cut -d: -f2 | tr -d [:space:]`
++  slapd-group=`grep SuiteSpotGroup /etc/opt/csw/dirsrv/admin-serv/adm.conf | cut -d: -f2 | tr -d [:space:]`
++  chown $slapd-user:$slapd-group /var/run/dirsrv
++fi
++chmod g+w /var/run/dirsrv
++
+ # how many seconds to wait for the startpid file to show
+ # up before we assume there is a problem and fail to start
+ #STARTPID_TIME=10 ; export STARTPID_TIME
+-- 
+1.7.6.1
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list