[csw-devel] SF.net SVN: gar:[16863] csw/mgar/pkg/389-ds-base/trunk

cgrzemba at users.sourceforge.net cgrzemba at users.sourceforge.net
Fri Jan 20 16:30:06 CET 2012


Revision: 16863
          http://gar.svn.sourceforge.net/gar/?rev=16863&view=rev
Author:   cgrzemba
Date:     2012-01-20 15:30:06 +0000 (Fri, 20 Jan 2012)
Log Message:
-----------
389-ds-base/trunk: add smf patch

Modified Paths:
--------------
    csw/mgar/pkg/389-ds-base/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/389-ds-base/trunk/files/0005-smf-autoenable-no.patch
    csw/mgar/pkg/389-ds-base/trunk/files/CSW389-ds-base.postinstall
    csw/mgar/pkg/389-ds-base/trunk/files/CSW389-ds-base.postremove

Modified: csw/mgar/pkg/389-ds-base/trunk/Makefile
===================================================================
--- csw/mgar/pkg/389-ds-base/trunk/Makefile	2012-01-20 15:20:49 UTC (rev 16862)
+++ csw/mgar/pkg/389-ds-base/trunk/Makefile	2012-01-20 15:30:06 UTC (rev 16863)
@@ -13,6 +13,8 @@
 
 MASTER_SITES = http://port389.org/sources
 DISTFILES  = $(NAME)-$(VERSION).tar.bz2
+DISTFILES += CSW389-ds-base.postinstall
+DISTFILES += CSW389-ds-base.postremove
 # BUILD64	= 1
 PACKAGING_PLATFORMS += solaris10-sparc
 PACKAGING_PLATFORMS += solaris10-i386
@@ -24,6 +26,7 @@
 PATCHFILES += 0003-add-user-and-var-run-dirsrv.patch
 # until Red Hat Bugzilla Bug 773617 is open do it yourself
 PATCHFILES += 0004-add-i386-platform-to-Makefile.am-and-configure.ac.patch
+PATCHFILES += 0005-smf-autoenable-no.patch
 
 INITSMF = /etc/opt/csw/init.d/dirsrv
 RUNTIME_DEP_PKGS_CSW389-ds-base += CSWlibssldap60

Added: csw/mgar/pkg/389-ds-base/trunk/files/0005-smf-autoenable-no.patch
===================================================================
--- csw/mgar/pkg/389-ds-base/trunk/files/0005-smf-autoenable-no.patch	                        (rev 0)
+++ csw/mgar/pkg/389-ds-base/trunk/files/0005-smf-autoenable-no.patch	2012-01-20 15:30:06 UTC (rev 16863)
@@ -0,0 +1,25 @@
+From a600e648d88ce1967d7d1d68efc5b23e2403a60a Mon Sep 17 00:00:00 2001
+From: Carsten Grzemba <cgrzemba at opencsw.org>
+Date: Fri, 20 Jan 2012 16:27:00 +0100
+Subject: [PATCH] smf autoenable no
+
+---
+ wrappers/initscript.in |    2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/wrappers/initscript.in b/wrappers/initscript.in
+index 7632749..84392cb 100644
+--- a/wrappers/initscript.in
++++ b/wrappers/initscript.in
+@@ -9,6 +9,8 @@
+ # piddir:      @localstatedir@/run/@package_name@
+ # datadir:     @localstatedir@/lib/@package_name@/slapd-<instance name>
+ #
++#AUTOENABLE no
++#
+ 
+ # Source function library.
+ if [ -f /etc/rc.d/init.d/functions ] ; then
+-- 
+1.7.8.3
+

Added: csw/mgar/pkg/389-ds-base/trunk/files/CSW389-ds-base.postinstall
===================================================================
--- csw/mgar/pkg/389-ds-base/trunk/files/CSW389-ds-base.postinstall	                        (rev 0)
+++ csw/mgar/pkg/389-ds-base/trunk/files/CSW389-ds-base.postinstall	2012-01-20 15:30:06 UTC (rev 16863)
@@ -0,0 +1,18 @@
+# define exit func
+my_exit () 
+{
+	echo "postinstall failed on cmd: $1"
+	exit 1
+}
+
+# add group ldap
+getent group ldap > /dev/null || groupadd -g 389 ldap || my_exit groupadd
+# add user ldap
+getent passwd ldap > /dev/null || useradd -g 389 -u 389 -d /var/opt/csw/lib/dirsrv ldap || my_exit useradd
+# add /var/opt/csw/lib/dirserv
+[ -d /var/opt/csw/lib/dirsrv ] || mkdir -p /var/opt/csw/lib/dirsrv || my_exit mkdir
+# add /var/opt/csw/log/dirserv
+[ -d /var/opt/csw/log/dirsrv ] || mkdir -p /var/opt/csw/log/dirsrv || my_exit mkdir
+# change owner
+chown ldap:ldap /var/opt/csw/lib/dirsrv || my_exit chown
+chown ldap:ldap /var/opt/csw/log/dirsrv || my_exit chown

Added: csw/mgar/pkg/389-ds-base/trunk/files/CSW389-ds-base.postremove
===================================================================
--- csw/mgar/pkg/389-ds-base/trunk/files/CSW389-ds-base.postremove	                        (rev 0)
+++ csw/mgar/pkg/389-ds-base/trunk/files/CSW389-ds-base.postremove	2012-01-20 15:30:06 UTC (rev 16863)
@@ -0,0 +1 @@
+echo "Directories /var/opt/csw/lib/dirsrv and /var/opt/csw/log/dirsrv not removed! remove them manually, if you do not want use them any longer"

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