From caa494c6b935747e8151d44b65a300252d318493 Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Wed, 30 Nov 2005 00:05:36 +0000 Subject: [PATCH] Fix 134096 --- CASA.changes | 161 ++++++++++---------- c_micasadk/sscs_ndk.c | 2 +- include/micasa.h | 4 +- shsrc/lshsrc/Readme.txt | 98 ++++++------ shsrc/lshsrc/mk-cachetst-dl | 46 +++--- shsrc/lshsrc/mk-cachetst-ol | 44 +++--- shsrc/lshsrc/mk-casa-rpmpkg | 262 ++++++++++++++++----------------- shsrc/lshsrc/mk-casa-tarpkg | 46 +++--- shsrc/lshsrc/mk-dirs | 64 ++++---- shsrc/lshsrc/mk-jmicasa-dl | 110 +++++++------- shsrc/lshsrc/mk-jmicasa-ol | 110 +++++++------- shsrc/lshsrc/mk-loginpam-dl | 66 ++++----- shsrc/lshsrc/mk-loginpam-ol | 66 ++++----- shsrc/lshsrc/mk-micasacache-dl | 68 ++++----- shsrc/lshsrc/mk-micasacache-ol | 62 ++++---- shsrc/lshsrc/mk-micasad-dl | 62 ++++---- shsrc/lshsrc/mk-micasad-ol | 66 ++++----- shsrc/lshsrc/mk-micasadk-dl | 70 ++++----- shsrc/lshsrc/mk-micasadk-ol | 74 +++++----- shsrc/lshsrc/mk-micasawrap-ol | 62 ++++---- shsrc/lshsrc/mk-tstcases-dl | 52 +++---- shsrc/lshsrc/mk-tstcases-ol | 54 +++---- shsrc/lshsrc/rm-dirs | 18 +-- 23 files changed, 836 insertions(+), 831 deletions(-) diff --git a/CASA.changes b/CASA.changes index 1b9d9a65..e99f1218 100644 --- a/CASA.changes +++ b/CASA.changes @@ -1,78 +1,83 @@ -------------------------------------------------------------------- -Wed Nov 24 14:09:19 MST 2005 - jnorman@novell.com - -- Bug fixes: 135387, 135393 - -------------------------------------------------------------------- - -Wed Nov 23 07:18:23 MST 2005 - cmashayekhi@novell.com - -- c_gui/CASAManager.sh was fixed to support lib64 directory. -- c_micasad/startup/micasad.sh was fixed to support lib64. - -------------------------------------------------------------------- -Wed Nov 23 16:09:19 MST 2005 - jnorman@novell.com - -- changed PAM Capture to find libmicasa in path - -------------------------------------------------------------------- -Wed Nov 18 14:09:19 MST 2005 - jnorman@novell.com - -- Change GUI dependency from gtk2-devel to gtk2. - -------------------------------------------------------------------- -Wed Nov 16 13:42:19 MST 2005 - jnorman@novell.com - -- Bug 133479. Clear Native information when destroying secrets or refreshing - -------------------------------------------------------------------- -Tue Nov 15 14:54:19 MST 2005 - jnorman@novell.com - -- Added gtk2-devel dependency to CASA-gui rpm - -------------------------------------------------------------------- -Mon Nov 14 15:56:59 MST 2005 - cmashayekhi@novell.com - -- Bug 133705 having to do with licenses in the source files - was fixed. -- CASA.spec was modified to accomodate for auto build scripts. -------------------------------------------------------------------- -Fri Nov 11 08:26:50 MST 2005 - jnorman@novell.com - -- Added help files, and code to launch help files to GUI - -------------------------------------------------------------------- -Thu Nov 10 12:32:38 MST 2005 - jnorman@novell.com - -- Replaced changes.log with CASA.changes in the src tree to be - consistent with autobuild - -------------------------------------------------------------------- -Mon Nov 7 16:44:00 MST 2005 - cameron@novell.com - -- CASA.spec and versioning number was modified to support build - number as a part of the rpm version. -- lib*.so versioning was changed to support linux format versioning - numbers. CASA libs are at 1.1.1 now. - - Build scripts were modified to support $RPM_OPT_FLAGS. - - Added persistence without desktop credentials. - - Bug 130336 -- resevered escaped chars was fixed. - - Bug 130518 -- invalid param exception handling was - fixed. - - Support for extended ascii and double byte chars in - GUI was added. - - Finalized GUI cosmetic changes. - ----------------------------------------------------------------- -Thu Oct 27 11:40:20 MDT 2005 - cmashayekhi@novell.com --The image version to 1.5.0 - Files: - - Work area was cleaned up for the final build. - - CASA.spec was modified to requirement. - - Minor bug fixes were applied. ----------------------------------------------------------------- -Thu Oct 19 14:46:33 MDT 2005 - cmashayekhi@novell.com --The image version to 1.5.0 - Files: - - Moving from version 1.0.0 to 1.5.0 as per PRD. ----------------------------------------------------------------- +------------------------------------------------------------------- +Tue Nov 29 17:01:09 MST 2005 - jnorman@novell.com + +- Bug: 134096 Fix CASA gui for 64 bit + +------------------------------------------------------------------- +Wed Nov 24 14:09:19 MST 2005 - jnorman@novell.com + +- Bug fixes: 135387, 135393 + +------------------------------------------------------------------- + +Wed Nov 23 07:18:23 MST 2005 - cmashayekhi@novell.com + +- c_gui/CASAManager.sh was fixed to support lib64 directory. +- c_micasad/startup/micasad.sh was fixed to support lib64. + +------------------------------------------------------------------- +Wed Nov 23 16:09:19 MST 2005 - jnorman@novell.com + +- changed PAM Capture to find libmicasa in path + +------------------------------------------------------------------- +Wed Nov 18 14:09:19 MST 2005 - jnorman@novell.com + +- Change GUI dependency from gtk2-devel to gtk2. + +------------------------------------------------------------------- +Wed Nov 16 13:42:19 MST 2005 - jnorman@novell.com + +- Bug 133479. Clear Native information when destroying secrets or refreshing + +------------------------------------------------------------------- +Tue Nov 15 14:54:19 MST 2005 - jnorman@novell.com + +- Added gtk2-devel dependency to CASA-gui rpm + +------------------------------------------------------------------- +Mon Nov 14 15:56:59 MST 2005 - cmashayekhi@novell.com + +- Bug 133705 having to do with licenses in the source files + was fixed. +- CASA.spec was modified to accomodate for auto build scripts. +------------------------------------------------------------------- +Fri Nov 11 08:26:50 MST 2005 - jnorman@novell.com + +- Added help files, and code to launch help files to GUI + +------------------------------------------------------------------- +Thu Nov 10 12:32:38 MST 2005 - jnorman@novell.com + +- Replaced changes.log with CASA.changes in the src tree to be + consistent with autobuild + +------------------------------------------------------------------- +Mon Nov 7 16:44:00 MST 2005 - cameron@novell.com + +- CASA.spec and versioning number was modified to support build + number as a part of the rpm version. +- lib*.so versioning was changed to support linux format versioning + numbers. CASA libs are at 1.1.1 now. + - Build scripts were modified to support $RPM_OPT_FLAGS. + - Added persistence without desktop credentials. + - Bug 130336 -- resevered escaped chars was fixed. + - Bug 130518 -- invalid param exception handling was + fixed. + - Support for extended ascii and double byte chars in + GUI was added. + - Finalized GUI cosmetic changes. + +---------------------------------------------------------------- +Thu Oct 27 11:40:20 MDT 2005 - cmashayekhi@novell.com +-The image version to 1.5.0 + Files: + - Work area was cleaned up for the final build. + - CASA.spec was modified to requirement. + - Minor bug fixes were applied. +---------------------------------------------------------------- +Thu Oct 19 14:46:33 MDT 2005 - cmashayekhi@novell.com +-The image version to 1.5.0 + Files: + - Moving from version 1.0.0 to 1.5.0 as per PRD. +---------------------------------------------------------------- diff --git a/c_micasadk/sscs_ndk.c b/c_micasadk/sscs_ndk.c index 24572365..6829eaac 100644 --- a/c_micasadk/sscs_ndk.c +++ b/c_micasadk/sscs_ndk.c @@ -768,7 +768,7 @@ miCASAOpenSecretStoreCache if((ssid->ssName) && (sscs_Utf8StrSize(ssid->ssName)) == 0) { // set to default - sscs_Utf8Strcpy(ssid->ssName, SSCS_DEFAULT_SECRETSTORE_ID); + // sscs_Utf8Strcpy(ssid->ssName, SSCS_DEFAULT_SECRETSTORE_ID); } ssid->version = NSSCS_VERSION_NUMBER; diff --git a/include/micasa.h b/include/micasa.h index d465a95a..3e7095d1 100644 --- a/include/micasa.h +++ b/include/micasa.h @@ -214,8 +214,8 @@ static SS_UTF8_T BINARY_DELIMITER[] = {"="}; typedef struct _sscs_password { - unsigned long pwordType; - unsigned long pwordLen; // enhanced protection len & pword to set + uint32_t pwordType; + uint32_t pwordLen; // enhanced protection len & pword to set SS_UTF8_T pword[NSSCS_MAX_PWORD_LEN]; // * should be passed in # of chars } SSCS_PASSWORD_T; diff --git a/shsrc/lshsrc/Readme.txt b/shsrc/lshsrc/Readme.txt index e742a96a..f4687619 100644 --- a/shsrc/lshsrc/Readme.txt +++ b/shsrc/lshsrc/Readme.txt @@ -1,49 +1,49 @@ -Make direcotry for Windows client and server. -Make script names take the form of: - - mk-xxx-yz - - xxx = package name sdk, sss - - y = debug(platform dep.) d = (mdd or d2) default debug - o = optimized default optimized - h = (hc, codeview) netware only - - z = platform n = netware - w = win32 - -Make script command line options: - clean = removes all of the object files - all = builds all that is needed - install = copies final binaries to product dir - checkout = checks binaries out of Contiuous for install option - checkin = checks final binaries back into Continuous - -Shorthand scripts for making all platforms: - mk-xxx-all - xxx = command line options c = clean - a = all - i = install - -Shorthand scripts for making platform specific build: - mk-xxx-yyy - xxx = platform - c32 = Win32 client - nss = NetWare server - wss = Win32 server - - yyy = command line options - cal = clean all - all = all - -Make scripts for making Beta servers: - mk-beta-ox - x = platform - n = NetWare - w = Win32 - -Shorthand scripts for making Beta servers for all platforms: - mk-beta-xxx - xxx = command line option - cal = clean all - all = all +Make direcotry for Windows client and server. +Make script names take the form of: + + mk-xxx-yz + + xxx = package name sdk, sss + + y = debug(platform dep.) d = (mdd or d2) default debug + o = optimized default optimized + h = (hc, codeview) netware only + + z = platform n = netware + w = win32 + +Make script command line options: + clean = removes all of the object files + all = builds all that is needed + install = copies final binaries to product dir + checkout = checks binaries out of Contiuous for install option + checkin = checks final binaries back into Continuous + +Shorthand scripts for making all platforms: + mk-xxx-all + xxx = command line options c = clean + a = all + i = install + +Shorthand scripts for making platform specific build: + mk-xxx-yyy + xxx = platform + c32 = Win32 client + nss = NetWare server + wss = Win32 server + + yyy = command line options + cal = clean all + all = all + +Make scripts for making Beta servers: + mk-beta-ox + x = platform + n = NetWare + w = Win32 + +Shorthand scripts for making Beta servers for all platforms: + mk-beta-xxx + xxx = command line option + cal = clean all + all = all diff --git a/shsrc/lshsrc/mk-cachetst-dl b/shsrc/lshsrc/mk-cachetst-dl index 7c4c5414..49370bd3 100644 --- a/shsrc/lshsrc/mk-cachetst-dl +++ b/shsrc/lshsrc/mk-cachetst-dl @@ -1,23 +1,23 @@ -#!/bin/bash -set -x -mk-dirs -cd ../../ -PR=`pwd` -cd $PR/make - -MAJ_SSS_NO=`cat majver.txt` -MIN_SSS_NO=`cat minver.txt` -REV_SSS_NO=`cat revver.txt` - -export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO - -cd $PR/c_test/unx_cachetst -(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" XTRA=dbg XTRA_CFLAGS="-DDEBUG -DDEBUG_SSS -g" $2 $3 $4 $5 $6) -RCODE=$? -rm -f $COMMON_FILES -if(test $RCODE != 0) -then -exit $RCODE -else -exit 0 -fi +#!/bin/bash +set -x +mk-dirs +cd ../../ +PR=`pwd` +cd $PR/make + +MAJ_SSS_NO=`cat majver.txt` +MIN_SSS_NO=`cat minver.txt` +REV_SSS_NO=`cat revver.txt` + +export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO + +cd $PR/c_test/unx_cachetst +(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" XTRA=dbg XTRA_CFLAGS="-DDEBUG -DDEBUG_SSS -g" $2 $3 $4 $5 $6) +RCODE=$? +rm -f $COMMON_FILES +if(test $RCODE != 0) +then +exit $RCODE +else +exit 0 +fi diff --git a/shsrc/lshsrc/mk-cachetst-ol b/shsrc/lshsrc/mk-cachetst-ol index 81fdae4e..7d21f2e5 100644 --- a/shsrc/lshsrc/mk-cachetst-ol +++ b/shsrc/lshsrc/mk-cachetst-ol @@ -1,22 +1,22 @@ -#!/bin/bash -set -x -mk-dirs -cd ../../ -PR=`pwd` -cd $PR/make -MAJ_SSS_NO=`cat majver.txt` -MIN_SSS_NO=`cat minver.txt` -REV_SSS_NO=`cat revver.txt` - -export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO - -cd $PR/c_test/unx_cachetst -(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" XTRA=ndbg $2 $3 $4 $5) -RCODE=$? -rm -f $COMMON_FILES -if(test $RCODE != 0) -then -exit $RCODE -else -exit 0 -fi +#!/bin/bash +set -x +mk-dirs +cd ../../ +PR=`pwd` +cd $PR/make +MAJ_SSS_NO=`cat majver.txt` +MIN_SSS_NO=`cat minver.txt` +REV_SSS_NO=`cat revver.txt` + +export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO + +cd $PR/c_test/unx_cachetst +(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" XTRA=ndbg $2 $3 $4 $5) +RCODE=$? +rm -f $COMMON_FILES +if(test $RCODE != 0) +then +exit $RCODE +else +exit 0 +fi diff --git a/shsrc/lshsrc/mk-casa-rpmpkg b/shsrc/lshsrc/mk-casa-rpmpkg index b9f0d9c3..8ee11c84 100644 --- a/shsrc/lshsrc/mk-casa-rpmpkg +++ b/shsrc/lshsrc/mk-casa-rpmpkg @@ -1,131 +1,131 @@ -#!/bin/bash -set -x -cd ../.. -PR=`pwd` -cd $PR/make -MAJ_SSS_NO=`cat majver.txt` -MIN_SSS_NO=`cat minver.txt` -REV_SSS_NO=`cat revver.txt` - -export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO -export PROD_NUM=$MAJ_SSS_NO - -cd $PR/lib/lux/ -BR=`pwd` - -mkdir -p $BR/pkg -mkdir -p $BR/pkg/BUILD/ -mkdir -p $BR/pkg/RPMS/ -mkdir -p $BR/pkg/RPMS/i386/ -mkdir -p $BR/pkg/casa_devel_area/ - -# save the original .rpmmacros -if [ -f ~/.rpmmacros ] -then - mv ~/.rpmmacros ~/.rpmmacros.orig -fi - -# append these to the .rpmmacros -echo "%_topdir $BR/pkg/" >> ~/.rpmmacros -echo "%version $BLD_NO" >> ~/.rpmmacros -echo "%release $MAJ_SSS_NO" >> ~/.rpmmacros - -cp -f $PR/include/micasa.h $BR/pkg/BUILD -cp -f $PR/include/micasa_mgmd.h $BR/pkg/BUILD - - -# create the direcories and set the rights on them -cd $BR/pkg/casa_devel_area - -install -m 755 -d opt/novell/CASA_devel -install -m 755 -d opt/novell/CASA_devel/include -install -m 755 -d opt/novell/CASA_devel/doc -install -m 755 -d opt/novell/CASA_devel/sample -install -m 755 -d opt/novell/CASA_devel/sample_bin - -# copy the files to the restpected directories and set the rights on them -cd $BR/pkg/BUILD -install -m 755 micasa.h $BR/pkg/casa_devel_area/opt/novell/CASA_devel/include/micasa.h -#install -m 755 micasa_mgmd.h $BR/pkg/casa_devel_area/opt/novell/CASA_devel/include/micasa_mgmd_idk.h -install -m 755 micasa_mgmd.h $BR/pkg/casa_devel_area/opt/novell/CASA_devel/include/micasa_mgmd.h - -# -bb and --buildroot are rpmbuild (rpmb) options that should be included -# in /etc/popt, for rpm to work check "man rpm" and "man rpmbuild" search for -bb for -# instructions. --buildroot should be added separately. - -#Create the rpm spec file on the fly -cat << E/O/F > $BR/pkg/novell-CASA-devel.spec - -Summary : Novell Client Authentication Service Adapter (CASA) -Name : novell-CASA-devel -Version : %version -Release : %release -Group : System/Cryptography -Copyright: 1998-2005 Novell, Inc. All Rights Reserved -Distribution : Novell -URL : http://www.novell.com/ -Packager : Novell Inc. -AutoReqProv: no -Vendor : Novell Inc. -BuildArchitectures: i386 x86_64 - -%description -NOVELL Client Authentication Service Adapter Development Kit (CASA). - -%prep - -%build - -%install - -install -m 755 -d $BR/pkg/casa_devel_area/opt/novell/CASA_devel/doc -install -m 755 -d $BR/pkg/casa_devel_area/opt/novell/CASA_devel/lib -install -m 755 -d $BR/pkg/casa_devel_area/opt/novell/CASA_devel/include -install -m 755 -d $BR/pkg/casa_devel_area/opt/novell/CASA_devel/sample -install -m 755 -d $BR/pkg/casa_devel_area/opt/novell/CASA_devel/sample_bin - -install -m 755 micasa.h $BR/pkg/casa_devel_area/opt/novell/CASA_devel/include/micasa.h -install -m 755 micasa_mgmd.h $BR/pkg/casa_devel_area/opt/novell/CASA_devel/include/micasa_mgmd.h - -%files - -#%attr(666,root,root)/opt/novell/CASA_devel/include/micasa_idk.h -%attr(666,root,root)/opt/novell/CASA_devel/include/micasa.h -%attr(666,root,root)/opt/novell/CASA_devel/include/micasa_mgmd.h - -%preun -rm -rf /opt/novell/CASA_devel - -E/O/F - -(cd $BR/pkg/casa_devel_area; pwd; rpmbuild -bb --buildroot $BR/pkg/casa_devel_area ../novell-CASA-devel.spec) - -#restore the .rpmmacros file -if [ -f ~/.rpmmacros.orig ] -then - mv ~/.rpmmacros.orig ~/.rpmmacros -fi - -if [ -r $BR/pkg/RPMS/i386/novell-CASA-*.rpm ] -then - echo Linux CASA-devel Package Done - cp -f $BR/pkg/RPMS/i386/novell-CASA-*.rpm $PR/products/install/lux - cd $BR/pkg - rm -rf * - exit 0 -fi -if [ -r $BR/pkg/RPMS/x86_64/novell-CASA-*.rpm ] -then - echo Linux CASA-devel Package Done - cp -f $BR/pkg/RPMS/x86_64/novell-CASA-*.rpm $PR/products/install/lux - cd $BR/pkg - rm -rf * - exit 0 -fi - echo Building Linux CASA-devel Package Failed - cd $BR/pkg - rm -rf * - exit 1 - - - +#!/bin/bash +set -x +cd ../.. +PR=`pwd` +cd $PR/make +MAJ_SSS_NO=`cat majver.txt` +MIN_SSS_NO=`cat minver.txt` +REV_SSS_NO=`cat revver.txt` + +export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO +export PROD_NUM=$MAJ_SSS_NO + +cd $PR/lib/lux/ +BR=`pwd` + +mkdir -p $BR/pkg +mkdir -p $BR/pkg/BUILD/ +mkdir -p $BR/pkg/RPMS/ +mkdir -p $BR/pkg/RPMS/i386/ +mkdir -p $BR/pkg/casa_devel_area/ + +# save the original .rpmmacros +if [ -f ~/.rpmmacros ] +then + mv ~/.rpmmacros ~/.rpmmacros.orig +fi + +# append these to the .rpmmacros +echo "%_topdir $BR/pkg/" >> ~/.rpmmacros +echo "%version $BLD_NO" >> ~/.rpmmacros +echo "%release $MAJ_SSS_NO" >> ~/.rpmmacros + +cp -f $PR/include/micasa.h $BR/pkg/BUILD +cp -f $PR/include/micasa_mgmd.h $BR/pkg/BUILD + + +# create the direcories and set the rights on them +cd $BR/pkg/casa_devel_area + +install -m 755 -d opt/novell/CASA_devel +install -m 755 -d opt/novell/CASA_devel/include +install -m 755 -d opt/novell/CASA_devel/doc +install -m 755 -d opt/novell/CASA_devel/sample +install -m 755 -d opt/novell/CASA_devel/sample_bin + +# copy the files to the restpected directories and set the rights on them +cd $BR/pkg/BUILD +install -m 755 micasa.h $BR/pkg/casa_devel_area/opt/novell/CASA_devel/include/micasa.h +#install -m 755 micasa_mgmd.h $BR/pkg/casa_devel_area/opt/novell/CASA_devel/include/micasa_mgmd_idk.h +install -m 755 micasa_mgmd.h $BR/pkg/casa_devel_area/opt/novell/CASA_devel/include/micasa_mgmd.h + +# -bb and --buildroot are rpmbuild (rpmb) options that should be included +# in /etc/popt, for rpm to work check "man rpm" and "man rpmbuild" search for -bb for +# instructions. --buildroot should be added separately. + +#Create the rpm spec file on the fly +cat << E/O/F > $BR/pkg/novell-CASA-devel.spec + +Summary : Novell Client Authentication Service Adapter (CASA) +Name : novell-CASA-devel +Version : %version +Release : %release +Group : System/Cryptography +Copyright: 1998-2005 Novell, Inc. All Rights Reserved +Distribution : Novell +URL : http://www.novell.com/ +Packager : Novell Inc. +AutoReqProv: no +Vendor : Novell Inc. +BuildArchitectures: i386 x86_64 + +%description +NOVELL Client Authentication Service Adapter Development Kit (CASA). + +%prep + +%build + +%install + +install -m 755 -d $BR/pkg/casa_devel_area/opt/novell/CASA_devel/doc +install -m 755 -d $BR/pkg/casa_devel_area/opt/novell/CASA_devel/lib +install -m 755 -d $BR/pkg/casa_devel_area/opt/novell/CASA_devel/include +install -m 755 -d $BR/pkg/casa_devel_area/opt/novell/CASA_devel/sample +install -m 755 -d $BR/pkg/casa_devel_area/opt/novell/CASA_devel/sample_bin + +install -m 755 micasa.h $BR/pkg/casa_devel_area/opt/novell/CASA_devel/include/micasa.h +install -m 755 micasa_mgmd.h $BR/pkg/casa_devel_area/opt/novell/CASA_devel/include/micasa_mgmd.h + +%files + +#%attr(666,root,root)/opt/novell/CASA_devel/include/micasa_idk.h +%attr(666,root,root)/opt/novell/CASA_devel/include/micasa.h +%attr(666,root,root)/opt/novell/CASA_devel/include/micasa_mgmd.h + +%preun +rm -rf /opt/novell/CASA_devel + +E/O/F + +(cd $BR/pkg/casa_devel_area; pwd; rpmbuild -bb --buildroot $BR/pkg/casa_devel_area ../novell-CASA-devel.spec) + +#restore the .rpmmacros file +if [ -f ~/.rpmmacros.orig ] +then + mv ~/.rpmmacros.orig ~/.rpmmacros +fi + +if [ -r $BR/pkg/RPMS/i386/novell-CASA-*.rpm ] +then + echo Linux CASA-devel Package Done + cp -f $BR/pkg/RPMS/i386/novell-CASA-*.rpm $PR/products/install/lux + cd $BR/pkg + rm -rf * + exit 0 +fi +if [ -r $BR/pkg/RPMS/x86_64/novell-CASA-*.rpm ] +then + echo Linux CASA-devel Package Done + cp -f $BR/pkg/RPMS/x86_64/novell-CASA-*.rpm $PR/products/install/lux + cd $BR/pkg + rm -rf * + exit 0 +fi + echo Building Linux CASA-devel Package Failed + cd $BR/pkg + rm -rf * + exit 1 + + + diff --git a/shsrc/lshsrc/mk-casa-tarpkg b/shsrc/lshsrc/mk-casa-tarpkg index 199c87dc..36a09c26 100644 --- a/shsrc/lshsrc/mk-casa-tarpkg +++ b/shsrc/lshsrc/mk-casa-tarpkg @@ -1,23 +1,23 @@ -#!/bin/bash -set -x -cd ../.. -PR=`pwd` -cd $PR/make -MAJ_SSS_NO=`cat majver.txt` -MIN_SSS_NO=`cat minver.txt` -REV_SSS_NO=`cat revver.txt` - -export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO - -cd $PR/products/install/lux/opt/novell - -(tar cvjf CASA-$BLD_NO.tar.bz2 *) - -RCODE=$? -if(test $RCODE != 0) -then -exit $RCODE -else -exit 0 -fi - +#!/bin/bash +set -x +cd ../.. +PR=`pwd` +cd $PR/make +MAJ_SSS_NO=`cat majver.txt` +MIN_SSS_NO=`cat minver.txt` +REV_SSS_NO=`cat revver.txt` + +export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO + +cd $PR/products/install/lux/opt/novell + +(tar cvjf CASA-$BLD_NO.tar.bz2 *) + +RCODE=$? +if(test $RCODE != 0) +then +exit $RCODE +else +exit 0 +fi + diff --git a/shsrc/lshsrc/mk-dirs b/shsrc/lshsrc/mk-dirs index ac0ce8f8..ee06e55e 100644 --- a/shsrc/lshsrc/mk-dirs +++ b/shsrc/lshsrc/mk-dirs @@ -1,32 +1,32 @@ -#!/bin/bash -TOP=../.. -mkdir $TOP/bin> /dev/null 2>&1 -mkdir $TOP/bin/lux> /dev/null 2>&1 -mkdir $TOP/bin/lux/dbg> /dev/null 2>&1 -mkdir $TOP/bin/lux/ndbg> /dev/null 2>&1 - -mkdir $TOP/lib> /dev/null 2>&1 -mkdir $TOP/lib/lux> /dev/null 2>&1 -mkdir $TOP/lib/lux/dbg> /dev/null 2>&1 -mkdir $TOP/lib/lux/ndbg> /dev/null 2>&1 - -mkdir $TOP/obj> /dev/null 2>&1 -mkdir $TOP/obj/lux> /dev/null 2>&1 -mkdir $TOP/obj/lux/dbg> /dev/null 2>&1 -mkdir $TOP/obj/lux/ndbg> /dev/null 2>&1 - -mkdir $TOP/bin64> /dev/null 2>&1 -mkdir $TOP/bin64/lux> /dev/null 2>&1 -mkdir $TOP/bin64/lux/dbg> /dev/null 2>&1 -mkdir $TOP/bin64/lux/ndbg> /dev/null 2>&1 - -mkdir $TOP/lib64> /dev/null 2>&1 -mkdir $TOP/lib64/lux> /dev/null 2>&1 -mkdir $TOP/lib64/lux/dbg> /dev/null 2>&1 -mkdir $TOP/lib64/lux/ndbg> /dev/null 2>&1 - -mkdir $TOP/obj64> /dev/null 2>&1 -mkdir $TOP/obj64/lux> /dev/null 2>&1 -mkdir $TOP/obj64/lux/dbg> /dev/null 2>&1 -mkdir $TOP/obj64/lux/ndbg> /dev/null 2>&1 - +#!/bin/bash +TOP=../.. +mkdir $TOP/bin> /dev/null 2>&1 +mkdir $TOP/bin/lux> /dev/null 2>&1 +mkdir $TOP/bin/lux/dbg> /dev/null 2>&1 +mkdir $TOP/bin/lux/ndbg> /dev/null 2>&1 + +mkdir $TOP/lib> /dev/null 2>&1 +mkdir $TOP/lib/lux> /dev/null 2>&1 +mkdir $TOP/lib/lux/dbg> /dev/null 2>&1 +mkdir $TOP/lib/lux/ndbg> /dev/null 2>&1 + +mkdir $TOP/obj> /dev/null 2>&1 +mkdir $TOP/obj/lux> /dev/null 2>&1 +mkdir $TOP/obj/lux/dbg> /dev/null 2>&1 +mkdir $TOP/obj/lux/ndbg> /dev/null 2>&1 + +mkdir $TOP/bin64> /dev/null 2>&1 +mkdir $TOP/bin64/lux> /dev/null 2>&1 +mkdir $TOP/bin64/lux/dbg> /dev/null 2>&1 +mkdir $TOP/bin64/lux/ndbg> /dev/null 2>&1 + +mkdir $TOP/lib64> /dev/null 2>&1 +mkdir $TOP/lib64/lux> /dev/null 2>&1 +mkdir $TOP/lib64/lux/dbg> /dev/null 2>&1 +mkdir $TOP/lib64/lux/ndbg> /dev/null 2>&1 + +mkdir $TOP/obj64> /dev/null 2>&1 +mkdir $TOP/obj64/lux> /dev/null 2>&1 +mkdir $TOP/obj64/lux/dbg> /dev/null 2>&1 +mkdir $TOP/obj64/lux/ndbg> /dev/null 2>&1 + diff --git a/shsrc/lshsrc/mk-jmicasa-dl b/shsrc/lshsrc/mk-jmicasa-dl index 3cc888da..d1da8c2d 100644 --- a/shsrc/lshsrc/mk-jmicasa-dl +++ b/shsrc/lshsrc/mk-jmicasa-dl @@ -1,55 +1,55 @@ -#!/bin/bash -set -x -mk-dirs -cd ../../ -PR=`pwd` -cd $PR/make - -MAJ_SSS_NO=`cat majver.txt` -MIN_SSS_NO=`cat minver.txt` -REV_SSS_NO=`cat revver.txt` - -export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO - -HOST_ARCH=`uname -a | grep -c x86_64` -if [ $HOST_ARCH -gt 0 ] -then ARCH_LIB=64 -else -ARCH_LIB= -fi - - -cd $PR/c_jwrapper/src -($JAVA_HOME/bin/javac com/novell/casa/MiCasa.java) -RCODE=$? -if(test $RCODE != 0) -then -exit $RCODE -fi - -($JAVA_HOME/bin/jar cvf ../../lib$ARCH_LIB/miCASA.jar com/novell/casa/MiCasa.class com/novell/casa/NetCredential.class com/novell/casa/MiCasaException.class) -RCODE=$? -if(test $RCODE != 0) -then -exit $RCODE -fi - -($JAVA_HOME/bin/javah -d ../../include com.novell.casa.MiCasa) -RCODE=$? -if(test $RCODE != 0) -then -exit $RCODE -fi - -cd ../jnsscs -(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MODULE=lib XTRA=dbg MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA_CFLAGS="-I\"$JAVA_HOME/include\" -I\"$JAVA_HOME/include/linux\" -DDEBUG -g -DSSCS_LINUX_PLAT_F" $2 $3 $4 $5) -RCODE=$? -rm -f $COMMON_FILES -if(test $RCODE != 0) -then -exit $RCODE -else -exit 0 -fi - - +#!/bin/bash +set -x +mk-dirs +cd ../../ +PR=`pwd` +cd $PR/make + +MAJ_SSS_NO=`cat majver.txt` +MIN_SSS_NO=`cat minver.txt` +REV_SSS_NO=`cat revver.txt` + +export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO + +HOST_ARCH=`uname -a | grep -c x86_64` +if [ $HOST_ARCH -gt 0 ] +then ARCH_LIB=64 +else +ARCH_LIB= +fi + + +cd $PR/c_jwrapper/src +($JAVA_HOME/bin/javac com/novell/casa/MiCasa.java) +RCODE=$? +if(test $RCODE != 0) +then +exit $RCODE +fi + +($JAVA_HOME/bin/jar cvf ../../lib$ARCH_LIB/miCASA.jar com/novell/casa/MiCasa.class com/novell/casa/NetCredential.class com/novell/casa/MiCasaException.class) +RCODE=$? +if(test $RCODE != 0) +then +exit $RCODE +fi + +($JAVA_HOME/bin/javah -d ../../include com.novell.casa.MiCasa) +RCODE=$? +if(test $RCODE != 0) +then +exit $RCODE +fi + +cd ../jnsscs +(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MODULE=lib XTRA=dbg MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA_CFLAGS="-I\"$JAVA_HOME/include\" -I\"$JAVA_HOME/include/linux\" -DDEBUG -g -DSSCS_LINUX_PLAT_F" $2 $3 $4 $5) +RCODE=$? +rm -f $COMMON_FILES +if(test $RCODE != 0) +then +exit $RCODE +else +exit 0 +fi + + diff --git a/shsrc/lshsrc/mk-jmicasa-ol b/shsrc/lshsrc/mk-jmicasa-ol index f083b05e..0f789ccc 100644 --- a/shsrc/lshsrc/mk-jmicasa-ol +++ b/shsrc/lshsrc/mk-jmicasa-ol @@ -1,55 +1,55 @@ -#!/bin/bash -set -x -mk-dirs -cd ../../ -PR=`pwd` -cd $PR/make - -MAJ_SSS_NO=`cat majver.txt` -MIN_SSS_NO=`cat minver.txt` -REV_SSS_NO=`cat revver.txt` - -export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO - -HOST_ARCH=`uname -a | grep -c x86_64` -if [ $HOST_ARCH -gt 0 ] -then ARCH_LIB=64 -else -ARCH_LIB= -fi - - -cd $PR/c_jwrapper/src -($JAVA_HOME/bin/javac com/novell/casa/MiCasa.java) -RCODE=$? -if(test $RCODE != 0) -then -exit $RCODE -fi - -($JAVA_HOME/bin/jar cvf ../../lib$ARCH_LIB/miCASA.jar com/novell/casa/MiCasa.class com/novell/casa/NetCredential.class com/novell/casa/MiCasaException.class) -RCODE=$? -if(test $RCODE != 0) -then -exit $RCODE -fi - -($JAVA_HOME/bin/javah -d ../../include com.novell.casa.MiCasa) -RCODE=$? -if(test $RCODE != 0) -then -exit $RCODE -fi - -cd ../jnsscs -(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MODULE=lib XTRA=ndbg MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA_CFLAGS="-I\"$JAVA_HOME/include\" -I\"$JAVA_HOME/include/linux\" -DDEBUG -g -DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall" $2 $3 $4 $5) -RCODE=$? -rm -f $COMMON_FILES -if(test $RCODE != 0) -then -exit $RCODE -else -exit 0 -fi - - +#!/bin/bash +set -x +mk-dirs +cd ../../ +PR=`pwd` +cd $PR/make + +MAJ_SSS_NO=`cat majver.txt` +MIN_SSS_NO=`cat minver.txt` +REV_SSS_NO=`cat revver.txt` + +export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO + +HOST_ARCH=`uname -a | grep -c x86_64` +if [ $HOST_ARCH -gt 0 ] +then ARCH_LIB=64 +else +ARCH_LIB= +fi + + +cd $PR/c_jwrapper/src +($JAVA_HOME/bin/javac com/novell/casa/MiCasa.java) +RCODE=$? +if(test $RCODE != 0) +then +exit $RCODE +fi + +($JAVA_HOME/bin/jar cvf ../../lib$ARCH_LIB/miCASA.jar com/novell/casa/MiCasa.class com/novell/casa/NetCredential.class com/novell/casa/MiCasaException.class) +RCODE=$? +if(test $RCODE != 0) +then +exit $RCODE +fi + +($JAVA_HOME/bin/javah -d ../../include com.novell.casa.MiCasa) +RCODE=$? +if(test $RCODE != 0) +then +exit $RCODE +fi + +cd ../jnsscs +(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MODULE=lib XTRA=ndbg MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA_CFLAGS="-I\"$JAVA_HOME/include\" -I\"$JAVA_HOME/include/linux\" -DDEBUG -g -DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall" $2 $3 $4 $5) +RCODE=$? +rm -f $COMMON_FILES +if(test $RCODE != 0) +then +exit $RCODE +else +exit 0 +fi + + diff --git a/shsrc/lshsrc/mk-loginpam-dl b/shsrc/lshsrc/mk-loginpam-dl index 407d5883..f0fa9040 100644 --- a/shsrc/lshsrc/mk-loginpam-dl +++ b/shsrc/lshsrc/mk-loginpam-dl @@ -1,33 +1,33 @@ -#!/bin/bash -set -x -mk-dirs -cd ../../ -PR=`pwd` -cd $PR/make - -MAJ_SSS_NO=`cat majver.txt` -MIN_SSS_NO=`cat minver.txt` -REV_SSS_NO=`cat revver.txt` - -export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO - -HOST_ARCH=`uname -a | grep -c x86_64` -if [ $HOST_ARCH -gt 0 ] -then ARCH_LIB=64 -else -ARCH_LIB= -fi - - -cd $PR/login_capture/PAM -(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux$ARCH MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=dbg XTRA_CFLAGS="-DSSCS_LINUX_PLAT_F -DDEBUG -g" $2 $3 $4 $5 $6) -RCODE=$? -rm -f $COMMON_FILES -if(test $RCODE != 0) -then -exit $RCODE -else -exit 0 -fi - - +#!/bin/bash +set -x +mk-dirs +cd ../../ +PR=`pwd` +cd $PR/make + +MAJ_SSS_NO=`cat majver.txt` +MIN_SSS_NO=`cat minver.txt` +REV_SSS_NO=`cat revver.txt` + +export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO + +HOST_ARCH=`uname -a | grep -c x86_64` +if [ $HOST_ARCH -gt 0 ] +then ARCH_LIB=64 +else +ARCH_LIB= +fi + + +cd $PR/login_capture/PAM +(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux$ARCH MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=dbg XTRA_CFLAGS="-DSSCS_LINUX_PLAT_F -DDEBUG -g" $2 $3 $4 $5 $6) +RCODE=$? +rm -f $COMMON_FILES +if(test $RCODE != 0) +then +exit $RCODE +else +exit 0 +fi + + diff --git a/shsrc/lshsrc/mk-loginpam-ol b/shsrc/lshsrc/mk-loginpam-ol index 4859e91d..28db2578 100644 --- a/shsrc/lshsrc/mk-loginpam-ol +++ b/shsrc/lshsrc/mk-loginpam-ol @@ -1,33 +1,33 @@ -#!/bin/bash -set -x -mk-dirs -cd ../../ -PR=`pwd` -cd $PR/make - -MAJ_SSS_NO=`cat majver.txt` -MIN_SSS_NO=`cat minver.txt` -REV_SSS_NO=`cat revver.txt` - -export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO - -HOST_ARCH=`uname -a | grep -c x86_64` -if [ $HOST_ARCH -gt 0 ] -then ARCH_LIB=64 -else -ARCH_LIB= -fi - - -cd $PR/login_capture/PAM -(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=ndbg XTRA_CFLAGS="-DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall -fno-strict-aliasing " $2 $3 $4 $5) -RCODE=$? -rm -f $COMMON_FILES -if(test $RCODE != 0) -then -exit $RCODE -else -exit 0 -fi - - +#!/bin/bash +set -x +mk-dirs +cd ../../ +PR=`pwd` +cd $PR/make + +MAJ_SSS_NO=`cat majver.txt` +MIN_SSS_NO=`cat minver.txt` +REV_SSS_NO=`cat revver.txt` + +export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO + +HOST_ARCH=`uname -a | grep -c x86_64` +if [ $HOST_ARCH -gt 0 ] +then ARCH_LIB=64 +else +ARCH_LIB= +fi + + +cd $PR/login_capture/PAM +(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=ndbg XTRA_CFLAGS="-DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall -fno-strict-aliasing " $2 $3 $4 $5) +RCODE=$? +rm -f $COMMON_FILES +if(test $RCODE != 0) +then +exit $RCODE +else +exit 0 +fi + + diff --git a/shsrc/lshsrc/mk-micasacache-dl b/shsrc/lshsrc/mk-micasacache-dl index d3534b82..d4dea561 100644 --- a/shsrc/lshsrc/mk-micasacache-dl +++ b/shsrc/lshsrc/mk-micasacache-dl @@ -1,34 +1,34 @@ -#!/bin/bash -set -x -mk-dirs -cd ../../ -PR=`pwd` -cd $PR/make - -MAJ_SSS_NO=`cat majver.txt` -MIN_SSS_NO=`cat minver.txt` -REV_SSS_NO=`cat revver.txt` - -export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO - -HOST_ARCH=`uname -a | grep -c x86_64` -if [ $HOST_ARCH -gt 0 ] -then ARCH_LIB=64 -else -ARCH_LIB= -fi - - - -cd $PR/c_micasacache -(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MODULE=lib XTRA=dbg MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA_CFLAGS="-DDEBUG -g -DSSCS_LINUX_PLAT_F" $2 $3 $4 $5) -RCODE=$? -rm -f $COMMON_FILES -if(test $RCODE != 0) -then -exit $RCODE -else -exit 0 -fi - - +#!/bin/bash +set -x +mk-dirs +cd ../../ +PR=`pwd` +cd $PR/make + +MAJ_SSS_NO=`cat majver.txt` +MIN_SSS_NO=`cat minver.txt` +REV_SSS_NO=`cat revver.txt` + +export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO + +HOST_ARCH=`uname -a | grep -c x86_64` +if [ $HOST_ARCH -gt 0 ] +then ARCH_LIB=64 +else +ARCH_LIB= +fi + + + +cd $PR/c_micasacache +(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MODULE=lib XTRA=dbg MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA_CFLAGS="-DDEBUG -g -DSSCS_LINUX_PLAT_F" $2 $3 $4 $5) +RCODE=$? +rm -f $COMMON_FILES +if(test $RCODE != 0) +then +exit $RCODE +else +exit 0 +fi + + diff --git a/shsrc/lshsrc/mk-micasacache-ol b/shsrc/lshsrc/mk-micasacache-ol index 4d25d447..20be23c4 100644 --- a/shsrc/lshsrc/mk-micasacache-ol +++ b/shsrc/lshsrc/mk-micasacache-ol @@ -1,31 +1,31 @@ -#!/bin/bash -set -x -mk-dirs -cd ../../ -PR=`pwd` -cd $PR/make - -MAJ_SSS_NO=`cat majver.txt` -MIN_SSS_NO=`cat minver.txt` -REV_SSS_NO=`cat revver.txt` - -export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO - -HOST_ARCH=`uname -a | grep -c x86_64` -if [ $HOST_ARCH -gt 0 ] -then ARCH_LIB=64 -else -ARCH_LIB= -fi - - -cd $PR/c_micasacache -(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MODULE=lib XTRA=ndbg MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA_CFLAGS="-DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall" $2 $3 $5) -RCODE=$? -rm -f $COMMON_FILES -if(test $RCODE != 0) -then -exit $RCODE -else -exit 0 -fi +#!/bin/bash +set -x +mk-dirs +cd ../../ +PR=`pwd` +cd $PR/make + +MAJ_SSS_NO=`cat majver.txt` +MIN_SSS_NO=`cat minver.txt` +REV_SSS_NO=`cat revver.txt` + +export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO + +HOST_ARCH=`uname -a | grep -c x86_64` +if [ $HOST_ARCH -gt 0 ] +then ARCH_LIB=64 +else +ARCH_LIB= +fi + + +cd $PR/c_micasacache +(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MODULE=lib XTRA=ndbg MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA_CFLAGS="-DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall" $2 $3 $5) +RCODE=$? +rm -f $COMMON_FILES +if(test $RCODE != 0) +then +exit $RCODE +else +exit 0 +fi diff --git a/shsrc/lshsrc/mk-micasad-dl b/shsrc/lshsrc/mk-micasad-dl index c39283e9..f847b284 100644 --- a/shsrc/lshsrc/mk-micasad-dl +++ b/shsrc/lshsrc/mk-micasad-dl @@ -1,31 +1,31 @@ -#!/bin/bash -set -x -mk-dirs -cd ../../ -PR=`pwd` -cd $PR/make - -MAJ_SSS_NO=`cat majver.txt` -MIN_SSS_NO=`cat minver.txt` -REV_SSS_NO=`cat revver.txt` - -export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO - -HOST_ARCH=`uname -a | grep -c x86_64` -if [ $HOST_ARCH -gt 0 ] -then ARCH_LIB=64 -else -ARCH_LIB= -fi - - -cd $PR/c_micasad -(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux EXT=bin MODULE=csssd MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA_CFLAGS="-debug -d:DEBUG -d:LINUX -nowarn:169" XTRA=dbg $2 $3 $4 $5 $6) -RCODE=$? - -if(test $RCODE != 0) -then -exit $RCODE -else -exit 0 -fi +#!/bin/bash +set -x +mk-dirs +cd ../../ +PR=`pwd` +cd $PR/make + +MAJ_SSS_NO=`cat majver.txt` +MIN_SSS_NO=`cat minver.txt` +REV_SSS_NO=`cat revver.txt` + +export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO + +HOST_ARCH=`uname -a | grep -c x86_64` +if [ $HOST_ARCH -gt 0 ] +then ARCH_LIB=64 +else +ARCH_LIB= +fi + + +cd $PR/c_micasad +(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux EXT=bin MODULE=csssd MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA_CFLAGS="-debug -d:DEBUG -d:LINUX -nowarn:169" XTRA=dbg $2 $3 $4 $5 $6) +RCODE=$? + +if(test $RCODE != 0) +then +exit $RCODE +else +exit 0 +fi diff --git a/shsrc/lshsrc/mk-micasad-ol b/shsrc/lshsrc/mk-micasad-ol index 48fd0ad4..69261d57 100644 --- a/shsrc/lshsrc/mk-micasad-ol +++ b/shsrc/lshsrc/mk-micasad-ol @@ -1,33 +1,33 @@ -#!/bin/bash -set -x -mk-dirs -cd ../../ -PR=`pwd` -cd $PR/make - -MAJ_SSS_NO=`cat majver.txt` -MIN_SSS_NO=`cat minver.txt` -REV_SSS_NO=`cat revver.txt` - -export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO - -HOST_ARCH=`uname -a | grep -c x86_64` -if [ $HOST_ARCH -gt 0 ] -then ARCH_LIB=64 -else -ARCH_LIB= -fi - - -cd $PR/c_micasad -(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux EXT=bin MODULE=csssd MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA_CFLAGS="-d:LINUX -nowarn:169" XTRA=ndbg $2 $3 $4 $5) -RCODE=$? - -if(test $RCODE != 0) -then -exit $RCODE -else -#ln -sf ../../lib$ARCH_LIB/lux/ndbg/libmicasa.so.$BLD_NO ../../lib$ARCH_LIB/lux/ndbg/libmicasa.so.$MAJ_SSS_NO -#ln -sf ../../lib$ARCH_LIB/lux/ndbg/libmicasa.so.$BLD_NO ../../lib$ARCH_LIB/lux/ndbg/libmicasa.so -exit 0 -fi +#!/bin/bash +set -x +mk-dirs +cd ../../ +PR=`pwd` +cd $PR/make + +MAJ_SSS_NO=`cat majver.txt` +MIN_SSS_NO=`cat minver.txt` +REV_SSS_NO=`cat revver.txt` + +export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO + +HOST_ARCH=`uname -a | grep -c x86_64` +if [ $HOST_ARCH -gt 0 ] +then ARCH_LIB=64 +else +ARCH_LIB= +fi + + +cd $PR/c_micasad +(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux EXT=bin MODULE=csssd MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA_CFLAGS="-d:LINUX -nowarn:169" XTRA=ndbg $2 $3 $4 $5) +RCODE=$? + +if(test $RCODE != 0) +then +exit $RCODE +else +#ln -sf ../../lib$ARCH_LIB/lux/ndbg/libmicasa.so.$BLD_NO ../../lib$ARCH_LIB/lux/ndbg/libmicasa.so.$MAJ_SSS_NO +#ln -sf ../../lib$ARCH_LIB/lux/ndbg/libmicasa.so.$BLD_NO ../../lib$ARCH_LIB/lux/ndbg/libmicasa.so +exit 0 +fi diff --git a/shsrc/lshsrc/mk-micasadk-dl b/shsrc/lshsrc/mk-micasadk-dl index 81ae77c6..ac471dfd 100644 --- a/shsrc/lshsrc/mk-micasadk-dl +++ b/shsrc/lshsrc/mk-micasadk-dl @@ -1,35 +1,35 @@ -#!/bin/bash -set -x -mk-dirs -cd ../../ -PR=`pwd` -cd $PR/make - -MAJ_SSS_NO=`cat majver.txt` -MIN_SSS_NO=`cat minver.txt` -REV_SSS_NO=`cat revver.txt` - -export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO - -HOST_ARCH=`uname -a | grep -c x86_64` -if [ $HOST_ARCH -gt 0 ] -then ARCH_LIB=64 -else -ARCH_LIB= -fi - -cd $PR/c_common -COMMON_FILES=$(ls) -(ln -f $COMMON_FILES $PR/c_micasadk) -cd $PR/c_micasadk -(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MODULE=shared MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=dbg XTRA_CFLAGS="-DSSCS_LINUX_PLAT_F -DDEBUG -g" $2 $3 $4 $5) -RCODE=$? -rm -f $COMMON_FILES -if(test $RCODE != 0) -then -exit $RCODE -else -ln -sf $PR/lib$ARCH_LIB/lux/dbg/libmicasa.so.$BLD_NO $PR/lib$ARCH_LIB/lux/dbg/libmicasa.so.$MAJ_SSS_NO -ln -sf $PR/lib$ARCH_LIB/lux/dbg/libmicasa.so.$BLD_NO $PR/lib$ARCH_LIB/lux/dbg/libmicasa.so -exit 0 -fi +#!/bin/bash +set -x +mk-dirs +cd ../../ +PR=`pwd` +cd $PR/make + +MAJ_SSS_NO=`cat majver.txt` +MIN_SSS_NO=`cat minver.txt` +REV_SSS_NO=`cat revver.txt` + +export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO + +HOST_ARCH=`uname -a | grep -c x86_64` +if [ $HOST_ARCH -gt 0 ] +then ARCH_LIB=64 +else +ARCH_LIB= +fi + +cd $PR/c_common +COMMON_FILES=$(ls) +(ln -f $COMMON_FILES $PR/c_micasadk) +cd $PR/c_micasadk +(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MODULE=shared MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=dbg XTRA_CFLAGS="-DSSCS_LINUX_PLAT_F -DDEBUG -g" $2 $3 $4 $5) +RCODE=$? +rm -f $COMMON_FILES +if(test $RCODE != 0) +then +exit $RCODE +else +ln -sf $PR/lib$ARCH_LIB/lux/dbg/libmicasa.so.$BLD_NO $PR/lib$ARCH_LIB/lux/dbg/libmicasa.so.$MAJ_SSS_NO +ln -sf $PR/lib$ARCH_LIB/lux/dbg/libmicasa.so.$BLD_NO $PR/lib$ARCH_LIB/lux/dbg/libmicasa.so +exit 0 +fi diff --git a/shsrc/lshsrc/mk-micasadk-ol b/shsrc/lshsrc/mk-micasadk-ol index 132aa059..435518bf 100644 --- a/shsrc/lshsrc/mk-micasadk-ol +++ b/shsrc/lshsrc/mk-micasadk-ol @@ -1,37 +1,37 @@ -#!/bin/bash -set -x -mk-dirs -cd ../../ -PR=`pwd` -cd $PR/make - -MAJ_SSS_NO=`cat majver.txt` -MIN_SSS_NO=`cat minver.txt` -REV_SSS_NO=`cat revver.txt` - -export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO - -HOST_ARCH=`uname -a | grep -c x86_64` -if [ $HOST_ARCH -gt 0 ] -then ARCH_LIB=64 -else -ARCH_LIB= -fi - - -cd $PR/c_common -COMMON_FILES=$(ls) -(ln -f $COMMON_FILES $PR/c_micasadk) -cd $PR/c_micasadk -(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MODULE=shared MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=ndbg XTRA_CFLAGS="-DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall" $2 $3 $4 $5) -RCODE=$? -rm -f $COMMON_FILES -if(test $RCODE != 0) -then -exit $RCODE -else -ln -sf $PR/lib$ARCH_LIB/lux/ndbg/libmicasa.so.$BLD_NO $PR/lib$ARCH_LIB/lux/ndbg/libmicasa.so.$MAJ_SSS_NO -ln -sf $PR/lib$ARCH_LIB/lux/ndbg/libmicasa.so.$BLD_NO $PR/lib$ARCH_LIB/lux/ndbg/libmicasa.so -exit 0 -fi - +#!/bin/bash +set -x +mk-dirs +cd ../../ +PR=`pwd` +cd $PR/make + +MAJ_SSS_NO=`cat majver.txt` +MIN_SSS_NO=`cat minver.txt` +REV_SSS_NO=`cat revver.txt` + +export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO + +HOST_ARCH=`uname -a | grep -c x86_64` +if [ $HOST_ARCH -gt 0 ] +then ARCH_LIB=64 +else +ARCH_LIB= +fi + + +cd $PR/c_common +COMMON_FILES=$(ls) +(ln -f $COMMON_FILES $PR/c_micasadk) +cd $PR/c_micasadk +(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MODULE=shared MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=ndbg XTRA_CFLAGS="-DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall" $2 $3 $4 $5) +RCODE=$? +rm -f $COMMON_FILES +if(test $RCODE != 0) +then +exit $RCODE +else +ln -sf $PR/lib$ARCH_LIB/lux/ndbg/libmicasa.so.$BLD_NO $PR/lib$ARCH_LIB/lux/ndbg/libmicasa.so.$MAJ_SSS_NO +ln -sf $PR/lib$ARCH_LIB/lux/ndbg/libmicasa.so.$BLD_NO $PR/lib$ARCH_LIB/lux/ndbg/libmicasa.so +exit 0 +fi + diff --git a/shsrc/lshsrc/mk-micasawrap-ol b/shsrc/lshsrc/mk-micasawrap-ol index 8452c06e..beebc68a 100644 --- a/shsrc/lshsrc/mk-micasawrap-ol +++ b/shsrc/lshsrc/mk-micasawrap-ol @@ -1,31 +1,31 @@ -#!/bin/bash -set -x -mk-dirs -TOP=../.. -PR=../ -cd $TOP/make - -MAJ_SSS_NO=`cat majver.txt` -MIN_SSS_NO=`cat minver.txt` -REV_SSS_NO=`cat revver.txt` - -export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO - -HOST_ARCH=`uname -a | grep -c x86_64` -if [ $HOST_ARCH -gt 0 ] -then ARCH_LIB=64 -else -ARCH_LIB= -fi - - -cd $PR/c_sharp/NSSCSWrapper -(make -I $TOP/make -f Makefile ROOT=$TOP PLAT=lux EXT=lib MODULE=cslib BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=ndbg $2 $3 $4 $5) -RCODE=$? -rm -f $COMMON_FILES -if(test $RCODE != 0) -then -exit $RCODE -else -exit 0 -fi +#!/bin/bash +set -x +mk-dirs +TOP=../.. +PR=../ +cd $TOP/make + +MAJ_SSS_NO=`cat majver.txt` +MIN_SSS_NO=`cat minver.txt` +REV_SSS_NO=`cat revver.txt` + +export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO + +HOST_ARCH=`uname -a | grep -c x86_64` +if [ $HOST_ARCH -gt 0 ] +then ARCH_LIB=64 +else +ARCH_LIB= +fi + + +cd $PR/c_sharp/NSSCSWrapper +(make -I $TOP/make -f Makefile ROOT=$TOP PLAT=lux EXT=lib MODULE=cslib BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=ndbg $2 $3 $4 $5) +RCODE=$? +rm -f $COMMON_FILES +if(test $RCODE != 0) +then +exit $RCODE +else +exit 0 +fi diff --git a/shsrc/lshsrc/mk-tstcases-dl b/shsrc/lshsrc/mk-tstcases-dl index 1dbd8551..1ad111a5 100644 --- a/shsrc/lshsrc/mk-tstcases-dl +++ b/shsrc/lshsrc/mk-tstcases-dl @@ -1,26 +1,26 @@ -#!/bin/bash -set -x -mk-dirs -cd ../../ -PR=`pwd` -cd $PR/make -MAJ_SSS_NO=`cat majver.txt` -MIN_SSS_NO=`cat minver.txt` -REV_SSS_NO=`cat revver.txt` - -export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO - -#cd $PR/c_test/unx_cachetst -#COMMON_FILES=$(ls *.c) -#(ln -f $COMMON_FILES $PR/c_test/unx_testcases) - -cd $PR/c_test/unx_testcases -(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" XTRA=dbg XTRA_CFLAGS="-DDEBUG -DDEBUG_SSS -g" $2 $3 $4 $5 $6) -RCODE=$? -rm -f $COMMON_FILES -if(test $RCODE != 0) -then -exit $RCODE -else -exit 0 -fi +#!/bin/bash +set -x +mk-dirs +cd ../../ +PR=`pwd` +cd $PR/make +MAJ_SSS_NO=`cat majver.txt` +MIN_SSS_NO=`cat minver.txt` +REV_SSS_NO=`cat revver.txt` + +export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO + +#cd $PR/c_test/unx_cachetst +#COMMON_FILES=$(ls *.c) +#(ln -f $COMMON_FILES $PR/c_test/unx_testcases) + +cd $PR/c_test/unx_testcases +(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" XTRA=dbg XTRA_CFLAGS="-DDEBUG -DDEBUG_SSS -g" $2 $3 $4 $5 $6) +RCODE=$? +rm -f $COMMON_FILES +if(test $RCODE != 0) +then +exit $RCODE +else +exit 0 +fi diff --git a/shsrc/lshsrc/mk-tstcases-ol b/shsrc/lshsrc/mk-tstcases-ol index bd5178b3..294b5394 100644 --- a/shsrc/lshsrc/mk-tstcases-ol +++ b/shsrc/lshsrc/mk-tstcases-ol @@ -1,27 +1,27 @@ -#!/bin/bash -set -x -mk-dirs -cd ../../ -PR=`pwd` -cd $PR/make - -MAJ_SSS_NO=`cat majver.txt` -MIN_SSS_NO=`cat minver.txt` -REV_SSS_NO=`cat revver.txt` - -export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO - -cd $PR/c_test/unx_cachetst -COMMON_FILES=$(ls *.c) -(ln -f $COMMON_FILES $PR/c_test/unx_testcases) - -cd $PR/c_test/unx_testcases -(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" XTRA=ndbg $2 $3 $4 $5) -RCODE=$? -rm -f $COMMON_FILES -if(test $RCODE != 0) -then -exit $RCODE -else -exit 0 -fi +#!/bin/bash +set -x +mk-dirs +cd ../../ +PR=`pwd` +cd $PR/make + +MAJ_SSS_NO=`cat majver.txt` +MIN_SSS_NO=`cat minver.txt` +REV_SSS_NO=`cat revver.txt` + +export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO + +cd $PR/c_test/unx_cachetst +COMMON_FILES=$(ls *.c) +(ln -f $COMMON_FILES $PR/c_test/unx_testcases) + +cd $PR/c_test/unx_testcases +(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" XTRA=ndbg $2 $3 $4 $5) +RCODE=$? +rm -f $COMMON_FILES +if(test $RCODE != 0) +then +exit $RCODE +else +exit 0 +fi diff --git a/shsrc/lshsrc/rm-dirs b/shsrc/lshsrc/rm-dirs index cc632933..3e9ebf87 100644 --- a/shsrc/lshsrc/rm-dirs +++ b/shsrc/lshsrc/rm-dirs @@ -1,9 +1,9 @@ -#!/bin/bash -rm -rf ../../bin -rm -rf ../../lib -rm -rf ../../obj - -rm -rf ../../bin64 -rm -rf ../../lib64 -rm -rf ../../obj64 - +#!/bin/bash +rm -rf ../../bin +rm -rf ../../lib +rm -rf ../../obj + +rm -rf ../../bin64 +rm -rf ../../lib64 +rm -rf ../../obj64 +