Add a pkg(8) repository configuration file for cdrom-based package

installation.

As part of the 'pkg-stage' target, copy the configuration file
to the 'packages/repos/' directory on the DVD filesystem.

MFC after:	3 days
X-MFC-Before:	-RC3
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber 2013-12-15 20:38:07 +00:00
parent 2773bfa99a
commit 0d0e89b794
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259426
2 changed files with 16 additions and 0 deletions

View File

@ -225,7 +225,11 @@ pkg-stage:
.if !defined(NOPKG) && exists(${.CURDIR}/${TARGET}/pkg-stage.conf)
sh ${.CURDIR}/scripts/pkg-stage.sh ${.CURDIR}/${TARGET}/pkg-stage.conf \
${REVISION}
mkdir -p ${.OBJDIR}/dvd/packages/repos/
cp ${.CURDIR}/scripts/FreeBSD_install_cdrom.conf \
${.OBJDIR}/dvd/packages/repos/
.endif
touch ${.TARGET}
cdrom: disc1.iso bootonly.iso
dvdrom: dvd1.iso

View File

@ -0,0 +1,12 @@
#
# $FreeBSD$
#
# The pkg(8) repository configuration file for the installation DVD.
#
FreeBSD_install_cdrom: {
url: "file:///dist/packages/${ABI}",
mirror_type: "none",
enabled: yes
}