ports/112143: [PATCH] Update net/asterisk to 1.4.3
Phillip Neumann
pneumann at gmail.com
Wed Apr 25 19:30:05 UTC 2007
>Number: 112143
>Category: ports
>Synopsis: [PATCH] Update net/asterisk to 1.4.3
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed Apr 25 19:30:05 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Phillip Neumann
>Release: FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD 6.2-STABLE #1: Sun Feb 11 18:00:14 CLST 2007
root at negro.transtel.cl:/usr/obj/usr/src/sys/Negro
>Description:
- Update to version 1.4.3
- Use tab instead of spaces in the Makefile
thanks!
>How-To-Repeat:
>Fix:
--- asterisk-1.4.3.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/asterisk/Makefile,v
retrieving revision 1.68
diff -u -r1.68 Makefile
--- Makefile 16 Apr 2007 08:40:14 -0000 1.68
+++ Makefile 25 Apr 2007 19:17:18 -0000
@@ -6,7 +6,7 @@
#
PORTNAME= asterisk
-PORTVERSION= 1.4.2
+PORTVERSION= 1.4.3
CATEGORIES= net
MASTER_SITES= http://ftp.digium.com/pub/asterisk/ \
http://ftp.digium.com/pub/asterisk/old-releases/
@@ -23,7 +23,7 @@
ONLY_FOR_ARCHS= i386 sparc64 amd64
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --mandir=/usr/local/man
+CONFIGURE_ARGS= --mandir=${PREFIX}/man
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
USE_GMAKE= yes
@@ -56,84 +56,81 @@
.if defined(WITHOUT_H323)
PLIST_SUB+= WITH_H323="@comment "
-CONFIGURE_ARGS+= --without-h323
+CONFIGURE_ARGS+= --without-h323
.else
PLIST_SUB+= WITH_H323=""
-CONFIGURE_ARGS+= --with-h323
+CONFIGURE_ARGS+= --with-h323
LIB_DEPENDS+= pt_r.1:${PORTSDIR}/devel/pwlib \
h323_r.1:${PORTSDIR}/net/openh323
.endif
.if defined(WITHOUT_ZAPTEL)
PLIST_SUB+= WITH_ZAPTEL="@comment "
-CONFIGURE_ARGS+= --without-zaptel
+CONFIGURE_ARGS+= --without-zaptel
.else
PLIST_SUB+= WITH_ZAPTEL=""
-CONFIGURE_ARGS+= --with-zaptel
+CONFIGURE_ARGS+= --with-zaptel
BUILD_DEPENDS+= libpri>=1.2.0:${PORTSDIR}/misc/libpri \
${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel
LIB_DEPENDS+= pri.1:${PORTSDIR}/misc/libpri
RUN_DEPENDS+= ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel
.endif
-#
-# WITH_FREETDS, WITH_PGSQL and WITH_SQLITE can also be added to MAKE_ENV
-# similarly
.if defined(WITHOUT_ODBC)
PLIST_SUB+= WITH_ODBC="@comment "
-CONFIGURE_ARGS+= --without-odbc
+CONFIGURE_ARGS+= --without-odbc
.else
PLIST_SUB+= WITH_ODBC=""
-CONFIGURE_ARGS+= --with-odbc
+CONFIGURE_ARGS+= --with-odbc
LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC
.endif
.if defined(WITHOUT_POSTGRES)
PLIST_SUB+= WITH_POSTGRES="@comment "
-CONFIGURE_ARGS+= --without-postgres
+CONFIGURE_ARGS+= --without-postgres
.else
PLIST_SUB+= WITH_POSTGRES=""
USE_PGSQL= yes
-CONFIGURE_ARGS+= --with-postgres
+CONFIGURE_ARGS+= --with-postgres
.endif
.if defined(WITHOUT_OGGVORBIS)
PLIST_SUB+= WITH_OGGVORBIS="@comment "
-CONFIGURE_ARGS+= --without-ogg
+CONFIGURE_ARGS+= --without-ogg
.else
PLIST_SUB+= WITH_OGGVORBIS=""
-CONFIGURE_ARGS+= --with-ogg
+CONFIGURE_ARGS+= --with-ogg
LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis
.endif
.if defined(WITHOUT_RADIUS)
PLIST_SUB+= WITH_RADIUS="@comment "
-CONFIGURE_ARGS+= --without-radius
+CONFIGURE_ARGS+= --without-radius
.else
PLIST_SUB+= WITH_RADIUS=""
-CONFIGURE_ARGS+= --with-radius
+CONFIGURE_ARGS+= --with-radius
LIB_DEPENDS+= radiusclient-ng.2:${PORTSDIR}/net/radiusclient
.endif
.if defined(WITHOUT_SNMP)
PLIST_SUB+= WITH_SNMP="@comment "
-CONFIGURE_ARGS+= --without-netsnmp
+CONFIGURE_ARGS+= --without-netsnmp
.else
PLIST_SUB+= WITH_SNMP=""
-CONFIGURE_ARGS+= --with-netsnmp
+CONFIGURE_ARGS+= --with-netsnmp
LIB_DEPENDS+= netsnmp.10:${PORTSDIR}/net-mgmt/net-snmp
.endif
.if defined(WITHOUT_JABBER)
PLIST_SUB+= WITH_JABBER="@comment "
-CONFIGURE_ARGS+= --without-iksemel
+CONFIGURE_ARGS+= --without-iksemel
.else
PLIST_SUB+= WITH_JABBER=""
-CONFIGURE_ARGS+= --with-iksemel
+CONFIGURE_ARGS+= --with-iksemel
LIB_DEPENDS+= iksemel.3:${PORTSDIR}/textproc/iksemel
.endif
post-patch:
- ${REINPLACE_CMD} -e 's|/var/lib|${PREFIX}/share|g' ${WRKSRC}/configs/musiconhold.conf.sample
+ @${REINPLACE_CMD} -e 's|/var/lib|${PREFIX}/share|g' ${WRKSRC}/configs/musiconhold.conf.sample
.include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/net/asterisk/distinfo,v
retrieving revision 1.22
diff -u -r1.22 distinfo
--- distinfo 13 Apr 2007 08:06:05 -0000 1.22
+++ distinfo 25 Apr 2007 19:17:18 -0000
@@ -1,3 +1,3 @@
-MD5 (asterisk-1.4.2.tar.gz) = 343e2d7b145a30b23d7d814dac2f704c
-SHA256 (asterisk-1.4.2.tar.gz) = 01affa6fc8e411d002b79d5c423d955d22781d4e2ed58e74de29eb1aabc5f95f
-SIZE (asterisk-1.4.2.tar.gz) = 17055659
+MD5 (asterisk-1.4.3.tar.gz) = 1df236fa972dc16d1b5265b3c4868085
+SHA256 (asterisk-1.4.3.tar.gz) = 7560d0e82c671042105c4715bc0430e7219cd46dba206cc0864e00b6ffdcf91c
+SIZE (asterisk-1.4.3.tar.gz) = 17080162
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/net/asterisk/pkg-plist,v
retrieving revision 1.25
diff -u -r1.25 pkg-plist
--- pkg-plist 16 Apr 2007 08:40:14 -0000 1.25
+++ pkg-plist 25 Apr 2007 19:17:19 -0000
@@ -809,3 +809,4 @@
@dirrm log/asterisk/cdr-csv
@dirrm log/asterisk/cdr-custom
@dirrm log/asterisk
+ at dirrmtry etc/asterisk
--- asterisk-1.4.3.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list