summaryrefslogtreecommitdiffstats
path: root/tools
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:26 -0300
commit04e21f3eb3282106bd9ec71700018be370ad92f1 (patch)
tree64586ad11a2bb53a14e49940552136b7a4fcbb6d /tools
parent1c53532305d602a59a7edc7c31ba65e19fd4e43e (diff)
downloadpfsense-04e21f3eb3282106bd9ec71700018be370ad92f1.zip
pfsense-04e21f3eb3282106bd9ec71700018be370ad92f1.tar.gz
Distribute a file containing ABI of each repo
Diffstat (limited to 'tools')
-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 088ad01..d10f140 100644
--- a/tools/builder_common.sh
+++ b/tools/builder_common.sh
@@ -1215,6 +1215,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})
@@ -1225,6 +1231,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