diff options
author | pav <pav@FreeBSD.org> | 2005-01-29 07:19:55 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-01-29 07:19:55 +0800 |
commit | 1ced70efb993874b04c34e1fd97f6201bfaa689a (patch) | |
tree | f69a5fe5befb55c106a35b6c0b77012c4827567b /ports-mgmt/portmanager | |
parent | 2cb0f68cf8efb0d64c2393a9fe955277a7666763 (diff) | |
download | freebsd-ports-gnome-1ced70efb993874b04c34e1fd97f6201bfaa689a.tar.gz freebsd-ports-gnome-1ced70efb993874b04c34e1fd97f6201bfaa689a.tar.zst freebsd-ports-gnome-1ced70efb993874b04c34e1fd97f6201bfaa689a.zip |
- 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.
PR: ports/76779
Submitted by: Michael C. Shultz <reso3w83@verizon.net> (maintainer)
Diffstat (limited to 'ports-mgmt/portmanager')
-rw-r--r-- | ports-mgmt/portmanager/Makefile | 4 | ||||
-rw-r--r-- | ports-mgmt/portmanager/files/patch-0.2.4_2 | 27 |
2 files changed, 29 insertions, 2 deletions
diff --git a/ports-mgmt/portmanager/Makefile b/ports-mgmt/portmanager/Makefile index 85613701960a..39b2e81b6115 100644 --- a/ports-mgmt/portmanager/Makefile +++ b/ports-mgmt/portmanager/Makefile @@ -7,7 +7,7 @@ PORTNAME= portmanager PORTVERSION= 0.2.4 -PORTREVISION= 1 +PORTREVISION= 2 #----------------------------------------- #for local use, remove before submitting PR CATEGORIES= sysutils @@ -40,7 +40,7 @@ CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} INSTALLS_SHLIB= yes USE_REINPLACE= yes # Need INSTALL_TARGET to install /usr/local/etc/portmanager/pm-020.conf.SAMPLE -INSTALL_TARGET= install info +INSTALL_TARGET= install info post-patch: @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \ diff --git a/ports-mgmt/portmanager/files/patch-0.2.4_2 b/ports-mgmt/portmanager/files/patch-0.2.4_2 new file mode 100644 index 000000000000..15ee816ad3c3 --- /dev/null +++ b/ports-mgmt/portmanager/files/patch-0.2.4_2 @@ -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 ) |