Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Feb 2008 16:29:36 GMT
From:      Felippe de Meirelles Motta <lippemail@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/121225: [UPDATE] news/nzbget
Message-ID:  <200802291629.m1TGTaHW084117@www.freebsd.org>
Resent-Message-ID: <200802291640.m1TGe1CU055760@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         121225
>Category:       ports
>Synopsis:       [UPDATE] news/nzbget
>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:   Fri Feb 29 16:40:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Felippe de Meirelles Motta
>Release:        FreeBSD 7.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD 7.0-STABLE #1: Wed Feb 27 22:38:58 BRT 2008
    lippe@shire.freebsd.org:/usr/obj/usr/src/sys/GENERIC

>Description:
- Updated to 0.3.1
- Use CONFIGURE_ARGS to disable use of libpar2 (not present in ports)
- Update PLIST_FILES
- Remove unnecessary patches
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/news/nzbget/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	29 Sep 2007 17:19:44 -0000	1.6
+++ Makefile	29 Feb 2008 15:50:38 -0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	nzbget
-PORTVERSION=	0.2.3
+PORTVERSION=	0.3.1
 CATEGORIES=	news
 MASTER_SITES=	SF
 
@@ -17,21 +17,15 @@
 		uu.3:${PORTSDIR}/converters/uulib
 
 GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--disable-parcheck
 CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
 		CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" LDFLAGS="${PTHREAD_LIBS}" \
 		LOCALBASE="${LOCALBASE}"
 USE_GMAKE=	yes
 
