diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2014-03-23 15:22:36 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2014-03-23 15:22:36 +0000 |
commit | 5256c01b0db2bc05b141065169674537a5a29970 (patch) | |
tree | 5b3608bc7e46bbc93c47d542cf060eb1771d197c | |
parent | - pkgng: Create package in WRKDIR and then try to link it to the PACKAGES dir. (diff) |
- Only create ports-mgmt/pkg latest link if can write to PACKAGES
With hat: portmgr
Notes
Notes:
svn path=/head/; revision=348862
-rw-r--r-- | Mk/bsd.pkgng.mk | 18 |
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; \ |