aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2014-03-23 23:22:36 +0800
committerbdrewery <bdrewery@FreeBSD.org>2014-03-23 23:22:36 +0800
commitdccd349d9335a9e5cd5421d45138e30213ed0c55 (patch)
tree5b3608bc7e46bbc93c47d542cf060eb1771d197c
parent87ad1777b69558d67bda8457b68589fbba66f7e9 (diff)
downloadfreebsd-ports-gnome-dccd349d9335a9e5cd5421d45138e30213ed0c55.tar.gz
freebsd-ports-gnome-dccd349d9335a9e5cd5421d45138e30213ed0c55.tar.zst
freebsd-ports-gnome-dccd349d9335a9e5cd5421d45138e30213ed0c55.zip
- Only create ports-mgmt/pkg latest link if can write to PACKAGES
With hat: portmgr
-rw-r--r--Mk/bsd.pkgng.mk18
1 files changed, 9 insertions, 9 deletions
diff --git a/Mk/bsd.pkgng.mk b/Mk/bsd.pkgng.mk
index f3e47b1fb12f..a0724744978b 100644
--- a/Mk/bsd.pkgng.mk
+++ b/Mk/bsd.pkgng.mk
@@ -249,16 +249,16 @@ do-package: ${TMPPLIST}
if [ -d ${PKGREPOSITORY} -a -w ${PKGREPOSITORY} ]; then \
${LN} -f ${WRKDIR}/${PKGNAME}${PKG_SUFX} ${PKGFILE} 2>/dev/null \
|| ${CP} -af ${WRKDIR}/${PKGNAME}${PKG_SUFX} ${PKGFILE}; \
+ if [ "${PKGORIGIN}" = "ports-mgmt/pkg" -o "${PKGORIGIN}" = "ports-mgmt/pkg-devel" ]; then \
+ if [ ! -d ${PKGLATESTREPOSITORY} ]; then \
+ if ! ${MKDIR} ${PKGLATESTREPOSITORY}; then \
+ ${ECHO_MSG} "=> Can't create directory ${PKGLATESTREPOSITORY}."; \
+ exit 1; \
+ fi; \
+ fi ; \
+ ${LN} -sf ../${PKGREPOSITORYSUBDIR}/${PKGNAME}${PKG_SUFX} ${PKGLATESTFILE} ; \
+ fi; \
fi; \
- if [ "${PKGORIGIN}" = "ports-mgmt/pkg" -o "${PKGORIGIN}" = "ports-mgmt/pkg-devel" ]; then \
- if [ ! -d ${PKGLATESTREPOSITORY} ]; then \
- if ! ${MKDIR} ${PKGLATESTREPOSITORY}; then \
- ${ECHO_MSG} "=> Can't create directory ${PKGLATESTREPOSITORY}."; \
- exit 1; \
- fi; \
- fi ; \
- ${LN} -sf ../${PKGREPOSITORYSUBDIR}/${PKGNAME}${PKG_SUFX} ${PKGLATESTFILE} ; \
- fi; \
else \
cd ${.CURDIR} && eval ${MAKE} delete-package; \
exit 1; \