Implemented GH #39
The system repository directory set to <prefix>/share/xbps/repo.d contains system repository configuration files (.conf) that can be overrided by the admin in <sysconfdir>/xbps/repo.d bearing the same file name.
This commit is contained in:
@@ -4,7 +4,7 @@ INCS = xbps.h
|
||||
|
||||
.PHONY: all
|
||||
all:
|
||||
sed -e "s|@@VERSION@@|${VERSION}|g" ${INCS}.in > ${INCS}
|
||||
sed -e "s|@@VERSION@@|${VERSION}|g;s|@@PREFIX@@|${PREFIX}|g" ${INCS}.in > ${INCS}
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
|
@@ -48,7 +48,7 @@
|
||||
*
|
||||
* This header documents the full API for the XBPS Library.
|
||||
*/
|
||||
#define XBPS_API_VERSION "20140420"
|
||||
#define XBPS_API_VERSION "20140530"
|
||||
|
||||
#ifndef XBPS_VERSION
|
||||
#define XBPS_VERSION "UNSET"
|
||||
@@ -70,7 +70,10 @@
|
||||
*/
|
||||
#define XBPS_SYSDIR "/xbps"
|
||||
#ifndef XBPS_SYSCONF_PATH
|
||||
#define XBPS_SYSCONF_PATH "/etc" XBPS_SYSDIR
|
||||
# define XBPS_SYSCONF_PATH "/etc" XBPS_SYSDIR
|
||||
#endif
|
||||
#ifndef XBPS_SYSDEFCONF_PATH
|
||||
# define XBPS_SYSDEFCONF_PATH "@@PREFIX@@/share" XBPS_SYSDIR
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -91,6 +94,18 @@
|
||||
*/
|
||||
#define XBPS_VPKG_PATH XBPS_SYSCONF_PATH "/virtualpkg.d"
|
||||
|
||||
/**
|
||||
* @def XBPS_REPOD_PATH
|
||||
* Configuration directory to store repository configuration files.
|
||||
*/
|
||||
#define XBPS_REPOD_PATH XBPS_SYSCONF_PATH "/repo.d"
|
||||
|
||||
/**
|
||||
* @def XBPS_SYS_REPOD_PATH
|
||||
* System directory to store repository configuration files.
|
||||
*/
|
||||
#define XBPS_SYS_REPOD_PATH XBPS_SYSDEFCONF_PATH "/repo.d"
|
||||
|
||||
/**
|
||||
* @def XBPS_PKGDB
|
||||
* Filename for the package database.
|
||||
|
Reference in New Issue
Block a user