Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Feb 2014 20:09:52 +0000 (UTC)
From:      Jase Thew <jase@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r343293 - in head/irc/znc: . files
Message-ID:  <201402072009.s17K9qSS089465@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jase
Date: Fri Feb  7 20:09:51 2014
New Revision: 343293
URL: http://svnweb.freebsd.org/changeset/ports/343293
QAT: https://qat.redports.org/buildarchive/r343293/

Log:
  - Update to 1.2
  - Modernise OPTIONS configuration
  - Support custom LOCALBASE
  - Stage support
  
  Changes:    http://wiki.znc.in/ChangeLog/1.2

Deleted:
  head/irc/znc/files/patch-modules-webadmin_cpp
Modified:
  head/irc/znc/Makefile
  head/irc/znc/distinfo
  head/irc/znc/pkg-plist

Modified: head/irc/znc/Makefile
==============================================================================
--- head/irc/znc/Makefile	Fri Feb  7 20:02:26 2014	(r343292)
+++ head/irc/znc/Makefile	Fri Feb  7 20:09:51 2014	(r343293)
@@ -2,15 +2,14 @@
 # $FreeBSD$
 
 PORTNAME=	znc
-PORTVERSION=	1.0
-PORTREVISION=	1
+PORTVERSION=	1.2
 CATEGORIES=	irc ipv6
 MASTER_SITES=	http://znc.in/releases/
 
 MAINTAINER=	jase@FreeBSD.org
 COMMENT=	An advanced IRC bouncer
 
-LICENSE=	GPLv2
+LICENSE=	APACHE20
 
 GNU_CONFIGURE=	yes
 USE_RC_SUBR=	znc
@@ -20,91 +19,82 @@ NO_OPTIONS_SORT=	yes
 
 OPTIONS_DEFINE=	DEBUG IPV6 OPENSSL CYRUS PERL PYTHON TCL
 OPTIONS_DEFAULT=	OPENSSL PERL
+OPTIONS_SUB=	yes
 
+CYRUS_DESC=	Cyrus SASL module
 DEBUG_DESC=	Debugging support
 PERL_DESC=	Perl scripting module
 PYTHON_DESC=	Python scripting module
 TCL_DESC=	Tcl scripting module
-CYRUS_DESC=	Cyrus SASL module
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+CYRUS_CONFIGURE_ON=	--enable-cyrus
+CYRUS_LDFLAGS=	-L${LOCALBASE}/lib
+CYRUS_LIB_DEPENDS=	libsasl2.so:${PORTSDIR}/security/cyrus-sasl2
+DEBUG_CONFIGURE_ON=	--enable-debug
+IPV6_CONFIGURE_OFF=	--disable-ipv6
+PERL_BUILD_DEPENDS=	swig>=2.0.11:${PORTSDIR}/devel/swig20
+PERL_CONFIGURE_ENABLE=	perl
+PERL_CONFIGURE_ON=	--enable-swig
+PERL_USES=	perl5
+PYTHON_BUILD_DEPENDS=	swig>=2.0.11:${PORTSDIR}/devel/swig20
+PYTHON_CONFIGURE_ON=	--enable-python=python-${PYTHON_VER} --enable-swig
+PYTHON_USES=	perl5
+OPENSSL_CONFIGURE_OFF=	--disable-openssl
+TCL_CONFIGURE_ENABLE=	tcl
 
-.if ${PORT_OPTIONS:MDEBUG}
-CONFIGURE_ARGS+=	--enable-debug
-.endif
-
-.if empty(PORT_OPTIONS:MIPV6)
-CONFIGURE_ARGS+=	--disable-ipv6
-.endif
+.include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MOPENSSL}
 .include "${PORTSDIR}/Mk/bsd.openssl.mk"
 CONFIGURE_ARGS+=	--with-openssl=${OPENSSLBASE}
-PLIST_SUB+=		OPENSSL=""
-.else
-CONFIGURE_ARGS+=	--disable-openssl
-PLIST_SUB+=		OPENSSL="@comment "
 .endif
 
 .if ${PORT_OPTIONS:MPERL}
-USES+=			perl5
 USE_PERL5+=		run build
-CONFIGURE_ARGS+=	--enable-perl
-PLIST_SUB+=		PERL=""
-BUILD_DEPENDS+=		swig>=2.0.4:${PORTSDIR}/devel/swig20
-.else
-PLIST_SUB+=		PERL="@comment "
 .endif
 
 .if ${PORT_OPTIONS:MTCL}
 USE_TCL=		84+
 .include "${PORTSDIR}/Mk/bsd.tcl.mk"
