aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Do not dereference linksHEADmasterAaron W. Swenson2018-10-211-4/+4
| | | | | | | In some conditions, ln will follow symlinks it isn’t supposed to. Add the -n switch to keep that from happening. Closes: https://bugs.gentoo.org/662810
* Bump to 2.4Aaron W. Swenson2018-08-131-1/+1
|
* Rename is_slot_link to is_active_slot_linkAaron W. Swenson2018-01-141-3/+3
|
* Bump version to 2.3Aaron W. Swenson2018-01-141-1/+1
|
* Die if we can’t remove badsymAaron W. Swenson2018-01-141-1/+2
| | | | | If badsym can’t be removed, it’ll gum up the works later when trying to create links, especially since they don’t point anywhere.
* Just try to update symlinkAaron W. Swenson2018-01-141-7/+4
| | | | | ln now removes an existing symlink when it tries to create one. This makes it unnecessary to first try to remove the symlink.
* More concise die messagesAaron W. Swenson2018-01-141-4/+7
|
* Force symlinksAaron W. Swenson2018-01-141-4/+4
| | | | | | Any symlink we’re trying to make should only be handled by us. We may come across a symlink we missed in some previous clean up, but really should be set properly rather than failing because it exists.
* Cleanup senseless symlinksAaron W. Swenson2018-01-141-0/+10
| | | | | Look for broken symlinks in the /usr/include/postgresql-${SLOT} directories. These were made by 2.1. So now we try to clean them up.
* Remove $Id and Bump Version2.2Aaron W. Swenson2017-07-211-2/+1
|
* Canonicalise even if nonexistentAaron W. Swenson2017-07-211-9/+16
| | | | | | | | | canoncalise() returns the absolute path a symbolic link points to, except when the path no longer exists. Adding the -m option – which is the same for both realpath and readlink – makes it ignore nonexistent portions of the path. Bug: https://bugs.gentoo.org/625368
* Bump Version2.1Aaron W. Swenson2017-05-191-1/+1
|
* Add support for FEATURES="noman"Aaron W. Swenson2017-05-191-1/+5
| | | | | | In such case the user enabled FEATURES="noman" on Portage, there won’t be a manpage directory to link to. The module now checks that the directory exists before trying to use it.
* Remove redundant do_unset() callAaron W. Swenson2017-02-061-5/+2
| | | | do_set() calls do_unset(). No need to call it before do_set().
* Remove useless reset actionAaron W. Swenson2017-02-061-14/+2
| | | | | The reset action is usless as do_set calls do_unset if active_slot is something other than (none).
* Eliminate some noiseAaron W. Swenson2017-02-061-4/+2
| | | | Removed unnecessary echo about generating new links.
* Huge ChangesAaron W. Swenson2017-02-041-133/+129
| | | | | | | | | | | | | | | No longer use an environment file. All links are in locations that are searched by default by man and pkgconfig. Remove several files outright in /etc/eselect/postgresql as they’re unnecessary. Added linking for man pages and pkgconfig files. Rename ${SLOT} to ${slot} as it isn’t a global variable. Now compatible with the upcoming slot scheme where there is no dot. (Release 10.0 is just 10.)
* Add pkg-config supportAaron W. Swenson2016-10-301-34/+25
| | | | Among some other cleanups, add pkg-config support.
* Fix typoAaron W. Swenson2016-08-081-1/+1
| | | | Whoa, can’t believe I let that go for so long.
* Remove TODO Refactor out finderAaron W. Swenson2016-08-081-2/+0
| | | | It’s been moved.
* Rename global variables to something sensibleAaron W. Swenson2016-08-081-51/+51
| | | | Decoding those 1 character prefixes is exhausting!
* Refactor update to clean out old files and directories that are no longer used.Aaron W. Swenson2016-08-081-53/+65
|
* Remove most/all active.links creation pointsAaron W. Swenson2016-05-211-32/+68
| | | | | | | | Refactor do_set so that it doesn't create active.links* files. Will need to refactor unlinker and move its content into do_update. do_unset now does a lot more work to look for and remove symlinks managed by this module.
* Use pg_config to get version numbersAaron W. Swenson2016-05-201-13/+23
| | | | | | | | | | | | Now that the ebuilds are unified, we don't really need a bunch of files laying around containing version number and which ebuild is providing it. And, pg_config can give us the version number anyway. Sure, we miss out on revision numbers, but people really shouldn't be using this tool to get that detailed. So, given that, rework the do_list.
* Stateless: No longer rely on an 'active' fileAaron W. Swenson2016-05-181-12/+12
| | | | | | | | | | | | | Working towards a stateless module, no need to keep track of links or active slot in a collection of files. /usr/share/postgresql is symbolic link generated by this module. So, we're able to determine which real directory it's pointing to, which will be /usr/share/postgresql-SLOT. A bit of sed magic gets just the slot portion off the end. Et voila! We no longer need to store the active slot in a file. If /usr/share/postgresql doesn't exist, then we haven't set a slot.
* We are removing symbolic links, not files.Aaron W. Swenson2016-05-181-2/+2
|
* Bump $VERSION to 1.2.1Aaron W. Swenson2013-11-211-1/+1
|
* pg_config_ext.h symlinkAaron W. Swenson2013-11-211-0/+5
| | | | Have a new header to create a symlink for. Fixes bug 486674.
* Bump version number.Aaron W. Swenson2013-07-271-1/+1
|
* Add support for x32.Aaron W. Swenson2013-07-271-0/+3
|
* Refine get_slots() LogicAaron W. Swenson2013-07-131-1/+12
| | | | get_slots() shouldn't return false positives now.
* Correct variable typoAaron W. Swenson2013-06-131-1/+1
| | | | | | Fix bug 471866 [1]. Thank you Ben Kohler for reporting and submitting the patch. 1.) https://bugs.gentoo.org/show_bug.cgi?id=471866
* Update copyright.Aaron W. Swenson2013-02-081-1/+1
|
* Use relative paths instead of absolute paths. Fix bug 321114.Aaron W. Swenson2013-01-201-12/+25
|
* Removed SVN_DATE.Aaron W. Swenson2012-02-221-2/+1
|
* Missed a trailing slash.Aaron W. Swenson2011-04-261-1/+1
|
* Put double quotes back around '-name' to be consistent with the rest of theAaron W. Swenson2011-04-261-5/+5
| | | | | module. Add trailing slash to source path just to be safe.
* Replaced '-xtype' with '-type' and added '-L' to the 'find' command.Aaron W. Swenson2011-04-241-4/+4
|
* Better comment as to why 'set -f' is there.Aaron W. Swenson2011-04-221-0/+3
|
* Comment hintAaron W. Swenson2011-04-221-1/+2
|
* Fixes bug 364257Aaron W. Swenson2011-04-221-2/+7
|
* This time with the proper regex.Aaron W. Swenson2011-04-211-1/+1
|
* '-printf' is GNU extension of the find utility. Additionally, the regex that wasAaron W. Swenson2011-04-211-4/+4
| | | | passed was an Emacs regex, which is also a GNU extension of the find utility.
* Fixed MAN page search paths.Aaron W. Swenson2011-04-181-3/+3
|
* Links all lib* files and symlinks in /usr/lib(64)?/postgresql${SLOT}/lib(64)?Aaron W. Swenson2011-04-021-8/+10
| | | | | | | | | Unset now calls do_update() as per bug #360467. do_update() simply calls do_set() rather than do_reset() to avoid loops, and a reset wasn't really necessary anyway. Added '-mindepth 1' to 'find' in linker() so that only the contents are returned and not the directory itself. Fixed comments regarding linker().
* Fixed path so that it looks for something that'll actually exist.Aaron W. Swenson2011-04-011-2/+2
|
* Fixed bitness test so that a false positive doesn't happen.Aaron W. Swenson2011-04-011-3/+3
| | | | Remove another set of quotes within [[ ]].
* Path quoting complete, and remove the path quoting inside [[ ]].Aaron W. Swenson2011-04-011-21/+23
| | | | [[ ]] used instead of [ ] everywhere.
* Variable quoting for paths.Aaron W. Swenson2011-03-311-51/+51
|
* Bit harder to trick get_slots().Aaron W. Swenson2011-03-291-1/+3
|