summaryrefslogtreecommitdiffstats
path: root/tools/builder_common.sh
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-09-15 13:04:12 -0300
committerRenato Botelho <renato@netgate.com>2016-09-15 13:04:12 -0300
commit5f49bd636eac5fc66b9dfd9fb25755e375560671 (patch)
treed936b4cd750b70391d92f7b4a16d9c0983534f25 /tools/builder_common.sh
parent1ca26242edd01c7568a4e42606ea3bd4e5536bd5 (diff)
downloadpfsense-5f49bd636eac5fc66b9dfd9fb25755e375560671.zip
pfsense-5f49bd636eac5fc66b9dfd9fb25755e375560671.tar.gz
Distribute a file containing ABI of each repo
Diffstat (limited to 'tools/builder_common.sh')
-rw-r--r--tools/builder_common.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh
index a1ddb6d..2304442 100644
--- a/tools/builder_common.sh
+++ b/tools/builder_common.sh
@@ -913,6 +913,12 @@ clone_to_staging_area() {
rm -rf ${SCRATCHDIR}/repo-tmp >/dev/null 2>&1
mkdir -p ${_share_repos_path} >/dev/null 2>&1
+ local _freebsd_major_version=$( \
+ sed -n '/^REVISION=/ {; s,\.[0-9]*"$,,; s,^.*",,; p; q; };' \
+ ${FREEBSD_SRC_DIR}/sys/conf/newvers.sh \
+ )
+ local _default_abi="FreeBSD:${_freebsd_major_version}:${TARGET_ARCH}"
+
# Add all repos
for _template in ${PKG_REPO_BASE}/${PRODUCT_NAME}-repo*.conf; do
_template_filename=$(basename ${_template})
@@ -923,6 +929,13 @@ clone_to_staging_area() {
${TARGET_ARCH}
cp -f ${_template%%.conf}.descr ${_share_repos_path}
+
+ if [ -f ${_template%%.conf}.abi ]; then
+ cp -f ${_template%%.conf}.abi ${_share_repos_path}
+ else
+ echo ${_default_abi} \
+ > ${_share_repos_path}/${_template%%.conf}.abi
+ fi
done
core_pkg_create repo "" ${CORE_PKG_VERSION} ${SCRATCHDIR}/repo-tmp
OpenPOWER on IntegriCloud