Merge xbps-src code to make it usable in a standalone mode.
The new xbps-src configuration file is `etc/conf` where you can add your local overrides from defaults set via `etc/defaults.conf`. To use this xbps-src, run these steps: $ make $ sudo make setup (to make chroot helper setgid) $ ./xbps-src ...
This commit is contained in:
parent
49e9dc0df8
commit
0b95cb8f5d
20 changed files with 2825 additions and 0 deletions
11
etc/conf
Normal file
11
etc/conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Configuration file for xbps-src.
|
||||
#
|
||||
# Load the defaults in from defaults.conf (if it's readable).
|
||||
# These can be overridden below.
|
||||
#
|
||||
if [ -r ${XBPS_DISTDIR}/etc/defaults.conf ]; then
|
||||
. ${XBPS_DISTDIR}/etc/defaults.conf
|
||||
fi
|
||||
|
||||
# Add your local overrides below
|
||||
#
|
92
etc/defaults.conf
Normal file
92
etc/defaults.conf
Normal file
|
@ -0,0 +1,92 @@
|
|||
# --*-- shell --*--
|
||||
#
|
||||
# etc/defaults.conf
|
||||
# default configuration of etc/conf
|
||||
#
|
||||
# DO NOT EDIT THIS FILE DIRECTLY; IT MAY BE REPLACED DURING UPDATES,
|
||||
# EDIT etc/conf INSTEAD.
|
||||
#
|
||||
# To disable an option comment it out, don't set it to another value i.e:
|
||||
# FOO=no -> wrong
|
||||
# #FOO=yes -> correct
|
||||
#
|
||||
# Please also use ${FOO} style for shell variables because some parsers
|
||||
# rely on this to work properly.
|
||||
#
|
||||
# [REQUIRED]
|
||||
# Master directory. This is where the packages are built and installed.
|
||||
# By default set to xbps-packages/masterdir.
|
||||
#
|
||||
#XBPS_MASTERDIR=${HOME}/masterdir
|
||||
|
||||
# [OPTIONAL]
|
||||
# Host directory to be (bind) mounted into the chroot (masterdir) containing
|
||||
# directories for downloaded cached packages from xbps-install(8), packages
|
||||
# created by xbps-src, downloaded source distribution tarballs, etc.
|
||||
#
|
||||
# Basically your directory will contain this structure:
|
||||
#
|
||||
# /masterdir
|
||||
# |
|
||||
# |-----/HOSTDIR
|
||||
# |- /binpkgs <- local repository
|
||||
# |- /repocache <- cachedir for dependencies
|
||||
# |- /sources <- source tarballs
|
||||
#
|
||||
# When created, those names are constants, so you cannot change them, even
|
||||
# they are case sensitive.
|
||||
#
|
||||
# NOTE: You must create your toplevel /dir yourself
|
||||
#
|
||||
#XBPS_HOSTDIR=/path/to/your/host/directory
|
||||
|
||||
# [OPTIONAL]
|
||||
# Enable optional arguments to xbps-install. This is useful when you use
|
||||
# static binaries and when you need to specify arguments.
|
||||
# NOTE: This is only used with the binary-bootstrap target!
|
||||
#XBPS_INSTALL_ARGS="--repository=http://repo.voidlinux.eu/current"
|
||||
|
||||
# [OPTIONAL]
|
||||
# Compilation flags for C and C++.
|
||||
#
|
||||
XBPS_CFLAGS="-O2 -pipe"
|
||||
XBPS_CXXFLAGS="${XBPS_CFLAGS}"
|
||||
|
||||
# [OPTIONAL]
|
||||
# Linker flags passed to the compiler. By default we use --as-needed to
|
||||
# avoid linking extra libraries into binaries. See the following link
|
||||
# for info: http://www.gentoo.org/proj/en/qa/asneeded.xml
|
||||
#
|
||||
XBPS_LDFLAGS="-Wl,--as-needed"
|
||||
|
||||
# [OPTIONAL]
|
||||
# Enable or disable ccache when building packages.
|
||||
#
|
||||
#XBPS_CCACHE=yes
|
||||
|
||||
# [OPTIONAL]
|
||||
# Enable or disable distcc when building packages.
|
||||
#
|
||||
#XBPS_DISTCC=yes
|
||||
#XBPS_DISTCC_HOSTS=""
|
||||
|
||||
# [OPTIONAL]
|
||||
# Number of parallel jobs to execute when building packages that
|
||||
# use make(1) or alike commands.
|
||||
#
|
||||
#XBPS_MAKEJOBS=4
|
||||
|
||||
# [OPTIONAL]
|
||||
# Enable recording git revisions in final binary packages; enable this
|
||||
# if you are sure the package you are building is available in the
|
||||
# xbps-packages git repository.
|
||||
#
|
||||
#XBPS_USE_GIT_REVS=yes
|
||||
|
||||
# [OPTIONAL]
|
||||
# Disable building -dbg subpackages with debugging symbols. Please note
|
||||
# that building with debugging symbols make take a long while in some
|
||||
# packages even on computers with a fast CPU; as well as needs lots of
|
||||
# RAM to build properly some packages.
|
||||
#
|
||||
#XBPS_DEBUG_PKGS=yes
|
Loading…
Add table
Add a link
Reference in a new issue