From 0d0e89b794030dab6be40975fd848e51f55261bb Mon Sep 17 00:00:00 2001 From: Glen Barber Date: Sun, 15 Dec 2013 20:38:07 +0000 Subject: [PATCH] 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 --- release/Makefile | 4 ++++ release/scripts/FreeBSD_install_cdrom.conf | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 release/scripts/FreeBSD_install_cdrom.conf diff --git a/release/Makefile b/release/Makefile index f6af5dc80f21..69e0fab08c0a 100644 --- a/release/Makefile +++ b/release/Makefile @@ -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 diff --git a/release/scripts/FreeBSD_install_cdrom.conf b/release/scripts/FreeBSD_install_cdrom.conf new file mode 100644 index 000000000000..44554b1141ce --- /dev/null +++ b/release/scripts/FreeBSD_install_cdrom.conf @@ -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 +} +