-CONFIGURE_ARGS+=	--enable-tcl --with-tcl=${TCL_LIBDIR}
-PLIST_SUB+=		TCL=""
-.else
-CONFIGURE_ARGS+=	--without-tcl
-PLIST_SUB+=		TCL="@comment "
+CONFIGURE_ARGS+=	--with-tcl=${TCL_LIBDIR}
 .endif
 
 .if ${PORT_OPTIONS:MPYTHON}
-USE_PYTHON=	3.1-3.2
-USES+=		perl5
-USE_PERL5+=	build
-PLIST_SUB+=	PYTHON=""
-CONFIGURE_ARGS+=	--enable-python=python-${PYTHON_VER}
-BUILD_DEPENDS+=		swig>=2.0.4:${PORTSDIR}/devel/swig20
-.else
-PLIST_SUB+=	PYTHON="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MCYRUS}
-LIB_DEPENDS+=		sasl2:${PORTSDIR}/security/cyrus-sasl2
-CONFIGURE_ARGS+=	--enable-cyrus
-LDFLAGS+=		-L${LOCALBASE}/lib
-PLIST_SUB+=		CYRUS=""
-.else
-PLIST_SUB+=		CYRUS="@comment "
+USE_PYTHON=		3.1-
+USE_PERL5+=		build
 .endif
 
-MANCOMPRESSED=	yes
-MAN1=		znc.1 znc-buildmod.1
+PORTDOCS=		README.md
 
-PORTDOCS=	README.md
+pre-configure:
+# No need to cast to char** in AM_ICONV, fixes charset/iconv detection
+# and by extension, successfully builds charset module
+	@${REINPLACE_CMD} -e \
+		's#(char \*\*)##g' \
+		${WRKSRC}/configure
+# Instead of using bundled swig generated files, delete them to force
+# regeneration using swig 2.0.11+ (fixes port compilation using clang)
+.if ${PORT_OPTIONS:MPERL}
+	@${RM} ${WRKSRC}/modules/modperl/ZNC.cpp
+.endif
+.if ${PORT_OPTIONS:MPYTHON}
+	@${RM} ${WRKSRC}/modules/modpython/_znc_core.cpp
+.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e \
 		's#$$(libdir)/pkgconfig#${PREFIX}/libdata/pkgconfig#' \
 		${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} -e \
+		's#/usr/local#${LOCALBASE}#' ${WRKSRC}/configure
 
 post-install:
 .if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}/
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
+	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
 .endfor
 	@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}"
-	@${CAT} ${PKGMESSAGE}
 .endif
 
 .include <bsd.port.mk>

Modified: head/irc/znc/distinfo
==============================================================================
--- head/irc/znc/distinfo	Fri Feb  7 20:02:26 2014	(r343292)
+++ head/irc/znc/distinfo	Fri Feb  7 20:09:51 2014	(r343293)
@@ -1,2 +1,2 @@
-SHA256 (znc-1.0.tar.gz) = a85539da42697b26e4d46205def36bb799f83d6aeef401d53c49ee674142062a
-SIZE (znc-1.0.tar.gz) = 1222361
+SHA256 (znc-1.2.tar.gz) = d9a2cd2a484ff23e6fc9cbde8dd8a43efbcd8d288afca7b1268914ca0d18701d
+SIZE (znc-1.2.tar.gz) = 1235150

Modified: head/irc/znc/pkg-plist
==============================================================================
--- head/irc/znc/pkg-plist	Fri Feb  7 20:02:26 2014	(r343292)
+++ head/irc/znc/pkg-plist	Fri Feb  7 20:09:51 2014	(r343293)
@@ -18,6 +18,7 @@ include/znc/SHA256.h
 include/znc/Server.h
 include/znc/Socket.h
 include/znc/Template.h
+include/znc/Threads.h
 include/znc/User.h
 include/znc/Utils.h
 include/znc/WebModules.h
@@ -57,6 +58,7 @@ lib/znc/lastseen.so
 lib/znc/listsockets.so
 lib/znc/log.so
 lib/znc/missingmotd.so
+lib/znc/modules_online.so
 lib/znc/nickserv.so
 lib/znc/notes.so
 lib/znc/notify_connect.so
@@ -74,6 +76,8 @@ lib/znc/stickychan.so
 lib/znc/watch.so
 lib/znc/webadmin.so
 libdata/pkgconfig/znc.pc
+man/man1/znc-buildmod.1.gz
+man/man1/znc.1.gz
 %%CYRUS%%lib/znc/cyrusauth.so
 %%OPENSSL%%lib/znc/awaystore.so
 %%OPENSSL%%lib/znc/cert.so



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