View | Details | Raw Unified | Return to bug 49017 | Differences between
and this patch

Collapse All | Expand All

(-)bsd.port.mk (-4 / +8 lines)
Lines 3187-3198 Link Here
3187
# Special target to remove installation
3187
# Special target to remove installation
3188
3188
3189
.if !target(deinstall)
3189
.if !target(deinstall)
3190
deinstall_name!=${PKG_INFO} -q -O ${PKGORIGIN} 2> /dev/null || ${TRUE}
3191
.if ${deinstall_name} == ""
3192
deinstall_name=${PKGNAME}
3193
.endif
3190
deinstall:
3194
deinstall:
3191
	@${ECHO_MSG} "===>  Deinstalling for ${PKGNAME}"
3195
	@${ECHO_MSG} "===>  Deinstalling for ${PKGORIGIN} (${deinstall_name})"
3192
	@if ${PKG_INFO} -e ${PKGNAME}; then \
3196
	@if ${PKG_INFO} -e ${deinstall_name}; then \
3193
		${PKG_DELETE} -f ${PKGNAME}; \
3197
		${PKG_DELETE} -f ${deinstall_name}; \
3194
	 else \
3198
	 else \
3195
		${ECHO_MSG} "===>   ${PKGNAME} not installed, skipping"; \
3199
		${ECHO_MSG} "===>   ${PKGORIGIN} not installed, skipping"; \
3196
	 fi
3200
	 fi
3197
	@${RM} -f ${INSTALL_COOKIE} ${PACKAGE_COOKIE}
3201
	@${RM} -f ${INSTALL_COOKIE} ${PACKAGE_COOKIE}
3198
.endif
3202
.endif

Return to bug 49017