From 389ffca6d66dc27bd6424dccf90331a485dd7eaa Mon Sep 17 00:00:00 2001 From: bdrewery Date: Sat, 26 Oct 2013 03:31:05 +0000 Subject: Add support for reading configuration files from /etc/pkg. For now only /etc/pkg/FreeBSD.conf is supported. Its style is: Repo: { URL: "...", MIRROR_TYPE: "...", ... } The configuration will be read from /usr/local/etc/pkg.conf if exists, otherwise /etc/pkg/FreeBSD.conf Approved by: bapt MFC after: 2 days --- etc/Makefile | 3 +++ etc/pkg/FreeBSD.conf | 6 ++++++ etc/pkg/Makefile | 10 ++++++++++ 3 files changed, 19 insertions(+) create mode 100644 etc/pkg/FreeBSD.conf create mode 100644 etc/pkg/Makefile (limited to 'etc') diff --git a/etc/Makefile b/etc/Makefile index 7e8e23f..d763df6 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -225,6 +225,9 @@ distribution: ${_+_}cd ${.CURDIR}/devd; ${MAKE} install ${_+_}cd ${.CURDIR}/gss; ${MAKE} install ${_+_}cd ${.CURDIR}/periodic; ${MAKE} install +.if ${MK_PKGBOOTSTRAP} != "no" + ${_+_}cd ${.CURDIR}/pkg; ${MAKE} install +.endif ${_+_}cd ${.CURDIR}/rc.d; ${MAKE} install ${_+_}cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall ${_+_}cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap diff --git a/etc/pkg/FreeBSD.conf b/etc/pkg/FreeBSD.conf new file mode 100644 index 0000000..b36d20f --- /dev/null +++ b/etc/pkg/FreeBSD.conf @@ -0,0 +1,6 @@ +# $FreeBSD$ +FreeBSD: { + url: "pkg+http://pkg.freebsd.org/${ABI}/latest", + mirror_type: "srv", + enabled: "yes" +} diff --git a/etc/pkg/Makefile b/etc/pkg/Makefile new file mode 100644 index 0000000..abc8c64 --- /dev/null +++ b/etc/pkg/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +NO_OBJ= + +FILES= FreeBSD.conf + +FILESDIR= /etc/pkg +FILESMODE= 644 + +.include -- cgit v1.1