Corrections to spec file and scripts and update to the micasad.
CASA.spec and CASA_dbg.spec were synched up.
This commit is contained in:
		| @@ -1,3 +1,10 @@ | |||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Sat Feb 18 15:57:20 MST 2006 - cmashayekhi@novell.com | ||||||
|  |  | ||||||
|  | - Minor fixes were made to micasad script. | ||||||
|  | - Minor fixes were made to CASA.spec. | ||||||
|  | - CASA.spec and CASA_dbg.spec were synched.  | ||||||
|  |  | ||||||
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ||||||
| Fri Feb 17 14:01:12 MST 2006 - jnorman@novell.com | Fri Feb 17 14:01:12 MST 2006 - jnorman@novell.com | ||||||
|  |  | ||||||
|   | |||||||
| @@ -35,9 +35,8 @@ case "$1" in | |||||||
| 		# Remember status and be verbose | 		# Remember status and be verbose | ||||||
| 		rc_status -v | 		rc_status -v | ||||||
| 		;; | 		;; | ||||||
|  |  | ||||||
|     stop) |     stop) | ||||||
| 		echo "Shutting miCASA daemon down" | 		echo "Shutting down micasad "  | ||||||
| 		#killproc -TERM $MICASAD_BIN | 		#killproc -TERM $MICASAD_BIN | ||||||
|         	pid=`cat /var/run/micasad.pid` >/dev/null 2>&1 |         	pid=`cat /var/run/micasad.pid` >/dev/null 2>&1 | ||||||
|         	kill -s TERM $pid >/dev/null 2>&1 |         	kill -s TERM $pid >/dev/null 2>&1 | ||||||
| @@ -45,12 +44,17 @@ case "$1" in | |||||||
| 		# Remember status and be verbose | 		# Remember status and be verbose | ||||||
| 		rc_status -v | 		rc_status -v | ||||||
| 		;; | 		;; | ||||||
|  |  | ||||||
|     try-restart|condrestart) |     try-restart|condrestart) | ||||||
| 		$0 status >/dev/null &&  $0 restart |     	    	$0 status | ||||||
|  |         	if test $? = 0 | ||||||
|  | 		then | ||||||
|  |                 	$0 restart | ||||||
|  |         	else | ||||||
|  |                 	rc_reset        # Not running is not a failure. | ||||||
|  |         	fi | ||||||
|  |         	# Remember status and be quiet | ||||||
|         	rc_status |         	rc_status | ||||||
|         	;; |         	;; | ||||||
|  |  | ||||||
|     restart) |     restart) | ||||||
|         	## Stop the service and regardless of whether it was |         	## Stop the service and regardless of whether it was | ||||||
|         	## running or not, start it again. |         	## running or not, start it again. | ||||||
| @@ -61,34 +65,28 @@ case "$1" in | |||||||
| 	        # Remember status and be quiet | 	        # Remember status and be quiet | ||||||
|         	rc_status |         	rc_status | ||||||
|         	;; |         	;; | ||||||
| 		 |  | ||||||
|     status) |     status) | ||||||
| 		echo "Checking for service micasad ..." | 		echo "Checking micasad service ..." | ||||||
| 		/sbin/checkproc micasad | 		/sbin/checkproc micasad | ||||||
| 		$res=$? | 		res=$? | ||||||
| 		if [ $res == 0 ] | 		if [ $res == 0 ] | ||||||
| 		then | 		then | ||||||
| 			echo -n "0 - service up and running" | 			echo -n "0 - service up and running" | ||||||
| 		elif [ $res == 1 ] | 		elif [ $res == 1 ] | ||||||
| 		then | 		then | ||||||
| 			echo -n "1 - service dead, but /var/run/pid  file exists" | 			echo -n "1 - service running under mono, /var/run/pid  file exists" | ||||||
| 		elif [ $res == 2 ] | 		elif [ $res == 2 ] | ||||||
| 		then | 		then | ||||||
| 			echo -n "2 - service dead, but /var/lock/lock file exists" | 			echo -n "2 - service status unknown, /var/lock/lock file exists" | ||||||
| 		elif [ $res == 3 ] | 		elif [ $res == 3 ] | ||||||
| 		then | 		then | ||||||
| 			echo -n "3 - service not running (unused)" | 			echo -n "3 - service not running" | ||||||
| 		elif [ $res == 4 ] |  | ||||||
| 		then |  | ||||||
| 			echo -n "4 - service status unknown" |  | ||||||
| 		else | 		else | ||||||
| 			echo -n "5--199 reserved (5--99 LSB, 100--149 distro, 150--199 appl.)" | 			echo -n "service status unknown" | ||||||
| 		fi | 		fi | ||||||
|  |  | ||||||
| 		rc_status >/dev/null 2>&1 | 		rc_status -v | ||||||
|  |  | ||||||
| 		;; | 		;; | ||||||
|  |  | ||||||
|     *) |     *) | ||||||
| 		echo "Usage: $0 {start|stop|restart|try-restart|status}" | 		echo "Usage: $0 {start|stop|restart|try-restart|status}" | ||||||
| 	exit 1 | 	exit 1 | ||||||
|   | |||||||
| @@ -21,7 +21,7 @@ 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.311 | Version:       1.6.0 | ||||||
| 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 | ||||||
| @@ -30,7 +30,7 @@ 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 | PreReq:        %fillup_prereq %insserv_prereq | ||||||
| ExclusiveArch: %ix86 x86_64 | #ExclusiveArch: %ix86 x86_64 | ||||||
| #NoSource:     0 | #NoSource:     0 | ||||||
|  |  | ||||||
| %description | %description | ||||||
| @@ -153,7 +153,10 @@ echo "/usr/%{_lib}/" >> %{buildroot}/etc/ld.so.conf.d/CASA.conf | |||||||
|  |  | ||||||
| %post | %post | ||||||
| %{fillup_and_insserv -y micasad} | %{fillup_and_insserv -y micasad} | ||||||
| casacfgpam | if [ "x$1" == "x1" ] || [ "x$1" == "x2" ] | ||||||
|  | then | ||||||
|  | 	casacfgpam | ||||||
|  | fi | ||||||
| /sbin/ldconfig | /sbin/ldconfig | ||||||
|  |  | ||||||
| %post gui | %post gui | ||||||
|   | |||||||
| @@ -30,7 +30,7 @@ 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 | PreReq:        %fillup_prereq %insserv_prereq | ||||||
| ExclusiveArch: %ix86 x86_64 | #ExclusiveArch: %ix86 x86_64 | ||||||
| #NoSource:     0 | #NoSource:     0 | ||||||
|  |  | ||||||
| %description | %description | ||||||
| @@ -153,7 +153,10 @@ echo "/usr/%{_lib}/" >> %{buildroot}/etc/ld.so.conf.d/CASA.conf | |||||||
|  |  | ||||||
| %post | %post | ||||||
| %{fillup_and_insserv -y micasad} | %{fillup_and_insserv -y micasad} | ||||||
| casacfgpam | if [ "x$1" == "x1" ] || [ "x$1" == "x2" ] | ||||||
|  | then | ||||||
|  |         casacfgpam | ||||||
|  | fi | ||||||
| /sbin/ldconfig | /sbin/ldconfig | ||||||
|  |  | ||||||
| %post gui | %post gui | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user