Step 2: base tools: pkgtools/pkgin

- Setup default repository to the official Minix3 one.
 - pkgin formatting fix (from Ben Gras <ben@minix3.org>)
This commit is contained in:
Lionel Sambuc 2015-04-24 14:05:15 +00:00 committed by Lionel Sambuc
parent 1313cdbdd6
commit 105b6b0a0a
4 changed files with 27 additions and 1 deletions

View File

@ -55,11 +55,19 @@ MAKE_ENV+= MACHINE_ARCH=${MACHINE_ARCH}
DEPENDS+= pkg_install>=20130901:../../pkgtools/pkg_install
.if (${OPSYS} == "NetBSD" && ${OS_VARIANT} == "Minix")
CONFIGURE_ENV += ac_cv_func_tcgetpgrp=no
.endif
# those have official repositories
.if !empty(PKGIN_REPOSITORY_URL)
pre-install:
${ECHO} ${PKGIN_REPOSITORY_URL} >> ${WRKSRC}/repositories.conf
.elif ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "Minix"
.elif ${OPSYS} == "NetBSD" && ${OS_VARIANT} == "Minix"
pre-install:
${GREP} -i Minix ${WRKSRC}/REPOSITORIES >> \
${WRKSRC}/repositories.conf
.elif ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly"
pre-install:
${GREP} -i ${OPSYS} ${WRKSRC}/REPOSITORIES >> \
${WRKSRC}/repositories.conf
@ -82,6 +90,12 @@ do-install:
${DESTDIR}${EGDIR}/repositories.conf.example
${INSTALL_DATA} ${WRKSRC}/preferred.conf \
${DESTDIR}${EGDIR}/preferred.conf.example
.if ${OPSYS} == "NetBSD" && ${OS_VARIANT} == "Minix"
# LSC: We install this fragment only now, as it interfers with the bootstrap
# process otherwise.
${MKDIR} ${DESTDIR}${PREFIX}/etc
${INSTALL_DATA} ../../minix/mk.conf.minix ${DESTDIR}${PREFIX}/etc/mk.conf
.endif
# libfetch has no builtin.mk and is included in NetBSD>=5
.if ${OPSYS} != "NetBSD" || \

View File

@ -4,3 +4,4 @@ man/cat1/pkgin.0
man/man1/pkgin.1
share/examples/pkgin/preferred.conf.example
share/examples/pkgin/repositories.conf.example
etc/mk.conf

View File

@ -3,3 +3,4 @@ $NetBSD: distinfo,v 1.40 2015/08/18 19:31:29 jperkin Exp $
SHA1 (b08581b094980b6fc32beb304b8d3dda0689cc82.tar.gz) = f9bdb53a6e404b83a8c5d4f7e54ceb3d1de8c786
RMD160 (b08581b094980b6fc32beb304b8d3dda0689cc82.tar.gz) = 42f2903fd180cb6ef43f331cdbaf530ba8f479b9
Size (b08581b094980b6fc32beb304b8d3dda0689cc82.tar.gz) = 198425 bytes
SHA1 (patch-zz-minix) = 6860ab8758fd7ae4f2dd427ae39aa3c37b3f8226

View File

@ -0,0 +1,10 @@
$NetBSD$
--- REPOSITORIES.orig Wed May 7 15:48:08 2014
+++ REPOSITORIES
@@ -1,4 +1,4 @@
# NetBSD OS release can look like 6.0_STABLE, do not use it as-is
ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/$arch/@OSREL@/All
http://mirror-master.dragonflybsd.org/packages/$arch/DragonFly-$osrelease/stable/All/
-ftp://ftp.minix3.org/pub/minix/packages/$osrelease/$arch/All
+http://www.minix3.org/pkgsrc/packages/$osrelease/$arch/All