pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

astguiclient-vicidial: Update package installation



Module Name:	pkgsrc-wip
Committed By:	Angel M. Adames <angelmadames%gmail.com@localhost>
Pushed By:	angelmadames
Date:		Thu Jun 15 20:16:36 2017 +0000
Changeset:	8c93cc0ace393b03d2649ba9823ac59f6afc5c2d

Modified Files:
	astguiclient-vicidial/Makefile
	astguiclient-vicidial/TODO
Added Files:
	astguiclient-vicidial/MESSAGE
	p5-Asterisk-vicidial/buildlink3.mk

Log Message:
astguiclient-vicidial: Update package installation

Makefile: Added INTERACTIVE_STAGE statement and modified depends order.
TODO: Added comment about upstream install script.
MESSAGE: Add MESSAGE.
p5-Asterisk-vicidial: Added as dependecy.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8c93cc0ace393b03d2649ba9823ac59f6afc5c2d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 astguiclient-vicidial/MESSAGE      | 20 ++++++++++++++++++
 astguiclient-vicidial/Makefile     | 43 ++++++++++++++++++++++----------------
 astguiclient-vicidial/TODO         |  3 +++
 p5-Asterisk-vicidial/buildlink3.mk | 13 ++++++++++++
 4 files changed, 61 insertions(+), 18 deletions(-)

diffs:
diff --git a/astguiclient-vicidial/MESSAGE b/astguiclient-vicidial/MESSAGE
new file mode 100644
index 0000000000..1748443467
--- /dev/null
+++ b/astguiclient-vicidial/MESSAGE
@@ -0,0 +1,20 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.0 2017/06/15 $
+
+There are some perl scripts you might want to run to populate the MySQL
+database, which is neccesary to use this GUI client for asterisk.
+
+Please check the steps needed to properly configure astGUIclient in:
+${WRKSRC}/docs/SCRATCH_INSTALL.txt or
+${WRKSRC}/docs/BASE_INSTALL.txt (summarized).
+
+It also contains optional dependencies you might want to check.
+
+Also, you should install the asterisk and asterisk-perl versions supported 
+by this package, imported as: 
+
+* wip/asterisk11-vicidial
+
+This was tested using Apache v2.4 using www/ap-php. 
+
+===========================================================================
diff --git a/astguiclient-vicidial/Makefile b/astguiclient-vicidial/Makefile
index da411c833d..cd64d64c95 100644
--- a/astguiclient-vicidial/Makefile
+++ b/astguiclient-vicidial/Makefile
@@ -15,6 +15,11 @@ NO_BUILD=	yes
 USE_TOOLS+=	perl
 REPLACE_PERL+=	install.pl
 
+WRKSRC=		${WRKDIR}
+BUILD_DEFS+=	VARBASE
+
+INTERACTIVE_STAGE= configure install
+
 DEPENDS+=	p5-DBI>=1.6:../../databases/p5-DBI
 DEPENDS+=	p5-DBD-mysql>=1.6:../../databases/p5-DBD-mysql
 DEPENDS+=	p5-Digest-MD5>=2.5:../../security/p5-Digest-MD5
@@ -27,12 +32,6 @@ DEPENDS+=	p5-Net-Server>=2.0:../../net/p5-Net-Server
 DEPENDS+=	p5-Mail-Sendmail>=0.7:../../mail/p5-Mail-Sendmail
 DEPENDS+=	p5-Unicode-Map>=0.1:../../converters/p5-Unicode-Map
 DEPENDS+=	p5-Jcode>=1.6:../../converters/p5-Jcode
-	# Needed for Super List Loader:
-DEPENDS+=	p5-Spreadsheet-WriteExcel>=2.4:../../math/p5-Spreadsheet-WriteExcel
-DEPENDS+=	p5-Spreadsheet-ReadSXC>=0.2:../../math/p5-Spreadsheet-ReadSXC
-DEPENDS+=	p5-Spreadsheet-ParseExcel>=0.6:../../math/p5-Spreadsheet-ParseExcel
-DEPENDS+=	p5-Spreadsheet-Read>=0.7:../../math/p5-Spreadsheet-Read
-DEPENDS+=	p5-Spreadsheet-XLSX>=0.1:../../math/p5-Spreadsheet-XLSX
 DEPENDS+=	p5-OLE-Storage_Lite>=0.1:../../devel/p5-OLE-Storage_Lite
 DEPENDS+=	p5-Proc-ProcessTable>=0.5:../../devel/p5-Proc-ProcessTable
 DEPENDS+=	p5-IO-stringy>=2.1:../../devel/p5-IO-stringy