-PLIST_FILES=	bin/nzbget etc/nzbget.cfg.example
-
-post-extract:
-	@${LN} -sf ${WRKSRC}/uulib/uudeview.h ${WRKSRC}/uudeview.h
-
-post-patch:
-	@${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' ${WRKSRC}/configure
-	@${REINPLACE_CMD} -e '187s/int/intptr_t/' ${WRKSRC}/ArticleDownloader.cpp
+PLIST_FILES=	bin/nzbget etc/nzbget.conf.example
 
 post-install:
-	${INSTALL_DATA} ${WRKSRC}/nzbget.cfg.example ${PREFIX}/etc
+	@${INSTALL_DATA} ${WRKSRC}/nzbget.conf.example ${PREFIX}/etc
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/news/nzbget/distinfo,v
retrieving revision 1.4
diff -u -r1.4 distinfo
--- distinfo	15 Mar 2006 11:57:14 -0000	1.4
+++ distinfo	29 Feb 2008 15:50:38 -0000
@@ -1,3 +1,3 @@
-MD5 (nzbget-0.2.3.tar.gz) = 25554537c7641bd36f573a5f7c89b449
-SHA256 (nzbget-0.2.3.tar.gz) = 9bedeb890f7ef49d466f95d76ffea1d4d22788d6dc760c96c6433bff3ff1f6b6
-SIZE (nzbget-0.2.3.tar.gz) = 202660
+MD5 (nzbget-0.3.1.tar.gz) = 20c4b3ec0cf2da7fa48dcb985d7a82b7
+SHA256 (nzbget-0.3.1.tar.gz) = 1baacc427e9bacf6b2dcfa50f283a9f62b2f467ac70ab6bd4d80e9d20e8e1bbb
+SIZE (nzbget-0.3.1.tar.gz) = 222351
Index: files/patch-Connection.cpp
===================================================================
RCS file: files/patch-Connection.cpp
diff -N files/patch-Connection.cpp
--- files/patch-Connection.cpp	17 Apr 2004 21:26:30 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- Connection.cpp.orig	Fri Apr  2 18:55:19 2004
-+++ Connection.cpp	Sat Apr 17 23:12:22 2004
-@@ -27,6 +27,8 @@
- #include <config.h>
- #endif
- 
-+#include <sys/types.h>
-+
- #include <string.h>
- #include <stdlib.h>
- #include <netdb.h>
Index: files/patch-Coordinator.cpp
===================================================================
RCS file: files/patch-Coordinator.cpp
diff -N files/patch-Coordinator.cpp
--- files/patch-Coordinator.cpp	20 Apr 2005 13:26:32 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,10 +0,0 @@
---- Coordinator.cpp~	Wed Feb 23 09:05:23 2005
-+++ Coordinator.cpp	Fri Apr 15 15:41:42 2005
-@@ -28,6 +28,7 @@
- #endif
- 
- #include <unistd.h>
-+#include <libgen.h>
- 
- #include "global.h"
- #include "Coordinator.h"
Index: files/patch-Decoder.cpp
===================================================================
RCS file: files/patch-Decoder.cpp
diff -N files/patch-Decoder.cpp
--- files/patch-Decoder.cpp	17 Apr 2004 21:26:30 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- Decoder.cpp.orig	Wed Feb 25 13:46:10 2004
-+++ Decoder.cpp	Sat Apr 17 23:14:45 2004
-@@ -29,6 +29,8 @@
- 
- #define PROTOTYPES
- 
-+#include <unistd.h>
-+
- #include <stdlib.h>
- #include <stdio.h>
- #include <uudeview.h>
Index: files/patch-Makefile.in
===================================================================
RCS file: files/patch-Makefile.in
diff -N files/patch-Makefile.in
--- files/patch-Makefile.in	20 Apr 2005 13:26:32 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,55 +0,0 @@
---- Makefile.in.orig	Sun Feb 27 12:59:05 2005
-+++ Makefile.in	Fri Apr 15 16:31:02 2005
-@@ -19,8 +19,8 @@
- CP		= @CP@
- CFLAGS		= @CFLAGS@ 
- DEFS		= @DEFS@ -DVERSION=\"$(VERSION)\"
--CPPFLAGS	= -I./uulib @CPPFLAGS@
--LDFLAGS		= -L./uulib @LDFLAGS@
-+CPPFLAGS	= @CPPFLAGS@
-+LDFLAGS		= @LDFLAGS@
- LIBS		= -luu -lncurses @LIBS@
- INSTALL		= @INSTALL@
- 
-@@ -94,19 +94,14 @@
- 
- # Executable programmes
- #
--nzbget: $(OBJECTS) nzbget.o ./uulib/libuu.a
-+nzbget: $(OBJECTS) nzbget.o
- 	$(CXX) $(CFLAGS) -o $@ $(OBJECTS) nzbget.o $(LDFLAGS) $(LIBS)
- 	@echo "Build succeeded."
- 
--./uulib/libuu.a:
--	make -C uulib
--
- clean:
--	-cd ./uulib && make clean && cd ..
- 	-$(RM) -f *.o $(PROGRAMS) .depend libuu.a
- 
- distclean: clean
--	-cd ./uulib && make distclean && cd ..
- 	-$(RM) -f Makefile config.status config.log config.h .depend
- 
- 
-@@ -123,17 +118,15 @@
- 
- distrib:
- 	$(MKDIR) nzbget-$(VERSION)
--	$(MKDIR) nzbget-$(VERSION)/uulib
- 	$(CP) -av $(DISTFILES) nzbget-$(VERSION)
--	$(CP) -av $(UUDISTFILES) nzbget-$(VERSION)/uulib
- 	cd nzbget-$(VERSION) && ./configure
--	cd nzbget-$(VERSION) && make
--	cd nzbget-$(VERSION) && make distclean
-+	cd nzbget-$(VERSION) && ${MAKE}
-+	cd nzbget-$(VERSION) && ${MAKE} distclean
- 	tar -czf nzbget-$(VERSION).tar.gz nzbget-$(VERSION)
- 	$(RM) -r nzbget-$(VERSION)
- 
- install: nzbget
--	$(INSTALL) nzbget /usr/bin/nzbget
-+	$(INSTALL) nzbget ${PREFIX}/bin/nzbget
- 
- 
- -include .depend
Index: files/patch-NCursesFrontend.cpp
===================================================================
RCS file: files/patch-NCursesFrontend.cpp
diff -N files/patch-NCursesFrontend.cpp
--- files/patch-NCursesFrontend.cpp	20 Apr 2005 13:26:32 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,19 +0,0 @@
---- NCursesFrontend.cpp~	Wed Feb 23 09:05:23 2005
-+++ NCursesFrontend.cpp	Fri Apr 15 15:43:27 2005
-@@ -27,6 +27,7 @@
- #include <unistd.h>
- #include <stdarg.h>
- #include <signal.h>
-+#include <libgen.h>
- 
- #include "NCursesFrontend.h"
- 
-@@ -342,7 +343,7 @@
- 					  NCURSES_COLORPAIR_DEBUG};
- 
- 	NCOLORON( iMessageTypeColor[Msg.m_eType] );
--	mvprintw( iRow, 0, szMessageType[ Msg.m_eType ] );
-+	mvprintw( iRow, 0, (char *)szMessageType[ Msg.m_eType ] );
- 	NCOLOROFF( iMessageTypeColor[Msg.m_eType] );
- 
- 	char szBuffer[512];
Index: files/patch-NNTPConnection.h
===================================================================
RCS file: files/patch-NNTPConnection.h
diff -N files/patch-NNTPConnection.h
--- files/patch-NNTPConnection.h	17 Apr 2004 21:26:30 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,10 +0,0 @@
---- NNTPConnection.h.orig	Fri Apr  2 18:55:19 2004
-+++ NNTPConnection.h	Sat Apr 17 22:53:55 2004
-@@ -26,6 +26,7 @@
- #ifndef NNTPCONNECTION_H
- #define NNTPCONNECTION_H
- 
-+#include <sys/types.h>
- #include <sys/socket.h>
- #include <stdio.h>
- #include <vector>
Index: files/patch-NZBQueue.cpp
===================================================================
RCS file: files/patch-NZBQueue.cpp
diff -N files/patch-NZBQueue.cpp
--- files/patch-NZBQueue.cpp	20 Apr 2005 13:26:32 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,10 +0,0 @@
---- NZBQueue.cpp~	Wed Feb 23 09:05:23 2005
-+++ NZBQueue.cpp	Fri Apr 15 15:40:41 2005
-@@ -26,6 +26,7 @@
- #ifdef HAVE_CONFIG_H
- #include <config.h>
- #endif
-+#include <libgen.h>
- 
- #include "NZBQueue.h"
- #include "global.h"
Index: files/patch-configure
===================================================================
RCS file: /home/ncvs/ports/news/nzbget/files/patch-configure,v
retrieving revision 1.1
diff -u -r1.1 patch-configure
--- files/patch-configure	17 Apr 2004 21:26:30 -0000	1.1
+++ files/patch-configure	29 Feb 2008 15:50:38 -0000
@@ -1,24 +1,14 @@
---- configure.orig	Thu Feb 26 15:49:46 2004
-+++ configure	Tue Apr 13 22:55:38 2004
-@@ -1303,13 +1303,19 @@
-     CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
-     PLATFORM="Linux"
+--- configure.old	2008-02-29 12:18:26.000000000 -0300
++++ configure	2008-02-29 12:20:35.000000000 -0300
+@@ -2362,7 +2362,10 @@
+     CPPFLAGS1="${CPPFLAGS} -D_GNU_SOURCE"
      ;;
--  *-solaris*)
-+  *-freebsd*)
-+    LIBPREF="${LOCALBASE}"
+   *-freebsd*)
+-    LIBPREF1="/usr/local"
++    LIBPREF1="${LOCALBASE}"
 +    CFLAGS="${CFLAGS}"
 +    CPPFLAGS="${CPPFLAGS}"
 +    PLATFORM="FreeBSD"
-+    ;;
-+   *-solaris*)
-     LIBPREF="/usr/local"
-     PLATFORM="SunOS"
      ;;
- esac
- 
--CFLAGS="-Wall -g -O0 -pipe" CPPFLAGS="-I. ${CPPFLAGS}"
-+CFLAGS="${CFLAGS} -Wall" CPPFLAGS="-I. ${CPPFLAGS}"
- 
- ac_ext=cc
- ac_cpp='$CXXCPP $CPPFLAGS'
+   *-solaris*)
+     LIBPREF1="/usr"


>Release-Note:
>Audit-Trail:
>Unformatted:



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