diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-10-17 13:14:13 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-10-17 13:14:13 +0000 |
commit | d37383893e958fe7b05d70eba72bafd986310f1a (patch) | |
tree | 08db525f07e03e222a3e813c65ce6ffb64cd267e /mail/pgp4pine | |
parent | ec12252192902d4d5d360ddd0a28df340a278a30 (diff) | |
download | ports-d37383893e958fe7b05d70eba72bafd986310f1a.tar.gz ports-d37383893e958fe7b05d70eba72bafd986310f1a.zip |
handle NOPORTDOCS
installs sample files
PR: 30903
Submitted by: Cyrille Lefevre <clefevre@citeweb.net>
Notes
Notes:
svn path=/head/; revision=48868
Diffstat (limited to 'mail/pgp4pine')
-rw-r--r-- | mail/pgp4pine/Makefile | 64 | ||||
-rw-r--r-- | mail/pgp4pine/pkg-message | 9 | ||||
-rw-r--r-- | mail/pgp4pine/pkg-plist | 16 |
3 files changed, 77 insertions, 12 deletions
diff --git a/mail/pgp4pine/Makefile b/mail/pgp4pine/Makefile index 503e2d13f6ac..43046dedbcec 100644 --- a/mail/pgp4pine/Makefile +++ b/mail/pgp4pine/Makefile @@ -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> diff --git a/mail/pgp4pine/pkg-message b/mail/pgp4pine/pkg-message index 3dec9e0a7547..ca6eae1ea64b 100644 --- a/mail/pgp4pine/pkg-message +++ b/mail/pgp4pine/pkg-message @@ -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. diff --git a/mail/pgp4pine/pkg-plist b/mail/pgp4pine/pkg-plist index f2a703dad27d..e2ba1bca508d 100644 --- a/mail/pgp4pine/pkg-plist +++ b/mail/pgp4pine/pkg-plist @@ -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 |