From root@gits.dyndns.org  Fri Sep 28 17:27:10 2001
Return-Path: <root@gits.dyndns.org>
Received: from smtp.noos.fr (aragon.noos.net [212.198.2.75])
	by hub.freebsd.org (Postfix) with ESMTP id A917B37B40B
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 28 Sep 2001 17:27:09 -0700 (PDT)
Received: (qmail 28611920 invoked by uid 0); 29 Sep 2001 00:27:07 -0000
Received: from unknown (HELO gits.dyndns.org) ([212.198.231.187]) (envelope-sender <root@gits.dyndns.org>)
          by 212.198.2.75 (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP
          for <holger@flatline.de>; 29 Sep 2001 00:27:07 -0000
Received: (from root@localhost)
	by gits.dyndns.org (8.11.6/8.11.6) id f8T0R6f82045;
	Sat, 29 Sep 2001 02:27:06 +0200 (CEST)
	(envelope-from root)
Message-Id: <200109290027.f8T0R6f82045@gits.dyndns.org>
Date: Sat, 29 Sep 2001 02:27:06 +0200 (CEST)
From: Cyrille Lefevre <clefevre@citeweb.net>
Reply-To: Cyrille Lefevre <clefevre@citeweb.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: holger@flatline.de
Subject: Updated port: mail/pgp4pine (NOPORTDOCS added, etc.)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         30903
>Category:       ports
>Synopsis:       Updated port: mail/pgp4pine (NOPORTDOCS added, etc.)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 28 17:30:00 PDT 2001
>Closed-Date:    Wed Oct 17 06:14:31 PDT 2001
>Last-Modified:  Wed Oct 17 06:14:47 PDT 2001
>Originator:     Cyrille Lefevre
>Release:        FreeBSD 4.4-RC i386
>Organization:
ACME
>Environment:
System: FreeBSD gits 4.4-RC FreeBSD 4.4-RC #7: Thu Sep 20 12:40:17 CEST 2001 root@gits:/disk2/4.x-stable/src/sys/compile/CUSTOM i386

>Description:
	Makefile
		PORTREVISION bumped
		pkg-message handling added
		pgp4pinerc.example moved from DOCSDIR to SAMPLEDIR
		insert_entries.pl and remove_entries.pl installed to SAMPLEDIR
		NOPORTDOCS added
	pkg-message
		changed a lot
	pkg-plist
		@comment $FreeBSD$ added
		NOPORTDOCS added
		sample files added
>How-To-Repeat:
	n/a
>Fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/pgp4pine/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile	2001/06/01 17:47:25	1.7
+++ Makefile	2001/09/28 07:14:28
@@ -7,16 +7,76 @@
 
 PORTNAME=	pgp4pine
 PORTVERSION=	1.76
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	mail
 MASTER_SITES=	http://pgp4pine.flatline.de/
 DISTNAME=	${PORTNAME}-${PORTVERSION}-1
 
 MAINTAINER=	holger@flatline.de
 
+# Global variables
+#
+
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
-MAN1=		pgp4pine.1
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS= --with-docdir=${PREFIX}/share/doc
+
+MAN1=		pgp4pine.1
+
+MSG_FILE=	${PKGDIR}/pkg-message
+PKGMESSAGE=	${WRKDIR}/pkg-message
+
+# Local variables
+#
+
+SAMPLEDIR=	${PREFIX}/share/examples/${PORTNAME}
+SCRIPTDIR=	${SAMPLEDIR}
+
+# Post-patch
+#
+
+post-patch: patch-path patch-message
+
+patch-path:
+	@${PERL} -pi.fbsd -e \
+		's|/usr/local|${PREFIX}|g;s|/doc/|/share/examples/|g' \
+		${WRKSRC}/INSTALL \
+		${WRKSRC}/insert_entries.pl ${WRKSRC}/remove_entries.pl
+
+patch-message:
+	@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}
+
+# Post-configure
+#
+
+post-configure: patch-man
+
+patch-man:
+	@${PERL} -pi.fbsd -e 's|/doc/|/examples/|g' \
+		${WRKSRC}/pgp4pine/docs/en/pgp4pine.1
+
+# Post-install
+#
+
+post-install: install-sample install-script uninstall-doc display-message
+
+install-sample:
+	@${MKDIR} ${SAMPLEDIR}
+	@${MV} ${DOCSDIR}/pgp4pinerc.example ${SAMPLEDIR}
+
+install-script:
+	@${MKDIR} ${SCRIPTDIR}
+	@${INSTALL_SCRIPT} ${WRKSRC}/insert_entries.pl \
+			   ${WRKSRC}/remove_entries.pl ${SCRIPTDIR}
+
+uninstall-doc:
+.if defined(NOPORTDOCS)
+	@${RM} -rf ${DOCSDIR}
+.endif
+
+display-message:
+	@${ECHO_MSG}
+	@${CAT} ${PKGMESSAGE}
+	@${ECHO_MSG}
 
 .include <bsd.port.mk>
Index: pkg-message
===================================================================
RCS file: /home/ncvs/ports/mail/pgp4pine/pkg-message,v
retrieving revision 1.3
diff -u -r1.3 pkg-message
--- pkg-message	2001/04/17 11:26:26	1.3
+++ pkg-message	2001/09/28 00:57:08
@@ -1,4 +1,5 @@
-You got to manually set up Pine to use pgp4pine!
-Read ${PREFIX}/share/doc/pgp4pine/INSTALL.TXT to know how !
-You can use the ${PORTSDIR}/mail/pgp4pine/insert_entries.pl 
-and remove_entries.pl scripts for this purpose.
+****  You got to manually set up Pine to use pgp4pine.
+      Read %%PREFIX%%/share/doc/pgp4pine/INSTALL to know how.
+      You can use the %%PREFIX%%/share/examples/pgp4pine/insert_entries.pl
+      and %%PREFIX%%/share/examples/pgp4pine/remove_entries.pl scripts
+      for this purpose.
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/mail/pgp4pine/pkg-plist,v
retrieving revision 1.3
diff -u -r1.3 pkg-plist
--- pkg-plist	2001/04/17 11:26:26	1.3
+++ pkg-plist	2001/09/28 00:55:15
@@ -1,7 +1,11 @@
+@comment $FreeBSD$
 bin/pgp4pine
-share/doc/pgp4pine/FAQ
-share/doc/pgp4pine/INSTALL
-share/doc/pgp4pine/PGP_MIME
-share/doc/pgp4pine/README
-share/doc/pgp4pine/pgp4pinerc.example
-@dirrm share/doc/pgp4pine
+%%PORTDOCS%%share/doc/pgp4pine/FAQ
+%%PORTDOCS%%share/doc/pgp4pine/INSTALL
+%%PORTDOCS%%share/doc/pgp4pine/PGP_MIME
+%%PORTDOCS%%share/doc/pgp4pine/README
+share/examples/pgp4pine/insert_entries.pl
+share/examples/pgp4pine/pgp4pinerc.example
+share/examples/pgp4pine/remove_entries.pl
+@dirrm share/examples/pgp4pine
+%%PORTDOCS%%@dirrm share/doc/pgp4pine
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Wed Oct 17 06:14:31 PDT 2001 
State-Changed-Why:  
committed, thanks 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30903 
>Unformatted:
