From 105b6b0a0aeec172a5a433f36b5d2f5d9723a44c Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Fri, 24 Apr 2015 14:05:15 +0000 Subject: [PATCH] Step 2: base tools: pkgtools/pkgin - Setup default repository to the official Minix3 one. - pkgin formatting fix (from Ben Gras ) --- pkgtools/pkgin/Makefile | 16 +++++++++++++++- pkgtools/pkgin/PLIST | 1 + pkgtools/pkgin/distinfo | 1 + pkgtools/pkgin/patches/patch-zz-minix | 10 ++++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 pkgtools/pkgin/patches/patch-zz-minix diff --git a/pkgtools/pkgin/Makefile b/pkgtools/pkgin/Makefile index b47b0ee25..50d7363ea 100644 --- a/pkgtools/pkgin/Makefile +++ b/pkgtools/pkgin/Makefile @@ -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" || \ diff --git a/pkgtools/pkgin/PLIST b/pkgtools/pkgin/PLIST index f31ecd8e0..6839612e3 100644 --- a/pkgtools/pkgin/PLIST +++ b/pkgtools/pkgin/PLIST @@ -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 diff --git a/pkgtools/pkgin/distinfo b/pkgtools/pkgin/distinfo index 787077eec..9b40d4c67 100644 --- a/pkgtools/pkgin/distinfo +++ b/pkgtools/pkgin/distinfo @@ -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 diff --git a/pkgtools/pkgin/patches/patch-zz-minix b/pkgtools/pkgin/patches/patch-zz-minix new file mode 100644 index 000000000..2a02e244d --- /dev/null +++ b/pkgtools/pkgin/patches/patch-zz-minix @@ -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