service startup patch was added.

This commit is contained in:
Cameron (Kamran) Mashayekhi 2006-02-14 23:27:13 +00:00
parent 433961874f
commit 4a565834d0

View File

@ -19,18 +19,19 @@ URL: http://www.novell.com/products
#BuildRequires: glade-sharp gnome-filesystem mono mono-core gtk2-devel gtk2 gtk-sharp gtk-sharp-gapi glib-sharp glib2 glib2-devel qt3-devel gcc-c++ kdeutils3 kdelibs3-devel kdelibs3 qt3 qt3-devel kdesdk3 libstdc++-devel pkgconfig gnome-keyring gnome-keyring-devel glib-devel glib pam pam-devel java2 krb5-devel libgssapi
%define prefix /usr/share/doc/packages
%define bin_prefix /usr
License: LGPL
Group: Productivity/Other
Autoreqprov: on
%define bldno 1.1.1
Version: 1.6.287
Release: 0
Summary: Novell Common Authentication Service Adapter (CASA)
Source: %{name}-%{version}.tar.bz2
#Patch: %{name}-%{version}.dif
Patch2: CASA-detect_lib64.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
requires: mono >= 1.1.13 mono-core >= 1.1.13
License: LGPL
Group: Productivity/Other
Autoreqprov: on
%define bldno 1.1.1
Version: 1.6.000
Release: 0
Summary: Novell Common Authentication Service Adapter (CASA)
Source: %{name}-%{version}.tar.bz2
#Patch: %{name}-%{version}.dif
Patch2: CASA-detect_lib64.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: mono >= 1.1.13 mono-core >= 1.1.13
PreReq: %fillup_prereq %insserv_prereq
ExclusiveArch: %ix86 x86_64
#NoSource: 0
@ -68,7 +69,6 @@ to one another.
%prep
%setup -q
%patch2
#%ifarch x86_64
%if %{_lib} == "lib64"
%define binsource bin64
%else
@ -154,31 +154,19 @@ echo "/usr/%{_lib}/" >> %{buildroot}/etc/ld.so.conf.d/CASA.conf
%post
if [ $1 -eq 1 ] && [ $1 -eq 2 ]
%{fillup_and_insserv -y micasad}
if [ $1 -eq 1 ] || [ $1 -eq 2 ]
then
insserv /etc/init.d/micasad
casacfgpam
# /etc/init.d/micasad start
fi
if [ $1 -eq 1 ]
then
/etc/init.d/micasad start
fi
#if [ $1 -eq 2 ]
#then
# insserv /etc/init.d/micasad
# casacfgpam
# /etc/init.d/micasad restart
#fi
/sbin/ldconfig
%post gui
/sbin/ldconfig
%preun
%stop_on_removal micasad
if [ $1 -eq 0 ]
if [ "x$1" == "x0" ]
then
casaucfgpam
fi