| @@ -1,32 +1,32 @@ | | | @@ -1,32 +1,32 @@ |
1 | # $NetBSD: pkgformat-vars.mk,v 1.9 2020/12/02 10:22:39 wiz Exp $ | | 1 | # $NetBSD: pkgformat-vars.mk,v 1.10 2020/12/03 10:04:48 wiz 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 | # pkgformat.mk is included. | | 5 | # pkgformat.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) |
15 | USE_TOOLS+= date | | 15 | USE_TOOLS+= date |
16 | .endif | | 16 | .endif |
17 | | | 17 | |
18 | # This is the package database directory for the default view. | | 18 | # This is the package database directory for the default view. |
19 | PKG_DBDIR?= ${PREFIX}/pkgdb | | 19 | PKG_DBDIR?= ${LOCALBASE}/pkgdb |
20 | | | 20 | |
21 | .if exists(/var/db/pkg) && !exists(${PKG_DBDIR}) | | 21 | .if exists(/var/db/pkg) && !exists(${PKG_DBDIR}) |
22 | PKG_DBDIR_ERROR= The default package database directory has changed. Please run: mv /var/db/pkg ${PKG_DBDIR} | | 22 | PKG_DBDIR_ERROR= The default package database directory has changed. Please run: mv /var/db/pkg ${PKG_DBDIR} |
23 | .endif | | 23 | .endif |
24 | | | 24 | |
25 | # _PKG_DBDIR is the actual packages database directory where we register | | 25 | # _PKG_DBDIR is the actual packages database directory where we register |
26 | # packages. | | 26 | # packages. |
27 | # | | 27 | # |
28 | _PKG_DBDIR= ${_CROSS_DESTDIR}${PKG_DBDIR} | | 28 | _PKG_DBDIR= ${_CROSS_DESTDIR}${PKG_DBDIR} |
29 | _HOST_PKG_DBDIR= ${HOST_PKG_DBDIR:U${PKG_DBDIR}} | | 29 | _HOST_PKG_DBDIR= ${HOST_PKG_DBDIR:U${PKG_DBDIR}} |
30 | | | 30 | |
31 | PKG_ADD_CMD?= ${PKG_TOOLS_BIN}/pkg_add | | 31 | PKG_ADD_CMD?= ${PKG_TOOLS_BIN}/pkg_add |
32 | PKG_ADMIN_CMD?= ${PKG_TOOLS_BIN}/pkg_admin | | 32 | PKG_ADMIN_CMD?= ${PKG_TOOLS_BIN}/pkg_admin |