Initial import of the Sun C SDK back into mozilla

This commit is contained in:
richm%stanfordalumni.org 2006-05-19 20:17:48 +00:00
Родитель a0684432c8
Коммит aeb8a170b9
63 изменённых файлов: 2185 добавлений и 0 удалений

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

0
directory/c-sdk/rpm.mk Normal file
Просмотреть файл

0
directory/c-sdk/rpmd.mk Normal file
Просмотреть файл

0
directory/c-sdk/rpmu.mk Normal file
Просмотреть файл

Просмотреть файл

@ -0,0 +1,107 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
depot
layout_version 1.0
vendor
tag SUN
title SUN Microsystems
description "JES"
end
product
tag sun-ldapcsdk-dev
title Sun LDAP C SDK Development
description Sun LDAP C SDK Development
copyright "Copyright 2006 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms."
revision #DEPOT_VERSION#
architecture HP-UX_B.11.11_32/64
vendor_tag SUN
machine_type *
os_name HP-UX
os_release ?.11.*
os_version *
number REV=#REVISION#
is_locatable true
directory /
fileset
tag sun-ldapcsdk-dev
prerequisite sun-ldapcsdk-libs
prerequisite sun-nss
prerequisite sun-nss-devel
prerequisite sun-nspr
prerequisite sun-nspr-devel
prerequisite sun-sasl
file -m 0755 -o root -g root {SRC_DIR}/include/disptmpl.h /opt/sun/private/include/ldap/disptmpl.h
file -m 0755 -o root -g root {SRC_DIR}/include/lber.h /opt/sun/private/include/ldap/lber.h
file -m 0755 -o root -g root {SRC_DIR}/include/ldap-deprecated.h /opt/sun/private/include/ldap/ldap-deprecated.h
file -m 0755 -o root -g root {SRC_DIR}/include/ldap-extension.h /opt/sun/private/include/ldap/ldap-extension.h
file -m 0755 -o root -g root {SRC_DIR}/include/ldap-platform.h /opt/sun/private/include/ldap/ldap-platform.h
file -m 0755 -o root -g root {SRC_DIR}/include/ldap-standard.h /opt/sun/private/include/ldap/ldap-standard.h
file -m 0755 -o root -g root {SRC_DIR}/include/ldap-to-be-deprecated.h /opt/sun/private/include/ldap/ldap-to-be-deprecated.h
file -m 0755 -o root -g root {SRC_DIR}/include/ldap.h /opt/sun/private/include/ldap/ldap.h
file -m 0755 -o root -g root {SRC_DIR}/include/ldap_ssl.h /opt/sun/private/include/ldap/ldap_ssl.h
file -m 0755 -o root -g root {SRC_DIR}/include/ldappr.h /opt/sun/private/include/ldap/ldappr.h
file -m 0755 -o root -g root {SRC_DIR}/include/srchpref.h /opt/sun/private/include/ldap/srchpref.h
file -m 644 -o root -g root {SRC_DIR}/etc/ldapfilter.conf /usr/share/ldapcsdk/etc/ldapfilter.conf
file -m 644 -o root -g root {SRC_DIR}/etc/ldapfriendly /usr/share/ldapcsdk/etc/ldapfriendly
file -m 644 -o root -g root {SRC_DIR}/etc/ldapsearchprefs.conf /usr/share/ldapcsdk/etc/ldapsearchprefs.conf
file -m 644 -o root -g root {SRC_DIR}/etc/ldaptemplates.conf /usr/share/ldapcsdk/etc/ldaptemplates.conf
file -m 755 -o root -g root {SRC_DIR}/examples/Makefile /usr/share/ldapcsdk/examples/Makefile
file -m 755 -o root -g root {SRC_DIR}/examples/README /usr/share/ldapcsdk/examples/README
file -m 755 -o root -g root {SRC_DIR}/examples/add.c /usr/share/ldapcsdk/examples/add.c
file -m 755 -o root -g root {SRC_DIR}/examples/asearch.c /usr/share/ldapcsdk/examples/asearch.c
file -m 755 -o root -g root {SRC_DIR}/examples/compare.c /usr/share/ldapcsdk/examples/compare.c
file -m 755 -o root -g root {SRC_DIR}/examples/crtfilt.c /usr/share/ldapcsdk/examples/crtfilt.c
file -m 755 -o root -g root {SRC_DIR}/examples/csearch.c /usr/share/ldapcsdk/examples/csearch.c
file -m 755 -o root -g root {SRC_DIR}/examples/del.c /usr/share/ldapcsdk/examples/del.c
file -m 755 -o root -g root {SRC_DIR}/examples/examples.h /usr/share/ldapcsdk/examples/examples.h
file -m 755 -o root -g root {SRC_DIR}/examples/getattrs.c /usr/share/ldapcsdk/examples/getattrs.c
file -m 755 -o root -g root {SRC_DIR}/examples/getfilt.c /usr/share/ldapcsdk/examples/getfilt.c
file -m 755 -o root -g root {SRC_DIR}/examples/modattrs.c /usr/share/ldapcsdk/examples/modattrs.c
file -m 755 -o root -g root {SRC_DIR}/examples/modrdn.c /usr/share/ldapcsdk/examples/modrdn.c
file -m 755 -o root -g root {SRC_DIR}/examples/nsprio.c /usr/share/ldapcsdk/examples/nsprio.c
file -m 755 -o root -g root {SRC_DIR}/examples/ppolicy.c /usr/share/ldapcsdk/examples/ppolicy.c
file -m 755 -o root -g root {SRC_DIR}/examples/psearch.c /usr/share/ldapcsdk/examples/psearch.c
file -m 755 -o root -g root {SRC_DIR}/examples/rdentry.c /usr/share/ldapcsdk/examples/rdentry.c
file -m 755 -o root -g root {SRC_DIR}/examples/search.c /usr/share/ldapcsdk/examples/search.c
file -m 755 -o root -g root {SRC_DIR}/examples/srvrsort.c /usr/share/ldapcsdk/examples/srvrsort.c
file -m 755 -o root -g root {SRC_DIR}/examples/ssearch.c /usr/share/ldapcsdk/examples/ssearch.c
file -m 755 -o root -g root {SRC_DIR}/examples/ssnoauth.c /usr/share/ldapcsdk/examples/ssnoauth.c
file -m 755 -o root -g root {SRC_DIR}/examples/xmplflt.conf /usr/share/ldapcsdk/examples/xmplflt.conf
end
end

