summaryrefslogtreecommitdiffstats
path: root/release/Makefile
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2005-05-03 04:11:56 +0000
committermarcel <marcel@FreeBSD.org>2005-05-03 04:11:56 +0000
commitde52a122259c3dec560f5cb0d9eb069c754fbaf7 (patch)
treeaf356803060e3a05fd5d9372acbc16922d4ea99c /release/Makefile
parent5c8c9a1aa0f1cf4c3812df527ae8eee967e3e946 (diff)
downloadFreeBSD-src-de52a122259c3dec560f5cb0d9eb069c754fbaf7.zip
FreeBSD-src-de52a122259c3dec560f5cb0d9eb069c754fbaf7.tar.gz
Allow specifying which INDEX file to use by setting PKG_INDEX. By default
the INDEX file is taken from the package source tree as defined by the PKG_TREE variable. This change allows using the (possibly incomplete) packages on pointyhat. MFC after: 2 days
Diffstat (limited to 'release/Makefile')
-rw-r--r--release/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/release/Makefile b/release/Makefile
index 8b451ff..ebc2c8b 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -1245,13 +1245,14 @@ buildBootFloppy:
# PKG_TREE is the path to the package tree to be split
# PKG_DEST is the path to the destination tree to create the split in
# PKG_VERBOSE asks for verbose output of the layout process
+# PKG_INDEX is the path to the INDEX file. By default ${PKG_TREE}/INDEX.
.if defined(PKG_COPY)
PKG_DO_COPY= cp
.else
PKG_DO_COPY= ln
.endif
-PKG_INDEX= ${PKG_DEST}/INDEX.master
+PKG_WRKIDX= ${PKG_DEST}/INDEX.master
PKG_ENV?=
.if defined(TARGET_ARCH)
PKG_ENV+= PKG_ARCH=${TARGET_ARCH}
@@ -1259,6 +1260,7 @@ PKG_ENV+= PKG_ARCH=${TARGET_ARCH}
.if defined(PKG_VERBOSE)
PKG_ENV+= PKG_VERBOSE=1
.endif
+PKG_INDEX?= ${PKG_TREE}/INDEX
package-split:
.if !defined(PKG_TREE)
@@ -1268,9 +1270,9 @@ package-split:
@echo "PKG_DEST must be defined" && exit 1
.endif
@env ${PKG_ENV} python ${.CURDIR}/scripts/package-split.py \
- ${PKG_TREE}/INDEX ${PKG_INDEX}
+ ${PKG_INDEX} ${PKG_WRKIDX}
@env ${PKG_ENV} sh ${.CURDIR}/scripts/package-trees.sh ${PKG_DO_COPY} \
- ${PKG_INDEX} ${PKG_TREE} ${PKG_DEST}
+ ${PKG_WRKIDX} ${PKG_TREE} ${PKG_DEST}
.endif
.include <bsd.obj.mk>
OpenPOWER on IntegriCloud