From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Feb 12 08:50:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7CBC44E5 for ; Tue, 12 Feb 2013 08:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 61B4CDD0 for ; Tue, 12 Feb 2013 08:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1C8o1L1033162 for ; Tue, 12 Feb 2013 08:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1C8o1A5033160; Tue, 12 Feb 2013 08:50:01 GMT (envelope-from gnats) Date: Tue, 12 Feb 2013 08:50:01 GMT Message-Id: <201302120850.r1C8o1A5033160@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org Cc: From: Alex Kozlov Subject: Re: ports/174306: [maintainer] news/nzbget: update to 9.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Alex Kozlov List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2013 08:50:01 -0000 The following reply was made to PR ports/174306; it has been noted by GNATS. From: Alex Kozlov To: bug-followup@FreeBSD.org, Jeff Burchell Cc: Subject: Re: ports/174306: [maintainer] news/nzbget: update to 9.0 Date: Tue, 12 Feb 2013 10:48:04 +0200 --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi There is no nzbget.conf.example in the new release, so I added installation of nzbget.conf.sample and nzbget.conf if latter doesn't exist already. Please see the patch. Also please fix plist: http://people.freebsd.org/~ak/nzbget-9.1.log.bz2 -- Alex --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch.txt" Index: news/nzbget/Makefile @@ -1,22 +1,17 @@ -# New ports collection makefile for: nzbget -# Date created: 13 April 2004 -# Whom: Lewis Thompson -# +# Created by: Lewis Thompson # $FreeBSD: ports/news/nzbget/Makefile,v 1.21 2012/11/17 06:00:43 svnexp Exp $ -# PORTNAME= nzbget -PORTVERSION= 0.8.0 +PORTVERSION= 9.1 CATEGORIES= news MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION} MAINTAINER= toxic@doobie.com -COMMENT= A binary newsreader supporting NZB files +COMMENT= Binary newsreader supporting NZB files LICENSE= GPLv2 -LICENSE_FILE= ${WRKSRC}/COPYING -LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 \ +LIB_DEPENDS= xml2:${PORTSDIR}/textproc/libxml2 \ sigc-2:${PORTSDIR}/devel/libsigc++20 GNU_CONFIGURE= yes @@ -27,41 +22,41 @@ CFLAGS+= ${PTHREAD_CFLAGS} USE_GMAKE= yes -OPTIONS= PARCHECK "Enable autopar/parcheck (Requires libpar2)" On -OPTIONS+= TLSCHECK "Use GNUTLS for SSL" On -OPTIONS+= OSSLCHECK "Use OpenSSL for SSL" Off +PAR_DESC= Support verifying/repairing with par2 files +OPTIONS_DEFINE= PAR +OPTIONS_SINGLE= TLSLIB +OPTIONS_SINGLE_TLSLIB= GNUTLS OPENSSL +OPTIONS_DEFAULT= PAR GNUTLS -PLIST_FILES= bin/nzbget PORTDOCS= README -PORTEXAMPLES= nzbget.conf.example -.include +.include -.if defined (WITHOUT_PARCHECK) -CONFIGURE_ARGS+= --disable-parcheck +.if ${PORT_OPTIONS:MPAR} + CONFIGURE_ARGS+= --enable-parcheck --disable-libpar2-bugfixes-check + LIB_DEPENDS+= par2:${PORTSDIR}/archivers/libpar2 .else -CONFIGURE_ARGS+= --enable-parcheck -LIB_DEPENDS+= par2:${PORTSDIR}/archivers/libpar2 + CONFIGURE_ARGS+= --disable-parcheck .endif -.if defined (WITH_OSSLCHECK) -CONFIGURE_ARGS+= --with-tlslib=OpenSSL +.if ${PORT_OPTIONS:MOPENSSL} + CONFIGURE_ARGS+= --with-tlslib=OpenSSL .endif -.if defined (WITH_TLSCHECK) -CONFIGURE_ARGS+= --with-tlslib=GnuTLS -LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls -LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt +.if ${PORT_OPTIONS:MGNUTLS} + CONFIGURE_ARGS+= --with-tlslib=GnuTLS + LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls + LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt .endif post-install: -.if !defined(NOPORTDOCS) + ${INSTALL_DATA} ${WRKSRC}/nzbget.conf ${PREFIX}/etc/nzbget.conf.sample + @[ -f ${PREFIX}/etc/nzbget.conf ] || ${CP} ${PREFIX}/etc/nzbget.conf.sample \ + ${PREFIX}/etc/nzbget.conf + +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif -.if !defined(NOPORTEXAMPLES) - ${MKDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/nzbget.conf.example ${EXAMPLESDIR} -.endif -.include +.include Index: news/nzbget/distinfo @@ -1,2 +1,2 @@ -SHA256 (nzbget-0.8.0.tar.gz) = 646939596097fafdeb0b4064b433463419e7d0d9af7fe32f6689d6b95ad77d95 -SIZE (nzbget-0.8.0.tar.gz) = 321351 +SHA256 (nzbget-9.1.tar.gz) = 0cd20e1c78359c720862c19c5fd908dc10d6b54658441b86f9caaa71f66e5633 +SIZE (nzbget-9.1.tar.gz) = 658935 Index: news/nzbget/files/patch-TLS.cpp @@ -1,32 +0,0 @@ ---- TLS.cpp.orig 2011-06-14 23:47:22.000000000 +0200 -+++ TLS.cpp 2012-08-31 09:27:41.000000000 +0200 -@@ -908,7 +908,7 @@ - char *buf; - int bufsize; - /* needed to get the DNS subjectAltNames: */ -- STACK *subj_alt_names; -+ STACK_OF(GENERAL_NAME) *subj_alt_names; - int subj_alt_names_count; - GENERAL_NAME *subj_alt_name; - /* did we find a name matching hostname? */ -@@ -960,7 +960,7 @@ - /* Try the DNS subjectAltNames. */ - match_found = 0; - if ((subj_alt_names = -- (STACK*)X509_get_ext_d2i(x509cert, NID_subject_alt_name, NULL, NULL))) -+ (STACK_OF(GENERAL_NAME) *)X509_get_ext_d2i(x509cert, NID_subject_alt_name, NULL, NULL))) - { - subj_alt_names_count = sk_GENERAL_NAME_num(subj_alt_names); - for (i = 0; i < subj_alt_names_count; i++) -@@ -1105,7 +1105,11 @@ - - #ifdef HAVE_OPENSSL - -+ #if OPENSSL_VERSION_NUMBER >= 0x10000000L -+ const SSL_METHOD *ssl_method = NULL; -+ #else - SSL_METHOD *ssl_method = NULL; -+ #endif - - ssl_method = force_sslv3 ? SSLv3_client_method() : SSLv23_client_method(); - if (!ssl_method) Index: news/nzbget/pkg-plist @@ -0,0 +1,4 @@ +bin/nzbget +etc/nzbget.conf.sample +@unexec if cmp -s %D/etc/nzbget.conf %D/etc/nzbget.conf.sample; then rm -f %D/etc/nzbget.conf; fi +@exec [ -f %D/etc/nzbget.conf ] || cp %D/etc/nzbget.conf.sample %D/etc/nzbget.conf --8t9RHnE3ZwKMSgU+--