ports/126612: [UPDATE] news/nzbget

Jeff Burchell toxic at doobie.com
Mon Aug 18 01:50:02 UTC 2008


>Number:         126612
>Category:       ports
>Synopsis:       [UPDATE] news/nzbget
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 18 01:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Jeff Burchell
>Release:        FreeBSD 7.0-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD fbsd 7.0-RELEASE-p2 FreeBSD 7.0-RELEASE-p2 #0: Wed Jun 18 07:33:20 UTC 2008     root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
- Updated to 0.4.1
- Made use of autopar an option (requires libpar2, which is now in ports)
- moved PLIST_FILES to pkg-plist and allowed for NOPORTSDOC
- added vendor README to installed documentation

>How-To-Repeat:
>Fix:

Patch follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/news/nzbget/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile	3 Apr 2008 02:12:52 -0000	1.8
+++ Makefile	17 Aug 2008 19:11:27 -0000
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	nzbget
-PORTVERSION=	0.3.1
-PORTREVISION=	1
+PORTVERSION=	0.4.1
 CATEGORIES=	news
 MASTER_SITES=	SF
 
@@ -18,13 +17,12 @@
 		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.conf.example
+OPTIONS=	PARCHECK "Enable autopar/parcheck (Requires libpar2)" On
 
 .include <bsd.port.pre.mk>
 
@@ -32,7 +30,22 @@
 BROKEN=		Does not compile on 5.x
 .endif
 
+.if defined (WITHOUT_PARCHECK)
+CONFIGURE_ARGS+= --disable-parcheck
+.else
+CONFIGURE_ARGS+= --enable-parcheck
+LIB_DEPENDS+= par2:${PORTSDIR}/archivers/libpar2
+.endif
+
 post-install:
-	@${INSTALL_DATA} ${WRKSRC}/nzbget.conf.example ${PREFIX}/etc
+.if !defined(NOPORTDOCS)
+	${MKDIR} ${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/nzbget.conf.example ${EXAMPLESDIR}
+	${MKDIR} ${DOCSDIR}
+.for i in README
+	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
+.endif
+
 
 .include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/news/nzbget/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- distinfo	19 Mar 2008 12:38:00 -0000	1.5
+++ distinfo	17 Aug 2008 19:11:27 -0000
@@ -1,3 +1,3 @@
-MD5 (nzbget-0.3.1.tar.gz) = 20c4b3ec0cf2da7fa48dcb985d7a82b7
-SHA256 (nzbget-0.3.1.tar.gz) = 1baacc427e9bacf6b2dcfa50f283a9f62b2f467ac70ab6bd4d80e9d20e8e1bbb
-SIZE (nzbget-0.3.1.tar.gz) = 222351
+MD5 (nzbget-0.4.1.tar.gz) = 08803146d2ffc4792cc0f12cdbf03da0
+SHA256 (nzbget-0.4.1.tar.gz) = aae9e1b9b0eb7f4f6418a1e0e516c583fab43d37e6ecc1ffc4f729bdd7e4c69e
+SIZE (nzbget-0.4.1.tar.gz) = 251338
Index: pkg-plist
===================================================================
RCS file: pkg-plist
diff -N pkg-plist
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ pkg-plist	17 Aug 2008 19:11:27 -0000
@@ -0,0 +1,5 @@
+bin/nzbget
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%EXAMPLESDIR%%/nzbget.conf.example
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list