ffb63be0ae
contain native as well as csharp components.
259 lines
9.2 KiB
RPMSpec
259 lines
9.2 KiB
RPMSpec
#
|
|
# spec file for the CASA_auth_token native packages.
|
|
#
|
|
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
# For debug build, please replace Release to Debug and set debug_opt to --enable-debug
|
|
%define cfg Release
|
|
%define debug_opt ""
|
|
|
|
|
|
Name: @PACKAGE@
|
|
URL: http://www.novell.com/products
|
|
BuildRequires: libstdc++ libgcc gcc-c++ glib2-devel krb5-devel libgssapi libstdc++-devel pam-devel pkgconfig apache2-devel update-alternatives mono-devel CASA-devel expat
|
|
%define prefix /usr
|
|
License: LGPL
|
|
Group: Applications/System
|
|
Autoreqprov: on
|
|
%define bldno 1.0.0
|
|
Version: @VERSION@
|
|
Release: 0
|
|
Summary: Novell Common Authentication Services Adapter Authentication Token Infrastructure "Native" (CASA_auth_token)
|
|
Source: %{name}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Requires: expat
|
|
PreReq: %fillup_prereq %insserv_prereq
|
|
|
|
%description
|
|
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 is made available
|
|
to the consuming services. The amount of 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_native package contains the CASA (Common Authentication
|
|
Services Adapter) authentication token infrastructure lower level libraries for
|
|
token verification from native code ("C"). It is recomended that this library
|
|
not be invoked directly by applications, instead it is recomended that
|
|
appplication invoke its services through the support modules provided to
|
|
integrate with PAM or the Apache Web Server.
|
|
|
|
|
|
%package -n CASA_auth_token_pam_support
|
|
Summary: Libraries needed for PAM applications development.
|
|
Group: Applications/System
|
|
Requires: CASA_auth_token_native pam
|
|
|
|
%description -n CASA_auth_token_pam_support
|
|
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 is made available
|
|
to the consuming services. The amount of 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_pam_support package contains the CASA (Common Authentication
|
|
Services Adapter) authentication token infrastructure PAM module for token verification.
|
|
|
|
|
|
%package -n CASA_auth_token_apache2_2_support
|
|
Summary: Libraries needed for Apache 2.2 applications development.
|
|
Group: Applications/System
|
|
Requires: apache2 CASA_auth_token_native
|
|
|
|
%description -n CASA_auth_token_apache2_2_support
|
|
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 is made available
|
|
to the consuming services. The amount of 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_apache2_2_support package contains the CASA (Common Authentication
|
|
Services Adapter) authentication token infrastructure Apache v2.2 authentication provider
|
|
module for token verification. The module expects that users authenticate
|
|
utilizing the HTTP Basic authentication scheme and that the password utilized consist
|
|
of a CASA authentication token. Information about the authenticated identity is
|
|
made available to other Apache modules via the Apache request environment variable.
|
|
|
|
%package -n CASA_auth_token_devel
|
|
Summary: Include files needed for applications development.
|
|
Group: Applications/System
|
|
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_service
|
|
|
|
%description -n CASA_auth_token_devel
|
|
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 is made available
|
|
to the consuming services. The amount of 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_devel package contains the files necessary for the development
|
|
of client and server applications that utilize the CASA (Common Authentication Service
|
|
Adapter) authentication token infrastructure for authentication.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
#%patch
|
|
%if %{_lib} == "lib64"
|
|
%define binsource bin64
|
|
%else
|
|
%define binsource bin
|
|
%endif
|
|
|
|
%build
|
|
export PATH=.:$PATH:/usr/%_lib/qt3/bin
|
|
%if %suse_version > 1000
|
|
export CFLAGS="$CFLAGS $RPM_OPT_FLAGS -fstack-protector"
|
|
%endif
|
|
|
|
./autogen.sh
|
|
make
|
|
|
|
|
|
%install
|
|
|
|
## Prime the file system ##
|
|
install -d %{buildroot}%{prefix}
|
|
install -d %{buildroot}%{prefix}/%{_lib}
|
|
install -d %{buildroot}%{prefix}/%{_lib}/security
|
|
install -d %{buildroot}%{prefix}/include
|
|
|
|
## CASA_auth_token_native ##
|
|
# Libs
|
|
install -m 755 %{_lib}/%{cfg}/libcasa_s_authtoken.so %{buildroot}%{prefix}/%{_lib}/libcasa_s_authtoken.so.%{bldno}
|
|
|
|
# Lib Symbolic Links
|
|
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
|
|
|
|
## CASA_auth_token_pam_support ##
|
|
# Libs
|
|
install -m 755 %{_lib}/%{cfg}/pam_casaauthtok.so %{buildroot}%{prefix}/%{_lib}/security/pam_casaauthtok.so.%{bldno}
|
|
#install -m 755 %{_lib}/%{cfg}/pam_casaauthtok.so %{buildroot}%{prefix}/%{_lib}/security/pam_casaauthtok.so
|
|
|
|
# Lib Symbolic Links
|
|
ln -sf pam_casaauthtok.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/security/pam_casaauthtok.so
|
|
ln -sf pam_casaauthtok.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/security/pam_casaauthtok.so.1
|
|
|
|
## CASA_auth_token_apache2_2_support ##
|
|
# Libs
|
|
install -m 755 %{_lib}/%{cfg}/mod_authn_casa.so %{buildroot}%{prefix}/%{_lib}/mod_authn_casa.so.%{bldno}
|
|
|
|
# Lib Symbolic Links
|
|
ln -sf mod_authn_casa.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/mod_authn_casa.so
|
|
ln -sf mod_authn_casa.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/mod_authn_casa.so.1
|
|
|
|
## CASA_auth_token_devel ##
|
|
# Header Files
|
|
install -m 644 include/casa_c_authtoken.h %{buildroot}%{prefix}/include
|
|
install -m 644 include/casa_s_authtoken.h %{buildroot}%{prefix}/include
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
## CASA_auth_token_native ##
|
|
%pre
|
|
# Nothing to do in this pre script
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
|
|
%preun
|
|
# Nothing to do in this preun script
|
|
|
|
%postun
|
|
# Nothing to do in this postun script
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{prefix}/%{_lib}/libcasa_s_authtoken.so.%{bldno}
|
|
%{prefix}/%{_lib}/libcasa_s_authtoken.so
|
|
%{prefix}/%{_lib}/libcasa_s_authtoken.so.1
|
|
|
|
|
|
## CASA_auth_token_pam_support ##
|
|
%pre -n CASA_auth_token_pam_support
|
|
# Nothing to do in this pre script
|
|
|
|
%post -n CASA_auth_token_pam_support
|
|
/sbin/ldconfig
|
|
|
|
%preun -n CASA_auth_token_pam_support
|
|
# Nothing to do in this preun script
|
|
|
|
%postun -n CASA_auth_token_pam_support
|
|
# Nothing to do in this postun script
|
|
|
|
%files -n CASA_auth_token_pam_support
|
|
%defattr(-,root,root)
|
|
%dir %{prefix}/%{_lib}/security
|
|
%{prefix}/%{_lib}/security/pam_casaauthtok.so.%{bldno}
|
|
%{prefix}/%{_lib}/security/pam_casaauthtok.so
|
|
%{prefix}/%{_lib}/security/pam_casaauthtok.so.1
|
|
|
|
|
|
## CASA_auth_token_apache2_2_support ##
|
|
%pre -n CASA_auth_token_apache2_2_support
|
|
# Nothing to do in this pre script
|
|
|
|
%post -n CASA_auth_token_apache2_2_support
|
|
/sbin/ldconfig
|
|
|
|
%preun -n CASA_auth_token_apache2_2_support
|
|
# Nothing to do in this preun script
|
|
|
|
%postun -n CASA_auth_token_apache2_2_support
|
|
# Nothing to do in this postun script
|
|
|
|
%files -n CASA_auth_token_apache2_2_support
|
|
%defattr(-,root,root)
|
|
%{prefix}/%{_lib}/mod_authn_casa.so.%{bldno}
|
|
%{prefix}/%{_lib}/mod_authn_casa.so
|
|
%{prefix}/%{_lib}/mod_authn_casa.so.1
|
|
|
|
|
|
## CASA_auth_token_devel ##
|
|
%pre -n CASA_auth_token_devel
|
|
# Nothing to do in this pre script
|
|
|
|
%post -n CASA_auth_token_devel
|
|
# Nothing to do in this post script
|
|
|
|
%preun -n CASA_auth_token_devel
|
|
# Nothing to do in this preun script
|
|
|
|
%postun -n CASA_auth_token_devel
|
|
# Nothing to do in this postun script
|
|
|
|
%files -n CASA_auth_token_devel
|
|
%defattr(-,root,root)
|
|
%{prefix}/include/casa_c_authtoken.h
|
|
%{prefix}/include/casa_s_authtoken.h
|
|
|
|
%changelog -n CASA_auth_token_native
|