Remove net-voip/blink
[portage-overlay.git] / app-emulation / lxc / files / lxc-1.0.6-bash-completion.patch
1  config/bash/Makefile.am | 8 ++++----
2  config/bash/lxc.in      | 2 --
3  2 files changed, 4 insertions(+), 6 deletions(-)
4
5 diff --git a/config/bash/Makefile.am b/config/bash/Makefile.am
6 index b1768c9..3fbbe8e 100644
7 --- a/config/bash/Makefile.am
8 +++ b/config/bash/Makefile.am
9 @@ -2,12 +2,12 @@ EXTRA_DIST = lxc
10  
11  if ENABLE_BASH
12  install-bash:
13 -       $(MKDIR_P) $(DESTDIR)$(sysconfdir)/bash_completion.d/
14 -       $(INSTALL_DATA) lxc $(DESTDIR)$(sysconfdir)/bash_completion.d/
15 +       $(MKDIR_P) $(DESTDIR)$(datarootdir)/bash-completion/completions/
16 +       $(INSTALL_DATA) lxc $(DESTDIR)$(datarootdir)/bash-completion/completions/
17  
18  uninstall-bash:
19 -       rm -f $(DESTDIR)$(sysconfdir)/bash_completion.d/lxc
20 -       rmdir $(DESTDIR)$(sysconfdir)/bash_completion.d/ || :
21 +       rm -f $(DESTDIR)$(datarootdir)/bash-completion/completions/lxc
22 +       rmdir $(DESTDIR)$(datarootdir)/bash-completion/ || :
23  
24  install-data-local: install-bash
25  uninstall-local: uninstall-bash
26 diff --git a/config/bash/lxc.in b/config/bash/lxc.in
27 index 18fd48f..8fff725 100644
28 --- a/config/bash/lxc.in
29 +++ b/config/bash/lxc.in
30 @@ -1,4 +1,3 @@
31 -have lxc-start && {
32      _lxc_names() {
33          COMPREPLY=( $( compgen -W "$( lxc-ls )" "$cur" ) )
34      }
35 @@ -100,4 +99,3 @@ have lxc-start && {
36  
37      complete -o default -F _lxc-generic-o lxc-clone
38      complete -o default -F _lxc-generic-o lxc-start-ephemeral
39 -}