Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_comp1 Allow NetBSD distribution tarball f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5730d722f074
branches:  trunk
changeset: 429667:5730d722f074
user:      sborrill <sborrill%pkgsrc.org@localhost>
date:      Thu Apr 23 11:28:08 2020 +0000

description:
Allow NetBSD distribution tarball file extension to be defined with DISTRIB_EXT.
Default to tgz.
Bump to version 1.39

diffstat:

 pkgtools/pkg_comp1/Makefile          |   5 ++---
 pkgtools/pkg_comp1/files/pkg_comp.8  |  10 ++++++++--
 pkgtools/pkg_comp1/files/pkg_comp.sh |   7 ++++---
 3 files changed, 14 insertions(+), 8 deletions(-)

diffs (69 lines):

diff -r 68fa5a5857bd -r 5730d722f074 pkgtools/pkg_comp1/Makefile
--- a/pkgtools/pkg_comp1/Makefile       Thu Apr 23 11:08:04 2020 +0000
+++ b/pkgtools/pkg_comp1/Makefile       Thu Apr 23 11:28:08 2020 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2017/02/12 10:48:55 jmmv Exp $
+# $NetBSD: Makefile,v 1.2 2020/04/23 11:28:08 sborrill Exp $
 
-PKGNAME=       pkg_comp1-1.38
-PKGREVISION=   1
+PKGNAME=       pkg_comp1-1.39
 CATEGORIES=    pkgtools
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
diff -r 68fa5a5857bd -r 5730d722f074 pkgtools/pkg_comp1/files/pkg_comp.8
--- a/pkgtools/pkg_comp1/files/pkg_comp.8       Thu Apr 23 11:08:04 2020 +0000
+++ b/pkgtools/pkg_comp1/files/pkg_comp.8       Thu Apr 23 11:28:08 2020 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: pkg_comp.8,v 1.1 2017/02/12 10:48:55 jmmv Exp $
+.\" $NetBSD: pkg_comp.8,v 1.2 2020/04/23 11:28:09 sborrill Exp $
 .\"
 .\" pkg_comp - Build packages inside a clean chroot environment
 .\" Copyright (c) 2002, 2003, 2004, 2005 Julio M. Merino Vidal <jmmv%NetBSD.org@localhost>
@@ -213,10 +213,16 @@
 .Nb
 binary sets and X sets.
 Its structure is the same as official release
-distributions, that is, tgz files must reside inside
+distributions, that is, tarball files must reside inside
 .Pa $DISTRIBDIR/binary/sets .
 Defaults to
 .Pa /var/pub/NetBSD .
+.It DISTRIB_EXT
+This is the file extension for the tarballs in
+.Pa $DISTRIBDIR .
+Recent NetBSD releases use tar.xz instead of tgz.
+Defaults to 
+.Pa tgz
 .It EXTRAMK
 Specifies a whitespace-separated list of files that must be appended to
 .Pa $DESTDIR/etc/mk.conf .
diff -r 68fa5a5857bd -r 5730d722f074 pkgtools/pkg_comp1/files/pkg_comp.sh
--- a/pkgtools/pkg_comp1/files/pkg_comp.sh      Thu Apr 23 11:08:04 2020 +0000
+++ b/pkgtools/pkg_comp1/files/pkg_comp.sh      Thu Apr 23 11:28:08 2020 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: pkg_comp.sh,v 1.1 2017/02/12 10:48:55 jmmv Exp $
+# $NetBSD: pkg_comp.sh,v 1.2 2020/04/23 11:28:09 sborrill Exp $
 #
 # pkg_comp - Build packages inside a clean chroot environment
 # Copyright (c) 2002, 2003, 2004, 2005 Julio M. Merino Vidal <jmmv%NetBSD.org@localhost>
@@ -101,14 +101,15 @@
     : ${PKG_DBDIR:=/var/db/pkg}
 
     # Default values for global variables used in the script.
+    : ${DISTRIB_EXT:=tgz}
     : ${DESTDIR:=/var/chroot/pkg_comp/default}
     : ${ROOTSHELL:=/bin/ksh}
     : ${COPYROOTCFG:=no}
     : ${AUTO_TARGET:=package}
     : ${BUILD_PKG_COMP_TARGET:=package}
     : ${DISTRIBDIR:=/var/pub/NetBSD}
-    : ${SETS:=base.tgz comp.tgz etc.tgz kern-GENERIC.tgz text.tgz}
-    : ${SETS_X11:=xbase.tgz xcomp.tgz xetc.tgz xfont.tgz xserver.tgz}
+    : ${SETS:=base.${DISTRIB_EXT} comp.${DISTRIB_EXT} etc.${DISTRIB_EXT} kern-GENERIC.${DISTRIB_EXT} text.${DISTRIB_EXT}}
+    : ${SETS_X11:=xbase.${DISTRIB_EXT} xcomp.${DISTRIB_EXT} xetc.${DISTRIB_EXT} xfont.${DISTRIB_EXT} xserver.${DISTRIB_EXT}}
     : ${REAL_SRC:=/usr/src}
     : ${REAL_SRC_OPTS:=-t null -o ro}
     : ${REAL_PKGSRC:=/usr/pkgsrc}



Home | Main Index | Thread Index | Old Index