pkgsrc-WIP-changes archive

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

Adding asterisk11-vicidial package (modified asterisk for vicidial.org)



Module Name:	pkgsrc-wip
Committed By:	Alberto Mijares <alberto.m%futurelinkcorporation.com@localhost>
Pushed By:	amijares
Date:		Fri Mar 17 12:44:46 2017 -0400
Changeset:	82cbe2a203f934899320d2e1e19718fdd742fa8e

Added Files:
	asterisk11-vicidial/DESCR
	asterisk11-vicidial/Makefile
	asterisk11-vicidial/Makefile.init
	asterisk11-vicidial/distinfo
	asterisk11-vicidial/options.mk
	asterisk11-vicidial/patches/patch-res_pjproject_aconfigure
	asterisk11-vicidial/patches/patch-res_pjproject_build.symbian_makedef.sh

Log Message:
Adding asterisk11-vicidial package (modified asterisk for vicidial.org)

It curently does not work because a dependency (in my environment). Looking for some help here.

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

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

diffstat:
 asterisk11-vicidial/DESCR                          |  12 +
 asterisk11-vicidial/Makefile                       | 275 +++++++++++++++++++++
 asterisk11-vicidial/Makefile.init                  |  24 ++
 asterisk11-vicidial/distinfo                       |   8 +
 asterisk11-vicidial/options.mk                     | 123 +++++++++
 .../patches/patch-res_pjproject_aconfigure         |  13 +
 .../patch-res_pjproject_build.symbian_makedef.sh   |  20 ++
 7 files changed, 475 insertions(+)

