482 Commits

Author SHA1 Message Date
Stephane Peter a8fcacaa68 More Travis fixes 2019-09-15 01:26:48 -07:00
Stephane Peter 46c76cbbe6 Fix Travis syntax 2019-09-15 01:22:17 -07:00
Stephane Peter da32fafec7 Fixes for Linux and macOS 2019-09-14 23:27:58 -07:00
Stephane Peter e9d360d006 Added multiple platforms to Travis CI 2019-09-14 20:21:28 -07:00
Stephane Peter 82b9311e5a Merge branch 'master' of github.com:megastep/makeself 2019-09-14 20:19:49 -07:00
Stephane Peter 5aa4206165 Indentation fixes 2019-09-14 20:19:37 -07:00
Timothy Brackett 1160982ec5 Fix #48 --append functionality (#174)
* Fix #48 --append functionality

* Fix #48 --append functionality

Also adds some additional testing to the appendtest to catch
previously uncaught failure modes.

* Use size of uncompressed tar for USIZE

Change covers the corner case where files are updated in the archive
during an --append. Removes the necessity for the OLDUSIZE variable.
2019-09-13 12:26:21 -07:00
realtime-neil 56c742bd90 fix #167: whitespace license path (#168) 2019-08-04 12:56:44 -07:00
Stephan Renatus c83c7b7013 fix typo in README.md (#164) 2019-05-31 11:43:44 -07:00
realtime-neil a11352d5b7 edit .travis.yml: add suidtest (#158) 2019-02-19 23:00:25 -05:00
Mirko Serra a63a3cb93a Issue #152 (#157)
* Added option chown and made nochown default. This can also be specified at creation of the file

* Added test. makeself default invocation shouldn't destroy suid bits

* Typo. Corrected description of --nochown and --chown

* Corrected datetest not working on computers with different locale

* Small change to directory name and remove duplicated line
2019-02-15 15:17:32 -08:00
realtime-neil a342abfb1c stable sort, even with whitespace paths (#153)
* don't use `xargs -0` because it's not well supported

* use `sed 's/./\\&/g'` to properly quote whitespace in paths

* add test unit for whitespace-containing paths

This patch addresses comments made in github pull request #151 regarding
whitespace-containing filenames and stable sorted inputs.

References on lacking `xargs -0`:

* http://nixdoc.net/man-pages/HP-UX/man1/xargs.1.html

* http://nixdoc.net/man-pages/IRIX/man1/xargs.1.html

* http://nixdoc.net/man-pages/Tru64/man1/xargs.1.html

* https://www.unix.com/man-page/sunos/1/xargs

References on using find with xargs:

* http://www.etalabs.net/sh_tricks.html
2019-01-30 10:37:25 -08:00
Irnes Mujkanovic f1e266b94b Make xargs handle filenames that contain spaces (#151)
* Make xargs handle filenames that contain spaces

* Update makeself.sh
2019-01-28 11:26:18 -08:00
Luciferius 6c852b089f disable showing license page by page when --accept option is used (#150) 2019-01-24 01:00:56 -08:00
realtime-neil d22a2dafbf stable order inputs: find, sort, tar -T (#149)
* stable order inputs: find, sort, tar -T

After `cd`-ing to `$archdir`, use `find` and `sort` to generate a stable order
of inputs[0] (in the form of a newline-delimited list of paths) from which
`tar` reads via `-T-`.

This feature depends on `tar` support for the `-T` option as well as the
presence of the commands `find` and `sort`.

[0]:https://reproducible-builds.org/docs/stable-inputs/

* sort archdir contents and append to temporary archive

* change `TMPDIR:=` to `TMPDIR:-`
2019-01-17 02:07:49 -08:00
Stephane Peter c16151f9db Run appendtest in Travis 2018-12-11 13:31:18 -08:00
George ba1c328257 Fix unit tests so they fail when there are failures (#148)
* add append unit test before changes to fix append. Note the assert change, since it always passed before

* fix the unit tests so they fail when appropriate, at least on osx
2018-12-11 13:23:43 -08:00
Keshav Kini 77156e28ff Use rm from PATH (#142)
On NixOS (a Linux distribution), there is no `/bin/rm`, but an `rm`
command will generally be available in one's path when running shell
scripts. Here, I change a couple of invocations of `/bin/rm` into
invocations of `rm` to deal with this issue.

Since `rm` is already called elsewhere in the script without an
absolute path, I assume this change will not cause any
regressions. Still, I've tested this on a CentOS machine and a NixOS
machine, though not other platforms.
2018-10-01 18:13:57 -07:00
Stephane Peter bdb69aca14 Outputp SHA in --dumpconf (issue #143) 2018-09-20 12:29:01 -07:00
Stephane Peter 502572aed4 Quote $TMPROOT 2018-06-11 02:55:01 -07:00
Stephane Peter 6e0a2727d3 Always print checksum status (fixes bug #136) 2018-06-11 02:45:14 -07:00
Denis Ovsienko 4f7d8eb8e8 Fix the handover from MS_dd_Progress() to MS_dd() (#137)
When the user ran the downloaded archive using spaces in the archive
pathname (as in ~/Downloads/some\ files/archive.run) and noprogress was
set to "y", MS_dd_Progress() did not properly quote the arguments to
MS_dd(), which then had a wrong file name and failed:

gzip: stdin: unexpected end of file

Add missing quotes to MS_dd_Progress() to fix this.
2018-06-10 03:47:57 -07:00
Alex Tokarev 27d9d3a3c7 Fix decryption errors on Bash 4.x (#135) 2018-06-06 22:21:32 -07:00
Alex Tokarev d152f88b66 Support OpenSSL encryption with compression (not instead of) (#133)
* Support OpenSSL encryption with compression (not instead of)

* More consistent value interpolation in conditionals

* Output decryption errors to stderr instead of /dev/tty
2018-06-01 00:19:09 -07:00
Stephane Peter 92d3356f9b Change directory for deployment to succeed release-2.4.0 2018-04-27 02:23:32 -07:00
Stephane Peter eca1fe8e11 Documentation updates 2018-04-27 02:16:34 -07:00
Stephane Peter 6774043758 Report SHA on archive creation. Not exclusive of MD5 automatically. 2018-04-27 02:02:29 -07:00
Stephane Peter b522f3ee99 Check SHA256 checksums 2018-04-26 17:59:42 -07:00
Stephane Peter f5fa3bf556 Export SHA separately 2018-04-26 03:41:40 -07:00
Stephane Peter bf21172e0f First draft handling SHA 2018-04-25 19:25:03 -07:00
Stephane Peter 05bf78e18a Build releases on GitHub tags 2018-04-25 17:19:51 -07:00
Stephane Peter df0f6f810a Preparation for v2.4 and SHA256 2018-04-25 16:52:56 -07:00
Denys Havrysh a93061e5a5 Support base64 decoding on MacOS X (#127) 2018-04-23 12:01:14 -07:00
Stephane Peter 2dcac39412 Quote more instances of paths 2018-04-15 19:30:29 -07:00
Stephane Peter 669ed5c542 Quote the mkdir argument too 2018-04-15 17:41:20 -07:00
Stephane Peter b9b9caf2b0 Escape the target dir so that directories with spaces can be used. 2018-04-15 03:04:45 -07:00
Alex Tokarev d3232ec6e1 Openssl improvements (#129)
* Add support for alternate password source for openssl encryption

* OpenSSL decrypt works on Solaris 10 with default openssl install
2018-04-09 21:35:27 -07:00
Stephane Peter 9ffe633bb2 Further clarifications about licensing 2018-03-15 15:51:57 -07:00
sephalon fc917f2cb8 Improve handling of complex license texts (#126)
Escape all characters having a special meaning inside double quotes (fixes
issue #82). In addition enable scrolling of long texts using more.
2018-03-08 11:24:10 -08:00
Stephane Peter 15c8e9bbe5 More Markdown fixes 2018-01-23 16:03:07 -08:00
Stephane Peter 9a2c5448e5 Fixed Markdown in README 2018-01-19 17:33:54 -08:00
hsq125 fc842b87c1 Documented availability of $USER_PWD variable introduced in 10fa357 (#124) 2017-11-23 03:25:16 -08:00
Bernhard Suttner 9edf8d8e16 Add a option to specify the ssl password used to encrypt the data (#123) 2017-11-23 01:20:20 -08:00
rbcrwd 6728dec40d Target docfix (#120)
* Return to tar args that work for Solaris

This should still work with the added UNTAR_EXTRA feature, but returns
to the known-working tar invocation for rickety old Solaris.

I took the liberty of dropping an extra empty line and the quotes around
UNTAR_EXTRA so as to preempt any multi-arg problems.

* Make --target documentation more clear

This clarifies the runtime --target documentation so users may clearly
understand that this is to be a temporary directory (e.g., don't use
--target=/home). In doing so, we also allude to what's probably the
right answer for most users, setting TMPDIR instead.

* Further attempt at clarifying
2017-11-01 19:29:05 -07:00
Stephane Peter 93c7c56bf0 Force the openssl digest to SHA-256 for compatibility 2017-08-29 02:51:08 -07:00
Stephane Peter 58c2fb4324 Updated version number release-2.3.1 2017-08-09 17:47:03 -07:00
Stephane Peter 094bee8c65 Documentation updates for 2.3.1 release 2017-08-09 15:58:08 -07:00
Jeremy Landis 4881aacfd4 [maven] Add maven plugin link to readme (#111) 2017-08-02 20:00:15 -07:00
Denys Havrysh 1cc877ddba Add unit test for --tar-extra option (#109) 2017-07-19 03:26:03 -07:00
Denys Havrysh 55df2e27da Fix --tar-extra to accept multiple tar options (#108) 2017-07-18 11:23:56 -07:00