Allow NetBSD distribution tarball file extension to be defined with DISTRIB_EXT. Default to tgz. Bump to version 1.39diff -r1.1 -r1.2 pkgsrc/pkgtools/pkg_comp1/Makefile
(sborrill)
@@ -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 | |||
3 | PKGNAME= pkg_comp1-1.38 | 3 | PKGNAME= pkg_comp1-1.39 | |
4 | PKGREVISION= 1 | |||
5 | CATEGORIES= pkgtools | 4 | CATEGORIES= pkgtools | |
6 | 5 | |||
7 | MAINTAINER= pkgsrc-users@NetBSD.org | 6 | MAINTAINER= pkgsrc-users@NetBSD.org | |
8 | COMMENT= Build packages inside a chroot jail | 7 | COMMENT= Build packages inside a chroot jail | |
9 | LICENSE= modified-bsd | 8 | LICENSE= modified-bsd | |
10 | 9 | |||
11 | CONFLICTS= pkg_comp-[0-9]* | 10 | CONFLICTS= pkg_comp-[0-9]* | |
12 | 11 | |||
13 | ONLY_FOR_PLATFORM= NetBSD-*-* | 12 | ONLY_FOR_PLATFORM= NetBSD-*-* | |
14 | 13 | |||
15 | WRKSRC= ${WRKDIR} | 14 | WRKSRC= ${WRKDIR} | |
16 | NO_CONFIGURE= YES | 15 | NO_CONFIGURE= YES | |
17 | NO_BUILD= YES | 16 | NO_BUILD= YES |
@@ -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 | |||
203 | are copied to | 203 | are copied to | |
204 | .Sy $DESTDIR/root . | 204 | .Sy $DESTDIR/root . | |
205 | Defaults to | 205 | Defaults to | |
206 | .Ql no . | 206 | .Ql no . | |
207 | .It DESTDIR | 207 | .It DESTDIR | |
208 | The chroot jail directory. | 208 | The chroot jail directory. | |
209 | Defaults to | 209 | Defaults to | |
210 | .Pa /var/chroot/pkg_comp/default . | 210 | .Pa /var/chroot/pkg_comp/default . | |
211 | .It DISTRIBDIR | 211 | .It DISTRIBDIR | |
212 | This is the directory which holds | 212 | This is the directory which holds | |
213 | .Nb | 213 | .Nb | |
214 | binary sets and X sets. | 214 | binary sets and X sets. | |
215 | Its structure is the same as official release | 215 | Its structure is the same as official release | |
216 | distributions, that is, tgz files must reside inside | 216 | distributions, that is, tarball files must reside inside | |
217 | .Pa $DISTRIBDIR/binary/sets . | 217 | .Pa $DISTRIBDIR/binary/sets . | |
218 | Defaults to | 218 | Defaults to | |
219 | .Pa /var/pub/NetBSD . | 219 | .Pa /var/pub/NetBSD . | |
220 | .It DISTRIB_EXT | |||
221 | This is the file extension for the tarballs in | |||
222 | .Pa $DISTRIBDIR . | |||
223 | Recent NetBSD releases use tar.xz instead of tgz. | |||
224 | Defaults to | |||
225 | .Pa tgz | |||
220 | .It EXTRAMK | 226 | .It EXTRAMK | |
221 | Specifies a whitespace-separated list of files that must be appended to | 227 | Specifies a whitespace-separated list of files that must be appended to | |
222 | .Pa $DESTDIR/etc/mk.conf . | 228 | .Pa $DESTDIR/etc/mk.conf . | |
223 | This is useful to add special items to this configuration file. | 229 | This is useful to add special items to this configuration file. | |
224 | Defaults to nothing. | 230 | Defaults to nothing. | |
225 | .It INSTALL_PACKAGES | 231 | .It INSTALL_PACKAGES | |
226 | A list of packages to automatically install after the | 232 | A list of packages to automatically install after the | |
227 | .Sy makeroot | 233 | .Sy makeroot | |
228 | and before installing | 234 | and before installing | |
229 | .Sy BUILD_PACKAGES . | 235 | .Sy BUILD_PACKAGES . | |
230 | These are also installed within the sandbox created by the | 236 | These are also installed within the sandbox created by the | |
231 | .Sy auto | 237 | .Sy auto | |
232 | target, but before anything is built. | 238 | target, but before anything is built. |
@@ -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:=} |