diffs:
diff --git a/asterisk11-vicidial/DESCR b/asterisk11-vicidial/DESCR
new file mode 100644
index 0000000000..a0d01cbfd0
--- /dev/null
+++ b/asterisk11-vicidial/DESCR
@@ -0,0 +1,12 @@
+Asterisk is a complete PBX in software.  It provides all of the
+features you would expect from a PBX and more. Asterisk does voice
+over IP in three protocols, and can interoperate with almost all
+standards-based telephony equipment using relatively inexpensive
+hardware.
+
+VICIDIAL is a software suite that is designed to interact with 
+the Asterisk Open-Source PBX Phone system to act as a complete 
+inbound/outbound contact center suite with inbound email support 
+as well.
+
+This is a modified version of Asterisk 11 for Vicidial.
diff --git a/asterisk11-vicidial/Makefile b/asterisk11-vicidial/Makefile
new file mode 100644
index 0000000000..491a5ccd5c
--- /dev/null
+++ b/asterisk11-vicidial/Makefile
@@ -0,0 +1,275 @@
+# $NetBSD$
+
+DISTNAME=	asterisk-11.22.0-vici
+CATEGORIES=	comms
+MASTER_SITES=	http://download.vicidial.com/required-apps/
+MASTER_SITES=	http://downloads.asterisk.org/pub/telephony/asterisk/
+MASTER_SITES+=	http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/
+MASTER_SITES+=	http://downloads.asterisk.org/pub/telephony/sounds/releases/
+
+MAINTAINER=	alberto.m%futurelinkcorporation.com@localhost
+HOMEPAGE=	http://www.vicidial.org
+COMMENT=	Asterisk version for Vicidial
+DESCR=		Asterisk version for Vicidial
+LICENSE=	gnu-gpl-v2
+
+WRKSRC=		${WRKDIR}/asterisk-11.22.0
+GNU_CONFIGURE=	yes
+USE_TOOLS+=	pkg-config libxml2 
+USE_LANGUAGES=	c c++
+
+
+# known to have issues on i386, block the package until the bug is fixed
+BROKEN_ON_PLATFORM=	NetBSD-*-i386
+
+CONFLICTS+=	asterisk-sounds-extra-[0-9]*
+
+.include "../../mk/bsd.prefs.mk"
+
+USE_TOOLS+=		bison gmake perl:run pkg-config tar
+USE_LANGUAGES=		c c++
+REPLACE_PERL+=		agi/DialAnMp3.agi agi/agi-test.agi
+REPLACE_PERL+=		agi/fastagi-test agi/jukebox.agi agi/numeralize
+REPLACE_PERL+=		contrib/scripts/vmail.cgi
+
+GNU_CONFIGURE=		yes
+CONFIGURE_ARGS+=	--datarootdir=${PREFIX}/libdata
+CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+=	--without-gtk2
+# XXX remove when lang/lua gets builtin.mk
+CONFIGURE_ARGS+=	--without-lua
+
+.if (${OPSYS} == "NetBSD" && \
+    (empty(OS_VERSION:M6.99.[4-9]?) && empty(OS_VERSION:M[7-9].*)))
+CONFIGURE_ARGS+=	--without-srtp
+.else
+CONFIGURE_ARGS+=	--with-srtp
+PLIST.srtp=		YES
+.include "../../comms/srtp/buildlink3.mk"
+.endif
+
+INSTALL_TARGET=		install samples
+INSTALLATION_DIRS+=	lib/pkgconfig share/doc/${PKGBASE}
+INSTALLATION_DIRS+=	share/examples/asterisk share/examples/rc.d
+INSTALLATION_DIRS+=	${ASTDATADIR}/sounds/en ${ASTDATADIR}/moh
+
+BUILD_DEFS+=		VARBASE
+
+ASTERISK_USER?=			asterisk
+ASTERISK_GROUP?=		asterisk
+PKG_GROUPS=			${ASTERISK_GROUP}
+PKG_USERS=			${ASTERISK_USER}:${ASTERISK_GROUP}
+PKG_GECOS.${ASTERISK_USER}=	Asterisk PBX
+PKG_GROUPS_VARS=		ASTERISK_GROUP
+PKG_USERS_VARS=			ASTERISK_USER
+FILES_SUBST+=			ASTERISK_USER=${ASTERISK_USER}
+FILES_SUBST+=			ASTERISK_GROUP=${ASTERISK_GROUP}
+MESSAGE_SUBST+=			ASTERISK_USER=${ASTERISK_USER}
+MESSAGE_SUBST+=			ASTERISK_GROUP=${ASTERISK_GROUP}
+
+# Various path settings for Asterisk
+PKG_SYSCONFSUBDIR=	asterisk
+PKG_SYSCONFDIR_PERMS=	${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+ASTETCDIR=		${PKG_SYSCONFDIR}
+ASTEXAMPLEDIR=		${PREFIX}/share/examples/asterisk
+ASTDBDIR=		${VARBASE}/db/asterisk
+ASTSPOOLDIR=		${VARBASE}/spool/asterisk
+ASTLOGDIR=		${VARBASE}/log/asterisk
+MESSAGE_SUBST+=		ASTDBDIR=${ASTDBDIR}
+MESSAGE_SUBST+=		ASTSPOOLDIR=${ASTSPOOLDIR}
+MESSAGE_SUBST+=		ASTLOGDIR=${ASTLOGDIR}
+ASTVARRUNDIR=		${VARBASE}/run/asterisk
+FILES_SUBST+=		ASTVARRUNDIR=${ASTVARRUNDIR}
+ASTDATADIR=		${PREFIX}/libdata/asterisk
+MAKE_FLAGS+=		ASTLIBDIR=${PREFIX}/lib/asterisk
+MAKE_FLAGS+=		ASTVARLIBDIR=${ASTDATADIR}
+MAKE_FLAGS+=		ASTKEYDIR=${ASTDATADIR}
+MAKE_FLAGS+=		ASTDATADIR=${ASTDATADIR}
+MAKE_FLAGS+=		ASTSPOOLDIR=${ASTSPOOLDIR}
+MAKE_FLAGS+=		ASTLOGDIR=${ASTLOGDIR}
+MAKE_FLAGS+=		ASTHEADERDIR=${PREFIX}/include/asterisk
+MAKE_FLAGS+=		ASTCONFPATH=${ASTETCDIR}/asterisk.conf
+MAKE_FLAGS+=		ASTBINDIR=${PREFIX}/bin
+MAKE_FLAGS+=		ASTSBINDIR=${PREFIX}/sbin
+MAKE_FLAGS+=		ASTVARRUNDIR=${ASTVARRUNDIR}
+MAKE_FLAGS+=		ASTMANDIR=${PREFIX}/${PKGMANDIR}
+MAKE_FLAGS+=		ASTETCDIR=${ASTETCDIR}
+MAKE_FLAGS+=		ASTDBDIR=${ASTDBDIR}
+MAKE_FLAGS+=		AGI_DIR=${PREFIX}/libexec/agi-bin
+MAKE_FLAGS+=		ASTEXAMPLEDIR=${ASTEXAMPLEDIR}
+MAKE_FLAGS+=		WRKSRC=${WRKSRC}
+MAKE_FLAGS+=		LDOPTS=${LDFLAGS:M*:Q}
+MAKE_FLAGS+=		HTTP_DOCSDIR=${PREFIX}/share/httpd/htdocs
+MAKE_FLAGS+=		HTTP_CGIDIR=${PREFIX}/libexec/cgi-bin
+MAKE_FLAGS+=		OPTIMIZE=-O3
+
+.if !empty(MACHINE_PLATFORM:MSunOS-*-i386)
+BUILDLINK_TRANSFORM+=	rm:-march=i386
+.endif
+
+PLIST_VARS+=	kqueue
+.for dir in ${COMPILER_INCLUDE_DIRS}
+.  if exists(${dir}/sys/event.h)
+PLIST.kqueue=	yes
+.  endif
+.endfor
+
+PLIST_VARS+=	mgcp
+# NOSIGPIPE is a temp variable, since PLIST.mgcp MUST remain undefined
+# if the grep fails
+.for dir in ${COMPILER_INCLUDE_DIRS}
+.  if (exists(${dir}/sys/socket.h))
+NOSIGPIPE!=	${GREP} SO_NOSIGPIPE ${dir}/sys/socket.h || echo ""
+.    if ${NOSIGPIPE} != ""
+PLIST.mgcp=	yes
+.    endif
+.  endif
+.endfor
+
+.include "options.mk"
+
+# check sounds/Makefile for current version when upgrading package
+DISTFILES+=	asterisk-extra-sounds-en-gsm-1.5.tar.gz
+
+# Override default paths in config files
+SUBST_CLASSES+=		configs
+SUBST_STAGE.configs=	pre-configure
+SUBST_FILES.configs=	configs/cli_aliases.conf.sample
+SUBST_FILES.configs+=	configs/festival.conf.sample
+SUBST_FILES.configs+=	configs/http.conf.sample
+SUBST_FILES.configs+=	configs/iax.conf.sample
+SUBST_FILES.configs+=	configs/musiconhold.conf.sample
+SUBST_FILES.configs+=	configs/osp.conf.sample
+SUBST_FILES.configs+=	configs/phoneprov.conf.sample
+SUBST_FILES.configs+=	configs/res_config_sqlite.conf.sample
+SUBST_FILES.configs+=	configs/sla.conf.sample
+SUBST_SED.configs+=	-e 's|doc/|${PREFIX}/share/doc/${PKGBASE}/|'
+SUBST_SED.configs+=	-e 's|/etc/asterisk|${ASTETCDIR}|'
+SUBST_SED.configs+=	-e 's|/var/lib/asterisk|${ASTVARLIBDIR}|'
+SUBST_SED.configs+=	-e "s|/usr/local/man|${ASTMANDIR}|"
+SUBST_SED.configs+=	-e "s|/usr/local|${PREFIX}|"
+SUBST_SED.configs+=	-e "s|/var|${VARBASE}|"
+
+# XXX gross hack, remove when atomics properly implemented
+SUBST_CLASSES.NetBSD+=	atomics
+SUBST_STAGE.atomics=	post-configure
+SUBST_FILES.atomics=	include/asterisk/autoconfig.h
+SUBST_SED.atomics=	-e "s|^\#define HAVE_GCC_ATOMICS 1|\#undef HAVE_GCC_ATOMICS|"
+
+# XXX gross hack, IP_PKTINFO in NetBSD isn't compatible with anything else
+SUBST_CLASSES.NetBSD+=	pktinfo
+SUBST_STAGE.pktinfo=	post-configure
+SUBST_FILES.pktinfo=	include/asterisk/autoconfig.h
+SUBST_SED.pktinfo=	-e "s|^\#define HAVE_PKTINFO 1|\#undef HAVE_PKTINFO|"
+
+# XXX gross hack, gethostbyname_r on NETBSD is for internal use only
+SUBST_CLASSES.NetBSD+=		gethostbyname_r
+SUBST_STAGE.gethostbyname_r=	post-configure
+SUBST_FILES.gethostbyname_r=	include/asterisk/autoconfig.h
+SUBST_SED.gethostbyname_r=	-e "s|^\#define HAVE_GETHOSTBYNAME_R_5 1|\#undef HAVE_GETHOSTBYNAME_R_5|"
+SUBST_SED.gethostbyname_r+=	-e "s|^\#define HAVE_GETHOSTBYNAME_R_6 1|\#undef HAVE_GETHOSTBYNAME_R_6|"
+
+RCD_SCRIPTS=		asterisk
+OWN_DIRS_PERMS+=	${ASTDBDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=	${ASTSPOOLDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=	${ASTSPOOLDIR}/dictate ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=	${ASTSPOOLDIR}/meetme ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=	${ASTSPOOLDIR}/monitor ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=	${ASTSPOOLDIR}/outgoing ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=	${ASTSPOOLDIR}/system ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=	${ASTSPOOLDIR}/tmp ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=	${ASTSPOOLDIR}/voicemail ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=	${ASTSPOOLDIR}/voicemail/default ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=	${ASTSPOOLDIR}/voicemail/default/1234 ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=	${ASTSPOOLDIR}/voicemail/default/1234/INBOX ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=	${ASTSPOOLDIR}/voicemail/default/1234/en ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+SPECIAL_PERMS+=		${ASTSPOOLDIR}/voicemail/default/1234/en/busy.gsm ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
+SPECIAL_PERMS+=		${ASTSPOOLDIR}/voicemail/default/1234/en/unavail.gsm ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
+OWN_DIRS_PERMS+=	${ASTSPOOLDIR}/voicemail/default/INBOX ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=	${ASTSPOOLDIR}/voicemail/default/en ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=	${ASTLOGDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=	${ASTLOGDIR}/cdr-csv ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+OWN_DIRS_PERMS+=	${ASTLOGDIR}/cdr-custom ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
+
+CONF_FILES_PERMS=	# empty
+.for f in asterisk.conf extensions.conf
+CONF_FILES_PERMS+=	${ASTEXAMPLEDIR}/${f:Q} ${PKG_SYSCONFDIR}/${f:Q} ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
+.endfor
+
+.if !empty(PKG_OPTIONS:Masterisk-config)
+# if we put all the files in $CONF_FILES, the message is _way_ too long.
+.  for f in acl.conf adsi.conf agents.conf alarmreceiver.conf alsa.conf	\
+	amd.conf app_mysql.conf asterisk.adsi calendar.conf ccss.conf	\
+	cdr.conf cdr_adaptive_odbc.conf cdr_custom.conf			\
+	cdr_manager.conf cdr_mysql.conf cdr_odbc.conf cdr_pgsql.conf	\
+	cdr_sqlite3_custom.conf cdr_syslog.conf cdr_tds.conf cel.conf	\
+	cel_custom.conf cel_odbc.conf cel_pgsql.conf			\
+	cel_sqlite3_custom.conf cel_tds.conf chan_dahdi.conf		\
+	chan_mobile.conf cli.conf cli_aliases.conf cli_permissions.conf	\
+	codecs.conf confbridge.conf console.conf dbsep.conf dnsmgr.conf	\
+	dsp.conf dundi.conf enum.conf extconfig.conf extensions.ael	\
+	extensions.conf extensions.lua extensions_minivm.conf		\
+	features.conf festival.conf followme.conf func_odbc.conf	\
+	gtalk.conf h323.conf http.conf iax.conf iaxprov.conf		\
+	indications.conf jabber.conf jingle.conf logger.conf		\
+	manager.conf meetme.conf mgcp.conf minivm.conf misdn.conf	\
+	modules.conf motif.conf musiconhold.conf muted.conf ooh323.conf	\
+	osp.conf oss.conf phone.conf phoneprov.conf queuerules.conf	\
+	queues.conf res_config_mysql.conf res_config_sqlite.conf	\
+	res_config_sqlite3.conf res_corosync.conf res_curl.conf		\
+	res_fax.conf res_ldap.conf res_odbc.conf res_pgsql.conf		\
+	res_pktccops.conf res_snmp.conf res_stun_monitor.conf rtp.conf	\
+	say.conf sip.conf sip_notify.conf skinny.conf sla.conf		\
+	smdi.conf telcordia-1.adsi udptl.conf unistim.conf users.conf	\
+	voicemail.conf vpb.conf xmpp.conf
+CONF_FILES_PERMS+=		${ASTEXAMPLEDIR}/${f:Q} ${PKG_SYSCONFDIR}/${f:Q} ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
+.  endfor
+.endif
+
+PTHREAD_OPTS+=	require native
+
+post-patch:
+.if ${OPSYS} == "Darwin"
+.  for dir in ${COMPILER_INCLUDE_DIRS}
+.    if exists(${dir}/sys/poll.h)
+	${ECHO} "#include <sys/poll.h>" > ${WRKSRC}/include/asterisk/poll-compat.h
+.    endif
+.  endfor
+.endif
+
+post-install:
+# check sounds directory for current versions when upgrading package
+	${TAR} xzf ${WRKSRC}/sounds/asterisk-core-sounds-en-gsm-1.5.tar.gz -C ${DESTDIR}${ASTDATADIR}/sounds/en
+	${TAR} xzf ${WRKSRC}/sounds/asterisk-moh-opsound-wav-2.03.tar.gz -C ${DESTDIR}${ASTDATADIR}/moh
+	${TAR} xzf ${DISTDIR}/${DIST_SUBDIR}/asterisk-extra-sounds-en-gsm-1.5.tar.gz -C ${DESTDIR}${ASTDATADIR}/sounds/en
+	${INSTALL_DATA} ${WRKSRC}/BUGS ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/CHANGES ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/CREDITS ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/README-SERIOUSLY.bestpractices.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.2.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.4.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.6.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.8.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/UPGRADE-10.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/UPGRADE.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/Zaptel-to-DAHDI.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/doc/Asterisk-Admin-Guide.pdf ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/doc/IAX2-security.pdf ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/doc/IAX2-security.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/doc/README.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/doc/api-1.6.2-changes.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	cp -r ${WRKSRC}/doc/Asterisk-Admin-Guide ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/Asterisk-Admin-Guide
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../devel/libuuid/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/asterisk11-vicidial/Makefile.init b/asterisk11-vicidial/Makefile.init
new file mode 100644
index 0000000000..a27d3733d7
--- /dev/null
+++ b/asterisk11-vicidial/Makefile.init
@@ -0,0 +1,24 @@
+# $NetBSD$
+
+DISTNAME=	asterisk-11.22.0-vici
+CATEGORIES=	comms
+MASTER_SITES=	http://download.vicidial.com/required-apps/
+
+MAINTAINER=	pkgsrc-users%netbsd.org@localhost
+HOMEPAGE=	http://www.vicidial.org
+COMMENT=	Asterisk version for Vicidial
+DESCR=		Asterisk version for Vicidial
+LICENSE=	gnu-gpl-v2
+
+WRKSRC=		${WRKDIR}/asterisk-11.22.0
+GNU_CONFIGURE=	yes
+USE_TOOLS+=	pkg-config libxml2 
+USE_LANGUAGES=	c c++
+
+PKGCONFIG_OVERRIDE+=	res/pjproject/third_party/portaudio/portaudio-2.0.pc.in
+PKGCONFIG_OVERRIDE+=	res/pjproject/libpjproject.pc.in
+
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/asterisk11-vicidial/distinfo b/asterisk11-vicidial/distinfo
new file mode 100644
index 0000000000..a3a10b0132
--- /dev/null
+++ b/asterisk11-vicidial/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (asterisk-extra-sounds-en-gsm-1.5.tar.gz) = 831ae6442e23cbef1e7d1c84798778ad0b0524d1
+RMD160 (asterisk-extra-sounds-en-gsm-1.5.tar.gz) = d52df795201c53fc4cd7d99ed41516e312f6f0f3
+SHA512 (asterisk-extra-sounds-en-gsm-1.5.tar.gz) = c7d3c3fd2c854e6776801312d34bf69bbed78a443c16121637f508c5275f18b1d415cbb6e4f6f8c5aa3769cbbfa1a11485b9972053777f3ac39256c2c81729f1
+Size (asterisk-extra-sounds-en-gsm-1.5.tar.gz) = 4256538 bytes
+SHA1 (patch-res_pjproject_aconfigure) = b74fffbd4e60178f5b9edc3b00fa4189af39a8a1
+SHA1 (patch-res_pjproject_build.symbian_makedef.sh) = a8aec9af77de3ab0d5933efed91da2a5c2985381
diff --git a/asterisk11-vicidial/options.mk b/asterisk11-vicidial/options.mk
new file mode 100644
index 0000000000..d8c2620ed3
--- /dev/null
+++ b/asterisk11-vicidial/options.mk
@@ -0,0 +1,123 @@
+# $NetBSD: options.mk,v 1.8 2015/10/27 08:49:01 jnemeth Exp $
+
+PKG_OPTIONS_VAR=		PKG_OPTIONS.asterisk
+PKG_SUPPORTED_OPTIONS=		zaptel x11 unixodbc ilbc webvmail ldap spandsp
+PKG_SUPPORTED_OPTIONS+=		jabber speex snmp pgsql asterisk-config
+PKG_OPTIONS_LEGACY_OPTS+=	gtk:x11
+PKG_SUGGESTED_OPTIONS=		ldap jabber speex asterisk-config
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=		zaptel x11 unixodbc webvmail ldap spandsp jabber
+PLIST_VARS+=		speex snmp pgsql srtp
+
+# Asterisk now uses DAHDI, not zaptel; not implemented yet...
+#.if !empty(PKG_OPTIONS:Mzaptel)
+## zaptel only supported under NetBSD at the moment
+#.  include "../../comms/zaptel-netbsd/buildlink3.mk"
+#PLIST.zaptel=		yes
+#.else
+#MAKE_FLAGS+=		WITHOUT_ZAPTEL=1
+#.endif
+
+# gtkconsole depends on GTK 2.x
+.if !empty(PKG_OPTIONS:Mx11)
+.  include "../../x11/gtk2/buildlink3.mk"
+.  include "../../devel/SDL/buildlink3.mk"
+CONFIGURE_ARGS+=	--with-sdl
+CONFIGURE_ARGS+=	--with-gtk2
+PLIST.x11=		yes
+.else
+CONFIGURE_ARGS+=	--without-sdl
+CONFIGURE_ARGS+=	--without-gtk2
+.endif
+
+.if !empty(PKG_OPTIONS:Munixodbc)
+.  include "../../databases/unixodbc/buildlink3.mk"
+.  include "../../devel/libltdl/buildlink3.mk"
+CONFIGURE_ARGS+=	--with-ltdl
+CONFIGURE_ARGS+=	--with-unixodbc
+PLIST.unixodbc=		yes
+.else
+CONFIGURE_ARGS+=	--without-ltdl
+CONFIGURE_ARGS+=	--without-unixodbc
+.endif
+
+.if !empty(PKG_OPTIONS:Mspandsp)
+.  include "../../comms/spandsp/buildlink3.mk"
+CONFIGURE_ARGS+=	--with-spandsp
+PLIST.spandsp=		yes
+.else
+CONFIGURE_ARGS+=	--without-spandsp
+.endif
+
+.if !empty(PKG_OPTIONS:Mjabber)
+.  include "../../textproc/iksemel/buildlink3.mk"
+CONFIGURE_ARGS+=	--with-iksemel=${PREFIX}
+PLIST.jabber=		yes
+.else
+CONFIGURE_ARGS+=	--without-iksemel
+.endif
+
+MAKE_FLAGS+=	GLOBAL_MAKEOPTS=${WRKSRC}/pkgsrc.makeopts
+post-configure:
+.if !empty(PKG_OPTIONS:Mx11)
+	${ECHO} "MENUSELECT_PBX=-pbx_gtkconsole" >> ${WRKSRC}/pkgsrc.makeopts
+.endif
+.if !empty(PKG_OPTIONS:Munixodbc)
+	${ECHO} "MENUSELECT_OPTS_app_voicemail=ODBC_STORAGE" >> ${WRKSRC}/pkgsrc.makeopts
+.endif
+.if defined(PLIST.mgcp)
+	${ECHO} "MENUSELECT_RES=-res_pktccops" >> ${WRKSRC}/pkgsrc.makeopts
+	${ECHO} "MENUSELECT_CHANNELS=-chan_mgcp" >> ${WRKSRC}/pkgsrc.makeopts
+.endif
+	${ECHO} "MENUSELECT_AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi" >> ${WRKSRC}/pkgsrc.makeopts
+	# this is a hack to work around a bug in menuselect
+	cd ${WRKSRC} && make menuselect.makeopts
+
+.if !empty(PKG_OPTIONS:Mwebvmail)
+DEPENDS+=		p5-DBI-[0-9]*:../../databases/p5-DBI
+SUBST_CLASSES+=		webvmail
+SUBST_STAGE.webvmail=	post-patch
+SUBST_FILES.webvmail=	contrib/scripts/vmail.cgi
+SUBST_SED.webvmail+=	-e 's|@ASTETCDIR@|${ASTETCDIR}|'
+SUBST_SED.webvmail+=	-e "s|@ASTSPOOLDIR@|${ASTSPOOLDIR}|"
+INSTALLATION_DIRS+=	${PREFIX}/libexec/cgi-bin ${PREFIX}/share/httpd/htdocs
+SPECIAL_PERMS+=		${PREFIX}/libexec/cgi-bin/vmail ${ASTERISK_USER} ${ASTERISK_GROUP} 04555
+INSTALL_TARGET+=	webvmail
+PLIST.webvmail=		yes
+.endif
+
+.if !empty(PKG_OPTIONS:Mldap)
+.include "../../databases/openldap-client/buildlink3.mk"
+PLIST.ldap=		yes
+.else
+CONFIGURE_ARGS+=	--without-ldap
+.endif
+
+.if !empty(PKG_OPTIONS:Mspeex)
+.include "../../audio/speex/buildlink3.mk"
+.include "../../audio/speexdsp/buildlink3.mk"
+CONFIGURE_ARGS+=	--with-speex
+CONFIGURE_ARGS+=	--with-speexdsp
+PLIST.speex=		yes
+.else
+CONFIGURE_ARGS+=	--without-speex
+CONFIGURE_ARGS+=	--without-speexdsp
+.endif
+
+.if !empty(PKG_OPTIONS:Msnmp)
+.include "../../net/net-snmp/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-netsnmp
+PLIST.snmp=            yes
+.else
+CONFIGURE_ARGS+=       --without-netsnmp
+.endif
+
+.if !empty(PKG_OPTIONS:Mpgsql)
+.include "../../mk/pgsql.buildlink3.mk"
+CONFIGURE_ARGS+=       --with-postgres
+PLIST.pgsql=           yes
+.else
+CONFIGURE_ARGS+=       --without-postgres
+.endif
diff --git a/asterisk11-vicidial/patches/patch-res_pjproject_aconfigure b/asterisk11-vicidial/patches/patch-res_pjproject_aconfigure
new file mode 100644
index 0000000000..8ee21bf11c
--- /dev/null
+++ b/asterisk11-vicidial/patches/patch-res_pjproject_aconfigure
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- res/pjproject/aconfigure.orig	2016-03-29 19:25:17.000000000 +0000
++++ res/pjproject/aconfigure
+@@ -6341,7 +6341,7 @@ $as_echo_n "checking ffmpeg packages... 
+ 				av_pkg="$av_pkg libavcore"
+ 			fi
+ 
+-			if test "x$av_pkg" == "x"; then
++			if test "x$av_pkg" = "x"; then
+ 			   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none detected (check the prefix)! **" >&5
+ $as_echo "none detected (check the prefix)! **" >&6; }
+ 			else
diff --git a/asterisk11-vicidial/patches/patch-res_pjproject_build.symbian_makedef.sh b/asterisk11-vicidial/patches/patch-res_pjproject_build.symbian_makedef.sh
new file mode 100644
index 0000000000..224246d86b
--- /dev/null
+++ b/asterisk11-vicidial/patches/patch-res_pjproject_build.symbian_makedef.sh
@@ -0,0 +1,20 @@
+$NetBSD$
+
+--- res/pjproject/build.symbian/makedef.sh.orig	2016-03-29 19:25:17.000000000 +0000
++++ res/pjproject/build.symbian/makedef.sh
+@@ -1,13 +1,13 @@
+ #!/bin/sh
+ 
+ MMP=$1
+-if test "$MMP" == ""; then
++if test "$MMP" = ""; then
+ 	echo "Usage: makedef.sh FILE.MMP"
+ 	echo "    or makedef.sh all"
+ 	exit 1
+ fi
+ 
+-if test "$MMP" == "all"; then
++if test "$MMP" = "all"; then
+ 	. $0 pjlib.mmp
+ 	. $0 pjlib_util.mmp
+ 	. $0 pjnath.mmp


Home | Main Index | Thread Index | Old Index