[packages/phpenv] add post banner about bash init

glen glen at pld-linux.org
Sun Nov 30 21:53:17 CET 2014


commit 1f222d44b932143cb0921658afd37860d8d10001
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Nov 30 22:53:12 2014 +0200

    add post banner about bash init

 phpenv.spec | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/phpenv.spec b/phpenv.spec
index cb02ada..84bd8b3 100644
--- a/phpenv.spec
+++ b/phpenv.spec
@@ -11,7 +11,7 @@ License:	MIT
 Group:		Development/Languages/PHP
 Source0:	https://github.com/sstephenson/rbenv/archive/v%{version}/rbenv-%{version}.tar.gz
 # Source0-md5:	c4a15a4dccf3dc1d28d08e87fb7c7789
-Source1:	phpenv-system-php
+Source1:	%{name}-system-php
 URL:		https://github.com/CHH/phpenv
 Requires:	bash
 BuildArch:	noarch
@@ -85,6 +85,14 @@ ln -s %{_appdir}/libexec/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%banner %{name} -e -o <<'EOF'
+You probably want to execute the following line to add phpenv to your shell:
+
+echo 'eval "$(phpenv init -)"' >> ~/.bash_profile
+EOF
+
+
 %files
 %defattr(644,root,root,755)
 %doc README.md LICENSE
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/phpenv.git/commitdiff/1f222d44b932143cb0921658afd37860d8d10001



More information about the pld-cvs-commit mailing list