summaryrefslogtreecommitdiffstats
path: root/news/cnews
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-11-26 18:25:20 +0000
committersteve <steve@FreeBSD.org>1999-11-26 18:25:20 +0000
commit783f6294bec9b3c4bb110263ca4803cf9bb9b6ab (patch)
tree62b672a82fc0e11adcea169b77532dd1fc6db9f6 /news/cnews
parent53669afb1a1c87a7a1cdaa7fdc13e16a76f2618c (diff)
downloadFreeBSD-ports-783f6294bec9b3c4bb110263ca4803cf9bb9b6ab.zip
FreeBSD-ports-783f6294bec9b3c4bb110263ca4803cf9bb9b6ab.tar.gz
Mark broken for anything except 2.x because our system awk (3.0.3) causes
crashes and corrupted output. PR: 14420 Submitted by: maintainer
Diffstat (limited to 'news/cnews')
-rw-r--r--news/cnews/Makefile14
-rw-r--r--news/cnews/pkg-plist4
2 files changed, 16 insertions, 2 deletions
diff --git a/news/cnews/Makefile b/news/cnews/Makefile
index 33c1ad7..7c53201 100644
--- a/news/cnews/Makefile
+++ b/news/cnews/Makefile
@@ -44,6 +44,7 @@ MAN8= cnewsdo.8cn expire.8cn explode.8cn mergeactive.8 \
mkhistory.8cn newsaux.8cn newsbatch.8cn newsmail.8cn \
newsmaint.8cn newsoverview.8 relaynews.8cn report.8cn \
rnews.8cn
+PLIST= ${WRKDIR}/.PLIST.sed
MODIFY= conf/quiz.def \
conf/substitutions \
@@ -55,6 +56,13 @@ NEWSARTS?= /var/news
NEWSOV?= /var/news/over.view
PGPVERIFY?= pgpverify-1.12
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 300000
+.else
+BROKEN= gawk need to be updated to 3.0.4
+.endif
+
pre-patch:
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${PGPVERIFY} ${WRKSRC}/${PGPVERIFY}
@@ -70,6 +78,10 @@ pre-configure:
-e "s=/usr/local/bin=${PREFIX}/bin=" \
${WRKSRC}/${i}.sed >${WRKSRC}/${i}
.endfor
+ @${SED} \
+ -e "s=news/cnewsbin=${NEWSBIN:S=${PREFIX}/==}=" \
+ -e "s=news/lib=${NEWSCTL:S=${PREFIX}/==}=" \
+ ${PKGDIR}/PLIST >${PLIST}
do-install:
${RM} -f ${PREFIX}/bin/inews
@@ -106,4 +118,4 @@ do-install:
@${ECHO} "!!!!!!!!"
@${ECHO} ""
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/news/cnews/pkg-plist b/news/cnews/pkg-plist
index 2ea7609..943a885 100644
--- a/news/cnews/pkg-plist
+++ b/news/cnews/pkg-plist
@@ -150,5 +150,7 @@ news/lib/whoami
@dirrm news/cnewsbin/maint
@dirrm news/cnewsbin/nov
@dirrm news/cnewsbin/relay
-@dirrm news/lib/bin
@dirrm news/cnewsbin
+@dirrm news/lib/bin
+@dirrm news/lib
+@dirrm news
OpenPOWER on IntegriCloud