aboutsummaryrefslogtreecommitdiffstats
path: root/news/fidogate
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2002-01-06 07:43:13 +0800
committerdinoex <dinoex@FreeBSD.org>2002-01-06 07:43:13 +0800
commitdb413244c100322f6d3f1e786bfc25cd5faf1a45 (patch)
tree2882387616c92b6edb047d960dfb306df707aa23 /news/fidogate
parent4bdb304d7f696835f39fa3321ddcf6c2d692cbe9 (diff)
downloadfreebsd-ports-gnome-db413244c100322f6d3f1e786bfc25cd5faf1a45.tar.gz
freebsd-ports-gnome-db413244c100322f6d3f1e786bfc25cd5faf1a45.tar.zst
freebsd-ports-gnome-db413244c100322f6d3f1e786bfc25cd5faf1a45.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/Makefile45
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>