| 1 | # Copyright: 2005-2006 Brian Harring <ferringb@gmail.com> |
|---|
| 2 | # Copyright: 2000-2005 Gentoo Foundation |
|---|
| 3 | # License: GPL2 |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | """ |
|---|
| 7 | Internal constants. |
|---|
| 8 | |
|---|
| 9 | Future of this module is debatable- for the most part you likely don't |
|---|
| 10 | want to be using this. As soon as is possible, most of these defines |
|---|
| 11 | will be shifted to wherever they're best situated. |
|---|
| 12 | """ |
|---|
| 13 | |
|---|
| 14 | # note this is lifted out of portage 2. so... it's held onto for the |
|---|
| 15 | # sake of having stuff we still need, but it does need cleanup. |
|---|
| 16 | |
|---|
| 17 | import os.path as osp |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | # the pkgcore package directory |
|---|
| 21 | PORTAGE_BASE_PATH = osp.dirname(osp.abspath(__file__)) |
|---|
| 22 | PORTAGE_BIN_PATH = osp.join(PORTAGE_BASE_PATH, 'bin') |
|---|
| 23 | PORTAGE_DATA_PATH = osp.join(PORTAGE_BASE_PATH, 'data') |
|---|
| 24 | SYSTEM_CONF_FILE = '/etc/pkgcore.conf' |
|---|
| 25 | USER_CONF_FILE = osp.expanduser('~/.pkgcore.conf') |
|---|
| 26 | |
|---|
| 27 | GLOBAL_CONF_FILE = PORTAGE_DATA_PATH + '/global_conf' |
|---|
| 28 | #PORTAGE_PYM_PATH = PORTAGE_BASE_PATH+"/pym" |
|---|
| 29 | #PROFILE_PATH = "/etc/make.profile" |
|---|
| 30 | LOCALE_DATA_PATH = PORTAGE_BASE_PATH+"/locale" |
|---|
| 31 | |
|---|
| 32 | EBUILD_DAEMON_PATH = PORTAGE_BIN_PATH+"/ebuild-env/ebuild-daemon.sh" |
|---|
| 33 | |
|---|
| 34 | SANDBOX_BINARY = "/usr/bin/sandbox" |
|---|
| 35 | |
|---|
| 36 | DEPSCAN_SH_BINARY = "/sbin/depscan.sh" |
|---|
| 37 | BASH_BINARY = "/bin/bash" |
|---|
| 38 | MOVE_BINARY = "/bin/mv" |
|---|
| 39 | COPY_BINARY = "/bin/cp" |
|---|
| 40 | PRELINK_BINARY = "/usr/sbin/prelink" |
|---|
| 41 | depends_phase_path = PORTAGE_BIN_PATH+"/ebuild-env/:/bin:/usr/bin" |
|---|
| 42 | EBUILD_ENV_PATH = [PORTAGE_BIN_PATH+"/"+x for x in [ |
|---|
| 43 | "ebuild-env", "ebuild-helpers"]] \ |
|---|
| 44 | + ["/sbin", "/bin", "/usr/sbin", "/usr/bin"] |
|---|
| 45 | EBD_ENV_PATH = PORTAGE_BIN_PATH+"/ebuild-env" |
|---|
| 46 | |
|---|
| 47 | # XXX this is out of place |
|---|
| 48 | WORLD_FILE = '/var/lib/portage/world' |
|---|
| 49 | #MAKE_CONF_FILE = "/etc/make.conf" |
|---|
| 50 | #MAKE_DEFAULTS_FILE = PROFILE_PATH + "/make.defaults" |
|---|
| 51 | |
|---|
| 52 | INVALID_ENV_FILE = "/etc/spork/is/not/valid/profile.env" |
|---|
| 53 | # XXX this is out of place |
|---|
| 54 | CUSTOM_MIRRORS_FILE = "/etc/portage/mirrors" |
|---|
| 55 | SANDBOX_PIDS_FILE = "/tmp/sandboxpids.tmp" |
|---|
| 56 | |
|---|
| 57 | #CONFCACHE_FILE = CACHE_PATH+"/confcache" |
|---|
| 58 | #CONFCACHE_LIST = CACHE_PATH+"/confcache_files.anydbm" |
|---|
| 59 | |
|---|
| 60 | LIBFAKEROOT_PATH = "/usr/lib/libfakeroot.so" |
|---|
| 61 | FAKED_PATH = "/usr/bin/faked" |
|---|
| 62 | |
|---|
| 63 | RSYNC_BIN = "/usr/bin/rsync" |
|---|
| 64 | RSYNC_HOST = "rsync.gentoo.org/gentoo-portage" |
|---|
| 65 | |
|---|
| 66 | CVS_BIN = "/usr/bin/cvs" |
|---|
| 67 | plugins_dir = "/etc/pkgcore/plugins/" |
|---|
| 68 | |
|---|
| 69 | VERSION = '0.1.4' |
|---|