aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-08-09 05:01:38 +0800
committerantoine <antoine@FreeBSD.org>2014-08-09 05:01:38 +0800
commita13a9bf950b9f64f28fde28837a72ce79eea2d9b (patch)
tree361b20908b996e6c991decdabc5f4b4c4d85cf78 /Mk
parent11263d487dc78a3958ef4c105d56b7c50f8c4ec6 (diff)
downloadfreebsd-ports-gnome-a13a9bf950b9f64f28fde28837a72ce79eea2d9b.tar.gz
freebsd-ports-gnome-a13a9bf950b9f64f28fde28837a72ce79eea2d9b.tar.zst
freebsd-ports-gnome-a13a9bf950b9f64f28fde28837a72ce79eea2d9b.zip
Allow installing ports with the same origin but a different pkgname
Phabric: D565 Reviewed by: bapt With hat: portmgr
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.pkgng.mk16
1 files changed, 8 insertions, 8 deletions
diff --git a/Mk/bsd.pkgng.mk b/Mk/bsd.pkgng.mk
index 8cb52f075955..373c0e14637b 100644
--- a/Mk/bsd.pkgng.mk
+++ b/Mk/bsd.pkgng.mk
@@ -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
d=d134c0a17d10951bf934d69d2583b676591b60ab'>Update to 2.2.2.demon2001-12-133-9/+16 * Upgrade to 2.2.1.demon2001-10-276-26/+23 * Set DIST_SUBDIR=KDEdemon2001-09-112-1/+2 * MAINTAINER -> kde@FreeBSD.orgdemon2001-09-011-1/+1 * Fix installation in a slightly different way.demon2001-08-212-6/+8 * Remove two languages not presented in new version.demon2001-08-201-3/+1 * Forgot to remove debug comment.demon2001-08-161-1/+1 * Upgrade to 2.2.demon2001-08-165-8/+31 * Remove Ukrainian from BATCH builds.demon2001-07-051-1/+1 * Exclude de, fr, ja, ru, zh_CN, zh_TW from bento's package.demon2001-04-171-1/+1 * Sort languages by name.demon2001-04-131-10/+10 * Examine LINGUAS variable before BATCH.demon2001-04-111-5/+5 * Allow to override MAINTAINER and CATEGORIES (in slave ports).demon2001-04-101-2/+2 * Add the ability to select which languages to install via dialog(1)-baseddemon2001-04-102-0/+87 * Update to 2.1.1demon2001-04-063-13/+2 * Overhaul QT/KDE support:will2001-04-031-2/+2