Fixed issues that were keeping the component from building on STABLE.
Also made necessary changes to the spec files as recommended by autobuild and to conform with the spec file on STABLE.
This commit is contained in:
parent
df9110cfec
commit
268046b8ee
@ -16,9 +16,9 @@
|
|||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: casa_atvd
|
# Provides: casa_atvd
|
||||||
# Required-Start: $local_fs $remote_fs
|
# Required-Start: $local_fs $remote_fs
|
||||||
# X-UnitedLinux-Should-Start: $syslog $time
|
# Should-Start: $syslog $time
|
||||||
# Required-Stop: $local_fs $remote_fs
|
# Required-Stop: $local_fs $remote_fs
|
||||||
# X-UnitedLinux-Should-Stop: $syslog $time
|
# Should-Stop: $syslog $time
|
||||||
# Default-Start: 2 3 5
|
# Default-Start: 2 3 5
|
||||||
# Default-Stop:
|
# Default-Stop:
|
||||||
# Short-Description: Casa Authtoken Validate Daemon
|
# Short-Description: Casa Authtoken Validate Daemon
|
||||||
|
@ -41,15 +41,15 @@ ROOT = ../../..
|
|||||||
LIBDIR = $(ROOT)/$(LIB)
|
LIBDIR = $(ROOT)/$(LIB)
|
||||||
BINDIR = $(ROOT)/$(BIN)
|
BINDIR = $(ROOT)/$(BIN)
|
||||||
|
|
||||||
IBM_JAVA_LIBDIR = /usr/$(LIB)/jvm/jre-1.5.0/bin
|
IBM_JAVA_LIBDIR = /usr/$(LIB)/jvm/jre/bin
|
||||||
|
|
||||||
if LIB64
|
if LIB64
|
||||||
SUN_JAVA_LIBDIR = /usr/$(LIB)/jvm/jre-1.5.0/lib/amd64/server
|
SUN_JAVA_LIBDIR = /usr/$(LIB)/jvm/jre/lib/amd64/server
|
||||||
else
|
else
|
||||||
SUN_JAVA_LIBDIR = /usr/$(LIB)/jvm/jre-1.5.0/lib/i386/server
|
SUN_JAVA_LIBDIR = /usr/$(LIB)/jvm/jre/lib/i386/server
|
||||||
endif
|
endif
|
||||||
|
|
||||||
JAVA_INCDIR = /usr/$(LIB)/jvm/java-1.5.0/include
|
JAVA_INCDIR = /usr/$(LIB)/jvm/java/include
|
||||||
|
|
||||||
# handle Mono secondary dependencies
|
# handle Mono secondary dependencies
|
||||||
export MONO_PATH := $(MONO_PATH)
|
export MONO_PATH := $(MONO_PATH)
|
||||||
|
@ -38,21 +38,21 @@ else
|
|||||||
SUNLIBDIR=i386
|
SUNLIBDIR=i386
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TEST_IBM_JVM=$(/usr/$LIB/jvm/jre-1.5.0/bin/java -version 2>&1 | grep -i ibm)
|
TEST_IBM_JVM=$(/usr/$LIB/jvm/jre/bin/java -version 2>&1 | grep -i ibm)
|
||||||
if [ -z "${TEST_IBM_JVM}" ]; then
|
if [ -z "${TEST_IBM_JVM}" ]; then
|
||||||
# Assume Sun JVM
|
# Assume Sun JVM
|
||||||
JVM_VER=SUN
|
JVM_VER=SUN
|
||||||
if [ -z "${LD_LIBRARY_PATH}" ]; then
|
if [ -z "${LD_LIBRARY_PATH}" ]; then
|
||||||
LD_LIBRARY_PATH=/usr/$LIB/jvm/jre-1.5.0/lib/$SUNLIBDIR/server
|
LD_LIBRARY_PATH=/usr/$LIB/jvm/jre/lib/$SUNLIBDIR/server
|
||||||
else
|
else
|
||||||
LD_LIBRARY_PATH="\${LD_LIBRARY_PATH}":/usr/$LIB/jvm/jre-1.5.0/lib/$SUNLIBDIR/server
|
LD_LIBRARY_PATH="\${LD_LIBRARY_PATH}":/usr/$LIB/jvm/jre/lib/$SUNLIBDIR/server
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
JVM_VER=IBM
|
JVM_VER=IBM
|
||||||
if [ -z "${LD_LIBRARY_PATH}" ]; then
|
if [ -z "${LD_LIBRARY_PATH}" ]; then
|
||||||
LD_LIBRARY_PATH=/usr/$LIB/jvm/jre-1.5.0/bin:/usr/$LIB/jvm/jre-1.5.0/bin/classic
|
LD_LIBRARY_PATH=/usr/$LIB/jvm/jre/bin:/usr/$LIB/jvm/jre/bin/classic
|
||||||
else
|
else
|
||||||
LD_LIBRARY_PATH="\${LD_LIBRARY_PATH}":/usr/$LIB/jvm/jre-1.5.0/bin:/usr/$LIB/jvm/jre-1.5.0/bin/classic
|
LD_LIBRARY_PATH="\${LD_LIBRARY_PATH}":/usr/$LIB/jvm/jre/bin:/usr/$LIB/jvm/jre/bin/classic
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
export JVM_VER
|
export JVM_VER
|
||||||
|
@ -49,6 +49,7 @@ extern "C" {
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
#include <assert.h> // Ensure that NDEBUG is defined for release builds!
|
#include <assert.h> // Ensure that NDEBUG is defined for release builds!
|
||||||
|
#include <limits.h>
|
||||||
#include <sys/ipc.h>
|
#include <sys/ipc.h>
|
||||||
#include <casa_s_ipc.h>
|
#include <casa_s_ipc.h>
|
||||||
}
|
}
|
||||||
|
@ -14,14 +14,14 @@ Name: CASA_auth_token_server
|
|||||||
%define cfg Release
|
%define cfg Release
|
||||||
%define debug_opt ""
|
%define debug_opt ""
|
||||||
|
|
||||||
URL: http://www.novell.com/products
|
Url: http://www.novell.com/products
|
||||||
BuildRequires: CASA-devel apache2-devel expat gcc-c++ glib2-devel libstdc++ libstdc++-devel mono-devel pam-devel pkgconfig update-alternatives java-sdk-1.5.0 sysvinit insserv pwdutils
|
BuildRequires: CASA-devel apache2-devel expat gcc-c++ glib2-devel libstdc++ libstdc++-devel mono-devel pam-devel pkgconfig update-alternatives java-sdk-1.5.0 sysvinit insserv pwdutils
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
BuildRequires: java-1_5_0-ibm-alsa
|
BuildRequires: java-1_5_0-ibm-alsa
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define prefix /usr
|
%define prefix /usr
|
||||||
License: LGPL
|
License: LGPL v2.1 or later
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Autoreqprov: on
|
Autoreqprov: on
|
||||||
%define bldno @VERSION@
|
%define bldno @VERSION@
|
||||||
@ -38,21 +38,23 @@ PreReq: /usr/sbin/groupadd, /usr/sbin/useradd, /usr/sbin/userdel, /usr/bin/gete
|
|||||||
|
|
||||||
%description
|
%description
|
||||||
CASA_auth_token is an authentication token infrastructure with support
|
CASA_auth_token is an authentication token infrastructure with support
|
||||||
for multiple authentication mechanisms with an emphasis on providing a scalable
|
for multiple authentication mechanisms with an emphasis on providing a
|
||||||
single sign-on solution.
|
scalable single sign-on solution.
|
||||||
|
|
||||||
A key feature of CASA_auth_token is that its authentication tokens contain
|
A key feature of CASA_auth_token is that its authentication tokens
|
||||||
identity information about the entity being authenticated. This information is
|
contain identity information about the entity being authenticated. This
|
||||||
made available to the consuming services. The amount of information contained in
|
information is made available to the consuming services. The amount of
|
||||||
the tokens is configured on a per-service basis. Because of this feature, we say
|
information contained in the tokens is configured on a per-service
|
||||||
that CASA_auth_token projects an "Authenticated Identity".
|
basis. Because of this feature, we say that CASA_auth_token projects an
|
||||||
|
"Authenticated Identity".
|
||||||
|
|
||||||
The CASA_auth_token_server package contains the CASA (Common Authentication
|
The CASA_auth_token_server package contains the CASA (Common
|
||||||
Services Adapter) authentication token infrastructure lower level libraries for
|
Authentication Services Adapter) authentication token infrastructure
|
||||||
token verification from native code ("C"). It is recomended that this library
|
lower level libraries for token verification from native code ("C"). It
|
||||||
not be invoked directly by applications, instead it is recomended that
|
is recomended that this library not be invoked directly by
|
||||||
appplication invoke its services through the support modules provided to
|
applications, instead it is recomended that appplication invoke its
|
||||||
integrate with PAM or the Apache Web Server.
|
services through the support modules provided to integrate with PAM or
|
||||||
|
the Apache Web Server.
|
||||||
|
|
||||||
Authors:
|
Authors:
|
||||||
--------
|
--------
|
||||||
@ -60,6 +62,7 @@ Authors:
|
|||||||
|
|
||||||
|
|
||||||
%package -n CASA_auth_token_pam_support
|
%package -n CASA_auth_token_pam_support
|
||||||
|
License: LGPL v2.1 or later
|
||||||
Summary: Novell CASA Authentication Token PAM Support Components
|
Summary: Novell CASA Authentication Token PAM Support Components
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires: CASA_auth_token_server pam
|
Requires: CASA_auth_token_server pam
|
||||||
@ -85,6 +88,7 @@ Authors:
|
|||||||
|
|
||||||
|
|
||||||
%package -n CASA_auth_token_apache2_2_support
|
%package -n CASA_auth_token_apache2_2_support
|
||||||
|
License: LGPL v2.1 or later
|
||||||
Summary: Novell CASA Authentication Token Apache2_2 Support Components
|
Summary: Novell CASA Authentication Token Apache2_2 Support Components
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires: apache2 CASA_auth_token_server
|
Requires: apache2 CASA_auth_token_server
|
||||||
@ -114,6 +118,7 @@ Authors:
|
|||||||
|
|
||||||
|
|
||||||
%package -n CASA_auth_token_server-devel
|
%package -n CASA_auth_token_server-devel
|
||||||
|
License: LGPL v2.1 or later
|
||||||
Summary: Novell CASA Authentication Token Server Development Files
|
Summary: Novell CASA Authentication Token Server Development Files
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: CASA-devel CASA_auth_token_server CASA_auth_token_jaas_support CASA_auth_token_pam_support CASA_auth_token_apache2_2_support
|
Requires: CASA-devel CASA_auth_token_server CASA_auth_token_jaas_support CASA_auth_token_pam_support CASA_auth_token_apache2_2_support
|
||||||
@ -149,9 +154,7 @@ Authors:
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export PATH=.:$PATH:/usr/%_lib/qt3/bin
|
export PATH=.:$PATH:/usr/%_lib/qt3/bin
|
||||||
%if %suse_version > 1000
|
|
||||||
export CFLAGS="$CFLAGS $RPM_OPT_FLAGS -fstack-protector"
|
export CFLAGS="$CFLAGS $RPM_OPT_FLAGS -fstack-protector"
|
||||||
%endif
|
|
||||||
|
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
make
|
make
|
||||||
@ -192,11 +195,8 @@ install -m 755 %{_lib}/%{cfg}/libcasa_s_ipc.so %{buildroot}%{prefix}/%{_lib}/lib
|
|||||||
# Symbolic Links
|
# Symbolic Links
|
||||||
ln -sf casa_iden_token.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/CASA/authtoken/casa_iden_token.so
|
ln -sf casa_iden_token.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/CASA/authtoken/casa_iden_token.so
|
||||||
ln -sf casa_iden_token.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/CASA/authtoken/casa_iden_token.so.1
|
ln -sf casa_iden_token.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/CASA/authtoken/casa_iden_token.so.1
|
||||||
ln -sf libcasa_s_authtoken.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_s_authtoken.so
|
|
||||||
ln -sf libcasa_s_authtoken.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_s_authtoken.so.1
|
ln -sf libcasa_s_authtoken.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_s_authtoken.so.1
|
||||||
ln -sf libcasa_c_ipc.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_c_ipc.so
|
|
||||||
ln -sf libcasa_c_ipc.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_c_ipc.so.1
|
ln -sf libcasa_c_ipc.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_c_ipc.so.1
|
||||||
ln -sf libcasa_s_ipc.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_s_ipc.so
|
|
||||||
ln -sf libcasa_s_ipc.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_s_ipc.so.1
|
ln -sf libcasa_s_ipc.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_s_ipc.so.1
|
||||||
|
|
||||||
# Bins
|
# Bins
|
||||||
@ -205,7 +205,7 @@ install -m 755 %{binsource}/%{cfg}/CasaAuthtokenValidateD %{buildroot}%{prefix}/
|
|||||||
# Others
|
# Others
|
||||||
install -m 644 %{_lib}/%{cfg}/CasaIdentityToken.conf %{buildroot}/etc/CASA/authtoken/modules/CasaIdentityToken.conf
|
install -m 644 %{_lib}/%{cfg}/CasaIdentityToken.conf %{buildroot}/etc/CASA/authtoken/modules/CasaIdentityToken.conf
|
||||||
install -m 755 AuthTokenValidate/Svc/linux/CasaAuthtokenValidateD %{buildroot}/etc/init.d/casa_atvd
|
install -m 755 AuthTokenValidate/Svc/linux/CasaAuthtokenValidateD %{buildroot}/etc/init.d/casa_atvd
|
||||||
install -m 750 AuthTokenValidate/Svc/linux/envvars %{buildroot}/etc/CASA/authtoken/validate/
|
install -m 640 AuthTokenValidate/Svc/linux/envvars %{buildroot}/etc/CASA/authtoken/validate/
|
||||||
ln -sf casa_atvd %{buildroot}%{prefix}/sbin/rccasa_atvd
|
ln -sf casa_atvd %{buildroot}%{prefix}/sbin/rccasa_atvd
|
||||||
|
|
||||||
|
|
||||||
@ -229,6 +229,10 @@ install -m 644 include/casa_s_authtoken.h %{buildroot}%{prefix}/include
|
|||||||
install -m 644 include/casa_c_ipc.h %{buildroot}%{prefix}/include
|
install -m 644 include/casa_c_ipc.h %{buildroot}%{prefix}/include
|
||||||
install -m 644 include/casa_s_ipc.h %{buildroot}%{prefix}/include
|
install -m 644 include/casa_s_ipc.h %{buildroot}%{prefix}/include
|
||||||
|
|
||||||
|
# Symbolic Links
|
||||||
|
ln -sf libcasa_s_authtoken.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_s_authtoken.so
|
||||||
|
ln -sf libcasa_c_ipc.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_c_ipc.so
|
||||||
|
ln -sf libcasa_s_ipc.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_s_ipc.so
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -284,13 +288,10 @@ rm -rf /var/lib/CASA/authtoken/validate
|
|||||||
%dir /etc/CASA/authtoken/validate
|
%dir /etc/CASA/authtoken/validate
|
||||||
%dir /etc/CASA/authtoken/modules
|
%dir /etc/CASA/authtoken/modules
|
||||||
%{prefix}/%{_lib}/libcasa_s_authtoken.so.%{bldno}
|
%{prefix}/%{_lib}/libcasa_s_authtoken.so.%{bldno}
|
||||||
%{prefix}/%{_lib}/libcasa_s_authtoken.so
|
|
||||||
%{prefix}/%{_lib}/libcasa_s_authtoken.so.1
|
%{prefix}/%{_lib}/libcasa_s_authtoken.so.1
|
||||||
%{prefix}/%{_lib}/libcasa_c_ipc.so.%{bldno}
|
%{prefix}/%{_lib}/libcasa_c_ipc.so.%{bldno}
|
||||||
%{prefix}/%{_lib}/libcasa_c_ipc.so
|
|
||||||
%{prefix}/%{_lib}/libcasa_c_ipc.so.1
|
%{prefix}/%{_lib}/libcasa_c_ipc.so.1
|
||||||
%{prefix}/%{_lib}/libcasa_s_ipc.so.%{bldno}
|
%{prefix}/%{_lib}/libcasa_s_ipc.so.%{bldno}
|
||||||
%{prefix}/%{_lib}/libcasa_s_ipc.so
|
|
||||||
%{prefix}/%{_lib}/libcasa_s_ipc.so.1
|
%{prefix}/%{_lib}/libcasa_s_ipc.so.1
|
||||||
%{prefix}/%{_lib}/CASA/authtoken/casa_iden_token.so.%{bldno}
|
%{prefix}/%{_lib}/CASA/authtoken/casa_iden_token.so.%{bldno}
|
||||||
%{prefix}/%{_lib}/CASA/authtoken/casa_iden_token.so
|
%{prefix}/%{_lib}/CASA/authtoken/casa_iden_token.so
|
||||||
@ -359,6 +360,9 @@ rm -rf /var/lib/CASA/authtoken/validate
|
|||||||
%{prefix}/include/casa_s_authtoken.h
|
%{prefix}/include/casa_s_authtoken.h
|
||||||
%{prefix}/include/casa_c_ipc.h
|
%{prefix}/include/casa_c_ipc.h
|
||||||
%{prefix}/include/casa_s_ipc.h
|
%{prefix}/include/casa_s_ipc.h
|
||||||
|
%{prefix}/%{_lib}/libcasa_s_authtoken.so
|
||||||
|
%{prefix}/%{_lib}/libcasa_c_ipc.so
|
||||||
|
%{prefix}/%{_lib}/libcasa_s_ipc.so
|
||||||
|
|
||||||
|
|
||||||
%changelog -n CASA_auth_token_server
|
%changelog -n CASA_auth_token_server
|
||||||
|
Loading…
Reference in New Issue
Block a user