aboutsummaryrefslogtreecommitdiffstats
path: root/news/nntp
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-11-27 02:22:26 +0800
committersteve <steve@FreeBSD.org>1999-11-27 02:22:26 +0800
commit53669afb1a1c87a7a1cdaa7fdc13e16a76f2618c (patch)
tree49dd171baa123102a788a4a3902e73b1bc3069d8 /news/nntp
parent01aa9244ab115929dcaae49b6699b1869b2046a2 (diff)
downloadfreebsd-ports-gnome-53669afb1a1c87a7a1cdaa7fdc13e16a76f2618c.tar.gz
freebsd-ports-gnome-53669afb1a1c87a7a1cdaa7fdc13e16a76f2618c.tar.zst
freebsd-ports-gnome-53669afb1a1c87a7a1cdaa7fdc13e16a76f2618c.zip
Update to reflect the new configuration of the cnews port.
PR: 14421 Submitted by: Dirk Meyer <dirk.meyer@dinoex.sub.org>
Diffstat (limited to 'news/nntp')
-rw-r--r--news/nntp/Makefile26
1 files changed, 25 insertions, 1 deletions
diff --git a/news/nntp/Makefile b/news/nntp/Makefile
index 5dcfd08adc94..0cd37cff6ed3 100644
--- a/news/nntp/Makefile
+++ b/news/nntp/Makefile
@@ -14,12 +14,36 @@ MASTER_SITES= ftp://ftp.abs.net/unix/ \
MAINTAINER= adam@veda.is
-BUILD_DEPENDS= ${PREFIX}/lib/libcnews.a:${PORTSDIR}/news/cnews
+BUILD_DEPENDS= ${LOCALBASE}/lib/libcnews.a:${PORTSDIR}/news/cnews
MAN1= nntpxmit.1
MAN8= nntpd.8c mkgrdates.8c
+PLIST= ${WRKDIR}/.PLIST.sed
+
+MODIFY= conf.h xfer/Makefile xmit/Makefile
+
+NEWSBIN?= ${PREFIX}/news/cnewsbin
+NEWSCTL?= ${PREFIX}/news/lib
+NEWSARTS?= /var/news
+NEWSOV?= /var/news/over.view
post-extract:
@${CP} ${WRKSRC}/conf.h.dist ${WRKSRC}/conf.h
+pre-configure:
+.for i in ${MODIFY}
+ @${MV} ${WRKSRC}/${i} ${WRKSRC}/${i}.sed
+ ${SED} \
+ -e "s=/usr/local/news/lib/bin/config=${NEWSBIN}/config=" \
+ -e "s=/usr/local/news/cnewsbin=${NEWSBIN}=" \
+ -e "s=/usr/local/news/lib=${NEWSCTL}=" \
+ -e "s=/var/news/over.view=${NEWSOV}=" \
+ -e "s=/var/news=${NEWSARTS}=" \
+ -e "s=/usr/local/bin=${PREFIX}/bin=" \
+ ${WRKSRC}/${i}.sed >${WRKSRC}/${i}
+.endfor
+ @${SED} \
+ -e "s=news/cnewsbin=${NEWSBIN:S=${PREFIX}/==}=" \
+ ${PKGDIR}/PLIST >${PLIST}
+
.include <bsd.port.mk>