dsynth - Add profile selection options

Operating Systems / DragonFlyBSD - Matthew Dillon [apollo.backplane.com] - 24 November 2019 22:32 UTC

- Allow the profile to be specified via the DSYNTH_PROFILE env
variable or via the -p profile option, overriding the default in /etc/dsynth.ini.

NOTE: If running more than one dsynth simultaneously on the same machine, the following directives in dsynth.ini must be different:

Directory_packages Directory_repository Directory_buildbase Directory_logs

NOTE: The Directory_distfiles directive can be shared across any number of running instances without running afoul of colliding fetches.

- Allows easy selection from multiple profiles specified in dsynth.ini.

- Create an active .lock file in the buildbase and complain if another dsynth is running.

9e1d0b1260 dsynth - Add profile selection options
usr.bin/dsynth/build.c | 68 +++++++++++++++++++++++++++++++------------------
usr.bin/dsynth/config.c | 14 +++++++---
usr.bin/dsynth/dsynth.c | 38 +++++++++++++++++++++++++--
usr.bin/dsynth/dsynth.h | 2 +-
4 files changed, 91 insertions(+), 31 deletions(-)

Upstream: gitweb.dragonflybsd.org

  • Share