1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

New port: asterisk addons

This package contains additional modules for the  Asterisk Open Source PBX
which are, for one reason or another, not included in the normal base
distribution.  Many of these modules are experimental.

Submitted by:	Fabian Gast
This commit is contained in:
Max Khon 2006-03-27 17:23:47 +00:00
parent bb3efb6a66
commit a7f67aaf11
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=158263
21 changed files with 321 additions and 0 deletions

View File

@ -28,6 +28,7 @@
SUBDIR += asfrecorder
SUBDIR += aslookup
SUBDIR += asterisk
SUBDIR += asterisk-addons
SUBDIR += asterisk-devel
SUBDIR += asterisk-oh323
SUBDIR += atmsupport

View File

@ -0,0 +1,38 @@
# New ports collection makefile for: asterisk-addons
# Date created: 23 March 2006
# Whom: Fabian Gast <fgast@only640k.org>
#
# $FreeBSD$
#
PORTNAME= asterisk-addons
PORTVERSION= 1.2.2
CATEGORIES= net
MASTER_SITES= http://ftp.digium.com/pub/asterisk/ \
http://ftp.digium.com/pub/asterisk/old-releases/ \
ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
MAINTAINER= fgast@only640k.org
COMMENT= Additional modules for the Asterisk Open Source PBX
BUILD_DEPENDS= asterisk:${PORTSDIR}/net/asterisk
LIB_DEPENDS= mysqlclient:${PORTSDIR}/databases/mysql41-client
RUN_DEPENDS= asterisk:${PORTSDIR}/net/asterisk
ONLY_FOR_ARCHS= i386 sparc64 amd64
USE_GMAKE= yes
CONF_SAMPLES= cdr_mysql.conf.sample res_mysql.conf.sample
ASTETCDIR= ${PREFIX}/etc/asterisk
post-patch:
@${REINPLACE_CMD} 's,^CFLAGS+=-I../asterisk,CFLAGS+=-I${LOCALBASE}/include,' ${WRKSRC}/Makefile
post-install:
${MKDIR} ${ASTETCDIR}
.for f in ${CONF_SAMPLES}
${INSTALL_DATA} ${WRKSRC}/configs/$f ${ASTETCDIR}
.endfor
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (asterisk-addons-1.2.2.tar.gz) = a22b05117a2f8c8b25d504d0d01f8823
SHA256 (asterisk-addons-1.2.2.tar.gz) = 9b9681a9b8282604687257cb0468f43d9ab5268622746eae6546cd092ce90c81
SIZE (asterisk-addons-1.2.2.tar.gz) = 749501

View File

