[packages/phpenv] add system hooks dir support

glen glen at pld-linux.org
Sun Nov 30 20:57:47 CET 2014


commit 0dcc60c12d8bef4a9bbd18eee5c755a8077b7ae6
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Nov 30 21:57:43 2014 +0200

    add system hooks dir support

 phpenv.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/phpenv.spec b/phpenv.spec
index 4ea5f33..0f5c7ab 100644
--- a/phpenv.spec
+++ b/phpenv.spec
@@ -63,9 +63,12 @@ RBENV_REPO="https://github.com/sstephenson/rbenv"
 PHPENV_REPO="https://github.com/chh/phpenv"
 sed -i -e "s|^.*For full documentation.*\$|  echo \"For full documentation, see:\"\n  echo \" rbenv: ${RBENV_REPO}#readme\"\n  echo \" phpenv: ${PHPENV_REPO}#readme\"|" libexec/phpenv-help
 
+# use pld (not debian) version of hooks dir
+sed -i -e 's#/usr/lib/phpenv/hooks#%{_appdir}/hooks#' libexec/phpenv
+
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_appdir}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_appdir}/hooks}
 cp -a libexec completions $RPM_BUILD_ROOT%{_appdir}
 
 ln -s %{_appdir}/libexec/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
@@ -81,3 +84,4 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_appdir}/libexec
 %attr(755,root,root) %{_appdir}/libexec/%{name}*
 %{_appdir}/completions
+%dir %{_appdir}/hooks
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/phpenv.git/commitdiff/0dcc60c12d8bef4a9bbd18eee5c755a8077b7ae6



More information about the pld-cvs-commit mailing list