- update to 0.2.2
1) Made MGmDbArrayFree and MGmDbArray source in /libMG/src/libMG.h more readable. Fixed a few bad mallocs in MGmDbArrayFree as well. 2) As per suggestions from John E Hein <jhein@timing.com> in libPMGR/src/libPMGR.h removed hard coded paths and changed so ports infrastructure files are accessed by using $PORTSDIR & $PKG_DBDIR environment vars and fixed hard coded path references in /portmanager/portmanager.c 3) In pmupgrade.c added an abort if error during clean in an attempt to halt looping when a port conflict occurs, this is untested so temporary for now. 4) libPMGR/src/PMGRrMakeDescribe.c fixed hard coded paths 5) pmupgrade.c fixed hard coded paths 6) pmupgrade.c Major cleanup of code, seperated upgrade routine into upgrade, checkForOldDepencies, and PMGRrDoUpgrade routines. 7) fixed portmanager seg faulting when it self updates. (thanks to "Noah" <admin2@enabled.com> for reporting 8) Added "HINTS AND TIPS" section to portmanager(1) man page. PR: ports/75596 Submitted by: maintainer
This commit is contained in:
parent
8967b8d02d
commit
d056068bbf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125441
6 changed files with 42 additions and 10 deletions
|
@ -5,9 +5,15 @@
|
|||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= portmanager
|
||||
PORTVERSION= 0.2.1
|
||||
PORTNAME= portmanager
|
||||
PORTVERSION= 0.2.2
|
||||
PORTREVISION= 0
|
||||
#-----------------------------------------
|
||||
#for local use, remove before submitting PR
|
||||
CATEGORIES= sysutils
|
||||
#CATEGORIES= local/sysutils
|
||||
#VALID_CATEGORIES+= ${CATEGORIES} # for FreeBSD to accept our local category
|
||||
#-----------------------------------------
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= portmanager
|
||||
|
||||
|
@ -22,6 +28,7 @@ BUILD_DEPENDS= autoheader259:${PORTSDIR}/devel/autoconf259 \
|
|||
|
||||
MAN1= portmanager.1
|
||||
|
||||
USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
||||
INSTALLS_SHLIB= yes
|
||||
|
@ -29,6 +36,16 @@ USE_REINPLACE= yes
|
|||
# Need INSTALL_TARGET to install /usr/local/etc/portmanager/pm-020.conf.SAMPLE
|
||||
INSTALL_TARGET= install info
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
|
||||
s|0.2.2|${PORTVERSION}_${PORTREVISION}|g ; \
|
||||
s|%%PORTSDIR%%|${PORTSDIR}|g ; \
|
||||
s|%%PKG_DBDIR%%|${PKG_DBDIR}|g' ${WRKSRC}/libPMGR/src/libPMGR.h
|
||||
|
||||
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
|
||||
s|%%PORTSDIR%%|${PORTSDIR}|g ; \
|
||||
s|%%PKG_DBDIR%%|${PKG_DBDIR}|g' ${WRKSRC}/libPMGR/src/PMGRrMakeDescribe.c
|
||||
|
||||
# Only way to get WITH_DEBUG build dependencies handled prior to reconfiguring
|
||||
# is to use post-configure <sigh>
|
||||
post-configure:
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
MD5 (portmanager-0.2.1.tar.gz) = ffd913fb57b592e9876fd006cc921eee
|
||||
SIZE (portmanager-0.2.1.tar.gz) = 383452
|
||||
MD5 (portmanager-0.2.2.tar.gz) = e57d637438ca7465f4677368e1a423e3
|
||||
SIZE (portmanager-0.2.2.tar.gz) = 381257
|
||||
|
|
|
@ -10,7 +10,6 @@ bin/pmupgrade
|
|||
bin/portmanager
|
||||
etc/portmanager/pm-020.conf.SAMPLE
|
||||
include/libMG.h
|
||||
include/libPMGR.h
|
||||
lib/libMG
|
||||
lib/libMG.0
|
||||
lib/libPMGR
|
||||
|
|
|
@ -5,9 +5,15 @@
|
|||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= portmanager
|
||||
PORTVERSION= 0.2.1
|
||||
PORTNAME= portmanager
|
||||
PORTVERSION= 0.2.2
|
||||
PORTREVISION= 0
|
||||
#-----------------------------------------
|
||||
#for local use, remove before submitting PR
|
||||
CATEGORIES= sysutils
|
||||
#CATEGORIES= local/sysutils
|
||||
#VALID_CATEGORIES+= ${CATEGORIES} # for FreeBSD to accept our local category
|
||||
#-----------------------------------------
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= portmanager
|
||||
|
||||
|
@ -22,6 +28,7 @@ BUILD_DEPENDS= autoheader259:${PORTSDIR}/devel/autoconf259 \
|
|||
|
||||
MAN1= portmanager.1
|
||||
|
||||
USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
||||
INSTALLS_SHLIB= yes
|
||||
|
@ -29,6 +36,16 @@ USE_REINPLACE= yes
|
|||
# Need INSTALL_TARGET to install /usr/local/etc/portmanager/pm-020.conf.SAMPLE
|
||||
INSTALL_TARGET= install info
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
|
||||
s|0.2.2|${PORTVERSION}_${PORTREVISION}|g ; \
|
||||
s|%%PORTSDIR%%|${PORTSDIR}|g ; \
|
||||
s|%%PKG_DBDIR%%|${PKG_DBDIR}|g' ${WRKSRC}/libPMGR/src/libPMGR.h
|
||||
|
||||
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
|
||||
s|%%PORTSDIR%%|${PORTSDIR}|g ; \
|
||||
s|%%PKG_DBDIR%%|${PKG_DBDIR}|g' ${WRKSRC}/libPMGR/src/PMGRrMakeDescribe.c
|
||||
|
||||
# Only way to get WITH_DEBUG build dependencies handled prior to reconfiguring
|
||||
# is to use post-configure <sigh>
|
||||
post-configure:
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
MD5 (portmanager-0.2.1.tar.gz) = ffd913fb57b592e9876fd006cc921eee
|
||||
SIZE (portmanager-0.2.1.tar.gz) = 383452
|
||||
MD5 (portmanager-0.2.2.tar.gz) = e57d637438ca7465f4677368e1a423e3
|
||||
SIZE (portmanager-0.2.2.tar.gz) = 381257
|
||||
|
|
|
@ -10,7 +10,6 @@ bin/pmupgrade
|
|||
bin/portmanager
|
||||
etc/portmanager/pm-020.conf.SAMPLE
|
||||
include/libMG.h
|
||||
include/libPMGR.h
|
||||
lib/libMG
|
||||
lib/libMG.0
|
||||
lib/libPMGR
|
||||
|
|
Loading…
Reference in a new issue