diff options
author | Marcus Alves Grando <mnag@FreeBSD.org> | 2005-11-16 03:17:13 +0000 |
---|---|---|
committer | Marcus Alves Grando <mnag@FreeBSD.org> | 2005-11-16 03:17:13 +0000 |
commit | 9383393cd1296effc961dd8ea4a9c871be54b82d (patch) | |
tree | f152c7fa8156b753bc5d88a06934d942d5dfa9dd /ports-mgmt/portmanager | |
parent | b2d59c720d4793336fbc11a1e5ae73a1c78898cd (diff) | |
download | ports-9383393cd1296effc961dd8ea4a9c871be54b82d.tar.gz ports-9383393cd1296effc961dd8ea4a9c871be54b82d.zip |
Notes
Diffstat (limited to 'ports-mgmt/portmanager')
-rw-r--r-- | ports-mgmt/portmanager/Makefile | 1 | ||||
-rw-r--r-- | ports-mgmt/portmanager/files/patch-0.3.5_1 | 93 |
2 files changed, 94 insertions, 0 deletions
diff --git a/ports-mgmt/portmanager/Makefile b/ports-mgmt/portmanager/Makefile index b951b76b5eff..0ee48fa9a20a 100644 --- a/ports-mgmt/portmanager/Makefile +++ b/ports-mgmt/portmanager/Makefile @@ -7,6 +7,7 @@ PORTNAME= portmanager PORTVERSION= 0.3.5 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://portmanager.sunsite.dk/distfiles/ \ ${MASTER_SITE_SOURCEFORGE} diff --git a/ports-mgmt/portmanager/files/patch-0.3.5_1 b/ports-mgmt/portmanager/files/patch-0.3.5_1 new file mode 100644 index 000000000000..798876eb11ea --- /dev/null +++ b/ports-mgmt/portmanager/files/patch-0.3.5_1 @@ -0,0 +1,93 @@ +diff -ruN ../0.3.5/libMGPM/src/MGPMlogAdd.c ./libMGPM/src/MGPMlogAdd.c +--- ../0.3.5/libMGPM/src/MGPMlogAdd.c Mon Nov 14 13:55:34 2005 ++++ ./libMGPM/src/MGPMlogAdd.c Mon Nov 14 23:17:47 2005 +@@ -48,7 +48,7 @@ + } + + logFileStream = fopen( property->logFile->parent.path, "a" ); +- fprintf( logFileStream, "%-25s %-25s\n\t%-25s %-25s %-25s\n", victemName, victemDir, crime, suspectName, suspectDir ); ++ fprintf( logFileStream, "%-35s %-30s\n %-35s %-35s %-30s\n\n", victemName, victemDir, crime, suspectName, suspectDir ); + fclose( logFileStream ); + return( 0 ); + } +diff -ruN ../0.3.5/libMGPM/src/MGPMrController.c ./libMGPM/src/MGPMrController.c +--- ../0.3.5/libMGPM/src/MGPMrController.c Mon Nov 14 14:46:52 2005 ++++ ./libMGPM/src/MGPMrController.c Tue Nov 15 10:04:32 2005 +@@ -270,6 +270,46 @@ + + if( path && ( strcmp( path, "PMSTATUS" ) == 0 ) ) + { ++ property->pmMode = 1; /* fake like we are in single port update */ ++ if( property->resume == 0 ) ++ { ++ property->cacheDb = MGdbCreate( ++ property->cacheDbFileName, ++ property->fieldCacheDbPortDir, ++ property->fieldCacheDbAvailablePortName, ++ property->fieldCacheDbMakeFileSize, ++ property->fieldCacheDbMakeFileTime, ++ NULL ); ++ MGdbDestroy( property->cacheDb ); ++ if( ( errorCode = MGPMrCreateInstalledDb( property ) ) ) ++ { ++ fprintf( stdout, "%s %s error: %s returned errorCode %d\n", id, PACKAGE_VERSION, ++ "MGPMrCreateInstalledDb", errorCode ); ++ return( 1 ); ++ } ++ if( ( errorCode = MGPMrCreateAllUpdateStatusDb( property ) ) ) ++ { ++ fprintf( stdout, "%s %s error: %s returned errorCode %d\n", id, PACKAGE_VERSION, ++ "MGPMrCreateAllUpdateStatusDb", errorCode ); ++ return( 1 ); ++ } ++ } ++ if( ( errorCode = MGPMrCreateInstalledDb( property ) ) ) ++ { ++ fprintf( stdout, "%s %s error: %s returned errorCode %d\n", id, PACKAGE_VERSION, "MGPMrCreateStatusDb", errorCode ); ++ return( 1 ); ++ } ++ ++ if( ( errorCode = MGPMrSinglePortStatus( property ) ) ) ++ { ++ fprintf( stdout, "%s %s error: %s returned errorCode %d\n", id, PACKAGE_VERSION, "MGPMrSinglePortStatus", errorCode ); ++ return( 1 ); ++ } ++ return( 0 ); ++ } ++/* ++ * old way of doing things ++ * + if( ( errorCode = MGPMrCreateInstalledDb( property ) ) ) + { + fprintf( stdout, "%s %s error: %s returned errorCode %d\n", id, PACKAGE_VERSION, "MGPMrCreateStatusDb", errorCode ); +@@ -308,7 +348,7 @@ + free( xtermTitle ); + MGPMlogDestroy( property ); + return(0); +- } ++*/ + + if( path && strcmp( path, "PMUPGRADE" ) == 0 ) + { +diff -ruN ../0.3.5/libMGPM/src/MGPMrSinglePortStatus.c ./libMGPM/src/MGPMrSinglePortStatus.c +--- ../0.3.5/libMGPM/src/MGPMrSinglePortStatus.c Mon Nov 14 14:54:02 2005 ++++ ./libMGPM/src/MGPMrSinglePortStatus.c Mon Nov 14 19:10:08 2005 +@@ -159,7 +159,7 @@ + MGdbAdd( property->oldPortsDb, + installedPortsDbPortDir, + installedPortsDbPortName, +- "1 built with OLD dependency", ++ "built with OLD dependency", + oldDependencyName, + oldDependencyDir, + NULL ); +@@ -226,7 +226,7 @@ + MGdbAdd( property->oldPortsDb, + installedPortsDbPortDir, + installedPortsDbPortName, +- "2 built with OLD dependency", ++ "built with OLD dependency", + MGdbGet( property->dependencyPortsDb, + MGdbGetRecno( property->dependencyPortsDb ) - 1, + property->fieldDependencyDbDependencyPortName ), +Binary files ../0.3.5/portmanager-0.3.6.tar.gz and ./portmanager-0.3.6.tar.gz differ |