Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Aug 2014 21:01:39 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r364383 - head/Mk
Message-ID:  <53e53ab3.2de2.38e892c9@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Fri Aug  8 21:01:38 2014
New Revision: 364383
URL: http://svnweb.freebsd.org/changeset/ports/364383
QAT: https://qat.redports.org/buildarchive/r364383/

Log:
  Allow installing ports with the same origin but a different pkgname
  
  Phabric:	D565
  Reviewed by:	bapt
  With hat:	portmgr

Modified:
  head/Mk/bsd.pkgng.mk

Modified: head/Mk/bsd.pkgng.mk
==============================================================================
--- head/Mk/bsd.pkgng.mk	Fri Aug  8 20:46:59 2014	(r364382)
+++ head/Mk/bsd.pkgng.mk	Fri Aug  8 21:01:38 2014	(r364383)
@@ -254,18 +254,18 @@ do-package: ${TMPPLIST}
 .if !target(check-already-installed)
 .if !defined(NO_PKG_REGISTER) && !defined(FORCE_PKG_REGISTER)
 check-already-installed:
-		@${ECHO_MSG} "===>  Checking if ${PKGORIGIN} already installed"; \
-		pkgname=`${PKG_INFO} -q -O ${PKGORIGIN}`; \
+		@${ECHO_MSG} "===>  Checking if ${PKGBASE} already installed"; \
+		pkgname=`${PKG_INFO} -q -O ${PKGBASE}`; \
 		if [ -n "$${pkgname}" ]; then \
 			v=`${PKG_VERSION} -t $${pkgname} ${PKGNAME}`; \
 			if [ "$${v}" = "<" ]; then \
-				${ECHO_CMD} "===>   An older version of ${PKGORIGIN} is already installed ($${pkgname})"; \
+				${ECHO_CMD} "===>   An older version of ${PKGBASE} is already installed ($${pkgname})"; \
 			else \
 				${ECHO_CMD} "===>   ${PKGNAME} is already installed"; \
 			fi; \
 			${ECHO_MSG} "      You may wish to \`\`make deinstall'' and install this port again"; \
 			${ECHO_MSG} "      by \`\`make reinstall'' to upgrade it properly."; \
-			${ECHO_MSG} "      If you really wish to overwrite the old port of ${PKGORIGIN}"; \
+			${ECHO_MSG} "      If you really wish to overwrite the old port of ${PKGBASE}"; \
 			${ECHO_MSG} "      without deleting it first, set the variable \"FORCE_PKG_REGISTER\""; \
 			${ECHO_MSG} "      in your environment or the \"make install\" command line."; \
 			exit 1; \
@@ -282,11 +282,11 @@ deinstall:
 		${SU_CMD} "${MAKE} ${.TARGET}"
 	@${ECHO_MSG} "===>  Returning to user credentials"
 .else
-	@${ECHO_MSG} "===>  Deinstalling for ${PKGORIGIN}"
-	@if ${PKG_INFO} -e ${PKGORIGIN}; then \
-		p=`${PKG_INFO} -q ${PKGORIGIN}`; \
+	@${ECHO_MSG} "===>  Deinstalling for ${PKGBASE}"
+	@if ${PKG_INFO} -e ${PKGBASE}; then \
+		p=`${PKG_INFO} -q -O ${PKGBASE}`; \
 		${ECHO_MSG} "===>   Deinstalling $${p}"; \
-		${PKG_DELETE} -f ${PKGORIGIN} ; \
+		${PKG_DELETE} -f ${PKGBASE} ; \
 	else \
 		${ECHO_MSG} "===>   ${PKGBASE} not installed, skipping"; \
 	fi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e53ab3.2de2.38e892c9>