ports/76779: [MAINTAINER] sysutils/portmanager update to 0.2.4_2

Michael C.Shultz reso3w83 at verizon.net
Fri Jan 28 02:30:11 UTC 2005


>Number:         76779
>Category:       ports
>Synopsis:       [MAINTAINER] sysutils/portmanager update to 0.2.4_2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 28 02:30:10 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Michael C. Shultz
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD ringworm.mechee.com 5.3-STABLE FreeBSD 5.3-STABLE #0: Thu Jan 20 07:27:28 PST 2005 root at ringworm.mechee.com:/ROUTER/obj/ROUTER/src-5.3/sys/RINGWORM i386


>Description:

	Fixes stupid bug introduced in 0.2.4_1 where portmanager overwrites its own config file
	the first time it is run after being installed.

	note to commiter: add patch-0.2.4_2 to files

>How-To-Repeat:

	N/A
>Fix:

--- portmanager-0.2.4_2.diff begins here ---
diff -ruN portmanager/Makefile portmanager-0.2.4_2/Makefile
--- portmanager/Makefile	Thu Jan 27 16:00:45 2005
+++ portmanager-0.2.4_2/Makefile	Thu Jan 27 18:13:57 2005
@@ -7,7 +7,7 @@
 
 PORTNAME=	portmanager
 PORTVERSION=	0.2.4
-PORTREVISION=	1
+PORTREVISION=	2
 #-----------------------------------------
 #for local use, remove before submitting PR
 CATEGORIES=		sysutils
diff -ruN portmanager/files/patch-0.2.4_2 portmanager-0.2.4_2/files/patch-0.2.4_2
--- portmanager/files/patch-0.2.4_2	Wed Dec 31 16:00:00 1969
+++ portmanager-0.2.4_2/files/patch-0.2.4_2	Thu Jan 27 18:12:45 2005
@@ -0,0 +1,27 @@
+diff -ruN ./libMG/src/MGrIfFileExist.c ../portmanager-0.2.5/libMG/src/MGrIfFileExist.c
+--- ./libMG/src/MGrIfFileExist.c	Tue Jan 18 19:30:53 2005
++++ ../portmanager-0.2.5/libMG/src/MGrIfFileExist.c	Thu Jan 27 17:47:19 2005
+@@ -27,8 +27,9 @@
+ int	MGrIfFileExist( char* fileName )
+ {
+ 	FILE*	fileStream	= NULL;
+-
+-	if( ( fileStream = fopen( fileName, "r") ) )
++	
++	fileStream = fopen( fileName, "r");
++	if( fileStream )
+ 	{
+ 		fclose( fileStream );
+ 		return( 1 );				/* file does exist */
+diff -ruN ./libPMGR/src/PMGRrReadConfigure.c ../portmanager-0.2.5/libPMGR/src/PMGRrReadConfigure.c
+--- ./libPMGR/src/PMGRrReadConfigure.c	Wed Jan 26 22:00:03 2005
++++ ../portmanager-0.2.5/libPMGR/src/PMGRrReadConfigure.c	Thu Jan 27 17:52:49 2005
+@@ -112,7 +112,7 @@
+ 	/***************************************************************************/
+ 	/* if pm-020.conf missing then copy pm-020.conf.SAMPLE to pm-020.conf */
+ 	/***************************************************************************/
+-	if( !MGrIfFileExist( property->configDbFileName ) )
++	if( !MGrIfFileExist( property->configConfFileName ) )
+ 	{
+ 		stringSize	= strlen( "cp " )
+ 				+ strlen( property->configConfFileName )
--- portmanager-0.2.4_2.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list