[Fedora-directory-commits] ldapserver/ldap/cm genPerlDAPInf.pl, NONE, 1.1 Makefile, 1.54, 1.55

Noriko Hosoi (nhosoi) fedora-directory-commits at redhat.com
Mon Jun 19 17:39:09 UTC 2006


Author: nhosoi

Update of /cvs/dirsec/ldapserver/ldap/cm
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26597/ldap/cm

Modified Files:
	Makefile 
Added Files:
	genPerlDAPInf.pl 
Log Message:
[186642] Directory Server Makefile updates for Internal build (Comment #6)
1) picked up the latest components including Cyrus SASL, Perldap, SetupUtil,
and AdminServer 
2) fixed the java paths for the internal build.
3) added an option -AA to HP-UX C++ compiler to adjust to SetupUtil build (use
libstd 2)
4) replaced <iostream.h>, <strstream.h> and <fstream.h> with <iostream>,
<strstream>, <fstream> respectively in ldap/cm/newinst/ux-dialog.cc 
5) package svrcore and perldap, which were dropped in the current
ldap/cm/Makefile
6) added a perl script genPerlDAPInf.pl to generate perldap.inf file



--- NEW FILE genPerlDAPInf.pl ---
#
# BEGIN COPYRIGHT BLOCK
# This Program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; version 2 of the License.
# 
# This Program 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 General Public License for more details.
# 
# You should have received a copy of the GNU General Public License along with
# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA.
# 
# In addition, as a special exception, Red Hat, Inc. gives You the additional
# right to link the code of this Program with code not covered under the GNU
# General Public License ("Non-GPL Code") and to distribute linked combinations
# including the two, subject to the limitations in this paragraph. Non-GPL Code
# permitted under this exception must only link to the code of this Program
# through those well defined interfaces identified in the file named EXCEPTION
# found in the source code files (the "Approved Interfaces"). The files of
# Non-GPL Code may instantiate templates or use macros or inline functions from
# the Approved Interfaces without causing the resulting work to be covered by
# the GNU General Public License. Only Red Hat, Inc. may make changes or
# additions to the list of Approved Interfaces. You must obey the GNU General
# Public License in all respects for all of the Program code and other code used
# in conjunction with the Program except the Non-GPL Code covered by this
# exception. If you modify this file, you may extend this exception to your
# version of the file, but you are not obligated to do so. If you do not wish to
# provide this exception without modification, you must delete this exception
# statement from your version and license this file solely under the GPL without
# exception. 
# 
# 
# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
# Copyright (C) 2006 Red Hat, Inc.
# All rights reserved.
# END COPYRIGHT BLOCK
#

# Usage: genPerlDAPInf.pl <full_path_to_perldap.inf> <version> <Vendor>

$vendor = "Red Hat, Inc.";
if ($#ARGV < 1) {
    print "Usage: genPerlDAPInf.pl <full_path_to_perldap.inf> <version> [<Vendora>]\n";
    exit 1;
}
$outfile = $ARGV[0];
$version = $ARGV[1];
if ($#ARGV >= 2) {
    $vendor = $ARGV[2];
}

print "outfile: $outfile, version: $version, vendor: $vendor\n";

($nodot_version = $version) =~ tr/\.//d;
$component = "perldap" . $nodot_version;

open(OUT, ">$outfile") or die "Error: could not write file $outfile: $!";
print OUT "[General]\n";
print OUT "Name=PerLDAP\n";
print OUT "Description=This is mozilla.org PerLDAP.\n";
print OUT "Components=$component\n\n";
print OUT "[$component]\n";
print OUT "Description=The mozilla.org PerLDAP $version\n";
print OUT "NickName=$component\n";
print OUT "Name=PerLDAP $version\n";
print OUT "SourcePath=perldap\n";
print OUT "Vendor=$vendor\n";
print OUT "Security=none\n";
print OUT "Version=$version\n";
print OUT "Compatible=$version\n";
print OUT "Archive=perldap-$version.zip\n";
print OUT "Visible=FALSE\n";
print OUT "Checked=TRUE\n";
close OUT;

exit 0;


Index: Makefile
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/cm/Makefile,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- Makefile	4 Apr 2006 21:26:52 -0000	1.54
+++ Makefile	7 Apr 2006 01:33:36 -0000	1.55
@@ -195,7 +195,7 @@
 ADMIN_IMPORTS_TARGZ=$(ADMIN_SERVER_TARGZ)
 
 ifeq ($(USE_SETUPUTIL), 1)
-  LDAP_PACKAGE_FILES:=setup setup.inf setup.res slient.inf unzip_wrapper.pl dsktune LICENSE.txt README.txt slapd
+  LDAP_PACKAGE_FILES:=setup setup.inf setup.res silent.inf unzip_wrapper.pl svrcore dsktune LICENSE.txt README.txt slapd
 else
   LDAP_PACKAGE_FILES:=setup dsktune slapd
 endif
@@ -626,12 +626,24 @@
 # this gets setup, setup.inf, silent.inf, the zip wrapper, and svrcore, among others
 ifeq ($(USE_SETUPUTIL), 1)
 	cp -R $(SETUPUTIL_BINPATH)/* $(INSTDIR)
+	@echo "removing unzipped dir"
+	@dirs=`ls $(INSTDIR)`; for adir in $$dirs ; do \
+	  if [ -d $(INSTDIR)/$$adir/unzipped ] ; then \
+	    rm -rf $(INSTDIR)/$$adir/unzipped; \
+	  fi; \
+	done
 ifeq ($(DS_BRAND), redhat)
-	cd $(INSTDIR); \
-	$(RELTOOLSPATH)/brandver.pl -i $(ABS_ROOT)/branding/rhds/setup.dat; \
+	@(cd $(INSTDIR); \
+	$(PERL) $(RELTOOLSPATH)/brandver.pl -i $(ABS_ROOT)/branding/rhds/setup.dat; \
 	cat setup.inf | sed -e "s/^#Resource/Resource/" > setup.inf.tmp; \
-	mv setup.inf.tmp setup.inf
+	mv setup.inf.tmp setup.inf)
+endif
 endif
+
+ifeq ($(USE_PERLDAP), 1)
+	mkdir $(INSTDIR)/perldap
+	cp -R $(PERLDAP_BUILT_DIR)/* $(INSTDIR)/perldap
+	$(PERL) genPerlDAPInf.pl $(INSTDIR)/perldap/perldap.inf 1.5 "Fedora Project"
 endif
 
 # copy in our product .inf files




More information about the Fedora-directory-commits mailing list