88166ad6f5
This is from Anton Panev's GSoC 2011 project to add RPM and DPKG support to pkgsrc. (I am not adding that further support in this commit.) This is just a rename of the existing functionality. Now it will be easy to test the GSoC work by simply putting in a single directory (such as "rpm" or "deb"). See http://addpackageforma.sourceforge.net/ for some details. This is from Anton's CVS, but I made some minor changes: - changed plural pkgformats to singular pkgformat (to be consistent) - fixed a few places (in comments) that were missed - catch up on some additions to flavor not in the pkgforma cvs: PKGSRC_SETENV and _flavor-destdir-undo-replace and undo-destdir-replace-install.
22 lines
540 B
Makefile
22 lines
540 B
Makefile
# $NetBSD: check-vulnerable.mk,v 1.5 2011/10/15 00:23:08 reed Exp $
|
|
#
|
|
# Public targets:
|
|
#
|
|
# check-vulnerable:
|
|
# Checks for vulnerabilities in the package.
|
|
#
|
|
|
|
.if defined(ALLOW_VULNERABLE_PACKAGES)
|
|
check-vulnerable: .PHONY
|
|
@${DO_NADA}
|
|
. else
|
|
check-vulnerable: .PHONY _pkgformat-check-vulnerable
|
|
@${DO_NADA}
|
|
.endif
|
|
|
|
# A package format does not need to implement this target, so provide a
|
|
# default implementation.
|
|
.if !target(_pkgformat-check-vulnerable)
|
|
_pkgformat-check-vulnerable:
|
|
@${PHASE_MSG} "Skipping vulnerability checks."
|
|
.endif
|