Thu Apr 23 11:28:09 2020 UTC ()
Allow NetBSD distribution tarball file extension to be defined with DISTRIB_EXT.
Default to tgz.
Bump to version 1.39


(sborrill)
diff -r1.1 -r1.2 pkgsrc/pkgtools/pkg_comp1/Makefile
diff -r1.1 -r1.2 pkgsrc/pkgtools/pkg_comp1/files/pkg_comp.8
diff -r1.1 -r1.2 pkgsrc/pkgtools/pkg_comp1/files/pkg_comp.sh

cvs diff -r1.1 -r1.2 pkgsrc/pkgtools/pkg_comp1/Makefile (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_comp1/Makefile 2017/02/12 10:48:55 1.1
+++ pkgsrc/pkgtools/pkg_comp1/Makefile 2020/04/23 11:28:08 1.2
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1# $NetBSD: Makefile,v 1.1 2017/02/12 10:48:55 jmmv Exp $ 1# $NetBSD: Makefile,v 1.2 2020/04/23 11:28:08 sborrill Exp $
2 2
3PKGNAME= pkg_comp1-1.38 3PKGNAME= pkg_comp1-1.39
4PKGREVISION= 1 
5CATEGORIES= pkgtools 4CATEGORIES= pkgtools
6 5
7MAINTAINER= pkgsrc-users@NetBSD.org 6MAINTAINER= pkgsrc-users@NetBSD.org
8COMMENT= Build packages inside a chroot jail 7COMMENT= Build packages inside a chroot jail
9LICENSE= modified-bsd 8LICENSE= modified-bsd
10 9
11CONFLICTS= pkg_comp-[0-9]* 10CONFLICTS= pkg_comp-[0-9]*
12 11
13ONLY_FOR_PLATFORM= NetBSD-*-* 12ONLY_FOR_PLATFORM= NetBSD-*-*
14 13
15WRKSRC= ${WRKDIR} 14WRKSRC= ${WRKDIR}
16NO_CONFIGURE= YES 15NO_CONFIGURE= YES
17NO_BUILD= YES 16NO_BUILD= YES

cvs diff -r1.1 -r1.2 pkgsrc/pkgtools/pkg_comp1/files/pkg_comp.8 (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_comp1/files/pkg_comp.8 2017/02/12 10:48:55 1.1
+++ pkgsrc/pkgtools/pkg_comp1/files/pkg_comp.8 2020/04/23 11:28:09 1.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: pkg_comp.8,v 1.1 2017/02/12 10:48:55 jmmv Exp $ 1.\" $NetBSD: pkg_comp.8,v 1.2 2020/04/23 11:28:09 sborrill Exp $
2.\" 2.\"
3.\" pkg_comp - Build packages inside a clean chroot environment 3.\" pkg_comp - Build packages inside a clean chroot environment
4.\" Copyright (c) 2002, 2003, 2004, 2005 Julio M. Merino Vidal <jmmv@NetBSD.org> 4.\" Copyright (c) 2002, 2003, 2004, 2005 Julio M. Merino Vidal <jmmv@NetBSD.org>
5.\" 5.\"
6.\" Redistribution and use in source and binary forms, with or without 6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions 7.\" modification, are permitted provided that the following conditions
8.\" are met: 8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright 9.\" 1. Redistributions of source code must retain the above copyright
10.\" notice, this list of conditions and the following disclaimer. 10.\" notice, this list of conditions and the following disclaimer.
11.\" 2. Neither the name of The NetBSD Foundation nor the names of its 11.\" 2. Neither the name of The NetBSD Foundation nor the names of its
12.\" contributors may be used to endorse or promote products derived 12.\" contributors may be used to endorse or promote products derived
13.\" from this software without specific prior written permission. 13.\" from this software without specific prior written permission.
14.\" 3. Neither the name of author nor the names of its contributors may 14.\" 3. Neither the name of author nor the names of its contributors may
@@ -203,30 +203,36 @@ all configuration files (not directories @@ -203,30 +203,36 @@ all configuration files (not directories
203are copied to 203are copied to
204.Sy $DESTDIR/root . 204.Sy $DESTDIR/root .
205Defaults to 205Defaults to
206.Ql no . 206.Ql no .
207.It DESTDIR 207.It DESTDIR
208The chroot jail directory. 208The chroot jail directory.
209Defaults to 209Defaults to
210.Pa /var/chroot/pkg_comp/default . 210.Pa /var/chroot/pkg_comp/default .
211.It DISTRIBDIR 211.It DISTRIBDIR
212This is the directory which holds 212This is the directory which holds
213.Nb 213.Nb
214binary sets and X sets. 214binary sets and X sets.
215Its structure is the same as official release 215Its structure is the same as official release
216distributions, that is, tgz files must reside inside 216distributions, that is, tarball files must reside inside
217.Pa $DISTRIBDIR/binary/sets . 217.Pa $DISTRIBDIR/binary/sets .
218Defaults to 218Defaults to
219.Pa /var/pub/NetBSD . 219.Pa /var/pub/NetBSD .
 220.It DISTRIB_EXT
 221This is the file extension for the tarballs in
 222.Pa $DISTRIBDIR .
 223Recent NetBSD releases use tar.xz instead of tgz.
 224Defaults to
 225.Pa tgz
220.It EXTRAMK 226.It EXTRAMK
221Specifies a whitespace-separated list of files that must be appended to 227Specifies a whitespace-separated list of files that must be appended to
222.Pa $DESTDIR/etc/mk.conf . 228.Pa $DESTDIR/etc/mk.conf .
223This is useful to add special items to this configuration file. 229This is useful to add special items to this configuration file.
224Defaults to nothing. 230Defaults to nothing.
225.It INSTALL_PACKAGES 231.It INSTALL_PACKAGES
226A list of packages to automatically install after the 232A list of packages to automatically install after the
227.Sy makeroot 233.Sy makeroot
228and before installing 234and before installing
229.Sy BUILD_PACKAGES . 235.Sy BUILD_PACKAGES .
230These are also installed within the sandbox created by the 236These are also installed within the sandbox created by the
231.Sy auto 237.Sy auto
232target, but before anything is built. 238target, but before anything is built.

cvs diff -r1.1 -r1.2 pkgsrc/pkgtools/pkg_comp1/files/pkg_comp.sh (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_comp1/files/pkg_comp.sh 2017/02/12 10:48:55 1.1
+++ pkgsrc/pkgtools/pkg_comp1/files/pkg_comp.sh 2020/04/23 11:28:09 1.2
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3# $NetBSD: pkg_comp.sh,v 1.1 2017/02/12 10:48:55 jmmv Exp $ 3# $NetBSD: pkg_comp.sh,v 1.2 2020/04/23 11:28:09 sborrill Exp $
4# 4#
5# pkg_comp - Build packages inside a clean chroot environment 5# pkg_comp - Build packages inside a clean chroot environment
6# Copyright (c) 2002, 2003, 2004, 2005 Julio M. Merino Vidal <jmmv@NetBSD.org> 6# Copyright (c) 2002, 2003, 2004, 2005 Julio M. Merino Vidal <jmmv@NetBSD.org>
7# 7#
8# Redistribution and use in source and binary forms, with or without 8# Redistribution and use in source and binary forms, with or without
9# modification, are permitted provided that the following conditions 9# modification, are permitted provided that the following conditions
10# are met: 10# are met:
11# 1. Redistributions of source code must retain the above copyright 11# 1. Redistributions of source code must retain the above copyright
12# notice, this list of conditions and the following disclaimer. 12# notice, this list of conditions and the following disclaimer.
13# 2. Redistributions in binary form must reproduce the above copyright 13# 2. Redistributions in binary form must reproduce the above copyright
14# notice, this list of conditions and the following disclaimer in 14# notice, this list of conditions and the following disclaimer in
15# the documentation and/or other materials provided with the 15# the documentation and/or other materials provided with the
16# distribution. 16# distribution.
@@ -91,34 +91,35 @@ env_setdefaults() @@ -91,34 +91,35 @@ env_setdefaults()
91 : ${CLEANDEPENDS:=yes} 91 : ${CLEANDEPENDS:=yes}
92 : ${LOCALBASE:=/usr/pkg} 92 : ${LOCALBASE:=/usr/pkg}
93 : ${PKG_SYSCONFBASE:=/usr/pkg/etc} 93 : ${PKG_SYSCONFBASE:=/usr/pkg/etc}
94 : ${CFLAGS:=} 94 : ${CFLAGS:=}
95 : ${CPPFLAGS:=} 95 : ${CPPFLAGS:=}
96 : ${CXXFLAGS:=} 96 : ${CXXFLAGS:=}
97 : ${USE_GCC3:=no} 97 : ${USE_GCC3:=no}
98 : ${USE_AUDIT_PACKAGES:=yes} 98 : ${USE_AUDIT_PACKAGES:=yes}
99 : ${PKGVULNDIR:=/usr/pkg/share} 99 : ${PKGVULNDIR:=/usr/pkg/share}
100 : ${PKGSRC_COMPILER:=gcc} 100 : ${PKGSRC_COMPILER:=gcc}
101 : ${PKG_DBDIR:=/var/db/pkg} 101 : ${PKG_DBDIR:=/var/db/pkg}
102 102
103 # Default values for global variables used in the script. 103 # Default values for global variables used in the script.
 104 : ${DISTRIB_EXT:=tgz}
104 : ${DESTDIR:=/var/chroot/pkg_comp/default} 105 : ${DESTDIR:=/var/chroot/pkg_comp/default}
105 : ${ROOTSHELL:=/bin/ksh} 106 : ${ROOTSHELL:=/bin/ksh}
106 : ${COPYROOTCFG:=no} 107 : ${COPYROOTCFG:=no}
107 : ${AUTO_TARGET:=package} 108 : ${AUTO_TARGET:=package}
108 : ${BUILD_PKG_COMP_TARGET:=package} 109 : ${BUILD_PKG_COMP_TARGET:=package}
109 : ${DISTRIBDIR:=/var/pub/NetBSD} 110 : ${DISTRIBDIR:=/var/pub/NetBSD}
110 : ${SETS:=base.tgz comp.tgz etc.tgz kern-GENERIC.tgz text.tgz} 111 : ${SETS:=base.${DISTRIB_EXT} comp.${DISTRIB_EXT} etc.${DISTRIB_EXT} kern-GENERIC.${DISTRIB_EXT} text.${DISTRIB_EXT}}
111 : ${SETS_X11:=xbase.tgz xcomp.tgz xetc.tgz xfont.tgz xserver.tgz} 112 : ${SETS_X11:=xbase.${DISTRIB_EXT} xcomp.${DISTRIB_EXT} xetc.${DISTRIB_EXT} xfont.${DISTRIB_EXT} xserver.${DISTRIB_EXT}}
112 : ${REAL_SRC:=/usr/src} 113 : ${REAL_SRC:=/usr/src}
113 : ${REAL_SRC_OPTS:=-t null -o ro} 114 : ${REAL_SRC_OPTS:=-t null -o ro}
114 : ${REAL_PKGSRC:=/usr/pkgsrc} 115 : ${REAL_PKGSRC:=/usr/pkgsrc}
115 : ${REAL_PKGSRC_OPTS:=-t null -o ro} 116 : ${REAL_PKGSRC_OPTS:=-t null -o ro}
116 : ${REAL_DISTFILES:=/usr/pkgsrc/distfiles} 117 : ${REAL_DISTFILES:=/usr/pkgsrc/distfiles}
117 : ${REAL_DISTFILES_OPTS:=-t null -o rw} 118 : ${REAL_DISTFILES_OPTS:=-t null -o rw}
118 : ${REAL_PACKAGES:=/usr/pkgsrc/packages} 119 : ${REAL_PACKAGES:=/usr/pkgsrc/packages}
119 : ${REAL_PACKAGES_OPTS:=-t null -o rw} 120 : ${REAL_PACKAGES_OPTS:=-t null -o rw}
120 : ${REAL_PKGVULNDIR:=/usr/pkgsrc/distfiles} 121 : ${REAL_PKGVULNDIR:=/usr/pkgsrc/distfiles}
121 : ${NETBSD_RELEASE:=no} 122 : ${NETBSD_RELEASE:=no}
122 : ${LIBKVER_STANDALONE_PREFIX:=/libkver} 123 : ${LIBKVER_STANDALONE_PREFIX:=/libkver}
123 : ${MAKEROOT_HOOKS:=} 124 : ${MAKEROOT_HOOKS:=}
124 : ${MOUNT_HOOKS:=} 125 : ${MOUNT_HOOKS:=}