pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
astguiclient-vicidial: Add SUBST statements to change hardcoded paths Add perl scripts missing to REPLACE_PERL
Module Name: pkgsrc-wip
Committed By: Angel M. Adames <angelmadames%gmail.com@localhost>
Pushed By: angelmadames
Date: Tue Jun 20 12:58:51 2017 -0400
Changeset: 791cf5a10c031a75ace2845a85c22013a7d85970
Modified Files:
astguiclient-vicidial/Makefile
Log Message:
astguiclient-vicidial: Add SUBST statements to change hardcoded paths
Add perl scripts missing to REPLACE_PERL
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=791cf5a10c031a75ace2845a85c22013a7d85970
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
astguiclient-vicidial/Makefile | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diffs:
diff --git a/astguiclient-vicidial/Makefile b/astguiclient-vicidial/Makefile
index ccdd06abc3..ad1a8e68a8 100644
--- a/astguiclient-vicidial/Makefile
+++ b/astguiclient-vicidial/Makefile
@@ -13,7 +13,10 @@ COMMENT= Asterisk GUI client, VICIdial
NO_BUILD= yes
USE_TOOLS+= perl
+
REPLACE_PERL+= install.pl
+REPLACE_PERL+= bin/*.pl
+REPLACE_PERL+= extras/*.pl
WRKSRC= ${WRKDIR}
BUILD_DEFS+= VARBASE
@@ -65,13 +68,21 @@ DEPENDS+= p5-Spreadsheet-XLSX>=0.1:../../math/p5-Spreadsheet-XLSX
# PHP dependencies :
DEPENDS+= php56-mysql>=5.6:../../databases/php-mysql
DEPENDS+= php56-mysqli>=5.6:../../databases/php-mysqli
+
+SUBST_CLASSES+= fix-conf-path
+SUBST_STAGE.fix-conf-path= post-extract
+SUBST_MESSAGE.fix-conf-path= Fixing configuration file path.
+SUBST_FILES.fix-conf-path= bin/*.pl
+SUBST_FILES.fix-conf-path+= extras/*.pl
+SUBST_SED.fix-conf-path= -e 's,/etc/astguiclient.conf,${PREFIX}/etc/astguiclient.conf,g'
+SUBST_SED.fix-conf-path+= -e 's,/etc/asterisk,${PREFIX}/etc/asterisk,g'
do-install:
cd ${WRKSRC}; \
${BUILDLINK_PREFIX.perl}/bin/perl install.pl \
#--no-prompt \
--debug \
- --conffile=/etc/astguiclient.conf \
+ --conffile=${PREFIX}/etc/astguiclient.conf \
--home=${PREFIX}/share/vicidial \
--logs=${VARBASE}/log/vicidial \
--agi=${VARBASE}/lib/asterisk/agi-bin \
Home |
Main Index |
Thread Index |
Old Index