@@ -57,22 +56,30 @@ DEPENDS+=	p5-Crypt-Eksblowfish>=0.0:../../security/p5-Crypt-Eksblowfish
 DEPENDS+=	p5-IO-tty>=1.1:../../devel/p5-IO-Tty
 DEPENDS+=	p5-MIME-Base64>=3.1:../../converters/p5-MIME-Base64
 DEPENDS+=	p5-Net-SFTP-Foreign>=1.8:../../wip/p5-Net-SFTP-Foreign
-
-WRKSRC=		${WRKDIR}
-BUILD_DEFS+=	VARBASE
+# Needed for Super List Loader:
+DEPENDS+=	p5-Spreadsheet-WriteExcel>=2.4:../../math/p5-Spreadsheet-WriteExcel
+DEPENDS+=	p5-Spreadsheet-ReadSXC>=0.2:../../math/p5-Spreadsheet-ReadSXC
+DEPENDS+=	p5-Spreadsheet-ParseExcel>=0.6:../../math/p5-Spreadsheet-ParseExcel
+DEPENDS+=	p5-Spreadsheet-Read>=0.7:../../math/p5-Spreadsheet-Read
+DEPENDS+=	p5-Spreadsheet-XLSX>=0.1:../../math/p5-Spreadsheet-XLSX	
 
 do-install:
 	cd ${WRKSRC}; \
 	${BUILDLINK_PREFIX.perl}/bin/perl install.pl \
-	--no-prompt \
-	--debug \
-	--conffile=${PREFIX}/etc/astguiclient.conf \
-	--home=${PREFIX}/share/vicidial \
-	--logs=${VARBASE}/log/vicidial \
-	--agi=${PREFIX}/libexec/agi-bin \
-	--web=${PREFIX}/share/vicidial/www \
-	--sounds=${VARBASE}/lib/asterisk/sounds \
-	--monitor=${VARBASE}/spool/asterisk/monitorDONE;
+		#--no-prompt \
+		--debug \
+		--conffile=/etc/astguiclient.conf \
+		--home=${PREFIX}/share/vicidial \
+		--logs=${VARBASE}/log/vicidial \
+		--agi=${VARBASE}/lib/asterisk/agi-bin \
+		--web=${PREFIX}/share/httpd/htdocs \
+		--sounds=${VARBASE}/lib/asterisk/sounds \
+		--monitor=${VARBASE}/spool/asterisk/monitor \
+		--DONEmonitor=${VARBASE}/spool/asterisk/monitorDONE \
+		--copy_sample_conf_files \
+		--asterisk_version=11.X
+	${CP} -R ${WRKSRC}/extras  ${PREFIX}/share/vicidial/extras
 
+.include "../../wip/p5-Asterisk-vicidial/buildlink3.mk"
 .include "../../lang/perl5/module.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/astguiclient-vicidial/TODO b/astguiclient-vicidial/TODO
index 7f34ca2593..cbd77a1954 100644
--- a/astguiclient-vicidial/TODO
+++ b/astguiclient-vicidial/TODO
@@ -1,3 +1,6 @@
+* The install script is better used in interactive mode. If you want
+  to avoid this, please review the install script help by executing:
+   << perl install.pl --help  >>
 * This software is installed by the PERL script provided by upstream.
   Meaning, after running this script, ${MAKE} deinstall will not work
   if you have the need to deinstall the files. Thus, you'll have to
diff --git a/p5-Asterisk-vicidial/buildlink3.mk b/p5-Asterisk-vicidial/buildlink3.mk
new file mode 100644
index 0000000000..27d9be2833
--- /dev/null
+++ b/p5-Asterisk-vicidial/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	p5-Asterisk-vicidial
+
+.if !defined(P5_ASTERISK_VICIDIAL_BUILDLINK3_MK)
+P5_ASTERISK_VICIDIAL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.p5-Asterisk-vicidial+=	p5-Asterisk-vicidial=0.08
+BUILDLINK_ABI_DEPENDS.p5-Asterisk-vicidial?=	p5-Asterisk-vicidial=0.08
+BUILDLINK_PKGSRCDIR.p5-Asterisk-vicidial?=	../../wip/p5-Asterisk-vicidial
+.endif	# P5_ASTERISK_VICIDIAL_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-p5-Asterisk-vicidial


Home | Main Index | Thread Index | Old Index