diff options
author | jperkin <jperkin@pkgsrc.org> | 2021-10-12 12:46:14 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2021-10-12 12:46:14 +0000 |
commit | f4fc96a649e59ec715d1ad2f13050ea1b0a9a380 (patch) | |
tree | 2394a2bd5441b766cc65033ad00a75c5696a09b9 /pkgtools/pkgin | |
parent | 6eecbadbc952acd1a637e614bc30580e747a7e68 (diff) | |
download | pkgsrc-f4fc96a649e59ec715d1ad2f13050ea1b0a9a380.tar.gz |
pkgin: Update to 21.10.0.
Add new pkgin-prefer-gzip option to support the feature listed below, and
activate it by default on what I believe are MACHINE_ARCH that would most
benefit from it - no offence intended ;)
## Version 21.10.0 (2021-10-12)
* Support building with -DPREFER_GZIP_SUMMARY which will attempt to fetch
pkg_summary.gz first, useful on slower machines with limited memory.
Diffstat (limited to 'pkgtools/pkgin')
-rw-r--r-- | pkgtools/pkgin/Makefile | 6 | ||||
-rw-r--r-- | pkgtools/pkgin/distinfo | 8 | ||||
-rw-r--r-- | pkgtools/pkgin/options.mk | 21 |
3 files changed, 29 insertions, 6 deletions
diff --git a/pkgtools/pkgin/Makefile b/pkgtools/pkgin/Makefile index 79744bbce6d..478d6d279ac 100644 --- a/pkgtools/pkgin/Makefile +++ b/pkgtools/pkgin/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.114 2021/07/22 14:47:46 jperkin Exp $ +# $NetBSD: Makefile,v 1.115 2021/10/12 12:46:14 jperkin Exp $ -DISTNAME= pkgin-21.7.0 +DISTNAME= pkgin-21.10.0 CATEGORIES= pkgtools MASTER_SITES= ${MASTER_SITE_GITHUB:=NetBSDfr/} GITHUB_TAG= v${PKGVERSION_NOREV} @@ -47,6 +47,8 @@ CFLAGS.SunOS+= -D_FILE_OFFSET_BITS=64 DEPENDS+= pkg_install>=20200701:../../pkgtools/pkg_install +.include "options.mk" + # those have official repositories .if !empty(PKGIN_REPOSITORY_URL) pre-install: diff --git a/pkgtools/pkgin/distinfo b/pkgtools/pkgin/distinfo index 51b99d1f1d1..50b77125dd7 100644 --- a/pkgtools/pkgin/distinfo +++ b/pkgtools/pkgin/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.71 2021/10/07 14:47:19 nia Exp $ +$NetBSD: distinfo,v 1.72 2021/10/12 12:46:14 jperkin Exp $ -RMD160 (pkgin-21.7.0.tar.gz) = 733f23427ad5e6194b8dd4b2ebaedb0d6fb4197a -SHA512 (pkgin-21.7.0.tar.gz) = c68fd8f247e8bde4c2dc2b1cd16ce3eaf8fa419838c41ca691f4f157e2560ba63e3e6770cac0130a325aee0f10579e7f3e0f32df90fdb8f976d5800a0bde5813 -Size (pkgin-21.7.0.tar.gz) = 247438 bytes +RMD160 (pkgin-21.10.0.tar.gz) = 6c57a928384d76af60a299cad396622aa8974d31 +SHA512 (pkgin-21.10.0.tar.gz) = f2b2efc2b4172db0a0055fecf306f067e0bcd2ac1eea41e38df44afde9d91cefe6131d72d854762642de61750ee3cd1482b9108dd9ae21daca34fda1b2920b62 +Size (pkgin-21.10.0.tar.gz) = 247816 bytes diff --git a/pkgtools/pkgin/options.mk b/pkgtools/pkgin/options.mk new file mode 100644 index 00000000000..ec0baf3f2b5 --- /dev/null +++ b/pkgtools/pkgin/options.mk @@ -0,0 +1,21 @@ +# $NetBSD: options.mk,v 1.3 2021/10/12 12:46:14 jperkin Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.pkgin +PKG_SUPPORTED_OPTIONS= pkgin-prefer-gzip + +.include "../../mk/bsd.prefs.mk" + +# +# Prefer pkg_summary.gz instead of .bz2 or .xz on hosts that are likely to be +# slower or have limited memory where the higher compression can cause issues. +# +PROBABLY_SLOW_ARCHS= alpha hppa m68k sparc vax +.if !empty(PROBABLY_SLOW_ARCHS:M${MACHINE_ARCH}) +PKG_SUGGESTED_OPTIONS= pkgin-prefer-gzip +.endif + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mpkgin-prefer-gzip) +CPPFLAGS+= -DPREFER_GZIP_SUMMARY +.endif |