aboutsummaryrefslogtreecommitdiffstats
path: root/news/nntp/Makefile
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2013-12-19 15:39:14 +0800
committerdinoex <dinoex@FreeBSD.org>2013-12-19 15:39:14 +0800
commit8f490bfe7fda646d2ab041630fb33c787fbd07df (patch)
treebf4786f76889b47a3283fff9e00b54521d9518ec /news/nntp/Makefile
parent48e6e50f572a46cc9c8b075d80ea573e09faa3f1 (diff)
downloadfreebsd-ports-gnome-8f490bfe7fda646d2ab041630fb33c787fbd07df.tar.gz
freebsd-ports-gnome-8f490bfe7fda646d2ab041630fb33c787fbd07df.tar.zst
freebsd-ports-gnome-8f490bfe7fda646d2ab041630fb33c787fbd07df.zip
- use STAGEDIR
Diffstat (limited to 'news/nntp/Makefile')
-rw-r--r--news/nntp/Makefile28
1 files changed, 14 insertions, 14 deletions
diff --git a/news/nntp/Makefile b/news/nntp/Makefile
index 2de9846b1662..c6ffce2c1b25 100644
--- a/news/nntp/Makefile
+++ b/news/nntp/Makefile
@@ -3,7 +3,7 @@
PORTNAME= nntp
PORTVERSION= 1.5.12.2
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= news
MASTER_SITES= ftp://ftp.dinoex.org/pub/c-news/
DISTNAME= ${PORTNAME}.${PORTVERSION}
@@ -16,8 +16,6 @@ COMMENT= NNTP with NOV support
BUILD_DEPENDS= ${LOCALBASE}/lib/libcnews.a:${PORTSDIR}/news/cnews
-NO_STAGE= yes
-
NO_WRKSUBDIR= yes
MAN1= nntpxmit.1
MAN8= nntpd.8c acttimes.8c
@@ -32,18 +30,19 @@ VARBASE?= /var
NEWSBIN?= ${PREFIX}/libexec/cnews
NEWSCTL?= ${VARBASE}/lib/news
NEWSARTS?= ${VARBASE}/news
-NEWSOV?= ${VARBASE}/news
+NEWSOV?= ${VARBASE}/news/over.view
MAKE_ENV+= DBLIBS="${LOCALBASE}/lib/libcnews.a -lcrypt -lutil"
-MAKE_ENV+= ETCDIR="${LOCALBASE}/sbin" BINDIR="${NEWSBIN}"
-MAKE_ENV+= MANDIR="${LOCALBASE}/man"
+MAKE_ENV+= ETCDIR="${STAGEDIR}${PREFIX}/sbin"
+MAKE_ENV+= BINDIR="${STAGEDIR}${NEWSBIN}"
+MAKE_ENV+= MANDIR="${STAGEDIR}${PREFIX}/man"
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-extract:
- @${CP} ${WRKSRC}/conf.h.dist ${WRKSRC}/conf.h
+ ${CP} ${WRKSRC}/conf.h.dist ${WRKSRC}/conf.h
pre-configure:
${REINPLACE_CMD} \
@@ -57,17 +56,18 @@ pre-configure:
-e "s=/usr/local/man=${PREFIX}/man=" \
${WRKSRC}/conf.h
+pre-install:
+ ${MKDIR} ${STAGEDIR}${NEWSBIN}
+
post-install:
- ${INSTALL_DATA} ${WRKSRC}/overview.fmt ${NEWSCTL}/overview.fmt
+ ${MKDIR} ${STAGEDIR}${NEWSCTL}
+ ${INSTALL_DATA} ${WRKSRC}/overview.fmt ${STAGEDIR}${NEWSCTL}/overview.fmt
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${DOCSFILES1:S=^=${WRKSRC}/=} ${DOCSDIR}/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${DOCSFILES1:S=^=${WRKSRC}/=} ${STAGEDIR}${DOCSDIR}/
.for i in ${DOCSFILES2}
- ${INSTALL_DATA} ${WRKSRC}/${i}/README ${DOCSDIR}/${i}-README
+ ${INSTALL_DATA} ${WRKSRC}/${i}/README ${STAGEDIR}${DOCSDIR}/${i}-README
.endfor
.endif
- @${ECHO_MSG}
- @${CAT} ${PKGMESSAGE}
- @${ECHO_MSG}
.include <bsd.port.mk>