diff options
| author | Mike McQuaid | 2017-01-25 09:35:01 +0000 | 
|---|---|---|
| committer | GitHub | 2017-01-25 09:35:01 +0000 | 
| commit | d8d8c085962734be583a10dae4b62b6fc2f376b2 (patch) | |
| tree | 422fcfd35bcb2bff5c9489bab23ac785d1e1b98e /docs/Formula-Cookbook.md | |
| parent | e77e32c2dc29b29c4a4cfe3ddc76ee8bf09fd731 (diff) | |
| parent | 653f900e59b5841bc864008583ce02b2e5c0fc1f (diff) | |
| download | brew-d8d8c085962734be583a10dae4b62b6fc2f376b2.tar.bz2 | |
Merge pull request #1839 from justinmayer/persistent-configuration
Add docs on persisting settings across upgrades
Diffstat (limited to 'docs/Formula-Cookbook.md')
| -rw-r--r-- | docs/Formula-Cookbook.md | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/docs/Formula-Cookbook.md b/docs/Formula-Cookbook.md index bb3ad33dc..ac9d8cc79 100644 --- a/docs/Formula-Cookbook.md +++ b/docs/Formula-Cookbook.md @@ -783,6 +783,8 @@ The symlinks created by `install_symlink` are guaranteed to be relative. `ln_s`  For example, Ruby 1.9ās gems should be installed to `var/lib/ruby/` so that gems donāt need to be reinstalled when upgrading Ruby. You can usually do this with symlink trickery, or *better* a configure option. +Another example would be configuration files that should not be overwritten on package upgrades. If after installation you find that to-be-persisted configuration files are not copied but instead *symlinked* into `/usr/local/etc/` from the Cellar, this can often be rectified by passing an appropriate argument to the packageās configure script. That argument will vary depending on a given packageās configure script and/or Makefile, but one example might be: `--sysconfdir=#{etc}` +  ### launchd plist files  Homebrew provides two Formula methods for launchd plist files. [`plist_name`](http://www.rubydoc.info/github/Homebrew/brew/master/Formula#plist_name-instance_method) will return e.g. `homebrew.mxcl.<formula>` and [`plist_path`](http://www.rubydoc.info/github/Homebrew/brew/master/Formula#plist_path-instance_method) will return e.g. `/usr/local/Cellar/foo/0.1/homebrew.mxcl.foo.plist`. | 
