[packages/phpenv] add info about hooks system path

glen glen at pld-linux.org
Sun Nov 30 21:28:38 CET 2014


commit 8d81f91afc5c7cf6e60ae7b320ba0006c600ea74
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Nov 30 22:18:52 2014 +0200

    add info about hooks system path

 phpenv.spec | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/phpenv.spec b/phpenv.spec
index 0f5c7ab..ed13433 100644
--- a/phpenv.spec
+++ b/phpenv.spec
@@ -64,8 +64,12 @@ 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
+# https://github.com/sstephenson/rbenv/pull/176
 sed -i -e 's#/usr/lib/phpenv/hooks#%{_appdir}/hooks#' libexec/phpenv
 
+# cleanup backups after patching
+find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_appdir}/hooks}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/phpenv.git/commitdiff/8d81f91afc5c7cf6e60ae7b320ba0006c600ea74



More information about the pld-cvs-commit mailing list