Skip to content
2 changes: 2 additions & 0 deletions package-lists/build/main.pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ challenge-response
cloud-init
crash-python
crypt-blowfish
cyclonedx-cli
delphix-go
delphix-platform
delphix-rust
Expand All @@ -28,6 +29,7 @@ ptools
python-rtslib-fb
savedump
sdb
syft
targetcli-fb
virtualization
windows-connector
37 changes: 37 additions & 0 deletions packages/cyclonedx-cli/config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/usr/bin/env bash
#
# Copyright 2026 Delphix
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# shellcheck disable=SC2034

DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/cyclonedx-cli.git"

function build() {
logmust mkdir -p "$WORKDIR/repo"

#
# Instead of relying on linux-pkg to assign a default version like 1.0.0, set the
# version of the delphix-cyclonedx-cli package to the pinned cyclonedx-cli version.
# This is done so that "apt-cache policy delphix-cyclonedx-cli" on a build host can
# tell you which cyclonedx-cli actually validated a given CycloneDX SBOM.
#
# CYCLONEDX_VERSION holds "VERSION=..." and "SHA256=..." lines (the latter also
# read by debian/rules) -- pull out just the version, not the whole file.
#
PACKAGE_VERSION="$(grep '^VERSION=' "$WORKDIR/repo/CYCLONEDX_VERSION" | cut -d= -f2-)"
[[ -n "$PACKAGE_VERSION" ]] || die "Failed to retrieve package version"

logmust dpkg_buildpackage_default
}
37 changes: 37 additions & 0 deletions packages/syft/config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/usr/bin/env bash
#
# Copyright 2026 Delphix
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# shellcheck disable=SC2034

DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/syft.git"

function build() {
logmust mkdir -p "$WORKDIR/repo"

#
# Instead of relying on linux-pkg to assign a default version like 1.0.0, set the
# version of the delphix-syft package to the pinned Syft version. This is done so
# that "dpkg -l delphix-syft" on a build host can tell you which Syft actually
# produced a given CycloneDX SBOM.
#
# SYFT_VERSION holds "VERSION=..." and "SHA256=..." lines (the latter also read
# by debian/rules) -- pull out just the version, not the whole file.
#
PACKAGE_VERSION="$(grep '^VERSION=' "$WORKDIR/repo/SYFT_VERSION" | cut -d= -f2-)"
[[ -n "$PACKAGE_VERSION" ]] || die "Failed to retrieve package version"

logmust dpkg_buildpackage_default
}