From neuhauser@chello.cz  Tue Apr 13 10:24:27 2004
Return-Path: <neuhauser@chello.cz>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2F99A16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 13 Apr 2004 10:24:27 -0700 (PDT)
Received: from smtp.dkm.cz (smtp.dkm.cz [62.24.64.34])
	by mx1.FreeBSD.org (Postfix) with SMTP id 594CF43D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 13 Apr 2004 10:24:26 -0700 (PDT)
	(envelope-from neuhauser@chello.cz)
Received: (qmail 51526 invoked by uid 0); 13 Apr 2004 17:24:25 -0000
Received: from r3al16.mistral.cz (HELO isis.wad.cz) (213.220.229.16)
  by smtp.dkm.cz with SMTP; 13 Apr 2004 17:24:25 -0000
Received: by isis.wad.cz (Postfix, from userid 1001)
	id 6C7B72FDA01; Tue, 13 Apr 2004 18:24:57 +0200 (CEST)
Message-Id: <20040413162457.6C7B72FDA01@isis.wad.cz>
Date: Tue, 13 Apr 2004 18:24:57 +0200 (CEST)
From: Roman Neuhauser <neuhauser@chello.cz>
To: FreeBSD-gnats-submit@freebsd.org
Cc: clement@freebsd.org
Subject: FILES-ify net/pear-Net_NNTP
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         65497
>Category:       ports
>Synopsis:       FILES-ify net/pear-Net_NNTP
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    clement
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 13 10:30:17 PDT 2004
>Closed-Date:    Wed Apr 14 01:21:28 PDT 2004
>Last-Modified:  Wed Apr 14 01:21:28 PDT 2004
>Originator:     Roman Neuhauser
>Release:        FreeBSD 4.9-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD isis.wad.cz 4.9-RELEASE-p2 FreeBSD 4.9-RELEASE-p2 #3: Sun Mar 7 02:11:16 CET 2004 root@isis.wad.cz:/usr/obj/usr/src/sys/FREEPUPPY2_6 i386


	
>Description:
	Clement,

    what do you think about the attached patch? The port would install
    the README file in EXAMPLESDIR, but if you read it you'll see it
    only comments on the contents of the example php files, so it IMO
    doesn't make sense installing it separately.

>How-To-Repeat:
	Don't forget to remove the emptied pkg-plist.
>Fix:

	

--- net-pear-Net_NNTP.FILES.patch begins here ---
Index: net/pear-Net_NNTP/Makefile
===================================================================
RCS file: /home/ncvs/ports/net/pear-Net_NNTP/Makefile,v
retrieving revision 1.8
diff -u -u -r1.8 Makefile
--- net/pear-Net_NNTP/Makefile	13 Jan 2004 15:04:47 -0000	1.8
+++ net/pear-Net_NNTP/Makefile	12 Apr 2004 23:25:59 -0000
@@ -15,32 +15,11 @@
 BUILD_DEPENDS=	${PEARDIR}/Net/Socket.php:${PORTSDIR}/net/pear-Net_Socket
 RUN_DEPENDS=	${BUILD_DEPENDS}
 
+CATEGORY=	Net
+FILES=		NNTP.php NNTP/Protocol.php NNTP/Header.php NNTP/Message.php
+EXAMPLES=	README read.php group.php index.php
+_EXAMPLESDIR=	examples/news.php.net
+ 
 .include <bsd.port.pre.mk>
 .include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
-
-LIB_FILES=	NNTP/Realtime.php NNTP/Protocol.php NNTP/Header.php NNTP/Message.php
-PORTDOCS=	README
-
-.if defined(NOPORTEXAMPLES)
-PLIST_SUB+=		PORTEXAMPLES="@comment "
-.else
-PLIST_SUB+=		PORTEXAMPLES=""
-.endif
-
-do-install:
-	@${MKDIR} ${PEARDIR}/Net/NNTP
-	@${CP} -p ${WRKSRC}/NNTP.php ${PEARDIR}/Net
-.for FILE in ${LIB_FILES}
-	@${CP} -p ${WRKSRC}/${FILE} ${PEARDIR}/Net/NNTP
-.endfor
-	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/Net
-.if !(NOPORTEXAMPLES)
-	@${MKDIR} ${EXAMPLESDIR}
-	@${INSTALL_DATA} ${WRKSRC}/examples/news.php.net/*.php ${EXAMPLESDIR}
-.endif
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	@${INSTALL_DATA} ${WRKSRC}/examples/news.php.net/${PORTDOCS} ${DOCSDIR}
-.endif
-
 .include <bsd.port.post.mk>
Index: net/pear-Net_NNTP/pkg-plist
===================================================================
RCS file: /home/ncvs/ports/net/pear-Net_NNTP/pkg-plist,v
retrieving revision 1.4
diff -u -u -r1.4 pkg-plist
--- net/pear-Net_NNTP/pkg-plist	5 Dec 2003 17:39:37 -0000	1.4
+++ net/pear-Net_NNTP/pkg-plist	12 Apr 2004 23:06:20 -0000
@@ -1,13 +0,0 @@
-%%PEARDIR%%/Net/NNTP.php
-%%PEARDIR%%/Net/NNTP/Header.php
-%%PEARDIR%%/Net/NNTP/Message.php
-%%PEARDIR%%/Net/NNTP/Protocol.php
-%%PEARDIR%%/Net/NNTP/Realtime.php
-%%PKGREGDIR%%/package.xml
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/read.php
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/group.php
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/index.php
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
-@dirrm %%PEARDIR%%/Net/NNTP
-@dirrm %%PKGREGDIR%%
-@unexec rmdir %D/share/pear/Net 2> /dev/null || true
--- net-pear-Net_NNTP.FILES.patch ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->clement 
Responsible-Changed-By: clement 
Responsible-Changed-When: Tue Apr 13 10:49:34 PDT 2004 
Responsible-Changed-Why:  
Mine. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=65497 
State-Changed-From-To: open->closed 
State-Changed-By: clement 
State-Changed-When: Wed Apr 14 01:21:11 PDT 2004 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=65497 
>Unformatted:
