| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: flavor-vars.mk,v 1.9 2008/04/07 13:18:25 joerg Exp $ | | 1 | # $NetBSD: flavor-vars.mk,v 1.10 2009/02/11 14:34:36 joerg Exp $ |
2 | # | | 2 | # |
3 | # This Makefile fragment is included indirectly by bsd.prefs.mk and | | 3 | # This Makefile fragment is included indirectly by bsd.prefs.mk and |
4 | # defines some variables which must be defined earlier than where | | 4 | # defines some variables which must be defined earlier than where |
5 | # flavor.mk is included. | | 5 | # flavor.mk is included. |
6 | # | | 6 | # |
7 | | | 7 | |
8 | PKGSRC_MESSAGE_RECIPIENTS?= # empty | | 8 | PKGSRC_MESSAGE_RECIPIENTS?= # empty |
9 | | | 9 | |
10 | .if !empty(PKGSRC_MESSAGE_RECIPIENTS) | | 10 | .if !empty(PKGSRC_MESSAGE_RECIPIENTS) |
11 | USE_TOOLS+= mail | | 11 | USE_TOOLS+= mail |
12 | .endif | | 12 | .endif |
13 | | | 13 | |
14 | .if defined(PKG_PRESERVE) | | 14 | .if defined(PKG_PRESERVE) |
| @@ -39,28 +39,38 @@ LINKFARM_CMD?= ${PKG_TOOLS_BIN}/linkfar | | | @@ -39,28 +39,38 @@ LINKFARM_CMD?= ${PKG_TOOLS_BIN}/linkfar |
39 | PKGTOOLS_REQD= 20070813 | | 39 | PKGTOOLS_REQD= 20070813 |
40 | | | 40 | |
41 | .if !defined(PKGTOOLS_VERSION) | | 41 | .if !defined(PKGTOOLS_VERSION) |
42 | PKGTOOLS_VERSION!= ${PKG_INFO_CMD} -V 2>/dev/null || echo 20010302 | | 42 | PKGTOOLS_VERSION!= ${PKG_INFO_CMD} -V 2>/dev/null || echo 20010302 |
43 | MAKEFLAGS+= PKGTOOLS_VERSION=${PKGTOOLS_VERSION} | | 43 | MAKEFLAGS+= PKGTOOLS_VERSION=${PKGTOOLS_VERSION} |
44 | .endif | | 44 | .endif |
45 | | | 45 | |
46 | # Check that we are using up-to-date pkg_* tools with this file. | | 46 | # Check that we are using up-to-date pkg_* tools with this file. |
47 | .if !defined(NO_PKGTOOLS_REQD_CHECK) && ${PKGTOOLS_VERSION} < ${PKGTOOLS_REQD} | | 47 | .if !defined(NO_PKGTOOLS_REQD_CHECK) && ${PKGTOOLS_VERSION} < ${PKGTOOLS_REQD} |
48 | BOOTSTRAP_DEPENDS+= pkg_install>=${PKGTOOLS_REQD}:../../pkgtools/pkg_install | | 48 | BOOTSTRAP_DEPENDS+= pkg_install>=${PKGTOOLS_REQD}:../../pkgtools/pkg_install |
49 | _PKG_INSTALL_DEPENDS= yes | | 49 | _PKG_INSTALL_DEPENDS= yes |
50 | .endif | | 50 | .endif |
51 | | | 51 | |
| | | 52 | .if !defined(NO_PKGTOOLS_REQD_CHECK) && ${PKGTOOLS_VERSION} >= 20090201 |
| | | 53 | AUDIT_PACKAGES?= ${PKG_ADMIN} |
| | | 54 | _AUDIT_PACKAGES_CMD?= audit-pkg |
| | | 55 | _EXTRACT_PKGVULNDIR= ${PKG_ADMIN} config-var PKGVULNDIR |
| | | 56 | DOWNLOAD_VULN_LIST?= ${PKG_ADMIN} fetch-pkg-vulnerabilities |
| | | 57 | .else |
52 | AUDIT_PACKAGES?= ${PKG_TOOLS_BIN}/audit-packages | | 58 | AUDIT_PACKAGES?= ${PKG_TOOLS_BIN}/audit-packages |
| | | 59 | _AUDIT_PACKAGES_CMD?= -n |
| | | 60 | _EXTRACT_PKGVULNDIR= ${AUDIT_PACKAGES} ${AUDIT_PACKAGES_FLAGS} -Q PKGVULNDIR |
53 | DOWNLOAD_VULN_LIST?= ${PKG_TOOLS_BIN}/download-vulnerability-list | | 61 | DOWNLOAD_VULN_LIST?= ${PKG_TOOLS_BIN}/download-vulnerability-list |
| | | 62 | .endif |
| | | 63 | |
54 | | | 64 | |
55 | # The binary pkg_install tools all need to consistently to refer to the | | 65 | # The binary pkg_install tools all need to consistently to refer to the |
56 | # correct package database directory. | | 66 | # correct package database directory. |
57 | # | | 67 | # |
58 | PKGTOOLS_ARGS?= -K ${_PKG_DBDIR} | | 68 | PKGTOOLS_ARGS?= -K ${_PKG_DBDIR} |
59 | | | 69 | |
60 | # Views are rooted in ${LOCALBASE}, all packages are depoted in | | 70 | # Views are rooted in ${LOCALBASE}, all packages are depoted in |
61 | # ${DEPOTBASE}, and the package database directory for the default view | | 71 | # ${DEPOTBASE}, and the package database directory for the default view |
62 | # is in ${PKG_DBDIR}. | | 72 | # is in ${PKG_DBDIR}. |
63 | # | | 73 | # |
64 | PKG_VIEW_ARGS?= -W ${LOCALBASE} -d ${DEPOTBASE} -k ${PKG_DBDIR} | | 74 | PKG_VIEW_ARGS?= -W ${LOCALBASE} -d ${DEPOTBASE} -k ${PKG_DBDIR} |
65 | | | 75 | |
66 | PKG_ADD?= ${PKG_ADD_CMD} ${PKGTOOLS_ARGS} | | 76 | PKG_ADD?= ${PKG_ADD_CMD} ${PKGTOOLS_ARGS} |