Просмотреть файл

@ -0,0 +1,70 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
depot
layout_version 1.0
vendor
tag SUN
title SUN Microsystems
description "JES"
end
product
tag sun-ldapcsdk-libs
title Sun LDAP C SDK Libraries
description Sun LDAP C SDK Libraries
copyright "Copyright 2006 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms."
revision #DEPOT_VERSION#
architecture HP-UX_B.11.11_32/64
vendor_tag SUN
machine_type *
os_name HP-UX
os_release ?.11.*
os_version *
number REV=#REVISION#
is_locatable true
directory /
fileset
tag sun-ldapcsdk-libs
prerequisite sun-nss
prerequisite sun-sasl
file -m 755 -o root -g root {SRC_DIR}/lib/libldap60.sl /opt/sun/private/lib/libldap60.sl
file -m 755 -o root -g root {SRC_DIR}/lib/libprldap60.sl /opt/sun/private/lib/libprldap60.sl
file -m 755 -o root -g root {SRC_DIR}/lib/libssldap60.sl /opt/sun/private/lib/libssldap60.sl
file -m 755 -o root -g root {SRC_DIR_64}/lib/libldap60.sl /opt/sun/private/lib/64/libldap60.sl
file -m 755 -o root -g root {SRC_DIR_64}/lib/libprldap60.sl /opt/sun/private/lib/64/libprldap60.sl
file -m 755 -o root -g root {SRC_DIR_64}/lib/libssldap60.sl /opt/sun/private/lib/64/libssldap60.sl
end
end

Просмотреть файл

@ -0,0 +1,79 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
depot
layout_version 1.0
vendor
tag SUN
title SUN Microsystems
description "JES"
end
product
tag sun-ldapcsdk-tools
title Sun LDAP C SDK Tools
description Sun LDAP C SDK Tools
copyright "Copyright 2006 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms."
revision #DEPOT_VERSION#
architecture HP-UX_B.11.11_32/64
vendor_tag SUN
machine_type *
os_name HP-UX
os_release ?.11.*
os_version *
number REV=#REVISION#
is_locatable true
directory /
fileset
tag sun-ldapcsdk-tools
prerequisite sun-nss
prerequisite sun-nspr
prerequisite sun-ldapcsdk-libs
prerequisite sun-icu
file -m 755 -o root -g root {SRC_DIR}/tools/ldapcmp /opt/sun/private/bin/ldapcmp
file -m 755 -o root -g root {SRC_DIR}/tools/ldapcompare /opt/sun/private/bin/ldapcompare
file -m 755 -o root -g root {SRC_DIR}/tools/ldapdelete /opt/sun/private/bin/ldapdelete
file -m 755 -o root -g root {SRC_DIR}/tools/ldapmodify /opt/sun/private/bin/ldapmodify
file -m 755 -o root -g root {SRC_DIR}/tools/ldappasswd /opt/sun/private/bin/ldappasswd
file -m 755 -o root -g root {SRC_DIR}/tools/ldapsearch /opt/sun/private/bin/ldapsearch
file -m 755 -o root -g root {SRC_DIR_64}/tools/ldapcmp /opt/sun/private/bin/64/ldapcmp
file -m 755 -o root -g root {SRC_DIR_64}/tools/ldapcompare /opt/sun/private/bin/64/ldapcompare
file -m 755 -o root -g root {SRC_DIR_64}/tools/ldapdelete /opt/sun/private/bin/64/ldapdelete
file -m 755 -o root -g root {SRC_DIR_64}/tools/ldapmodify /opt/sun/private/bin/64/ldapmodify
file -m 755 -o root -g root {SRC_DIR_64}/tools/ldappasswd /opt/sun/private/bin/64/ldappasswd
file -m 755 -o root -g root {SRC_DIR_64}/tools/ldapsearch /opt/sun/private/bin/64/ldapsearch
end
end

Просмотреть файл

@ -0,0 +1,59 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
MACH = $(shell mach)
PUBLISH_ROOT = $(DIST)
ifeq ($(CORE_DEPTH),../../..)
ROOT = ROOT-$(OBJDIR_NAME)
else
ROOT = $(subst ../../../,,$(CORE_DEPTH))/ROOT-$(OBJDIR_NAME)
endif
PKGARCHIVE = $(PUBLISH_ROOT)/pkgarchive
DATAFILES = copyright
FILES = $(DATAFILES) pkginfo
PACKAGE = $(shell basename `pwd`)
PRODUCT_VERSION = 6.00
PRODUCT_NAME = LDAPCSDK_6_00_RTM
LN = /usr/bin/ln
CP = /usr/bin/cp
CLOBBERFILES = $(FILES)
include $(CORE_DEPTH)/coreconf/config.mk
include $(CORE_DEPTH)/coreconf/rules.mk
# vim: ft=make

Просмотреть файл

@ -0,0 +1,83 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#ident "$Id: Makefile.ldkd,v 1.1 2006-05-19 20:17:34 richm%stanfordalumni.org Exp $"
#
CORE_DEPTH = ../../..
%: %.ksh
$(RM) $@
cp $< $@
chmod +x $@
DIRS = SUNWldapcsdk-dev
PROTO = \
$(ROOT) \
$(ROOT)/usr \
$(ROOT)/usr/include \
$(ROOT)/usr/include/mps \
$(ROOT)/usr/share \
$(ROOT)/usr/share/ldapcsdk \
$(ROOT)/usr/share/ldapcsdk/etc \
$(ROOT)/usr/share/ldapcsdk/examples
include Makefile.com
awk_pkginfo-$(MACH): bld_awk_pkginfo
./bld_awk_pkginfo -m $(MACH) -p "$(PRODUCT_VERSION)" -o $@ -v $(PRODUCT_VERSION)
#awk_pkginfo: bld_awk_pkginfo
# ./bld_awk_pkginfo -m $(MACH) -p "$(PRODUCT_VERSION)" -o $@ -v $(PRODUCT_VERSION)
all:: awk_pkginfo-$(MACH) $(PROTO)
publish: awk_pkginfo-$(MACH) $(PROTO)
+$(LOOP_OVER_DIRS)
clean clobber::
$(RM) awk_pkginfo-$(MACH) bld_awk_pkginfo
$(RM) -rf $(ROOT)
$(ROOT) $(ROOT)/%:
mkdir -p $@
$(ROOT)/usr/include/mps: $(ROOT)/usr/include
echo "dist=$(DIST)"
$(LN) -sf ../../../$(CORE_DEPTH)/dist/public/ldap $@
$(ROOT)/usr/share/ldapcsdk/etc: $(ROOT)/usr/share/ldapcsdk
echo "dist=$(DIST)"
$(LN) -sf ../../../../$(CORE_DEPTH)/directory/c-sdk/ldap/libraries/libldap $@
$(ROOT)/usr/share/ldapcsdk/examples: $(ROOT)/usr/share/ldapcsdk
echo "dist=$(DIST)"
$(LN) -sf ../../../../$(CORE_DEPTH)/directory/c-sdk/ldap/examples $@

Просмотреть файл

@ -0,0 +1,92 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#ident "$Id: Makefile.ldku,v 1.1 2006-05-19 20:17:34 richm%stanfordalumni.org Exp $"
#
CORE_DEPTH = ../../..
%: %.ksh
$(RM) $@
cp $< $@
chmod +x $@
DIRS = SUNWldapcsdk-tools
include Makefile.com
IREL = $(shell uname -r)
ifeq ($(MACH), sparc)
PKGARCH = sparcv9
endif
ifeq ($(MACH), i386)
PKGARCH = amd64
endif
PROTO = \
$(ROOT) \
$(ROOT)/usr \
$(ROOT)/usr/sfw \
$(ROOT)/usr/sfw/bin \
$(ROOT)/usr/sfw/bin/$(PKGARCH)
awk_pkginfo-$(MACH): bld_awk_pkginfo
./bld_awk_pkginfo -m $(MACH) -p "$(PRODUCT_VERSION)" -o $@ -v $(PRODUCT_VERSION)
#awk_pkginfo: bld_awk_pkginfo
# ./bld_awk_pkginfo -m $(MACH) -p "$(PRODUCT_VERSION)" -o $@ -v $(PRODUCT_VERSION)
all:: awk_pkginfo-$(MACH) $(PROTO)
publish: awk_pkginfo-$(MACH) $(PROTO)
+$(LOOP_OVER_DIRS)
clean clobber::
$(RM) awk_pkginfo-$(MACH) bld_awk_pkginfo
$(RM) -rf $(ROOT)
$(RM) -rf $(DIST)/bin/64
$(ROOT) $(ROOT)/%:
mkdir -p $@
$(ROOT)/usr/sfw/bin: $(ROOT)/usr/sfw
echo "dist=$(DIST)"
ifeq ($(MACH),i386)
ifneq ($(IREL),5.8)
ifneq ($(IREL),5.9)
$(LN) -sf $(CORE_DEPTH)/dist/$(OS_CONFIG)$(CPU_ARCH_TAG)$(COMPILER_TAG)_64$(OBJDIR_TAG).OBJ/bin $(DIST)/bin/$(PKGARCH)
endif
endif
endif
ifeq ($(MACH),sparc)
$(LN) -sf $(CORE_DEPTH)/dist/$(OS_CONFIG)$(CPU_ARCH_TAG)$(COMPILER_TAG)_64$(OBJDIR_TAG).OBJ/bin $(DIST)/bin/$(PKGARCH)
endif
$(LN) -sf $(CORE_DEPTH)/$(DIST)/bin $@

Просмотреть файл

@ -0,0 +1,84 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#ident "$Id: Makefile.targ,v 1.1 2006-05-19 20:17:34 richm%stanfordalumni.org Exp $"
#
MACH = $(shell mach)
IREL = $(shell uname -r)
pkginfo: pkginfo.tmpl ../awk_pkginfo-$(MACH)
$(RM) $@; nawk -f ../awk_pkginfo-$(MACH) $@.tmpl > $@
pkg: $(PKGARCHIVE)
ifeq ($(MACH),i386)
ifeq ($(IREL),5.8)
pkgmk -f prototype_i86pc -d $(PKGARCHIVE) -r $(ROOT) -o $(PACKAGE); $(RM) pkginfo
else
ifeq ($(IREL),5.9)
pkgmk -f prototype_i86pc -d $(PKGARCHIVE) -r $(ROOT) -o $(PACKAGE); $(RM) pkginfo
else
pkgmk -f prototype_i386 -d $(PKGARCHIVE) -r $(ROOT) -o $(PACKAGE); $(RM) pkginfo
endif
endif
else
pkgmk -f prototype_sparc -d $(PKGARCHIVE) -r $(ROOT) -o $(PACKAGE); $(RM) pkginfo
endif
$(PKGARCHIVE):
[ -d $(PKGARCHIVE) ] || mkdir -p $(PKGARCHIVE)
ifeq ($(USE_64),1)
# 64 bit build
$(DATAFILES):: %: ../common_files/%
$(RM) $@; cp ../common_files/$@_64bit $@
else
# 32 bit build
ifeq ($(OS_RELEASE),5.6)
$(DATAFILES):: %: ../common_files/%
$(RM) $@; cp ../common_files/$@_5_6 $@
else
$(DATAFILES):: %: ../common_files/%
$(RM) $@; cp ../common_files/$@ $@
endif
endif
$(MACHDATAFILES): %: ../common_files/%_$(MACH)
$(RM) $@; cp ../common_files/$@_$(MACH) $@
clobber clean::
-$(RM) pkginfo
.PHONY: pkg

Просмотреть файл

@ -0,0 +1,55 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This package information file defines software dependencies associated
# with the pkg. You can define three types of pkg dependencies with this file:
# P indicates a prerequisite for installation
# I indicates an incompatible package
# R indicates a reverse dependency
# <pkg.abbr> see pkginfo(4), PKG parameter
# <name> see pkginfo(4), NAME parameter
# <version> see pkginfo(4), VERSION parameter
# <arch> see pkginfo(4), ARCH parameter
# <type> <pkg.abbr> <name>
# (<arch>)<version>
# (<arch>)<version>
# ...
# <type> <pkg.abbr> <name>
# ...
P SUNWldapcsdk-libs Sun LDAP C SDK Libraries
P SUNWtls Netscape Security Services
P SUNWtlsd Netscape Security Services Development
P SUNWpr Netscape Portable Runtime
P SUNWprd Netscape Portable Runtime Development
P SUNWsasl Simple Authentication and Security Layer
P SUNWhea SunOS Header Files

Просмотреть файл

@ -0,0 +1,59 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This required package information file describes characteristics of the
# package, such as package abbreviation, full package name, package version,
# and package architecture.
#
PKG="SUNWldapcsdk-dev"
NAME="Sun LDAP C SDK Development"
ARCH="ISA"
VERSION="6.00,REV=0.0.0"
SUNW_PRODNAME="Sun LDAP C SDK Development"
SUNW_PRODVERS="LDAPCSDKVERS"
SUNW_PKGTYPE="usr"
MAXINST="1000"
CATEGORY="system"
DESC="Sun LDAP C SDK Development"
VENDOR="Sun Microsystems, Inc."
HOTLINE="Please contact your local service provider"
EMAIL=""
CLASSES="none"
BASEDIR=/
SUNW_PKGVERS="1.0"
#VSTOCK="<reserved by Release Engineering for package part #>"
#ISTATES="<developer defined>"
#RSTATES='<developer defined>'
#ULIMIT="<developer defined>"
#ORDER="<developer defined>"
#PSTAMP="<developer defined>"
#INTONLY="<developer defined>"

Просмотреть файл

@ -0,0 +1,102 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This required package information file contains a list of package contents.
# The 'pkgmk' command uses this file to identify the contents of a package
# and their location on the development machine when building the package.
# Can be created via a text editor or through use of the 'pkgproto' command.
#!search <pathname pathname ...> # where to find pkg objects
#!include <filename> # include another 'prototype' file
#!default <mode> <owner> <group> # default used if not specified on entry
#!<param>=<value> # puts parameter in pkg environment
# packaging files
i copyright
i pkginfo
i depend=pkgdepend
#
# source locations relative to the prototype file
#
d none usr 755 root sys
d none usr/include 755 root bin
d none usr/include/mps 755 root bin
f none usr/include/mps/disptmpl.h 644 root bin
f none usr/include/mps/lber.h 644 root bin
f none usr/include/mps/ldap-deprecated.h 644 root bin
f none usr/include/mps/ldap-extension.h 644 root bin
f none usr/include/mps/ldap-platform.h 644 root bin
f none usr/include/mps/ldap-standard.h 644 root bin
f none usr/include/mps/ldap-to-be-deprecated.h 644 root bin
f none usr/include/mps/ldap.h 644 root bin
f none usr/include/mps/ldap_ssl.h 644 root bin
f none usr/include/mps/ldappr.h 644 root bin
f none usr/include/mps/srchpref.h 644 root bin
d none usr/share 755 root sys
d none usr/share/ldapcsdk 755 root bin
d none usr/share/ldapcsdk/etc 755 root bin
f none usr/share/ldapcsdk/etc/ldapfilter.conf 644 root bin
f none usr/share/ldapcsdk/etc/ldapfriendly 644 root bin
f none usr/share/ldapcsdk/etc/ldapsearchprefs.conf 644 root bin
f none usr/share/ldapcsdk/etc/ldaptemplates.conf 644 root bin
d none usr/share/ldapcsdk/examples 755 root bin
f none usr/share/ldapcsdk/examples/README 644 root bin
f none usr/share/ldapcsdk/examples/Makefile 644 root bin
f none usr/share/ldapcsdk/examples/xmplflt.conf 644 root bin
f none usr/share/ldapcsdk/examples/examples.h 644 root bin
f none usr/share/ldapcsdk/examples/add.c 644 root bin
f none usr/share/ldapcsdk/examples/asearch.c 644 root bin
f none usr/share/ldapcsdk/examples/authzid.c 644 root bin
f none usr/share/ldapcsdk/examples/compare.c 644 root bin
f none usr/share/ldapcsdk/examples/crtfilt.c 644 root bin
f none usr/share/ldapcsdk/examples/csearch.c 644 root bin
f none usr/share/ldapcsdk/examples/del.c 644 root bin
f none usr/share/ldapcsdk/examples/effright.c 644 root bin
f none usr/share/ldapcsdk/examples/getattrs.c 644 root bin
f none usr/share/ldapcsdk/examples/getfilt.c 644 root bin
f none usr/share/ldapcsdk/examples/modattrs.c 644 root bin
f none usr/share/ldapcsdk/examples/modrdn.c 644 root bin
f none usr/share/ldapcsdk/examples/nsprio.c 644 root bin
f none usr/share/ldapcsdk/examples/ppolicy.c 644 root bin
f none usr/share/ldapcsdk/examples/psearch.c 644 root bin
f none usr/share/ldapcsdk/examples/pwdextop.c 644 root bin
f none usr/share/ldapcsdk/examples/pwdpolicy.c 644 root bin
f none usr/share/ldapcsdk/examples/rdentry.c 644 root bin
f none usr/share/ldapcsdk/examples/realattr.c 644 root bin
f none usr/share/ldapcsdk/examples/search.c 644 root bin
f none usr/share/ldapcsdk/examples/srvrsort.c 644 root bin
f none usr/share/ldapcsdk/examples/ssearch.c 644 root bin
f none usr/share/ldapcsdk/examples/ssnoauth.c 644 root bin
f none usr/share/ldapcsdk/examples/starttls.c 644 root bin
f none usr/share/ldapcsdk/examples/userstatus.c 644 root bin
f none usr/share/ldapcsdk/examples/virtattr.c 644 root bin
f none usr/share/ldapcsdk/examples/whoami.c 644 root bin

Просмотреть файл

@ -0,0 +1,57 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This required package information file contains a list of package contents.
# The 'pkgmk' command uses this file to identify the contents of a package
# and their location on the development machine when building the package.
# Can be created via a text editor or through use of the 'pkgproto' command.
#!search <pathname pathname ...> # where to find pkg objects
#!include <filename> # include another 'prototype' file
#!default <mode> <owner> <group> # default used if not specified on entry
#!<param>=<value> # puts parameter in pkg environment
#
# Include ISA independent files (prototype_com)
#
!include prototype_com
#
#
#
# List files which are SPARC specific here
#
# source locations relative to the prototype file
#
#
# SUNWldk

Просмотреть файл

@ -0,0 +1,51 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This required package information file contains a list of package contents.
# The 'pkgmk' command uses this file to identify the contents of a package
# and their location on the development machine when building the package.
# Can be created via a text editor or through use of the 'pkgproto' command.
#!search <pathname pathname ...> # where to find pkg objects
#!include <filename> # include another 'prototype' file
#!default <mode> <owner> <group> # default used if not specified on entry
#!<param>=<value> # puts parameter in pkg environment
# packaging files
#i copyright
#i pkginfo
#i depend=pkgdepend
#
# source locations relative to the prototype file
#
!include prototype_com

Просмотреть файл

@ -0,0 +1,57 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This required package information file contains a list of package contents.
# The 'pkgmk' command uses this file to identify the contents of a package
# and their location on the development machine when building the package.
# Can be created via a text editor or through use of the 'pkgproto' command.
#!search <pathname pathname ...> # where to find pkg objects
#!include <filename> # include another 'prototype' file
#!default <mode> <owner> <group> # default used if not specified on entry
#!<param>=<value> # puts parameter in pkg environment
#
# Include ISA independent files (prototype_com)
#
!include prototype_com
#
#
#
# List files which are SPARC specific here
#
# source locations relative to the prototype file
#
#
# SUNWldk

Просмотреть файл

@ -0,0 +1,51 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This package information file defines software dependencies associated
# with the pkg. You can define three types of pkg dependencies with this file:
# P indicates a prerequisite for installation
# I indicates an incompatible package
# R indicates a reverse dependency
# <pkg.abbr> see pkginfo(4), PKG parameter
# <name> see pkginfo(4), NAME parameter
# <version> see pkginfo(4), VERSION parameter
# <arch> see pkginfo(4), ARCH parameter
# <type> <pkg.abbr> <name>
# (<arch>)<version>
# (<arch>)<version>
# ...
# <type> <pkg.abbr> <name>
# ...
P SUNWtls Netscape Security Services
P SUNWpr Netscape Portable Runtime
P SUNWsasl Simple Authentication and Security Layer

Просмотреть файл

@ -0,0 +1,59 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This required package information file describes characteristics of the
# package, such as package abbreviation, full package name, package version,
# and package architecture.
#
PKG="SUNWldapcsdk-libs"
NAME="Sun LDAP C SDK Libraries"
ARCH="ISA"
VERSION="6.00,REV=0.0.0"
SUNW_PRODNAME="Sun LDAP C SDK Libraries"
SUNW_PRODVERS="LDAPCSDKVERS"
SUNW_PKGTYPE="usr"
MAXINST="1000"
CATEGORY="system"
DESC="Sun LDAP C SDK Libraries"
VENDOR="Sun Microsystems, Inc."
HOTLINE="Please contact your local service provider"
EMAIL=""
CLASSES="none"
BASEDIR=/
SUNW_PKGVERS="1.0"
#VSTOCK="<reserved by Release Engineering for package part #>"
#ISTATES="<developer defined>"
#RSTATES='<developer defined>'
#ULIMIT="<developer defined>"
#ORDER="<developer defined>"
#PSTAMP="<developer defined>"
#INTONLY="<developer defined>"

Просмотреть файл

@ -0,0 +1,55 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This required package information file contains a list of package contents.
# The 'pkgmk' command uses this file to identify the contents of a package
# and their location on the development machine when building the package.
# Can be created via a text editor or through use of the 'pkgproto' command.
#!search <pathname pathname ...> # where to find pkg objects
#!include <filename> # include another 'prototype' file
#!default <mode> <owner> <group> # default used if not specified on entry
#!<param>=<value> # puts parameter in pkg environment
# packaging files
i copyright
i pkginfo
i depend=pkgdepend
#
# source locations relative to the prototype file
#
d none usr 755 root sys
d none usr/lib 755 root bin
d none usr/lib/mps 755 root bin
f none usr/lib/mps/libldap60.so 755 root bin
f none usr/lib/mps/libprldap60.so 755 root bin
f none usr/lib/mps/libssldap60.so 755 root bin

Просмотреть файл

@ -0,0 +1,63 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This required package information file contains a list of package contents.
# The 'pkgmk' command uses this file to identify the contents of a package
# and their location on the development machine when building the package.
# Can be created via a text editor or through use of the 'pkgproto' command.
#!search <pathname pathname ...> # where to find pkg objects
#!include <filename> # include another 'prototype' file
#!default <mode> <owner> <group> # default used if not specified on entry
#!<param>=<value> # puts parameter in pkg environment
#
# Include ISA independent files (prototype_com)
#
!include prototype_com
d none usr/lib/mps/amd64 755 root bin
s none usr/lib/mps/64=amd64
f none usr/lib/mps/amd64/libldap60.so 755 root bin
f none usr/lib/mps/amd64/libprldap60.so 755 root bin
f none usr/lib/mps/amd64/libssldap60.so 755 root bin
#
#
#
# List files which are SPARC specific here
#
# source locations relative to the prototype file
#
#
# SUNWldk

Просмотреть файл

@ -0,0 +1,51 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This required package information file contains a list of package contents.
# The 'pkgmk' command uses this file to identify the contents of a package
# and their location on the development machine when building the package.
# Can be created via a text editor or through use of the 'pkgproto' command.
#!search <pathname pathname ...> # where to find pkg objects
#!include <filename> # include another 'prototype' file
#!default <mode> <owner> <group> # default used if not specified on entry
#!<param>=<value> # puts parameter in pkg environment
# packaging files
#i copyright
#i pkginfo
#i depend=pkgdepend
#
# source locations relative to the prototype file
#
!include prototype_com

Просмотреть файл

@ -0,0 +1,63 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This required package information file contains a list of package contents.
# The 'pkgmk' command uses this file to identify the contents of a package
# and their location on the development machine when building the package.
# Can be created via a text editor or through use of the 'pkgproto' command.
#!search <pathname pathname ...> # where to find pkg objects
#!include <filename> # include another 'prototype' file
#!default <mode> <owner> <group> # default used if not specified on entry
#!<param>=<value> # puts parameter in pkg environment
#
# Include ISA independent files (prototype_com)
#
!include prototype_com
d none usr/lib/mps/sparcv9 755 root bin
s none usr/lib/mps/64=sparcv9
f none usr/lib/mps/sparcv9/libldap60.so 755 root bin
f none usr/lib/mps/sparcv9/libprldap60.so 755 root bin
f none usr/lib/mps/sparcv9/libssldap60.so 755 root bin
#
#
#
# List files which are SPARC specific here
#
# source locations relative to the prototype file
#
#
# SUNWldk

Просмотреть файл

@ -0,0 +1,53 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This package information file defines software dependencies associated
# with the pkg. You can define three types of pkg dependencies with this file:
# P indicates a prerequisite for installation
# I indicates an incompatible package
# R indicates a reverse dependency
# <pkg.abbr> see pkginfo(4), PKG parameter
# <name> see pkginfo(4), NAME parameter
# <version> see pkginfo(4), VERSION parameter
# <arch> see pkginfo(4), ARCH parameter
# <type> <pkg.abbr> <name>
# (<arch>)<version>
# (<arch>)<version>
# ...
# <type> <pkg.abbr> <name>
# ...
P SUNWldapcsdk-libs Sun LDAP C SDK Libraries
P SUNWtls Netscape Security Services
P SUNWpr Netscape Portable Runtime
P SUNWsasl Simple Authentication and Security Layer
P SUNWicu International Components for Unicode User Files

Просмотреть файл

@ -0,0 +1,59 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This required package information file describes characteristics of the
# package, such as package abbreviation, full package name, package version,
# and package architecture.
#
PKG="SUNWldapcsdk-tools"
NAME="Sun LDAP C SDK Tools"
ARCH="ISA"
VERSION="6.00,REV=0.0.0"
SUNW_PRODNAME="Sun LDAP C SDK Tools"
SUNW_PRODVERS="LDAPCSDKVERS"
SUNW_PKGTYPE="usr"
MAXINST="1000"
CATEGORY="system"
DESC="Sun LDAP C SDK Tools"
VENDOR="Sun Microsystems, Inc."
HOTLINE="Please contact your local service provider"
EMAIL=""
CLASSES="none"
BASEDIR=/
SUNW_PKGVERS="1.0"
#VSTOCK="<reserved by Release Engineering for package part #>"
#ISTATES="<developer defined>"
#RSTATES='<developer defined>'
#ULIMIT="<developer defined>"
#ORDER="<developer defined>"
#PSTAMP="<developer defined>"
#INTONLY="<developer defined>"

Просмотреть файл

@ -0,0 +1,58 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This required package information file contains a list of package contents.
# The 'pkgmk' command uses this file to identify the contents of a package
# and their location on the development machine when building the package.
# Can be created via a text editor or through use of the 'pkgproto' command.
#!search <pathname pathname ...> # where to find pkg objects
#!include <filename> # include another 'prototype' file
#!default <mode> <owner> <group> # default used if not specified on entry
#!<param>=<value> # puts parameter in pkg environment
# packaging files
i copyright
i pkginfo
i depend=pkgdepend
#
# source locations relative to the prototype file
#
d none usr 755 root sys
d none usr/sfw 755 root bin
d none usr/sfw/bin 755 root bin
f none usr/sfw/bin/ldapcmp 755 root bin
f none usr/sfw/bin/ldapcompare 755 root bin
f none usr/sfw/bin/ldapdelete 755 root bin
f none usr/sfw/bin/ldapmodify 755 root bin
f none usr/sfw/bin/ldapsearch 755 root bin
f none usr/sfw/bin/ldappasswd 755 root bin

Просмотреть файл

