service startup patch was added.
This commit is contained in:
parent
433961874f
commit
4a565834d0
@ -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
|
#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 prefix /usr/share/doc/packages
|
||||||
%define bin_prefix /usr
|
%define bin_prefix /usr
|
||||||
License: LGPL
|
License: LGPL
|
||||||
Group: Productivity/Other
|
Group: Productivity/Other
|
||||||
Autoreqprov: on
|
Autoreqprov: on
|
||||||
%define bldno 1.1.1
|
%define bldno 1.1.1
|
||||||
Version: 1.6.287
|
Version: 1.6.000
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Novell Common Authentication Service Adapter (CASA)
|
Summary: Novell Common Authentication Service Adapter (CASA)
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
#Patch: %{name}-%{version}.dif
|
#Patch: %{name}-%{version}.dif
|
||||||
Patch2: CASA-detect_lib64.patch
|
Patch2: CASA-detect_lib64.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
requires: mono >= 1.1.13 mono-core >= 1.1.13
|
Requires: mono >= 1.1.13 mono-core >= 1.1.13
|
||||||
|
PreReq: %fillup_prereq %insserv_prereq
|
||||||
ExclusiveArch: %ix86 x86_64
|
ExclusiveArch: %ix86 x86_64
|
||||||
#NoSource: 0
|
#NoSource: 0
|
||||||
|
|
||||||
@ -68,7 +69,6 @@ to one another.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch2
|
%patch2
|
||||||
#%ifarch x86_64
|
|
||||||
%if %{_lib} == "lib64"
|
%if %{_lib} == "lib64"
|
||||||
%define binsource bin64
|
%define binsource bin64
|
||||||
%else
|
%else
|
||||||
@ -154,31 +154,19 @@ echo "/usr/%{_lib}/" >> %{buildroot}/etc/ld.so.conf.d/CASA.conf
|
|||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ] && [ $1 -eq 2 ]
|
%{fillup_and_insserv -y micasad}
|
||||||
|
if [ $1 -eq 1 ] || [ $1 -eq 2 ]
|
||||||
then
|
then
|
||||||
insserv /etc/init.d/micasad
|
|
||||||
casacfgpam
|
casacfgpam
|
||||||
# /etc/init.d/micasad start
|
|
||||||
fi
|
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
|
/sbin/ldconfig
|
||||||
|
|
||||||
%post gui
|
%post gui
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
%preun
|
%preun
|
||||||
%stop_on_removal micasad
|
%stop_on_removal micasad
|
||||||
if [ $1 -eq 0 ]
|
if [ "x$1" == "x0" ]
|
||||||
then
|
then
|
||||||
casaucfgpam
|
casaucfgpam
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user