svn commit: r316243 - head/Mk
Baptiste Daroussin
bapt at FreeBSD.org
Mon Apr 22 15:51:08 UTC 2013
Author: bapt
Date: Mon Apr 22 15:51:07 2013
New Revision: 316243
URL: http://svnweb.freebsd.org/changeset/ports/316243
Log:
LATEST_LINK makes no sense with pkgng
Remove any symlink and category in the packages directory when using WITH_PKGNG.
Only keep links for pkg itself (to allow bootstrap)
Modified:
head/Mk/bsd.pkgng.mk
Modified: head/Mk/bsd.pkgng.mk
==============================================================================
--- head/Mk/bsd.pkgng.mk Mon Apr 22 15:44:41 2013 (r316242)
+++ head/Mk/bsd.pkgng.mk Mon Apr 22 15:51:07 2013 (r316243)
@@ -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; \
More information about the svn-ports-all
mailing list