@ -0,0 +1,66 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This required package information file contains a list of package contents.
# The 'pkgmk' command uses this file to identify the contents of a package
# and their location on the development machine when building the package.
# Can be created via a text editor or through use of the 'pkgproto' command.
#!search <pathname pathname ...> # where to find pkg objects
#!include <filename> # include another 'prototype' file
#!default <mode> <owner> <group> # default used if not specified on entry
#!<param>=<value> # puts parameter in pkg environment
#
# Include ISA independent files (prototype_com)
#
!include prototype_com
d none usr/sfw/bin/amd64 755 root bin
s none usr/sfw/bin/64=amd64
f none usr/sfw/bin/amd64/ldapcmp 755 root bin
f none usr/sfw/bin/amd64/ldapcompare 755 root bin
f none usr/sfw/bin/amd64/ldapdelete 755 root bin
f none usr/sfw/bin/amd64/ldapmodify 755 root bin
f none usr/sfw/bin/amd64/ldapsearch 755 root bin
f none usr/sfw/bin/amd64/ldappasswd 755 root bin
#
#
#
# List files which are SPARC specific here
#
# source locations relative to the prototype file
#
#
# SUNWldk

Просмотреть файл

@ -0,0 +1,51 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This required package information file contains a list of package contents.
# The 'pkgmk' command uses this file to identify the contents of a package
# and their location on the development machine when building the package.
# Can be created via a text editor or through use of the 'pkgproto' command.
#!search <pathname pathname ...> # where to find pkg objects
#!include <filename> # include another 'prototype' file
#!default <mode> <owner> <group> # default used if not specified on entry
#!<param>=<value> # puts parameter in pkg environment
# packaging files
#i copyright
#i pkginfo
#i depend=pkgdepend
#
# source locations relative to the prototype file
#
!include prototype_com

Просмотреть файл

@ -0,0 +1,66 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This required package information file contains a list of package contents.
# The 'pkgmk' command uses this file to identify the contents of a package
# and their location on the development machine when building the package.
# Can be created via a text editor or through use of the 'pkgproto' command.
#!search <pathname pathname ...> # where to find pkg objects
#!include <filename> # include another 'prototype' file
#!default <mode> <owner> <group> # default used if not specified on entry
#!<param>=<value> # puts parameter in pkg environment
#
# Include ISA independent files (prototype_com)
#
!include prototype_com
d none usr/sfw/bin/sparcv9 755 root bin
s none usr/sfw/bin/64=sparcv9
f none usr/sfw/bin/sparcv9/ldapcmp 755 root bin
f none usr/sfw/bin/sparcv9/ldapcompare 755 root bin
f none usr/sfw/bin/sparcv9/ldapdelete 755 root bin
f none usr/sfw/bin/sparcv9/ldapmodify 755 root bin
f none usr/sfw/bin/sparcv9/ldapsearch 755 root bin
f none usr/sfw/bin/sparcv9/ldappasswd 755 root bin
#
#
#
# List files which are SPARC specific here
#
# source locations relative to the prototype file
#
#
# SUNWldk

Просмотреть файл

@ -0,0 +1,52 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
/VERSION=[^=]*$/ {
sub(/\=[^=]*$/,"=\"2005.09.27.18.14\"")
print
next
}
/VERSION=[^=]*=.*$/ {
sub(/\=[^=]*$/,"=2005.09.27.18.14\"")
sub(/LDAPCSDKVERS/,"6.00")
print
next
}
/^SUNW_PRODVERS=/ {
printf "SUNW_PRODVERS=\"%s\"\n", "6.00"
next
}
/ARCH=\"ISA\"/ {
printf "ARCH=\"%s\"\n", "i386"
next
}
{ print }

Просмотреть файл

@ -0,0 +1,52 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
/VERSION=[^=]*$/ {
sub(/\=[^=]*$/,"=\"2005.09.27.18.14\"")
print
next
}
/VERSION=[^=]*=.*$/ {
sub(/\=[^=]*$/,"=2005.09.27.18.14\"")
sub(/LDAPCSDKVERS/,"6.00")
print
next
}
/^SUNW_PRODVERS=/ {
printf "SUNW_PRODVERS=\"%s\"\n", "6.00"
next
}
/ARCH=\"ISA\"/ {
printf "ARCH=\"%s\"\n", "sparc"
next
}
{ print }

Просмотреть файл

@ -0,0 +1,141 @@
#!/usr/bin/ksh -p
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#ident "$Id: bld_awk_pkginfo,v 1.1 2006-05-19 20:17:34 richm%stanfordalumni.org Exp $"
#
# Simple script which builds the awk_pkginfo awk script. This awk script
# is used to convert the pkginfo.tmpl files into pkginfo files
# for the build.
#
usage()
{
cat <<-EOF
usage: bld_awk_pkginfo -p <prodver> -m <mach> -o <awk_script> [-v <version>]
EOF
}
#
# Awk strings
#
# two VERSION patterns: one for Dewey decimal, one for Dewey plus ,REV=n
# the first has one '=' the second has two or more '='
#
VERSION1="VERSION=[^=]*$"
VERSION2="VERSION=[^=]*=.*$"
PRODVERS="^SUNW_PRODVERS="
ARCH='ARCH=\"ISA\"'
#
# parse command line
#
mach=""
prodver=""
awk_script=""
version="JSSVERS"
while getopts o:p:m:v: c
do
case $c in
o)
awk_script=$OPTARG
;;
m)
mach=$OPTARG
;;
p)
prodver=$OPTARG
;;
v)
version=$OPTARG
;;
\?)
usage
exit 1
;;
esac
done
if [[ ( -z $prodver ) || ( -z $mach ) || ( -z $awk_script ) ]]
then
usage
exit 1
fi
if [[ -f $awk_script ]]
then
rm -f $awk_script
fi
#
# Build REV= field based on date
#
# rev=$(date "+%Y.%m.%d.%H.%M")
if [ $mach = "sparc" ]
then
rev="2005.09.27.18.14"
else
if [ $mach = "i386" ]
then
rev="2005.09.27.18.14"
fi
fi
#
# Build awk script which will process all the
# pkginfo.tmpl files.
#
# the first VERSION pattern is replaced with a leading quotation mark
#
rm -f $awk_script
cat << EOF > $awk_script
/$VERSION1/ {
sub(/\=[^=]*$/,"=\"$rev\"")
print
next
}
/$VERSION2/ {
sub(/\=[^=]*$/,"=$rev\"")
sub(/LDAPCSDKVERS/,"$version")
print
next
}
/$PRODVERS/ {
printf "SUNW_PRODVERS=\"%s\"\n", "$prodver"
next
}
/$ARCH/ {
printf "ARCH=\"%s\"\n", "$mach"
next
}
{ print }
EOF

