diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2002-01-05 23:43:13 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2002-01-05 23:43:13 +0000 |
commit | 2025ba84eedefaef90a7e7d9eaee3f6f03181f8f (patch) | |
tree | 701fd40b4de20d4b4b0bb2d2c9b977933243c1a2 /news/fidogate | |
parent | 261b278d90f0f680d1cae2b44e765007a34d3ca0 (diff) | |
download | freebsd-ports-2025ba84eedefaef90a7e7d9eaee3f6f03181f8f.zip |
- make portlint happier
- use DOCSDIR or EXAMPLESDIR
- get rid of some INTERACTIVE scrips in news/ifmail
Diffstat (limited to 'news/fidogate')
-rw-r--r-- | news/fidogate/Makefile | 45 |
1 files changed, 17 insertions, 28 deletions
diff --git a/news/fidogate/Makefile b/news/fidogate/Makefile index d19efe128d70..a83713490f35 100644 --- a/news/fidogate/Makefile +++ b/news/fidogate/Makefile @@ -25,6 +25,10 @@ FORBIDDEN= indefinite hang USE_GMAKE= yes USE_PERL5= yes +DOCLIST= fidogate.texi fidogate.txt gatebau94.txt kludge-rfc.doc \ msgid.doc qmail.txt texinfo.tex dirs.html index.html \ + template.html fido howto misc rfc gatebau/msgid.sgml \ + gatebau/msgid.tex gatebau/msgid.txt + .include <bsd.port.pre.mk> .if ${OSVERSION} < 300000 @@ -32,40 +36,25 @@ EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-perl .endif pre-configure: - @${MV} ${WRKSRC}/config.make ${WRKSRC}/config.make.sed - @${SED} -e 's/\$${PREFIX}/${PREFIX:S/\//\\\//g}/g' \ - < ${WRKSRC}/config.make.sed > ${WRKSRC}/config.make + @${PERL5} -pi -e "s=.{PREFIX}=${PREFIX}=g" ${WRKSRC}/config.make +.if defined(FIDOGATE_RUNAS) + @${PERL5} -pi -e "s/OWNER.*= news/OWNER = ${FIDOGATE_RUNAS}/" \ + ${WRKSRC}/config.make +.endif pre-install: ${MKDIR} ${PREFIX}/libexec/fidogate - ${MKDIR} ${PREFIX}/share/doc/fidogate/html - ${MKDIR} ${PREFIX}/share/doc/fidogate/info - ${MKDIR} ${PREFIX}/share/doc/fidogate/fido - ${MKDIR} ${PREFIX}/share/doc/fidogate/howto - ${MKDIR} ${PREFIX}/share/doc/fidogate/misc - ${MKDIR} ${PREFIX}/share/doc/fidogate/gatebau - -DOCLIST= \ - fidogate.texi fidogate.txt \ - gatebau94.txt kludge-rfc.doc msgid.doc \ - qmail.txt texinfo.tex \ - dirs.html index.html template.html \ - fido \ - howto \ - misc \ - rfc \ - gatebau/msgid.sgml \ - gatebau/msgid.tex \ - gatebau/msgid.txt +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR}/html ${DOCSDIR}/info ${DOCSDIR}/fido \ + ${DOCSDIR}/howto ${DOCSDIR}/misc ${DOCSDIR}/gatebau +.endif post-install: .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/fidogate - @cd ${WRKSRC}/doc; tar cf - ${DOCLIST} |\ - (cd ${PREFIX}/share/doc/fidogate; tar xf -) - ${MKDIR} ${PREFIX}/share/examples/fidogate - @cd ${WRKSRC}/examples; tar cf - . |\ - (cd ${PREFIX}/share/examples/fidogate; tar xf -) + ${MKDIR} ${DOCSDIR} + @${TAR} -C ${WRKSRC}/doc -cf - ${DOCLIST} | ${TAR} -C ${DOCSDIR} -xf - + ${MKDIR} ${EXAMPLESDIR} + @${TAR} -C ${WRKSRC}/examples -cf - . | ${TAR} -C ${EXAMPLESDIR} -xf - .endif .include <bsd.port.post.mk> |