aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/postinstall.rb
AgeCommit message (Collapse)Author
2017-08-07sandbox: stop printing message.Mike McQuaid
We’re always using the sandbox where possible now so this is just noise for the vast majority of our users.
2017-05-03Install etc/var files on postinstall.Mike McQuaid
Also, don't delete them after that. This means that `brew postinstall` becomes a way to easily reinstall configuration files for any formula without needing any changes to any bottles or requiring a reinstall.
2016-12-13postinstall: don't allow writes to prefix itself.Mike McQuaid
Only the top-level directories inside it. We don't want formulae writing random junk in e.g. `/usr/local` even in `postinstall`.
2016-10-11postinstall: allow write access to cellars in repository.Mike McQuaid
If HOMEBREW_CELLAR (or HOMEBREW_PREFIX) are children of HOMEBREW_REPOSITORY it’s important to deny write to the repository and enable write to the Cellar/prefix afterwards.
2016-10-02Use `module_function` for commands.Markus Reiter
2016-09-23sandbox: tweak HOMEBREW_REPOSITORY handling.Mike McQuaid
If we have a HOMEBREW_REPOSITORY and HOMEBREW_PREFIX mismatch (now the default) then we can block access to the whole of HOMEBREW_REPOSITORY rather than just the HOMEBREW_LIBRARY and `.git`.
2016-09-08Add `--help` to all developer commands.Mike McQuaid
Also, flag those that we never want to be in a manpage.
2016-08-19separate build and test logsAndrew Janke
2016-08-15cmd/postinstall: use Sandbox.formula? method.Mike McQuaid
2016-04-18brew test, install, update-test: add --keep-tmp optionAndrew Janke
Also enables sandbox for --interactive and --debug use of install and test, using automatic retention. Closes #66. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2015-10-10postinstall: sanitize ARGV optionsXu Cheng
2015-08-25sandbox: permit /var/tmp & DerivedDataDominyk Tiller
Long term it would be nice to sandbox everything that writes to DerivedData but it is essentially a cache directory of sorts. The downside of allowing stuff to write there particularly is that DerivedData is notoriously bad at getting cleaned up, so if you do a lot of Xcode-using installations very quickly, you can chew your disk space up. Closes Homebrew/homebrew#43276. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-08-18unnecessary calls to .select simplifiedBaptiste Fontaine
These are minor perf optimizations. Closes Homebrew/homebrew#43028. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-08only run post_install if it's definedXu Cheng
Closes Homebrew/homebrew#42593. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-31print sandbox messageXu Cheng
Closes Homebrew/homebrew#42293. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-22auto disable sandbox for interactive shellXu Cheng
Closes Homebrew/homebrew#38792. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-05-27postinstall: use ARGV.resolved_formulaeXu Cheng
2015-04-29Let the test environment inject its own load pathJack Nagel
2015-04-25Add Formula#logsJack Nagel
2015-04-23sandbox: add deny_write_homebrew_library methodXu Cheng
2015-04-17sandbox: record logXu Cheng
Closes Homebrew/homebrew#38711. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-15sandbox postinstallXu Cheng
Closes Homebrew/homebrew#38479. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-02-07Always respect build options when invoking post_installJack Nagel
Fixes Homebrew/homebrew#36335.
2014-06-19Remove more unused requiresJack Nagel
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2013-09-01brew-postinstall: add new command.Mike McQuaid
Runs post-install jobs in case they failed or need rerun for any reason.