LDAPCSDKBinaryPackaging: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
== Layout of Binary Packages ==
== Layout of Binary Packages ==
The packaging will be as follows.  Names with a "/" suffix are directories.  All other names are file names.  A "#" introduces an in-line comment.
The packaging will be as follows.  Names with a "/" suffix are directories.  All other names are file names.  A "#" introduces an in-line comment.
=== Proposal 1 - single, inclusive include, lib, etc. directories ===


  Following <Proposal 1>, sample implementation, Solaris 9 debug build:
ldapcsdk-6.02-SunOS5.9_DBG.tgz
ldapcsdk-6.02-SunOS5.9_DBG/
ldapcsdk-6.02-SunOS5.9_DBG/
ldapcsdk-6.02-SunOS5.9_DBG/lib/
ldapcsdk-6.02-SunOS5.9_DBG/lib/
Line 13: Line 9:
ldapcsdk-6.02-SunOS5.9_DBG/lib/libprldap60.so
ldapcsdk-6.02-SunOS5.9_DBG/lib/libprldap60.so
ldapcsdk-6.02-SunOS5.9_DBG/lib/libldif60.so
ldapcsdk-6.02-SunOS5.9_DBG/lib/libldif60.so
ldapcsdk-6.02-SunOS5.9_DBG/lib/libsvrcore.so
ldapcsdk-6.02-SunOS5.9_DBG/lib/libnss3.so
ldapcsdk-6.02-SunOS5.9_DBG/lib/libnss3.so
ldapcsdk-6.02-SunOS5.9_DBG/lib/libssl3.so
ldapcsdk-6.02-SunOS5.9_DBG/lib/libssl3.so
Line 21: Line 18:
ldapcsdk-6.02-SunOS5.9_DBG/lib/libnspr4.so
ldapcsdk-6.02-SunOS5.9_DBG/lib/libnspr4.so
ldapcsdk-6.02-SunOS5.9_DBG/lib/libsasl2.so
ldapcsdk-6.02-SunOS5.9_DBG/lib/libsasl2.so
ldapcsdk-6.02-SunOS5.9_DBG/lib/libsvrcore.so
ldapcsdk-6.02-SunOS5.9_DBG/lib/libanonymous.so
ldapcsdk-6.02-SunOS5.9_DBG/lib/libanonymous.so
ldapcsdk-6.02-SunOS5.9_DBG/lib/libcrammd5.so
ldapcsdk-6.02-SunOS5.9_DBG/lib/libcrammd5.so
Line 45: Line 41:
ldapcsdk-6.02-SunOS5.9_DBG/include/lber.h
ldapcsdk-6.02-SunOS5.9_DBG/include/lber.h
ldapcsdk-6.02-SunOS5.9_DBG/include/ldap.h
ldapcsdk-6.02-SunOS5.9_DBG/include/ldap.h
ldapcsdk-6.02-SunOS5.9_DBG/include/ldif.h
ldapcsdk-6.02-SunOS5.9_DBG/include/ldap-standard.h
ldapcsdk-6.02-SunOS5.9_DBG/include/ldap-standard.h
ldapcsdk-6.02-SunOS5.9_DBG/include/ldap-platform.h
ldapcsdk-6.02-SunOS5.9_DBG/include/ldap-platform.h
Line 53: Line 50:
ldapcsdk-6.02-SunOS5.9_DBG/include/ldappr.h
ldapcsdk-6.02-SunOS5.9_DBG/include/ldappr.h
ldapcsdk-6.02-SunOS5.9_DBG/include/srchpref.h
ldapcsdk-6.02-SunOS5.9_DBG/include/srchpref.h
ldapcsdk-6.02-SunOS5.9_DBG/include/svrcore.h
ldapcsdk-6.02-SunOS5.9_DBG/include/nspr.h
ldapcsdk-6.02-SunOS5.9_DBG/include/nspr.h
ldapcsdk-6.02-SunOS5.9_DBG/include/base64.h
ldapcsdk-6.02-SunOS5.9_DBG/include/base64.h
Line 236: Line 234:
   like this:
   like this:
   
   
   gmake pkgLdapSDK [HAVE_SASL=1] [USE_64=1] [LDAP_DIST=] [SEC_DIST=] [SASL_DIST=]
   gmake pkgLdapSDK [HAVE_SASL=1] [USE_64=1] [LDAP_DIST=] [SEC_DIST=] [SVRCORE_DIST=] [SASL_DIST=]
   
   
   there is bunch of other vars inside that can be tweaked to suit the build,
   there is bunch of other vars inside that can be tweaked to suit the build,
Line 260: Line 258:
*: ldap.h
*: ldap.h
*: ... # other ldap headers
*: ... # other ldap headers
=== Proposal 2 - include, lib, etc. directories for each component ===
The top level directory will contain a subdirectory for each component.  The directory name will be the name followed by a "-" followed by the version.  For example, for NSPR version 4.6.4, the directory name would be '''nspr-4.6.4'''.  Under each component directory will be a directory called ''lib'' and a directory called ''include''.  It is intended that a Makefile could refer to these directly e.g. ''-L/path/to/nspr-4.6.4/lib'' and ''-I/path/to/nspr-4.6.4/include''.  In addition, each component directory may have additional directories ''bin'' for executables and other binaries; ''tools'' for executable command line utilities and scripts; ''man'' and ''doc'' for man pages and documentation; and others.
toplevel
* nspr-<version>/ # e.g. nspr-4.6.4/
** lib/
** include/
* nss-<version>/ # e.g. nss-3.11.4/
** lib/
** include/
** bin/
* svrcore-<version>/ # e.g. svrcore-4.0.3/
** lib/
** include/
* mozldap-<version>/ # e.g. mozldap-6.1.0/
** lib/
** include/
** tools/
** examples/
** docs/
54

edits