diff --git a/CASA-auth-token/package/Makefile.am b/CASA-auth-token/package/Makefile.am new file mode 100644 index 00000000..f6a6d745 --- /dev/null +++ b/CASA-auth-token/package/Makefile.am @@ -0,0 +1,38 @@ +####################################################################### +# +# Copyright (C) 2006 Novell, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# +# Author: Juan Carlos Luciani +# +####################################################################### + +SUBDIRS = linux + +DIST_SUBDIRS = linux + +EXTRA_DIST = + +.PHONY: package package-clean package-install package-uninstall +package package-clean package-install package-uninstall: + $(MAKE) -C $(TARGET_OS) $@ + +clean-local: + if [ -d lib ]; then rm -rf lib; fi + +maintainer-clean-local: + rm -f Makefile.in + diff --git a/CASA-auth-token/package/linux/CASA-auth-token.spec.in b/CASA-auth-token/package/linux/CASA-auth-token.spec.in new file mode 100644 index 00000000..c580497c --- /dev/null +++ b/CASA-auth-token/package/linux/CASA-auth-token.spec.in @@ -0,0 +1,341 @@ +# +# spec file for package CASA-auth-token +# +# 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: gcc-c++ glade-sharp glib-sharp glib2-devel gnome-filesystem gnome-keyring-devel gtk-sharp gtk-sharp-gapi gtk2-devel java2-devel-packages mDNSResponder-devel kdelibs3-devel krb5-devel libgssapi libstdc++-devel mono-devel pam-devel pkgconfig qt3-devel +#BuildRequires: gcc-c++ glade-sharp glib-sharp glib2-devel gnome-filesystem gtk-sharp gtk-sharp-gapi gtk2-devel java2-devel-packages mDNSResponder-devel kdelibs3-devel krb5-devel libgssapi libstdc++-devel mono-devel pam-devel pkgconfig qt3-devel +BuildRequires: gcc-c++ glib2-devel java2-devel-packages krb5-devel libgssapi libstdc++-devel pam-devel pkgconfig qt3-devel +%define prefix /usr/share/doc/packages +%define bin_prefix /usr +License: LGPL +Group: Productivity/Other +Autoreqprov: on +%define bldno 1.1.1 +Version: @VERSION@ +Release: 0 +Summary: Novell Common Authentication Services Adapter Authentication Token Infrastructure (CASA-auth-token) +Source: %{name}-%{version}.tar.bz2 +#Patch: %{name}-%{version}.diff +#Patch2: CASA-detect_lib64.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires: +PreReq: %fillup_prereq %insserv_prereq +#ExclusiveArch: %ix86 x86_64 +#NoSource: 0 + +%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". + + +CASA-auth-token-service.rpm + +requires: tomcat, java + +AuthTokenSvc-war + +CASA-auth-token-native-support.rpm + +libserver.so + +CASA-auth-token-pam-support.rpm + +requires: CASA-auth-token-native-support.rpm pam + +pam_module.so + +CASA-auth-token-apache2.2-support.rpm + +requires: CASA-auth-token-native-support.rpm, apache2.2 + +apache_mod.so + +CASA-auth-token-jaas-support.rpm + +requires: java + +JaasSupport.jar +AuthTokenSvc-jar + +CASA-auth-token-devel.rpm + +requires: CASA-auth-token-native-support.rpm, CASA-auth-token-client.rpm, CASA-auth-token-pam-support.rpm, CASA-auth-token-apache2.2-support.rpm, CASA-auth-token-jaas-support.rpm + +client.h +server.h + +%package devel +Summary: Include Files and Libraries mandatory for Development. +Group: Productivity/Other +Requires: CASA-auth-token-native-support, CASA-auth-token-client, CASA-auth-token-pam-support, CASA-auth-token-apache2.2-support, CASA-auth-token-jaas-support +Provides: CASA-auth-token-devel + +%description devel +This package contains all necessary include files and libraries needed +to develop applications that can use the CASA (Common Authentication +Service Adapter) authentication token +infrastructure for authentication. + +%package native-support +Summary: CASA authentication token "C" libraries for token verification. +Group: Productivity/Other +Requires: +Provides: CASA-auth-token-native-support + +%description native-support +This 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 pam-support +Summary: CASA authentication token PAM module for token verification. +Group: Productivity/Other +Requires: CASA-auth-token-native-support +Provides: CASA-auth-token-pam-support + +%description pam-support +This package contains the CASA (Common Authentication Services Adapter) +authentication token infrastructure PAM module for token verification. + +%package apache2.2-support +Summary: CASA authentication token Apache v2.2 authentication provider module for token verification. +Group: Productivity/Other +Requires: CASA-auth-token-native-support +Provides: CASA-auth-token-apache2.2-support + +%description apache2.2-support +This package contains the CASA (Common Authentication Services Adapter) +authentication token infrastructure Apache v2.2 authentication provider +module for token verification. + +%package jaas-support +Summary: CASA authentication token PAM module for token verification. +Group: Productivity/Other +Requires: java +Provides: CASA-auth-token-jaas-support + +%description jaas-support +This package contains the CASA (Common Authentication Services Adapter) +authentication token infrastructure JAAS module and supporting libraries +for token verification. + + +%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 + +mkdir -p %{buildroot}%{prefix} +mkdir -p %{buildroot}%{prefix}/CASA +mkdir -p %{buildroot}%{bin_prefix}/%{_lib} +mkdir -p %{buildroot}%{bin_prefix}/bin +mkdir -p %{buildroot}%{bin_prefix}/sbin +mkdir -p %{buildroot}%{bin_prefix}/include +mkdir -p %{buildroot}%{prefix}/CASA/images +mkdir -p %{buildroot}%{prefix}/CASA/help +mkdir -p %{buildroot}%{prefix}/CASA/help/en +mkdir -p %{buildroot}%{prefix}/CASA/doc +mkdir -p %{buildroot}/%{_lib}/security +mkdir -p %{buildroot}/etc/init.d +mkdir -p %{buildroot}/etc/ld.so.conf.d + +install -m 755 %{_lib}/%{cfg}/libmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/%{cfg}/libad_gk.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/%{cfg}/libad_ff.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/%{cfg}/libjmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/%{cfg}/Novell.CASA.miCASAWrapper.dll %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/%{cfg}/Novell.CASA.Common.dll %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/%{cfg}/Novell.CASA.A-D.dll %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/%{cfg}/Novell.CASA.CASAPolicy.dll %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/%{cfg}/Novell.CASA.DataEngines.GnomeKeyring.dll %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/%{cfg}/Novell.CASA.DataEngines.KWallet.dll %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/%{cfg}/Novell.CASA.DataEngines.FireFox.dll %{buildroot}%{bin_prefix}/%{_lib} + +install -m 755 %{binsource}/%{cfg}/micasad.exe %{buildroot}%{bin_prefix}/bin +install -m 755 %{binsource}/%{cfg}/micasad-init %{buildroot}%{bin_prefix}/bin +install -m 755 %{binsource}/%{cfg}/CASAManager.exe %{buildroot}%{bin_prefix}/bin +install -m 755 gui/CASAManager.sh %{buildroot}%{bin_prefix}/bin +install -m 755 gui/CASAManager.exe.config %{buildroot}%{bin_prefix}/bin +install -m 755 gui/images/* %{buildroot}%{prefix}/CASA/images +install -m 755 gui/help/en/* %{buildroot}%{prefix}/CASA/help/en +install -m 755 micasad/startup/micasad %{buildroot}/etc/init.d +install -m 755 micasad/startup/micasad.sh %{buildroot}%{bin_prefix}/sbin +install -m 755 micasad/startup/casacfgpam %{buildroot}%{bin_prefix}/sbin +install -m 755 micasad/startup/casaucfgpam %{buildroot}%{bin_prefix}/sbin +install -m 755 micasad/startup/installcasa %{buildroot}%{bin_prefix}/sbin +install -m 755 micasad/startup/uninstallcasa %{buildroot}%{bin_prefix}/sbin +install -m 755 micasad/startup/iscasaconfiged %{buildroot}%{bin_prefix}/sbin + +install -m 755 %{_lib}/%{cfg}/pam_micasa.so %{buildroot}/%{_lib}/security + +install -d %{buildroot}%{bin_prefix}/%{_lib} +install -d %{buildroot}%{bin_prefix}/bin +install -d %{buildroot}%{bin_prefix}/sbin +install -d %{buildroot}%{bin_prefix}/include +install -d %{buildroot}%{prefix}/CASA/doc +install -d %{buildroot}%{prefix}/CASA/images +install -d %{buildroot}%{prefix}/CASA/help/en +install -d %{buildroot}/%{_lib}/security +install -d %{buildroot}/etc/init.d + +#install -m 644 %{buildroot}%{prefix}/%{_lib}/miCASA.jar %{buildroot}%{prefix}/CASA/%{_lib} +install -m 755 %{_lib}/%{cfg}/miCASA.jar %{buildroot}%{bin_prefix}/%{_lib} + +install -m 644 doc/product/CASA_Reference_Guide.pdf %{buildroot}%{prefix}/CASA/doc +install -m 644 doc/product/License.txt %{buildroot}%{prefix}/CASA/doc +install -m 644 doc/product/Readme.txt %{buildroot}%{prefix}/CASA/doc +install -m 644 include/micasa_mgmd.h %{buildroot}%{bin_prefix}/include +install -m 644 include/micasa_types.h %{buildroot}%{bin_prefix}/include + +ln -s libmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libmicasa.so +ln -s libmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libmicasa.so.1 +ln -s libjmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libjmicasa.so +ln -s libjmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libjmicasa.so.1 + +ln -s libad_gk.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libad_gk.so +ln -s libad_gk.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libad_gk.so.1 + +ln -s libad_ff.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libad_ff.so +ln -s libad_ff.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libad_ff.so.1 + +ln -s /etc/init.d/micasad %{buildroot}%{bin_prefix}/sbin/rcmicasad +echo "/usr/%{_lib}/" >> %{buildroot}/etc/ld.so.conf.d/CASA.conf + +install -d %{buildroot}/usr/share/applications +install gui/CASAManager.desktop %{buildroot}/usr/share/applications +%suse_update_desktop_file -r CASAManager X-SuSE-ControlCenter-Personal +%post +%{fillup_and_insserv micasad} + +/sbin/ldconfig + +%post gui +/sbin/ldconfig + +%preun +%stop_on_removal micasad + +if [ "x$1" = "x0" ] +then + /usr/sbin/casaucfgpam +fi + + +%postun +%restart_on_update micasad +%insserv_cleanup +/sbin/ldconfig + +%postun gui +/sbin/ldconfig + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%dir %{prefix}/CASA +%dir %{prefix}/CASA/doc +%dir %{bin_prefix}/%{_lib}/libmicasa.so.%{bldno} +%dir %{bin_prefix}/%{_lib}/libmicasa.so +%dir %{bin_prefix}/%{_lib}/libmicasa.so.1 +%dir %{bin_prefix}/%{_lib}/libjmicasa.so.%{bldno} +%dir %{bin_prefix}/%{_lib}/libjmicasa.so +%dir %{bin_prefix}/%{_lib}/libjmicasa.so.1 +%dir %{bin_prefix}/%{_lib}/Novell.CASA.miCASAWrapper.dll +%dir %{bin_prefix}/%{_lib}/Novell.CASA.Common.dll + +/etc/init.d/micasad +/%{_lib}/security/pam_micasa.so +/etc/ld.so.conf.d/CASA.conf + +%{bin_prefix}/sbin/rcmicasad +%{bin_prefix}/sbin/casacfgpam +%{bin_prefix}/sbin/casaucfgpam +%{bin_prefix}/sbin/installcasa +%{bin_prefix}/sbin/uninstallcasa +%{bin_prefix}/sbin/iscasaconfiged +%{bin_prefix}/sbin/micasad.sh + +%{bin_prefix}/bin/micasad.exe +%{bin_prefix}/bin/micasad-init + +%{prefix}/CASA/doc/CASA_Reference_Guide.pdf +%{prefix}/CASA/doc/License.txt +%{prefix}/CASA/doc/Readme.txt + + +%files devel +%defattr(-,root,root) +%{bin_prefix}/include/micasa_mgmd.h +%{bin_prefix}/include/micasa_types.h +%{bin_prefix}/%{_lib}/miCASA.jar + +%files gui +%defattr(-,root,root) +%{bin_prefix}/bin/CASAManager.sh +%{bin_prefix}/bin/CASAManager.exe.config +%{bin_prefix}/bin/CASAManager.exe +%{bin_prefix}/share/applications/CASAManager.desktop + +%{bin_prefix}/%{_lib}/libad_gk.so.%{bldno} +%{bin_prefix}/%{_lib}/libad_gk.so +%{bin_prefix}/%{_lib}/libad_gk.so.1 +%{bin_prefix}/%{_lib}/libad_ff.so.%{bldno} +%{bin_prefix}/%{_lib}/libad_ff.so +%{bin_prefix}/%{_lib}/libad_ff.so.1 +%{bin_prefix}/%{_lib}/Novell.CASA.A-D.dll +%{bin_prefix}/%{_lib}/Novell.CASA.CASAPolicy.dll +%{bin_prefix}/%{_lib}/Novell.CASA.DataEngines.GnomeKeyring.dll +%{bin_prefix}/%{_lib}/Novell.CASA.DataEngines.KWallet.dll +%{bin_prefix}/%{_lib}/Novell.CASA.DataEngines.FireFox.dll + +%dir %{prefix}/CASA/images +%{prefix}/CASA/images/* + +%dir %{prefix}/CASA/help +%dir %{prefix}/CASA/help/en +%{prefix}/CASA/help/en/* + +%changelog -n CASA diff --git a/CASA-auth-token/package/linux/Makefile.am b/CASA-auth-token/package/linux/Makefile.am new file mode 100644 index 00000000..241fa316 --- /dev/null +++ b/CASA-auth-token/package/linux/Makefile.am @@ -0,0 +1,67 @@ +####################################################################### +# +# Copyright (C) 2006 Novell, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# +# +####################################################################### +#how do you get the version?? +RPM_FILE = $(PACKAGE)-$(VERSION)-$(RELEASE).$(target_cpu).rpm +#SRPM_FILE = $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm +SRPM_FILE = $(PACKAGE)-$(VERSION)*.src.rpm + +SPEC_FILE = CASA-auth-token.spec + +.PHONY: package package-clean package-install package-uninstall casa + +#all: $(RPM_FILE) + +package: $(RPM_FILE) + +all clean: + +$(RPM_FILE): + cd $(top_srcdir); make dist-bzip2 + rm -rf RPM + mkdir RPM + echo %_topdir `pwd`/RPM > $(HOME)/.rpmmacros + mkdir -p RPM/BUILD + mkdir -p RPM/RPMS + mkdir -p RPM/SOURCES + mkdir -p RPM/SPECS + mkdir -p RPM/SRPMS + cp $(SPEC_FILE) RPM/SPECS + cp $(top_srcdir)/$(PACKAGE)-*.tar.bz2 RPM/SOURCES + mv $(top_srcdir)/$(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE)-$(VERSION).tar.bz2 + rpmbuild -ba -v -vv --target=$(target_triplet) RPM/SPECS/$(SPEC_FILE) + cp RPM/RPMS/*/*.rpm . + cp RPM/SRPMS/$(SRPM_FILE) . + +package-install: package + su -c "rpm -Uvh $(RPM_FILE)" + +package-uninstall: + su -c "rpm -e $(PACKAGE)" + +package-clean clean-local: + rm -rf *.rpm RPM *.bz2 + +distclean-local: package-clean + rm -f Makefile $(SPEC_FILE) + +maintainer-clean-local: + rm -f Makefile.in + diff --git a/CASA-auth-token/package/linux/packages.txt b/CASA-auth-token/package/linux/packages.txt new file mode 100644 index 00000000..e46bd3d0 --- /dev/null +++ b/CASA-auth-token/package/linux/packages.txt @@ -0,0 +1,45 @@ +CASA Auth Token Packages + +CASA-auth-token-client.rpm + +libclient.so + +CASA-auth-token-service.rpm + +requires: tomcat, java + +AuthTokenSvc-war + +CASA-auth-token-native-support.rpm + +libserver.so + +CASA-auth-token-pam-support.rpm + +requires: CASA-auth-token-native-support.rpm pam + +pam_module.so + +CASA-auth-token-apache2.2-support.rpm + +requires: CASA-auth-token-native-support.rpm, apache2.2 + +apache_mod.so + +CASA-auth-token-jaas-support.rpm + +requires: java + +JaasSupport.jar +AuthTokenSvc-jar + +CASA-auth-token-devel.rpm + +requires: CASA-auth-token-native-support.rpm, CASA-auth-token-client.rpm, CASA-auth-token-pam-support.rpm, CASA-auth-token-apache2.2-support.rpm, CASA-auth-token-jaas-support.rpm + +client.h +server.h + + + +