@ -0,0 +1,23 @@
--- Makefile.orig Fri Dec 2 05:14:28 2005
+++ Makefile Tue Mar 28 00:15:47 2006
@@ -20,8 +20,8 @@
CFLAGS+=-D_GNU_SOURCE
INSTALL=install
-INSTALL_PREFIX=
-ASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk
+INSTALL_PREFIX=$(PREFIX)
+ASTLIBDIR=$(INSTALL_PREFIX)/lib/asterisk
MODULES_DIR=$(ASTLIBDIR)/modules
#
@@ -56,7 +56,8 @@
$(MAKE) -C format_mp3 all
install: all
- for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
+ mkdir -p $(DESTDIR)$(MODULES_DIR)
+ for x in $(MODS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done
clean:
rm -f *.so *.o .depend

View File

@ -0,0 +1,5 @@
This package contains additional modules for the Asterisk Open Source PBX
which are, for one reason or another, not included in the normal base
distribution. Many of these modules are experimental.
WWW: http://www.asteriskpbx.com

View File

@ -0,0 +1,11 @@
@unexec if cmp -s %D/etc/asterisk/cdr_mysql.conf %D/etc/asterisk/cdr_mysql.conf.sample; then rm -f %D/etc/asterisk/cdr_mysql.conf; fi
etc/asterisk/cdr_mysql.conf.sample
@exec [-f %B/cdr_mysql.conf ] || cp %B/%f %B/cdr_mysql.conf
@unexec if cmp -s %D/etc/asterisk/res_mysql.conf %D/etc/asterisk/res_mysql.conf.sample; then rm -f %D/etc/asterisk/res_mysql.conf; fi
etc/asterisk/res_mysql.conf.sample
@exec [-f %B/res_mysql.conf ] || cp $B/%f %B/res_mysql.conf
lib/asterisk/modules/app_addon_sql_mysql.so
lib/asterisk/modules/app_saycountpl.so
lib/asterisk/modules/cdr_addon_mysql.so
lib/asterisk/modules/format_mp3.so
lib/asterisk/modules/res_config_mysql.so

View File

@ -0,0 +1,38 @@
# New ports collection makefile for: asterisk-addons
# Date created: 23 March 2006
# Whom: Fabian Gast <fgast@only640k.org>
#
# $FreeBSD$
#
PORTNAME= asterisk-addons
PORTVERSION= 1.2.2
CATEGORIES= net
MASTER_SITES= http://ftp.digium.com/pub/asterisk/ \
http://ftp.digium.com/pub/asterisk/old-releases/ \
ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
MAINTAINER= fgast@only640k.org
COMMENT= Additional modules for the Asterisk Open Source PBX
BUILD_DEPENDS= asterisk:${PORTSDIR}/net/asterisk
LIB_DEPENDS= mysqlclient:${PORTSDIR}/databases/mysql41-client
RUN_DEPENDS= asterisk:${PORTSDIR}/net/asterisk
ONLY_FOR_ARCHS= i386 sparc64 amd64
USE_GMAKE= yes
CONF_SAMPLES= cdr_mysql.conf.sample res_mysql.conf.sample
ASTETCDIR= ${PREFIX}/etc/asterisk
post-patch:
@${REINPLACE_CMD} 's,^CFLAGS+=-I../asterisk,CFLAGS+=-I${LOCALBASE}/include,' ${WRKSRC}/Makefile
post-install:
${MKDIR} ${ASTETCDIR}
.for f in ${CONF_SAMPLES}
${INSTALL_DATA} ${WRKSRC}/configs/$f ${ASTETCDIR}
.endfor
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (asterisk-addons-1.2.2.tar.gz) = a22b05117a2f8c8b25d504d0d01f8823
SHA256 (asterisk-addons-1.2.2.tar.gz) = 9b9681a9b8282604687257cb0468f43d9ab5268622746eae6546cd092ce90c81
SIZE (asterisk-addons-1.2.2.tar.gz) = 749501

View File

@ -0,0 +1,23 @@
--- Makefile.orig Fri Dec 2 05:14:28 2005
+++ Makefile Tue Mar 28 00:15:47 2006
@@ -20,8 +20,8 @@
CFLAGS+=-D_GNU_SOURCE
INSTALL=install
-INSTALL_PREFIX=
-ASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk
+INSTALL_PREFIX=$(PREFIX)
+ASTLIBDIR=$(INSTALL_PREFIX)/lib/asterisk
MODULES_DIR=$(ASTLIBDIR)/modules
#
@@ -56,7 +56,8 @@
$(MAKE) -C format_mp3 all
install: all
- for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
+ mkdir -p $(DESTDIR)$(MODULES_DIR)
+ for x in $(MODS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done
clean:
rm -f *.so *.o .depend

View File

@ -0,0 +1,5 @@
This package contains additional modules for the Asterisk Open Source PBX
which are, for one reason or another, not included in the normal base
distribution. Many of these modules are experimental.
WWW: http://www.asteriskpbx.com

View File

@ -0,0 +1,11 @@
@unexec if cmp -s %D/etc/asterisk/cdr_mysql.conf %D/etc/asterisk/cdr_mysql.conf.sample; then rm -f %D/etc/asterisk/cdr_mysql.conf; fi
etc/asterisk/cdr_mysql.conf.sample
@exec [-f %B/cdr_mysql.conf ] || cp %B/%f %B/cdr_mysql.conf
@unexec if cmp -s %D/etc/asterisk/res_mysql.conf %D/etc/asterisk/res_mysql.conf.sample; then rm -f %D/etc/asterisk/res_mysql.conf; fi
etc/asterisk/res_mysql.conf.sample
@exec [-f %B/res_mysql.conf ] || cp $B/%f %B/res_mysql.conf
lib/asterisk/modules/app_addon_sql_mysql.so
lib/asterisk/modules/app_saycountpl.so
lib/asterisk/modules/cdr_addon_mysql.so
lib/asterisk/modules/format_mp3.so
lib/asterisk/modules/res_config_mysql.so

View File

@ -0,0 +1,38 @@
# New ports collection makefile for: asterisk-addons
# Date created: 23 March 2006
# Whom: Fabian Gast <fgast@only640k.org>
#
# $FreeBSD$
#
PORTNAME= asterisk-addons
PORTVERSION= 1.2.2
CATEGORIES= net
MASTER_SITES= http://ftp.digium.com/pub/asterisk/ \
http://ftp.digium.com/pub/asterisk/old-releases/ \
ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
MAINTAINER= fgast@only640k.org
COMMENT= Additional modules for the Asterisk Open Source PBX
BUILD_DEPENDS= asterisk:${PORTSDIR}/net/asterisk
LIB_DEPENDS= mysqlclient:${PORTSDIR}/databases/mysql41-client
RUN_DEPENDS= asterisk:${PORTSDIR}/net/asterisk
ONLY_FOR_ARCHS= i386 sparc64 amd64
USE_GMAKE= yes
CONF_SAMPLES= cdr_mysql.conf.sample res_mysql.conf.sample
ASTETCDIR= ${PREFIX}/etc/asterisk
post-patch:
@${REINPLACE_CMD} 's,^CFLAGS+=-I../asterisk,CFLAGS+=-I${LOCALBASE}/include,' ${WRKSRC}/Makefile
post-install:
${MKDIR} ${ASTETCDIR}
.for f in ${CONF_SAMPLES}
${INSTALL_DATA} ${WRKSRC}/configs/$f ${ASTETCDIR}
.endfor
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (asterisk-addons-1.2.2.tar.gz) = a22b05117a2f8c8b25d504d0d01f8823
SHA256 (asterisk-addons-1.2.2.tar.gz) = 9b9681a9b8282604687257cb0468f43d9ab5268622746eae6546cd092ce90c81
SIZE (asterisk-addons-1.2.2.tar.gz) = 749501

View File

@ -0,0 +1,23 @@
--- Makefile.orig Fri Dec 2 05:14:28 2005
+++ Makefile Tue Mar 28 00:15:47 2006
@@ -20,8 +20,8 @@
CFLAGS+=-D_GNU_SOURCE
INSTALL=install
-INSTALL_PREFIX=
-ASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk
+INSTALL_PREFIX=$(PREFIX)
+ASTLIBDIR=$(INSTALL_PREFIX)/lib/asterisk
MODULES_DIR=$(ASTLIBDIR)/modules
#
@@ -56,7 +56,8 @@
$(MAKE) -C format_mp3 all
install: all
- for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
+ mkdir -p $(DESTDIR)$(MODULES_DIR)
+ for x in $(MODS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done
clean:
rm -f *.so *.o .depend

View File

@ -0,0 +1,5 @@
This package contains additional modules for the Asterisk Open Source PBX
which are, for one reason or another, not included in the normal base
distribution. Many of these modules are experimental.
WWW: http://www.asteriskpbx.com

View File

@ -0,0 +1,11 @@
@unexec if cmp -s %D/etc/asterisk/cdr_mysql.conf %D/etc/asterisk/cdr_mysql.conf.sample; then rm -f %D/etc/asterisk/cdr_mysql.conf; fi
etc/asterisk/cdr_mysql.conf.sample
@exec [-f %B/cdr_mysql.conf ] || cp %B/%f %B/cdr_mysql.conf
@unexec if cmp -s %D/etc/asterisk/res_mysql.conf %D/etc/asterisk/res_mysql.conf.sample; then rm -f %D/etc/asterisk/res_mysql.conf; fi
etc/asterisk/res_mysql.conf.sample
@exec [-f %B/res_mysql.conf ] || cp $B/%f %B/res_mysql.conf
lib/asterisk/modules/app_addon_sql_mysql.so
lib/asterisk/modules/app_saycountpl.so
lib/asterisk/modules/cdr_addon_mysql.so
lib/asterisk/modules/format_mp3.so
lib/asterisk/modules/res_config_mysql.so

View File

@ -0,0 +1,38 @@
# New ports collection makefile for: asterisk-addons
# Date created: 23 March 2006
# Whom: Fabian Gast <fgast@only640k.org>
#
# $FreeBSD$
#
PORTNAME= asterisk-addons
PORTVERSION= 1.2.2
CATEGORIES= net
MASTER_SITES= http://ftp.digium.com/pub/asterisk/ \
http://ftp.digium.com/pub/asterisk/old-releases/ \
ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
MAINTAINER= fgast@only640k.org
COMMENT= Additional modules for the Asterisk Open Source PBX
BUILD_DEPENDS= asterisk:${PORTSDIR}/net/asterisk
LIB_DEPENDS= mysqlclient:${PORTSDIR}/databases/mysql41-client
RUN_DEPENDS= asterisk:${PORTSDIR}/net/asterisk
ONLY_FOR_ARCHS= i386 sparc64 amd64
USE_GMAKE= yes
CONF_SAMPLES= cdr_mysql.conf.sample res_mysql.conf.sample
ASTETCDIR= ${PREFIX}/etc/asterisk
post-patch:
@${REINPLACE_CMD} 's,^CFLAGS+=-I../asterisk,CFLAGS+=-I${LOCALBASE}/include,' ${WRKSRC}/Makefile
post-install:
${MKDIR} ${ASTETCDIR}
.for f in ${CONF_SAMPLES}
${INSTALL_DATA} ${WRKSRC}/configs/$f ${ASTETCDIR}
.endfor
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (asterisk-addons-1.2.2.tar.gz) = a22b05117a2f8c8b25d504d0d01f8823
SHA256 (asterisk-addons-1.2.2.tar.gz) = 9b9681a9b8282604687257cb0468f43d9ab5268622746eae6546cd092ce90c81
SIZE (asterisk-addons-1.2.2.tar.gz) = 749501

View File

@ -0,0 +1,23 @@
--- Makefile.orig Fri Dec 2 05:14:28 2005
+++ Makefile Tue Mar 28 00:15:47 2006
@@ -20,8 +20,8 @@
CFLAGS+=-D_GNU_SOURCE
INSTALL=install
-INSTALL_PREFIX=
-ASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk
+INSTALL_PREFIX=$(PREFIX)
+ASTLIBDIR=$(INSTALL_PREFIX)/lib/asterisk
MODULES_DIR=$(ASTLIBDIR)/modules
#
@@ -56,7 +56,8 @@
$(MAKE) -C format_mp3 all
install: all
- for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
+ mkdir -p $(DESTDIR)$(MODULES_DIR)
+ for x in $(MODS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done
clean:
rm -f *.so *.o .depend

View File

@ -0,0 +1,5 @@
This package contains additional modules for the Asterisk Open Source PBX
which are, for one reason or another, not included in the normal base
distribution. Many of these modules are experimental.
WWW: http://www.asteriskpbx.com

View File

@ -0,0 +1,11 @@
@unexec if cmp -s %D/etc/asterisk/cdr_mysql.conf %D/etc/asterisk/cdr_mysql.conf.sample; then rm -f %D/etc/asterisk/cdr_mysql.conf; fi
etc/asterisk/cdr_mysql.conf.sample
@exec [-f %B/cdr_mysql.conf ] || cp %B/%f %B/cdr_mysql.conf
@unexec if cmp -s %D/etc/asterisk/res_mysql.conf %D/etc/asterisk/res_mysql.conf.sample; then rm -f %D/etc/asterisk/res_mysql.conf; fi
etc/asterisk/res_mysql.conf.sample
@exec [-f %B/res_mysql.conf ] || cp $B/%f %B/res_mysql.conf
lib/asterisk/modules/app_addon_sql_mysql.so
lib/asterisk/modules/app_saycountpl.so
lib/asterisk/modules/cdr_addon_mysql.so
lib/asterisk/modules/format_mp3.so
lib/asterisk/modules/res_config_mysql.so