Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2019 08:32:34 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r493415 - head/net/asterisk-chan_sccp
Message-ID:  <201902200832.x1K8WYUx062534@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Wed Feb 20 08:32:34 2019
New Revision: 493415
URL: https://svnweb.freebsd.org/changeset/ports/493415

Log:
  net/asterisk-chan_sccp: Update to 4.3.2
  
  - Make conference and video support optional (enabled by default)
  - Add options to select different Asterisk versions
  - Build for net/asterisk16 by default
  
  While here
  
  - Install sccp.conf with @sample
  - Run it through portfmt once, fix indentation
  - Reorder variables according to chapter 15 of the PHB
  - Pet portlint
  
  PR:		223972
  Submitted by:	maintainer

Modified:
  head/net/asterisk-chan_sccp/Makefile
  head/net/asterisk-chan_sccp/distinfo

Modified: head/net/asterisk-chan_sccp/Makefile
==============================================================================
--- head/net/asterisk-chan_sccp/Makefile	Wed Feb 20 07:43:31 2019	(r493414)
+++ head/net/asterisk-chan_sccp/Makefile	Wed Feb 20 08:32:34 2019	(r493415)
@@ -1,43 +1,69 @@
 # Created by: Diederik de Groot
 # $FreeBSD$
 
-PORTNAME=		chan_sccp
-PORTVERSION=		4.2.3
-PORTREVISION=		2
-CATEGORIES=		net
-MASTER_SITES=		SF/chan-sccp-b
-PKGNAMEPREFIX=		asterisk-
-DISTNAME=		Chan_SCCP-4.2.3_STABLE_r6728
+PORTNAME=	chan_sccp
+DISTVERSIONPREFIX=	v
+DISTVERSION=	4.3.2
+DISTVERSIONSUFFIX=	-gamma
+CATEGORIES=	net
+PKGNAMEPREFIX=	asterisk-
 
-MAINTAINER=		ddegroot@talon.nl
-COMMENT=		Replacement for the SCCP channel driver in Asterisk
+MAINTAINER=	ddegroot@talon.nl
+COMMENT=	Replacement for the SCCP channel driver in Asterisk
 
-LICENSE=		GPLv1
+LICENSE=	GPLv1
+LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=		asterisk:net/asterisk13
-RUN_DEPENDS=		asterisk:net/asterisk13
+USES=		iconv libtool
+USE_GITHUB=	yes
+GH_ACCOUNT=	chan-sccp
+GH_PROJECT=	chan-sccp
 
-GNU_CONFIGURE=		yes
-USES=			iconv compiler libtool
-CONFIGURE_ARGS+=	--enable-video \
-			--enable-video-layer \
-			--enable-conference \
-			--enable-advanced-functions \
-			--with-hash-size=3001 \
-			${ICONV_CONFIGURE_ARG}
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--enable-advanced-functions \
+		--with-hash-size=3001 \
+		${ICONV_CONFIGURE_ARG}
+INSTALL_TARGET=	install-strip
 
-CPPFLAGS+=		-I${ICONV_INCLUDE_PATH}
-LDFLAGS+=		-L${LOCALBASE}/lib ${ICONV_LIB}
+CPPFLAGS+=	-I${ICONV_INCLUDE_PATH}
+LDFLAGS+=	-L${LOCALBASE}/lib \
+		${ICONV_LIB}
 
-PLIST_FILES=		lib/asterisk/modules/chan_sccp.so \
-			etc/asterisk/sccp.conf \
-			etc/asterisk/sccp.conf.annotated
+PLIST_FILES=	etc/asterisk/sccp.conf.annotated \
+		"@sample etc/asterisk/sccp.conf.sample" \
+		lib/asterisk/modules/chan_sccp.so \
+		share/asterisk/documentation/thirdparty/chan_sccp-en_US.xml
 
-post-build:
-	${STRIP_CMD} ${WRKSRC}/src/.libs/chan_sccp.so
+OPTIONS_DEFINE=		CONFERENCE VIDEO
+OPTIONS_DEFAULT=	AST16 CONFERENCE VIDEO
+OPTIONS_SINGLE=		ASTVER
+OPTIONS_SINGLE_ASTVER=	AST13 AST15 AST16
 
+ASTVER_DESC=		Which asterisk to build for
+AST13_DESC=		Asterisk 13
+AST15_DESC=		Asterisk 15
+AST16_DESC=		Asterisk 16
+CONFERENCE_DESC=	Enable Conference Support
+VIDEO_DESC=		Enable Video Support
+
+AST13_BUILD_DEPENDS=	asterisk13>0:net/asterisk13
+AST13_RUN_DEPENDS=	asterisk13>0:net/asterisk13
+
+# AST15 will be EOL october 2019
+AST15_BUILD_DEPENDS=	asterisk15>0:net/asterisk15
+AST15_RUN_DEPENDS=	asterisk15>0:net/asterisk15
+
+AST16_BUILD_DEPENDS=	asterisk16>0:net/asterisk16
+AST16_RUN_DEPENDS=	asterisk16>0:net/asterisk16
+
+CONFERENCE_CONFIGURE_ENABLE=	conference
+VIDEO_CONFIGURE_ENABLE=		video
+
 post-install:
-	${MKDIR} ${STAGEDIR}${PREFIX}/etc/asterisk
-	(cd ${WRKSRC}/conf && ${CP} sccp.conf sccp.conf.annotated ${STAGEDIR}${PREFIX}/etc/asterisk/)
+	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/asterisk
+	${INSTALL_DATA} ${WRKSRC}/conf/sccp.conf \
+		${STAGEDIR}${PREFIX}/etc/asterisk/sccp.conf.sample
+	${INSTALL_DATA} ${WRKSRC}/conf/sccp.conf.annotated \
+		${STAGEDIR}${PREFIX}/etc/asterisk
 
 .include <bsd.port.mk>

Modified: head/net/asterisk-chan_sccp/distinfo
==============================================================================
--- head/net/asterisk-chan_sccp/distinfo	Wed Feb 20 07:43:31 2019	(r493414)
+++ head/net/asterisk-chan_sccp/distinfo	Wed Feb 20 08:32:34 2019	(r493415)
@@ -1,2 +1,3 @@
-SHA256 (Chan_SCCP-4.2.3_STABLE_r6728.tar.gz) = 22d914c97594f74a482a7e14a069f61ff9d695d4cc271674ad54552778bb679d
-SIZE (Chan_SCCP-4.2.3_STABLE_r6728.tar.gz) = 1471165
+TIMESTAMP = 1550622097
+SHA256 (chan-sccp-chan-sccp-v4.3.2-gamma_GH0.tar.gz) = e18971fdd131d60e543bce0d1f86c8e7243147ea4a5fdc35bb1aad77ac3577aa
+SIZE (chan-sccp-chan-sccp-v4.3.2-gamma_GH0.tar.gz) = 1957293



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902200832.x1K8WYUx062534>