diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-04-22 15:51:07 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-04-22 15:51:07 +0000 |
commit | adb87e14ab0a4cd8a51569ce06596a9a817f6c8d (patch) | |
tree | 709f87b35e16256919a52ea3f6a7f09968aa9470 /Mk/bsd.pkgng.mk | |
parent | 6abb3ce3f8d79a09f9ce6034cf2ec650b193970c (diff) | |
download | ports-adb87e14ab0a4cd8a51569ce06596a9a817f6c8d.tar.gz ports-adb87e14ab0a4cd8a51569ce06596a9a817f6c8d.zip |
Notes
Diffstat (limited to 'Mk/bsd.pkgng.mk')
-rw-r--r-- | Mk/bsd.pkgng.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Mk/bsd.pkgng.mk b/Mk/bsd.pkgng.mk index 97c2bbcc6613..1cd9a8f15c07 100644 --- a/Mk/bsd.pkgng.mk +++ b/Mk/bsd.pkgng.mk @@ -259,8 +259,14 @@ do-package: ${TMPPLIST} fi; \ fi; @if ${PKG_CREATE} -o ${PKGREPOSITORY} ${PKGNAME}; then \ - if [ -d ${PACKAGES} ]; then \ - cd ${.CURDIR} && eval ${MAKE} package-links; \ + if [ "${PKGORIGIN}" = "ports-mgmt/pkg" ]; then \ + if [ ! -d ${PKGLATESTREPOSITORY} ]; then \ + if ! ${MKDIR} ${PKGLATESTREPOSITORY}; then \ + ${ECHO_MSG} "=> Can't create directory ${PKGLATESTREPOSITORY}."; \ + exit 1; \ + fi; \ + fi ; \ + ${LN} -s ../${PKGREPOSITORYSUBDIR}/${PKGNAME}${PKG_SUFX} ${PKGLATESTFILE} ; \ fi; \ else \ cd ${.CURDIR} && eval ${MAKE} delete-package; \ |