Просмотреть файл

@ -0,0 +1,141 @@
#!/usr/bin/ksh -p
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
#ident "$Id: bld_awk_pkginfo.ksh,v 1.1 2006-05-19 20:17:34 richm%stanfordalumni.org Exp $"
#
# Simple script which builds the awk_pkginfo awk script. This awk script
# is used to convert the pkginfo.tmpl files into pkginfo files
# for the build.
#
usage()
{
cat <<-EOF
usage: bld_awk_pkginfo -p <prodver> -m <mach> -o <awk_script> [-v <version>]
EOF
}
#
# Awk strings
#
# two VERSION patterns: one for Dewey decimal, one for Dewey plus ,REV=n
# the first has one '=' the second has two or more '='
#
VERSION1="VERSION=[^=]*$"
VERSION2="VERSION=[^=]*=.*$"
PRODVERS="^SUNW_PRODVERS="
ARCH='ARCH=\"ISA\"'
#
# parse command line
#
mach=""
prodver=""
awk_script=""
version="JSSVERS"
while getopts o:p:m:v: c
do
case $c in
o)
awk_script=$OPTARG
;;
m)
mach=$OPTARG
;;
p)
prodver=$OPTARG
;;
v)
version=$OPTARG
;;
\?)
usage
exit 1
;;
esac
done
if [[ ( -z $prodver ) || ( -z $mach ) || ( -z $awk_script ) ]]
then
usage
exit 1
fi
if [[ -f $awk_script ]]
then
rm -f $awk_script
fi
#
# Build REV= field based on date
#
if [ $mach = "sparc" ]
then
rev="2005.11.29.16.11"
else
if [ $mach = "i386" ]
then
rev="2005.11.29.16.11"
fi
fi
rev=$(date "+%Y.%m.%d.%H.%M")
#
# Build awk script which will process all the
# pkginfo.tmpl files.
#
# the first VERSION pattern is replaced with a leading quotation mark
#
rm -f $awk_script
cat << EOF > $awk_script
/$VERSION1/ {
sub(/\=[^=]*$/,"=\"$rev\"")
print
next
}
/$VERSION2/ {
sub(/\=[^=]*$/,"=$rev\"")
sub(/LDAPCSDKVERS/,"$version")
print
next
}
/$PRODVERS/ {
printf "SUNW_PRODVERS=\"%s\"\n", "$prodver"
next
}
/$ARCH/ {
printf "ARCH=\"%s\"\n", "$mach"
next
}
{ print }
EOF

Просмотреть файл

@ -0,0 +1,50 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This package information file defines software dependencies associated
# with the pkg. You can define three types of pkg dependencies with this file:
# P indicates a prerequisite for installation
# I indicates an incompatible package
# R indicates a reverse dependency
# <pkg.abbr> see pkginfo(4), PKG parameter
# <name> see pkginfo(4), NAME parameter
# <version> see pkginfo(4), VERSION parameter
# <arch> see pkginfo(4), ARCH parameter
# <type> <pkg.abbr> <name>
# (<arch>)<version>
# (<arch>)<version>
# ...
# <type> <pkg.abbr> <name>
# ...
P SUNWtls Netscape Security Services
P SUNWsasl Simple Authentication and Security Layer

Просмотреть файл

@ -0,0 +1,49 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This package information file defines software dependencies associated
# with the pkg. You can define three types of pkg dependencies with this file:
# P indicates a prerequisite for installation
# I indicates an incompatible package
# R indicates a reverse dependency
# <pkg.abbr> see pkginfo(4), PKG parameter
# <name> see pkginfo(4), NAME parameter
# <version> see pkginfo(4), VERSION parameter
# <arch> see pkginfo(4), ARCH parameter
# <type> <pkg.abbr> <name>
# (<arch>)<version>
# (<arch>)<version>
# ...
# <type> <pkg.abbr> <name>
# ...
P SUNWtls Netscape Security Services

Просмотреть файл

@ -0,0 +1,50 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Sun LDAP C SDK.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun Microsystems, Inc are Copyright
# (C) 2005 Sun Microsystems, Inc. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL"), in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your
# version of this file only under the terms of the GPL and not to
# allow others to use your version of this file under the MPL,
# indicate your decision by deleting the provisions above and
# replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient
# may use your version of this file under either the MPL or the
# GPL.
#
# This package information file defines software dependencies associated
# with the pkg. You can define three types of pkg dependencies with this file:
# P indicates a prerequisite for installation
# I indicates an incompatible package
# R indicates a reverse dependency
# <pkg.abbr> see pkginfo(4), PKG parameter
# <name> see pkginfo(4), NAME parameter
# <version> see pkginfo(4), VERSION parameter
# <arch> see pkginfo(4), ARCH parameter
# <type> <pkg.abbr> <name>
# (<arch>)<version>
# (<arch>)<version>
# ...
# <type> <pkg.abbr> <name>
# ...
P SUNWtlsx Network Security Services (64-bit)
P SUNWsaslx Simple Authentication and Security Layer (64-bit)