# $NetBSD: pbulk.conf,v 1.29 2025/04/09 00:26:32 wiz Exp $

# Version of the configuration file. This is bumped whenever the default
# config changes to notify the administrator about updates.
#
config_version=0.68

# The URL where the build report will be made available. This is only
# used in the .txt version of the report.
#
base_url=http://www.pkgsrc-box.org/reports/current/DragonFly-1.8

# If yes, keep the last scan results in ${bulklog}.old and try to reuse them.
reuse_scan_results=no

# The pbulk framework can use multiple machines to build the packages.
# On a single-processor, non-distributed build, you may want to say "no"
# here.
#
master_mode=yes

master_ip=192.168.75.10
scan_clients="192.168.75.21 192.168.75.22 192.168.75.23 192.168.75.24"
build_clients="192.168.75.21 192.168.75.22 192.168.75.23 192.168.75.24"

master_port_scan=${master_ip}:2001
master_port_build=${master_ip}:2002

# Some flags for the programs that publish the binary packages and the
# build report. If you want to disable the publishing at all, see below.
#
pkg_rsync_args="-av --delete-excluded -e ssh"
pkg_rsync_target="pkgsrc@192.168.75.1:/public/packages/current/DragonFly-1.8"
report_rsync_args="-avz --delete-excluded -e ssh"
report_rsync_target="pkgsrc@192.168.75.1:/public/reports/current/DragonFly-1.8"
report_subject_prefix="pkgsrc"
report_recipients="pkgsrc-bulk@netbsd.org"

# An archive containing the pkgsrc binary tree after bootstrapping.
#
bootstrapkit=/usr/pkgsrc/bootstrap/bootstrap.tar.gz

# Optionally build a subset of the available packages and their dependencies.
# The file is a newline separated list of package locations (e.g. lang/perl5).
#limited_list=/limited_list

# In strict mode, unresolvable dependencies lead to pbulk stopping
# with an error in the scan phase. Otherwise, these packages are
# reported as broken in the bulk build report instead.
strict_mode=no

# If yes, consider a package up-to-date, if the dependency list matches
# the existing binary package and the recorded RCS IDs match the pkgsrc
# tree. Otherwise, additionally require that the package is not older
# than any of the dependencies.
#
skip_age_check=no

report_graph_script_limit=512

# Account used for user-destdir builds. This account should have
# no special permissions.
#
unprivileged_user=pbulk

# If yes, run the checksum phase as unprivileged user.
# Note: requires DISTDIR to be writeable for the unprivileged user.
use_unprivileged_checksum=no

# Variables used for the optional cross-compiling of packages.
#
cross_compile=no
target_arch=vax
target_destdir=/usr/src/destdir.${target_arch}

# The directories where the various files are created.
#
bulklog=/bulklog
packages=/packages
prefix=/usr/pkg
pkgsrc=/usr/pkgsrc
pkgdb=/usr/pkg/pkgdb
varbase=/var

# The following programs must NOT be inside ${prefix}
pkg_add=/usr/sbin/pkg_add
pkg_admin=/usr/sbin/pkg_admin
pkg_delete=/usr/sbin/pkg_delete
pkg_info=/usr/sbin/pkg_info

# The tools that are used for building the packages. If you do not want
# to publish anything at all, set rsync=: and mail=:.
#
bzip2=/usr/bin/bzip2
digest="/usr/pkg/bin/digest"
gzip="/usr/bin/gzip -nf -9"
# On non-NetBSD, this should usually point at the bmake in ${prefix}, not the
# make used to build pbulk itself.
make=/usr/bin/make
mail=/usr/bin/mail
neato=/usr/pkg/bin/neato
rsync=/usr/pkg/bin/rsync
sed=/usr/bin/sed
tar=/bin/tar

loc=${bulklog}/meta

pbuild=/usr/pkg/bin/pbulk-build
presolve=/usr/pkg/bin/pbulk-resolve
pscan=/usr/pkg/bin/pbulk-scan

# When a package build fails, it is often necessary to have a look at
# the working directory or the installed files. When these options are
# set to "yes", they will be archived in the log directory.
#
keep_wrkdir=no
keep_prefix=no

client_prepare=/usr/pkg/libexec/pbulk/client-prepare
client_prepare_action=/usr/pkg/libexec/pbulk/client-clean
client_prepare_chroot=:
pkg_up_to_date_script=/usr/pkg/libexec/pbulk/pkg-up-to-date
pbuild_script=/usr/pkg/libexec/pbulk/pkg-build
pbuild_start_script=/usr/pkg/libexec/pbulk/build-client-start
pscan_start_script=/usr/pkg/libexec/pbulk/scan-client-start
report_script=/usr/pkg/libexec/pbulk/create-report
report_html_script=/usr/pkg/libexec/pbulk/create-report-html
report_txt_script=/usr/pkg/libexec/pbulk/create-report-txt
report_graph_script=/usr/pkg/libexec/pbulk/create-broken-graph
packages_script=/usr/pkg/libexec/pbulk/compute-packages

script_phase_pre_build=/usr/pkg/libexec/pbulk/pre-build
script_phase_build=/usr/pkg/libexec/pbulk/build
script_phase_report=/usr/pkg/libexec/pbulk/report
script_phase_scan=/usr/pkg/libexec/pbulk/scan
script_phase_upload=/usr/pkg/libexec/pbulk/upload

# Arguments are buildlog and pkgname
sync_buildlog=:
# Arguments are path to the temporary package file, the package name
# and categories.  The default handler just copies the file to ${packages}.
sync_package=default_sync_package
# PKG_SUFX as set in mk.conf
pkg_sufx=.tgz
