  	@if [ ! -d ${PKG_DBDIR}/${PKGNAME} ]; then \
  		${ECHO_MSG} "===>   Registering installation for ${PKGNAME}"; \
  		${MKDIR} ${PKG_DBDIR}/${PKGNAME}; \
-@@ -5944,6 +6074,7 @@
- 		fi; \
- 		if [ -f ${PKGMESSAGE} ]; then \
- 			${CP} ${PKGMESSAGE} ${PKG_DBDIR}/${PKGNAME}/+DISPLAY; \
-+			${ECHO_CMD} "@display +DISPLAY" >> ${PKG_DBDIR}/${PKGNAME}/+CONTENTS; \
- 		fi; \
- 		for dep in `${PKG_INFO} -qf ${PKGNAME} | ${AWK} '/^@pkgdep / {print $$2}' | ${SORT} -u`; do \
- 			if [ -d ${PKG_DBDIR}/$$dep -a -z `${ECHO_CMD} $$dep | ${GREP} -E ${PKG_IGNORE_DEPENDS}` ]; then \
-@@ -5964,6 +6095,11 @@
+@@ -6031,6 +6095,11 @@
  		${RM} -f /tmp/${PKGNAME}-required-by; \
  	fi
  .else

+				${ECHO_CMD} $$pkg:$$origin; \
+			done; \
+		done; \
 	fi
+.endif
 
 # Print out package names.
 
@@ -5927,6 +6056,7 @@
 	fi
 	@${RM} -rf ${PKG_DBDIR}/${PKGNAME}
 .endif

 	@${DO_NADA}
 .endif
 .endif
