Pete [Sat, 18 Nov 2023 00:05:37 +0000 (16:05 -0800)]
Ignore extended attributes when untarring packages.
The author of sshfs shoved a bunch of OSX metadata into his tarball, and this
caused bsdtar to exit with an error, despite successfully extracting the files.
In general, it seems unwise to respect external filesystem metadata in a
tarball you get from the internet.
Matt Housh [Fri, 3 Feb 2023 16:32:32 +0000 (10:32 -0600)]
Replaced egrep call, bumped to version 5.40.10
Matt Housh [Mon, 19 Dec 2022 23:20:51 +0000 (17:20 -0600)]
Makefile: fixed version, tweaked dist target
Matt Housh [Wed, 13 Apr 2022 23:06:55 +0000 (18:06 -0500)]
pkgmk: added '--format=gnutar' to bsdtar call in build_package() to deal with some locale issues
Juergen Daubert [Thu, 13 Jan 2022 12:47:06 +0000 (13:47 +0100)]
pkgmk: use curl as the default download program
Juergen Daubert [Sat, 18 Dec 2021 14:43:00 +0000 (15:43 +0100)]
pkgmk: set LC_ALL to C.UTF-8
Juergen Daubert [Tue, 5 Oct 2021 08:52:37 +0000 (10:52 +0200)]
adjust copyright year
Juergen Daubert [Tue, 5 Oct 2021 08:41:50 +0000 (10:41 +0200)]
Makefile: bump version
Juergen Daubert [Tue, 5 Oct 2021 08:41:04 +0000 (10:41 +0200)]
pkgmk: call signify with absolute path
Juergen Daubert [Tue, 5 Oct 2021 08:04:10 +0000 (10:04 +0200)]
Makefile: add new man-page pkgfile.5
John McQuah [Tue, 5 Oct 2021 07:59:50 +0000 (09:59 +0200)]
pkgfile.5: new man-page, initial work by fun
John McQuah [Tue, 5 Oct 2021 07:57:07 +0000 (09:57 +0200)]
pkgmk: add possibility to change the name of downloaded tarballs
Fredrik Rinnestam [Sat, 17 Nov 2018 20:11:16 +0000 (21:11 +0100)]
readd bz2 support - don't commit while drunk
Fun [Sun, 1 Apr 2018 08:23:52 +0000 (11:23 +0300)]
pkgadd: add lzip support (closes FS#1638)
It should complete the commit
ae5df6094b41 ('pkgmk: dropped bzip2 support, added support for lzip').
Signed-off-by: Fun <just.the.real.fun@gmail.com>
Fun [Sat, 24 Feb 2018 15:49:54 +0000 (17:49 +0200)]
faster strip_files() function
Tested with a port with 5500 output files, from which 53 candidates
for stripping. The timing was:
- 30 secs (old code)
- 0.2 secs (new code - current patch)
- 1.4 secs (new code with proper quoting - not commited)
Most of the time is spent in getting the output from the file program.
The old code started the file program for every file.
The new/present code starts N=$(nproc) processes in parallel with 10 input
files for each 'file' process. The output of the file program is feed
to an awk process which filters-out only the candidates for stripping.
This process runs in parallel too (but with one file per strip process).
The --no-buffer options is used because it sounds good (the strip should
start as soon as one of the file processes has a verdict for one of
their 10 files), but I didn't measure it.
The "xargs -r -L10 -P$N" command will miss the files with spaces.
For a file named "a b" it will spawn:
file "a" "b"
A slower version, with proper quoting, "xargs -r -L1 -P$N -I{} file ... '{}'",
will spawn:
file "a b"
* xargs will force -L1 if -I{} is used
Given that the file process doesn't return error codes for non-existing
files, and that there is a very low probability that we have ports with
filenames constaining spaces that are worth stripping them, I choose to
keep the faster (non perfect) version.
Fredrik Rinnestam [Wed, 14 Feb 2018 16:17:48 +0000 (17:17 +0100)]
pkgutils 5.40.7
Fredrik Rinnestam [Wed, 7 Feb 2018 17:22:25 +0000 (18:22 +0100)]
pkgmk: dropped bzip2 support, added support for lzip
Fredrik Rinnestam [Sat, 27 Jan 2018 10:51:29 +0000 (11:51 +0100)]
pkgadd.conf: Don't overwrite rc.d/wlan on update
Fredrik Rinnestam [Thu, 30 Nov 2017 16:28:57 +0000 (17:28 +0100)]
bump version
Fredrik Rinnestam [Thu, 30 Nov 2017 16:28:06 +0000 (17:28 +0100)]
pkgmk: use --compression=none for wget by default.
Fredrik Rinnestam [Wed, 20 Sep 2017 15:49:39 +0000 (17:49 +0200)]
bump version
just_fun [Sun, 6 Aug 2017 14:35:14 +0000 (17:35 +0300)]
Add JOBS to pkgmk.conf
just_fun [Fri, 4 Aug 2017 16:25:37 +0000 (19:25 +0300)]
pkgmk: fix the up-to-date option (avoid unnecesarry rebuilds)
build_needed() function returns true/yes if a source is missing,
even when the target/package exists and is up-to-date. This
behaviour triggers unnecesarry rebuilds.
Because only the remote sources can be missing and
we don't want to rebuild a port just because we've deleted
some of its remote sources, this patch changes that condition
from:
( the source is missing OR is newer than the target/package )
to
( the source exists AND is newer than the target/package )
Fredrik Rinnestam [Wed, 20 Sep 2017 15:45:01 +0000 (17:45 +0200)]
pkgmk: dont export PKG, SRC FS#1367
Fredrik Rinnestam [Tue, 19 Sep 2017 21:50:10 +0000 (23:50 +0200)]
bump version to 5.40.4
Fredrik Rinnestam [Tue, 19 Sep 2017 21:46:09 +0000 (23:46 +0200)]
cleanup
Fredrik Rinnestam [Tue, 19 Sep 2017 21:45:19 +0000 (23:45 +0200)]
added sepen's patch for pkgadd config-file
just_fun [Sun, 18 Jun 2017 11:30:15 +0000 (14:30 +0300)]
pkgadd: avoid fake installations if unpacking fails
This patch aborts the package installation and remove the package
from the database on any extraction error. This fixes FS#620.
I don't know why the extraction errors were ignored (even documented).
The initial commit already had this behaviour. Another odd thing
is that the install status of the package was commited to the database
before it was installed while there are exceptions used in pkg_install():
- archive open error
- empty archive
- archive read error
Any of these errors will falsely mark the package as installed (maybe
not a big problem with upgrades).
To avoid breaking something (else), this fix kicks in
only with fresh installs (not upgrades).
Thanks Erich Eckner, for pointing out that the issue
is reproductible with a read-only destination. Otherwise,
I don't think I would have looked at this issue.
A test case is presented with the FS issue, just in case someone
who loves C++ enough to dig deeper or have more knowledge about
the history of this program would take a closer look.
Predrag Ivanovic [Mon, 18 Sep 2017 13:11:37 +0000 (15:11 +0200)]
pkgmk.in: Add 7z to unpack_source function
Libarchive(bsdtar) can extract 7-Zip archives since 3.0, so
add them as supported source
Ref:
https://github.com/libarchive/libarchive/wiki/LibarchiveFormats
Fredrik Rinnestam [Mon, 8 May 2017 16:45:38 +0000 (18:45 +0200)]
pkgutils-5.40.3
just_fun [Sat, 8 Apr 2017 18:21:41 +0000 (21:21 +0300)]
pkgmk: update .md5sum if present (even when the port was signed)
Fredrik Rinnestam [Sat, 8 Apr 2017 20:36:21 +0000 (22:36 +0200)]
bump Makefile version
Fredrik Rinnestam [Wed, 5 Apr 2017 19:58:09 +0000 (21:58 +0200)]
pkgmk: ignore md5sums unless signatures are missing
Juergen Daubert [Tue, 28 Feb 2017 19:02:26 +0000 (20:02 +0100)]
pkgmk: Remove check for empty $source in check_signature(), patch by just_fun
Juergen Daubert [Tue, 28 Feb 2017 12:32:16 +0000 (13:32 +0100)]
pkgadd: fix deprecated warning, patch by tnut
Fredrik Rinnestam [Thu, 23 Feb 2017 17:26:36 +0000 (18:26 +0100)]
pkgmk: Removed checking for in make_signature()
this is an artifact from make_md5sum() and NOT needed for make_signature().
In fact, this check breaks make_signature() because now packages that don't
have a $source don't get any .signature at all, even though it can
(and should) create a sha256 for the footprint and Pkgfile.
Patch by Camille (onodera).
Fredrik Rinnestam [Thu, 23 Feb 2017 17:24:27 +0000 (18:24 +0100)]
Fixed various style errors and some typos. Patch by Camille (onodera).
Fredrik Rinnestam [Sat, 18 Feb 2017 19:02:32 +0000 (20:02 +0100)]
pkgmk: don't assume file will print a ',' with future releases
Fredrik Rinnestam [Sat, 18 Feb 2017 17:04:41 +0000 (18:04 +0100)]
pkgmk: Actually strip executables and objects. Patch by Roman Oreshnikov
FS#1378
Fredrik Rinnestam [Wed, 8 Feb 2017 21:14:03 +0000 (22:14 +0100)]
pkgmk.conf: include PKGMK_IGNORE_MD5SUM and PKGMK_IGNORE_SIGNATURE variables
Fredrik Rinnestam [Tue, 7 Feb 2017 15:00:22 +0000 (16:00 +0100)]
signify related updates to pkgmk.8.in
Fredrik Rinnestam [Tue, 7 Feb 2017 14:55:35 +0000 (15:55 +0100)]
updated copyright to 2017
Thomas Penteker [Wed, 30 Nov 2016 22:18:12 +0000 (23:18 +0100)]
pkgmk.in: fix typo in the help text
Juergen Daubert [Wed, 5 Oct 2016 09:26:26 +0000 (11:26 +0200)]
update copyright year
Juergen Daubert [Tue, 4 Oct 2016 13:31:41 +0000 (15:31 +0200)]
pkgmk: extract archives with tar.lz extension
Thomas Penteker [Sat, 6 Aug 2016 18:17:57 +0000 (20:17 +0200)]
Merge branch 'signed'
Thomas Penteker [Sat, 6 Aug 2016 18:15:45 +0000 (20:15 +0200)]
pkgmk.8: minor documentation adjustments
Fredrik Rinnestam [Wed, 15 Jun 2016 17:19:34 +0000 (19:19 +0200)]
Makefile: bump version to 5.40
Thomas Penteker [Wed, 20 Apr 2016 22:04:40 +0000 (00:04 +0200)]
document new command-line switches in pkgmk.8
Thomas Penteker [Thu, 7 Apr 2016 23:06:13 +0000 (01:06 +0200)]
clean ups and -cs now checks the signature even if the binary package is already present
Thomas Penteker [Thu, 7 Apr 2016 20:48:26 +0000 (22:48 +0200)]
fix indentation even more
Thomas Penteker [Sat, 2 Apr 2016 21:11:47 +0000 (23:11 +0200)]
implement proper fallback with/without PKGMK_IGNORE_MD5SUM and PKGMK_IGNORE_SIGNATURE
Thomas Penteker [Sat, 2 Apr 2016 20:10:04 +0000 (22:10 +0200)]
fix indentation, remove --insecure and no-check-certificate from curl and wget options
Thomas Penteker [Mon, 28 Mar 2016 11:34:21 +0000 (13:34 +0200)]
strip -x from shebang
Thomas Penteker [Mon, 28 Mar 2016 00:48:20 +0000 (02:48 +0200)]
implement signature handling; yes indenting is broken
Juergen Daubert [Wed, 29 Jul 2015 07:17:42 +0000 (09:17 +0200)]
Makefile: change man-page location to /usr/share/man
Juergen Daubert [Sat, 25 Jul 2015 10:47:17 +0000 (12:47 +0200)]
bump version to 5.36
Juergen Daubert [Sat, 25 Jul 2015 10:46:56 +0000 (12:46 +0200)]
pkgmk.conf: add PKGMK_CURL_OPTS variable
Juergen Daubert [Sat, 25 Jul 2015 10:35:52 +0000 (12:35 +0200)]
Makefile: compress tarball with xz
Alan Mizrahi [Sat, 25 Jul 2015 10:23:49 +0000 (12:23 +0200)]
pkgmk: add support for curl
See FS#1060, https://crux.nu/bugs/index.php?do=details&task_id=1060
New variables in /etc/pkgmk.conf:
PKGMK_DOWNLOAD_PROG="" (curl or wget)
PKGMK_CURL_OPTS="" (parameters for curl, when using curl)
Juergen Daubert [Sun, 23 Mar 2014 18:15:46 +0000 (19:15 +0100)]
bump version to 5.35.6
Juergen Daubert [Sun, 23 Mar 2014 18:13:04 +0000 (19:13 +0100)]
pkgadd.conf: allow update of /etc/ssl/cert.pem provided by core/ca-certificates
Juergen Daubert [Sun, 23 Mar 2014 18:09:39 +0000 (19:09 +0100)]
pkgadd.conf: add rules for hwdb of eudev
Matt Housh [Wed, 13 Mar 2013 14:05:01 +0000 (09:05 -0500)]
pkgmk.conf: added commented MAKEFLAGS option
Juergen Daubert [Mon, 21 Jan 2013 15:19:08 +0000 (16:19 +0100)]
Makefile: bump version to 5.35.4
Juergen Daubert [Mon, 21 Jan 2013 15:14:45 +0000 (16:14 +0100)]
update copyright year to 2013
Juergen Daubert [Mon, 21 Jan 2013 15:09:17 +0000 (16:09 +0100)]
pkgmk.conf: if PKGMK_ARCH is unset we default to 64
Juergen Daubert [Wed, 28 Nov 2012 12:29:12 +0000 (13:29 +0100)]
bump version to 5.35.3
Juergen Daubert [Wed, 28 Nov 2012 12:23:58 +0000 (13:23 +0100)]
pkgmk: add support for plain tar, FS#603
Matt Housh [Tue, 27 Nov 2012 16:17:18 +0000 (10:17 -0600)]
pkgmk, pkgmk.conf: updates for multilib
Tilman Sauerbeck [Wed, 28 Mar 2012 17:36:27 +0000 (19:36 +0200)]
Bumped version to 5.35.2.
Tilman Sauerbeck [Tue, 27 Mar 2012 18:28:18 +0000 (20:28 +0200)]
Switched to libarchive 3.x.
Tilman Sauerbeck [Tue, 31 Aug 2010 17:23:15 +0000 (19:23 +0200)]
Bumped version to 5.35.1.
Tilman Sauerbeck [Tue, 31 Aug 2010 17:22:12 +0000 (19:22 +0200)]
Documented PKGMK_IGNORE_NEW in pkgmk.conf.5.
Tilman Sauerbeck [Sat, 26 Jun 2010 16:46:59 +0000 (18:46 +0200)]
Bumped version to 5.35.0.
Juergen Daubert [Sat, 29 May 2010 14:30:15 +0000 (16:30 +0200)]
Updated copyright notices to 2010.
Johannes Winkelmann [Thu, 27 May 2010 19:18:34 +0000 (21:18 +0200)]
Bug #221: added error codes.
Tilman Sauerbeck [Mon, 24 May 2010 09:11:50 +0000 (11:11 +0200)]
Fixed documentation to not only talk about pkg.tar.gz but also bz2 and xz.
Johannes Winkelmann [Sun, 23 May 2010 15:38:31 +0000 (17:38 +0200)]
Bug #221: pkgmk optionally now only warns about new files in a footprint.
Juergen Daubert [Fri, 21 May 2010 18:03:48 +0000 (20:03 +0200)]
Bug #581: Users may choose from gz/bz2/xz for the compression mode now.
Tilman Sauerbeck [Tue, 18 May 2010 17:24:17 +0000 (19:24 +0200)]
Be less strict about the package name suffix.
Note that we never made sure that the string in PKG_EXT
really is the final part of the filename.
Tilman Sauerbeck [Sun, 16 May 2010 10:35:34 +0000 (12:35 +0200)]
Added support for bzip2- and xz-compressed packages.
Tilman Sauerbeck [Wed, 5 May 2010 17:27:55 +0000 (19:27 +0200)]
Get libarchive LDFLAGS for static linking from pkg-config.
Andrew Brouwers [Sat, 27 Mar 2010 16:30:02 +0000 (17:30 +0100)]
Added support for *.tbz2 and *.txz source entries in pkgmk.
Andrew Brouwers [Sat, 27 Mar 2010 16:29:04 +0000 (17:29 +0100)]
Added support for *.rpm source entries in pkgmk.
Tilman Sauerbeck [Tue, 21 Jul 2009 17:30:27 +0000 (19:30 +0200)]
Bumped version to 5.34.2.
Tilman Sauerbeck [Tue, 21 Jul 2009 17:29:43 +0000 (19:29 +0200)]
Also accept *.tar.lzma source archives.
Tilman Sauerbeck [Mon, 20 Jul 2009 17:25:18 +0000 (19:25 +0200)]
Bumped version to 5.34.1.
Juergen Daubert [Thu, 16 Jul 2009 18:53:41 +0000 (20:53 +0200)]
Preserve file permissions and ownership when extracting distfiles.
Tilman Sauerbeck [Wed, 15 Jul 2009 18:10:36 +0000 (20:10 +0200)]
Bumped version to 5.34.0.
Juergen Daubert [Wed, 15 Jul 2009 18:01:53 +0000 (20:01 +0200)]
Bug #360: Check whether files are writable early.
Tilman Sauerbeck [Sat, 20 Jun 2009 13:28:33 +0000 (15:28 +0200)]
Use bsdtar instead of GNU tar to extract all handled archive formats.
Tilman Sauerbeck [Sat, 13 Jun 2009 22:02:54 +0000 (00:02 +0200)]
Only enable the tar and gzip modules when initialising libarchive.
This means you will only be able to run pkgadd/pkginfo on gzipped tarballs
but not on tarballs that were compressed with eg bzip2 or xz.
Tilman Sauerbeck [Tue, 4 Nov 2008 19:17:18 +0000 (20:17 +0100)]
Bumped version to 5.33.0.
Juergen Daubert [Sat, 1 Nov 2008 17:17:44 +0000 (18:17 +0100)]
Bug #336: Only accept http/https/ftp/file protocols in sources.
Juergen Daubert [Sat, 1 Nov 2008 17:09:20 +0000 (18:09 +0100)]
Bug #347: wget options are configurable now.
Johannes Winkelmann [Tue, 30 Sep 2008 18:59:37 +0000 (20:59 +0200)]
pkgmk: add "extract only" functionality, previously suggested by Lucas Hazel and Danny Rawlins
Tilman Sauerbeck [Sun, 22 Jun 2008 09:53:58 +0000 (11:53 +0200)]
Bug #287: Added a manpage for pkgmk.conf.
Based on a patch by Danny Rawlins <monster.romster@gmail.com>.
Brett Goulder [Fri, 11 Apr 2008 16:48:57 +0000 (18:48 +0200)]
Bug #241: Don't check SSL certificates.
pkgmk's mechanism to check file integrity is .md5sum, so relying on
proper SSL certificates for https connections isn't critical. This fixes
transfers from https servers whose SSL certificates are self signed only.
Original patch by Jose V Beneyto <sepen@users.sourceforge.net>.
Lucas Hazel [Fri, 11 Apr 2008 16:18:09 +0000 (18:18 +0200)]
Bug #244: Relative paths are supported now in pkgadd -r.