Added support to specify --dbdir to customize path to pkgdb.
This commit is contained in:
parent
9f08ec5123
commit
e9b8ff7360
2
NEWS
2
NEWS
@ -1,5 +1,7 @@
|
|||||||
xbps-0.45 (???):
|
xbps-0.45 (???):
|
||||||
|
|
||||||
|
* configure: added --dbdir to customize path to pkgdb.
|
||||||
|
|
||||||
* xbps-uchroot(8): added -o option to pass arguments to the tmpfs mount,
|
* xbps-uchroot(8): added -o option to pass arguments to the tmpfs mount,
|
||||||
as is. See mount(8). Useful to specify a size for the temporary tmpfs
|
as is. See mount(8). Useful to specify a size for the temporary tmpfs
|
||||||
with overlayfs (-O).
|
with overlayfs (-O).
|
||||||
|
3
configure
vendored
3
configure
vendored
@ -36,6 +36,7 @@ for instance \`--prefix=\$HOME'.
|
|||||||
--pkgconfigdir=DIR pkg-config directory [EPREFIX/lib/pkgconfig]
|
--pkgconfigdir=DIR pkg-config directory [EPREFIX/lib/pkgconfig]
|
||||||
--testsdir=DIR Test suite directory [EPREFIX/tests]
|
--testsdir=DIR Test suite directory [EPREFIX/tests]
|
||||||
--localstatedir=DIR Local state directory to store XBPS db files [/var]
|
--localstatedir=DIR Local state directory to store XBPS db files [/var]
|
||||||
|
--dbdir=DIR Path to the pkgdb directory [LOCALSTATEDIR/db/xbps]
|
||||||
|
|
||||||
--verbose Disable silent build to see compilation details
|
--verbose Disable silent build to see compilation details
|
||||||
--enable-api-docs Install XBPS API Library documentation (default disabled)
|
--enable-api-docs Install XBPS API Library documentation (default disabled)
|
||||||
@ -65,6 +66,7 @@ for x; do
|
|||||||
--localstatedir) LOCALSTATEDIR=$var;;
|
--localstatedir) LOCALSTATEDIR=$var;;
|
||||||
--libdir) LIBDIR=$var;;
|
--libdir) LIBDIR=$var;;
|
||||||
--datadir|--infodir) ;; # ignore autotools
|
--datadir|--infodir) ;; # ignore autotools
|
||||||
|
--dbdir) DBDIR=$var;;
|
||||||
--enable-api-docs) BUILD_API_DOCS=$var;;
|
--enable-api-docs) BUILD_API_DOCS=$var;;
|
||||||
--verbose) unset SILENT;;
|
--verbose) unset SILENT;;
|
||||||
--pkgconfigdir) PKGCONFIGDIR=$var;;
|
--pkgconfigdir) PKGCONFIGDIR=$var;;
|
||||||
@ -187,6 +189,7 @@ echo "CPPFLAGS = -I. -I\$(TOPDIR) -I\$(TOPDIR)/include" >>$CONFIG_MK
|
|||||||
echo "CPPFLAGS += -DXBPS_SYSCONF_PATH=\\\"${ETCDIR}\\\"" >>$CONFIG_MK
|
echo "CPPFLAGS += -DXBPS_SYSCONF_PATH=\\\"${ETCDIR}\\\"" >>$CONFIG_MK
|
||||||
echo "CPPFLAGS += -DXBPS_SYSDEFCONF_PATH=\\\"${SHAREDIR}/xbps.d\\\"" >>$CONFIG_MK
|
echo "CPPFLAGS += -DXBPS_SYSDEFCONF_PATH=\\\"${SHAREDIR}/xbps.d\\\"" >>$CONFIG_MK
|
||||||
echo "CPPFLAGS += -DXBPS_VERSION=\\\"${VERSION}\\\"" >>$CONFIG_MK
|
echo "CPPFLAGS += -DXBPS_VERSION=\\\"${VERSION}\\\"" >>$CONFIG_MK
|
||||||
|
echo "CPPFLAGS += -DXBPS_META_PATH=\\\"${DBDIR}\\\"" >>$CONFIG_MK
|
||||||
echo "CPPFLAGS += -D_unused=\"__attribute__((__unused__))\"" >>$CONFIG_MK
|
echo "CPPFLAGS += -D_unused=\"__attribute__((__unused__))\"" >>$CONFIG_MK
|
||||||
|
|
||||||
if [ -d .git ]; then
|
if [ -d .git ]; then
|
||||||
|
@ -80,7 +80,9 @@
|
|||||||
* @def XBPS_META_PATH
|
* @def XBPS_META_PATH
|
||||||
* Default root PATH to store metadata info.
|
* Default root PATH to store metadata info.
|
||||||
*/
|
*/
|
||||||
|
#ifndef XBPS_META_PATH
|
||||||
#define XBPS_META_PATH "var/db/xbps"
|
#define XBPS_META_PATH "var/db/xbps"
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @def XBPS_CACHE_PATH
|
* @def XBPS_CACHE_PATH
|
||||||
|
Loading…
Reference in New Issue
Block a user