Changes necessary to create CASA_auth_token_client package.
This commit is contained in:
parent
02c573db01
commit
8db0e78d31
CASA-auth-token/non-java
@ -20,9 +20,9 @@
|
|||||||
#
|
#
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
|
||||||
SUBDIRS = utilities server package
|
SUBDIRS = utilities server client package
|
||||||
|
|
||||||
DIST_SUBDIRS = include utilities server package
|
DIST_SUBDIRS = include utilities server client package
|
||||||
|
|
||||||
EXTRA_DIST = autogen.sh
|
EXTRA_DIST = autogen.sh
|
||||||
|
|
||||||
|
@ -20,11 +20,9 @@
|
|||||||
#
|
#
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
|
||||||
#SUBDIRS = $(TARGET_OS) mechanisms
|
SUBDIRS = $(TARGET_OS) mechanisms
|
||||||
SUBDIRS = $(TARGET_OS)
|
|
||||||
|
|
||||||
#DIST_SUBDIRS = linux mechanisms
|
DIST_SUBDIRS = linux mechanisms
|
||||||
DIST_SUBDIRS = linux
|
|
||||||
|
|
||||||
CFILES =
|
CFILES =
|
||||||
|
|
||||||
|
@ -44,15 +44,15 @@ PLATFORMDEPENDENTSOURCEDIR = .
|
|||||||
MODULE_NAME = libcasa_c_authtoken
|
MODULE_NAME = libcasa_c_authtoken
|
||||||
MODULE_EXT = so
|
MODULE_EXT = so
|
||||||
|
|
||||||
CFILES = authmech.c \
|
CFILES = ../authmech.c \
|
||||||
authmsg.c \
|
../authmsg.c \
|
||||||
authpolicy.c \
|
../authpolicy.c \
|
||||||
cache.c \
|
../cache.c \
|
||||||
config.c \
|
../config.c \
|
||||||
engine.c \
|
../engine.c \
|
||||||
getpolicymsg.c \
|
../getpolicymsg.c \
|
||||||
gettokenmsg.c \
|
../gettokenmsg.c \
|
||||||
util.c \
|
../util.c \
|
||||||
rpc.c \
|
rpc.c \
|
||||||
platform.c
|
platform.c
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ DIST_SUBDIRS = krb5 pwd
|
|||||||
|
|
||||||
CFILES =
|
CFILES =
|
||||||
|
|
||||||
EXTRA_DIST = $(CFILES) *.h
|
EXTRA_DIST = $(CFILES)
|
||||||
|
|
||||||
.PHONY: package package-clean package-install package-uninstall
|
.PHONY: package package-clean package-install package-uninstall
|
||||||
package package-clean package-install package-uninstall:
|
package package-clean package-install package-uninstall:
|
||||||
|
@ -45,8 +45,8 @@ MODULE_NAME = krb5mech
|
|||||||
MODULE_EXT = so
|
MODULE_EXT = so
|
||||||
|
|
||||||
CFILES = get.c \
|
CFILES = get.c \
|
||||||
interface.c \
|
../interface.c \
|
||||||
util.c \
|
../util.c \
|
||||||
platform.c
|
platform.c
|
||||||
|
|
||||||
CSFILES_CSC :=
|
CSFILES_CSC :=
|
||||||
|
@ -44,9 +44,9 @@ PLATFORMDEPENDENTSOURCEDIR = .
|
|||||||
MODULE_NAME = pwmech
|
MODULE_NAME = pwmech
|
||||||
MODULE_EXT = so
|
MODULE_EXT = so
|
||||||
|
|
||||||
CFILES = get.c \
|
CFILES = ../get.c \
|
||||||
interface.c \
|
../interface.c \
|
||||||
util.c \
|
../util.c \
|
||||||
platform.c
|
platform.c
|
||||||
|
|
||||||
CSFILES_CSC :=
|
CSFILES_CSC :=
|
||||||
|
@ -15,7 +15,7 @@ Name: CASA_auth_token_native
|
|||||||
%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 krb5-devel libgcc libgssapi libstdc++ libstdc++-devel mono-devel pam-devel pkgconfig update-alternatives java-1_5_0-ibm java-1_5_0-ibm-devel java-1_5_0-ibm-alsa sysvinit insserv
|
BuildRequires: CASA-devel apache2-devel expat gcc-c++ glib2-devel krb5-devel libgcc libgssapi libstdc++ libstdc++-devel mono-devel pam-devel pkgconfig update-alternatives java-1_5_0-ibm java-1_5_0-ibm-devel java-1_5_0-ibm-alsa sysvinit insserv curl-devel glade-sharp glade-sharp2
|
||||||
%define prefix /usr
|
%define prefix /usr
|
||||||
License: LGPL
|
License: LGPL
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -23,7 +23,7 @@ Autoreqprov: on
|
|||||||
%define bldno @VERSION@
|
%define bldno @VERSION@
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Novell CASA Authentication Token Libraries
|
Summary: Novell CASA Authentication Token Libraries for C/C++ Server Applications
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Requires: expat binutils java-1_5_0-ibm CASA_auth_token_jaas_support sysvinit insserv
|
Requires: expat binutils java-1_5_0-ibm CASA_auth_token_jaas_support sysvinit insserv
|
||||||
@ -43,17 +43,42 @@ information contained in the tokens is configured on a per-service
|
|||||||
basis. Because of this feature, we say that CASA_auth_token projects an
|
basis. Because of this feature, we say that CASA_auth_token projects an
|
||||||
"Authenticated Identity".
|
"Authenticated Identity".
|
||||||
|
|
||||||
The CASA_auth_token_native package contains the CASA (Common
|
The CASA_auth_token_native package contains the authentication token
|
||||||
Authentication Services Adapter) authentication token infrastructure
|
verification library for C/C++ applications. It is recommended that
|
||||||
is recomended that this library not be invoked directly by
|
this library not be invoked directly by applications, instead it is
|
||||||
applications, instead it is recomended that appplication invoke its
|
recomended that appplication invoke its services through the support
|
||||||
services through the support modules provided to integrate with PAM or
|
modules provided to integrate with PAM or the Apache Web Server.
|
||||||
the Apache Web Server.
|
|
||||||
|
|
||||||
Authors:
|
Authors:
|
||||||
--------
|
--------
|
||||||
Juan Carlos Luciani - jluciani@novell.com
|
Juan Carlos Luciani - jluciani@novell.com
|
||||||
|
|
||||||
|
%package -n CASA_auth_token_client
|
||||||
|
Summary: Novell CASA Authentication Token Libraries for Client Applications
|
||||||
|
Group: System/Libraries
|
||||||
|
Requires: CASA krb5 curl
|
||||||
|
|
||||||
|
%description -n CASA_auth_token_client
|
||||||
|
CASA_auth_token is an authentication token infrastructure with support
|
||||||
|
for multiple authentication mechanisms with an emphasis on providing a
|
||||||
|
scalable single sign-on solution.
|
||||||
|
|
||||||
|
A key feature of CASA_auth_token is that its authentication tokens
|
||||||
|
contain identity information about the entity being authenticated. This
|
||||||
|
information contained in the tokens is configured on a per-service
|
||||||
|
basis. Because of this feature, we say that CASA_auth_token projects an
|
||||||
|
"Authenticated Identity".
|
||||||
|
|
||||||
|
The CASA_auth_token_client package contains the necessary library and
|
||||||
|
configuration files for client applications to obtain authentication
|
||||||
|
tokens.
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Juan Carlos Luciani - jluciani@novell.com
|
||||||
|
Todd Throne
|
||||||
|
Jim Norman
|
||||||
|
|
||||||
%package -n CASA_auth_token_pam_support
|
%package -n CASA_auth_token_pam_support
|
||||||
Summary: Novell CASA Authentication Token PAM Support Components
|
Summary: Novell CASA Authentication Token PAM Support Components
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -109,7 +134,7 @@ Authors:
|
|||||||
%package -n CASA_auth_token-devel
|
%package -n CASA_auth_token-devel
|
||||||
Summary: Novell CASA Authentication Token Development Files
|
Summary: Novell CASA Authentication Token Development Files
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: CASA-devel CASA_auth_token_native CASA_auth_token_jaas_support CASA_auth_token_pam_support CASA_auth_token_apache2_2_support CASA_auth_token_svc
|
Requires: CASA-devel CASA_auth_token_native CASA_auth_token_client CASA_auth_token_jaas_support CASA_auth_token_pam_support CASA_auth_token_apache2_2_support CASA_auth_token_svc
|
||||||
|
|
||||||
%description -n CASA_auth_token-devel
|
%description -n CASA_auth_token-devel
|
||||||
CASA_auth_token is an authentication token infrastructure with support
|
CASA_auth_token is an authentication token infrastructure with support
|
||||||
@ -156,6 +181,8 @@ install -d %{buildroot}%{prefix}
|
|||||||
install -d %{buildroot}%{prefix}/bin
|
install -d %{buildroot}%{prefix}/bin
|
||||||
install -d %{buildroot}%{prefix}/sbin
|
install -d %{buildroot}%{prefix}/sbin
|
||||||
install -d %{buildroot}%{prefix}/%{_lib}
|
install -d %{buildroot}%{prefix}/%{_lib}
|
||||||
|
install -d %{buildroot}%{prefix}/%{_lib}/CASA
|
||||||
|
install -d %{buildroot}%{prefix}/%{_lib}/CASA/authtoken
|
||||||
install -d %{buildroot}/%{_lib}/security
|
install -d %{buildroot}/%{_lib}/security
|
||||||
install -d %{buildroot}%{prefix}/include
|
install -d %{buildroot}%{prefix}/include
|
||||||
install -d %{buildroot}/etc/init.d
|
install -d %{buildroot}/etc/init.d
|
||||||
@ -169,6 +196,8 @@ install -d -m 755 %{buildroot}/etc/CASA
|
|||||||
install -d -m 755 %{buildroot}/etc/CASA/authtoken.d
|
install -d -m 755 %{buildroot}/etc/CASA/authtoken.d
|
||||||
install -d -m 755 %{buildroot}/etc/CASA/authtoken.d/validate.d
|
install -d -m 755 %{buildroot}/etc/CASA/authtoken.d/validate.d
|
||||||
install -d -m 755 %{buildroot}/etc/CASA/authtoken.d/modules.d
|
install -d -m 755 %{buildroot}/etc/CASA/authtoken.d/modules.d
|
||||||
|
install -d -m 755 %{buildroot}/etc/CASA/authtoken.d/client.d
|
||||||
|
install -d -m 755 %{buildroot}/etc/CASA/authtoken.d/client.d/mechanisms.d
|
||||||
|
|
||||||
## CASA_auth_token_native ##
|
## CASA_auth_token_native ##
|
||||||
# Libs
|
# Libs
|
||||||
@ -196,6 +225,25 @@ install -m 755 server/AuthTokenValidate/Svc/linux/CasaAuthtokenValidateD %{build
|
|||||||
install -m 750 server/AuthTokenValidate/Svc/linux/envvars %{buildroot}/etc/CASA/authtoken.d/validate.d/
|
install -m 750 server/AuthTokenValidate/Svc/linux/envvars %{buildroot}/etc/CASA/authtoken.d/validate.d/
|
||||||
ln -sf casa_atvd %{buildroot}%{prefix}/sbin/rccasa_atvd
|
ln -sf casa_atvd %{buildroot}%{prefix}/sbin/rccasa_atvd
|
||||||
|
|
||||||
|
## CASA_auth_token_client ##
|
||||||
|
# Libs
|
||||||
|
install -m 755 %{_lib}/%{cfg}/libcasa_c_authtoken.so %{buildroot}%{prefix}/%{_lib}/libcasa_c_authtoken.so.%{bldno}
|
||||||
|
install -m 755 %{_lib}/%{cfg}/krb5mech.so %{buildroot}%{prefix}/%{_lib}/CASA/authtoken/krb5mech.so.%{bldno}
|
||||||
|
install -m 755 %{_lib}/%{cfg}/pwmech.so %{buildroot}%{prefix}/%{_lib}/CASA/authtoken/pwmech.so.%{bldno}
|
||||||
|
|
||||||
|
# Lib Symbolic Links
|
||||||
|
ln -sf libcasa_c_authtoken.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_c_authtoken.so
|
||||||
|
ln -sf libcasa_c_authtoken.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_c_authtoken.so.1
|
||||||
|
ln -sf krb5mech.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/CASA/authtoken/krb5mech.so
|
||||||
|
ln -sf krb5mech.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/CASA/authtoken/krb5mech.so.1
|
||||||
|
ln -sf pwmech.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/CASA/authtoken/pwmech.so
|
||||||
|
ln -sf pwmech.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/CASA/authtoken/pwmech.so.1
|
||||||
|
|
||||||
|
# Others
|
||||||
|
install -m 644 client/client.conf %{buildroot}/etc/CASA/authtoken.d/client.d/client.conf
|
||||||
|
install -m 644 client/mechanisms/krb5/linux/Krb5Authenticate.conf %{buildroot}/etc/CASA/authtoken.d/client.d/mechanisms.d/Krb5Authenticate.conf
|
||||||
|
install -m 644 client/mechanisms/pwd/linux/PwdAuthenticate.conf %{buildroot}/etc/CASA/authtoken.d/client.d/mechanisms.d/PwdAuthenticate.conf
|
||||||
|
|
||||||
## CASA_auth_token_pam_support ##
|
## CASA_auth_token_pam_support ##
|
||||||
# Libs
|
# Libs
|
||||||
install -m 755 %{_lib}/%{cfg}/pam_casaauthtok.so %{buildroot}/%{_lib}/security/pam_casaauthtok.so
|
install -m 755 %{_lib}/%{cfg}/pam_casaauthtok.so %{buildroot}/%{_lib}/security/pam_casaauthtok.so
|
||||||
@ -285,11 +333,46 @@ rm -rf /var/lib/CASA/authtoken/validate
|
|||||||
%{prefix}/%{_lib}/libcasa_s_ipc.so.1
|
%{prefix}/%{_lib}/libcasa_s_ipc.so.1
|
||||||
%{prefix}/bin/casa_atvd
|
%{prefix}/bin/casa_atvd
|
||||||
%config /etc/CASA/authtoken.d/validate.d/envvars
|
%config /etc/CASA/authtoken.d/validate.d/envvars
|
||||||
/etc/CASA/authtoken.d/modules.d/CasaIdentityToken.conf
|
%config /etc/CASA/authtoken.d/modules.d/CasaIdentityToken.conf
|
||||||
/etc/init.d/casa_atvd
|
/etc/init.d/casa_atvd
|
||||||
/usr/sbin/rccasa_atvd
|
/usr/sbin/rccasa_atvd
|
||||||
|
|
||||||
|
|
||||||
|
## CASA_auth_token_client ##
|
||||||
|
%pre -n CASA_auth_token_client
|
||||||
|
# Nothing to do in this pre script
|
||||||
|
|
||||||
|
%post -n CASA_auth_token_client
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%preun -n CASA_auth_token_client
|
||||||
|
# Nothing to do in this preun script
|
||||||
|
|
||||||
|
%postun -n CASA_auth_token_client
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%files -n CASA_auth_token_client
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %{prefix}/%{_lib}/CASA
|
||||||
|
%dir %{prefix}/%{_lib}/CASA/authtoken
|
||||||
|
%dir /etc/CASA
|
||||||
|
%dir /etc/CASA/authtoken.d
|
||||||
|
%dir /etc/CASA/authtoken.d/client.d
|
||||||
|
%dir /etc/CASA/authtoken.d/client.d/mechanisms.d
|
||||||
|
%{prefix}/%{_lib}/libcasa_c_authtoken.so.%{bldno}
|
||||||
|
%{prefix}/%{_lib}/libcasa_c_authtoken.so
|
||||||
|
%{prefix}/%{_lib}/libcasa_c_authtoken.so.1
|
||||||
|
%{prefix}/%{_lib}/CASA/authtoken/krb5mech.so.%{bldno}
|
||||||
|
%{prefix}/%{_lib}/CASA/authtoken/krb5mech.so
|
||||||
|
%{prefix}/%{_lib}/CASA/authtoken/krb5mech.so.1
|
||||||
|
%{prefix}/%{_lib}/CASA/authtoken/pwmech.so.%{bldno}
|
||||||
|
%{prefix}/%{_lib}/CASA/authtoken/pwmech.so
|
||||||
|
%{prefix}/%{_lib}/CASA/authtoken/pwmech.so.1
|
||||||
|
%config /etc/CASA/authtoken.d/client.d/client.conf
|
||||||
|
%config /etc/CASA/authtoken.d/client.d/mechanisms.d/Krb5Authenticate.conf
|
||||||
|
%config /etc/CASA/authtoken.d/client.d/mechanisms.d/PwdAuthenticate.conf
|
||||||
|
|
||||||
|
|
||||||
## CASA_auth_token_pam_support ##
|
## CASA_auth_token_pam_support ##
|
||||||
%pre -n CASA_auth_token_pam_support
|
%pre -n CASA_auth_token_pam_support
|
||||||
# Nothing to do in this pre script
|
# Nothing to do in this pre script
|
||||||
|
Loading…
x
Reference in New Issue
Block a user