Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Feb 2014 13:10:58 +0000 (UTC)
From:      Johan van Selst <johans@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r343326 - head/news/nn
Message-ID:  <201402081310.s18DAw6W091248@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: johans
Date: Sat Feb  8 13:10:58 2014
New Revision: 343326
URL: http://svnweb.freebsd.org/changeset/ports/343326
QAT: https://qat.redports.org/buildarchive/r343326/

Log:
  Enable stage support

Modified:
  head/news/nn/Makefile
  head/news/nn/pkg-install
  head/news/nn/pkg-plist

Modified: head/news/nn/Makefile
==============================================================================
--- head/news/nn/Makefile	Sat Feb  8 13:06:37 2014	(r343325)
+++ head/news/nn/Makefile	Sat Feb  8 13:10:58 2014	(r343326)
@@ -14,21 +14,14 @@ COMMENT=	Newsreader
 
 MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS} -Iconf" LDFLAGS="${LDFLAGS} -s"
 
-MAN1=		nn.1 nncheck.1 nngoback.1 nngrab.1  nngrep.1 nnpost.1 \
-		nntidy.1 nnview.1 nnacct.1m nnadmin.1m nnstats.1m nnusage.1m
-MAN8=		nnmaster.8 nnspew.8
-
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
-
 pre-patch:
 	@${CP} ${WRKSRC}/config.h-dist ${WRKSRC}/config.h.unparsed
 
 pre-build:
-	@${CAT} ${WRKSRC}/config.h.unparsed | ${SED} -e "s#SUB_PREFIX#${PREFIX}#" \
-	    | ${SED} -e "s#SUB_MANPREFIX#${MANPREFIX}#" > ${WRKSRC}/config.h
+	@${SED} 's#SUB_PREFIX#${PREFIX}#; s#SUB_MANPREFIX#${MANPREFIX}#' \
+		${WRKSRC}/config.h.unparsed > ${WRKSRC}/config.h
 
-post-install:
-	@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${DISTNAME} POST-INSTALL
+post-build:
+	@${REINPLACE_CMD} 's#${PREFIX}#$${DESTDIR}&#' ${WRKSRC}/inst
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/news/nn/pkg-install
==============================================================================
--- head/news/nn/pkg-install	Sat Feb  8 13:06:37 2014	(r343325)
+++ head/news/nn/pkg-install	Sat Feb  8 13:10:58 2014	(r343326)
@@ -5,6 +5,7 @@ if [ "x$2" != "xPOST-INSTALL" ]; then
 fi
 
 cat << xxENDxx
+
 *******************************************************************
 You have just installed the $1 package
 

Modified: head/news/nn/pkg-plist
==============================================================================
--- head/news/nn/pkg-plist	Sat Feb  8 13:06:37 2014	(r343325)
+++ head/news/nn/pkg-plist	Sat Feb  8 13:10:58 2014	(r343326)
@@ -11,11 +11,8 @@ bin/nnpost
 bin/nnbatch
 bin/nnview
 @unexec if cmp -s %D/etc/nntp_domain %D/etc/nntp_domain.dist; then rm -f %D/etc/nntp_domain; fi
-etc/nntp_domain.dist
-@exec [ -f %B/nntp_domain ] || cp %B/%f %B/nntp_domain
 @unexec if cmp -s %D/etc/nntp_server %D/etc/nntp_server.dist; then rm -f %D/etc/nntp_server; fi
-etc/nntp_server.dist
-@exec [ -f %B/nntp_server ] || cp %B/%f %B/nntp_server
+@unexec rm -f %D/etc/nntp_domain.dist %D/etc/nntp_server.dist
 lib/nn/aux
 lib/nn/upgrade_rc
 lib/nn/conf
@@ -37,5 +34,19 @@ lib/nn/help/help.show
 lib/nn/help/help.sort
 lib/nn/help/help.variables
 lib/nn/help/Manual
+man/man1/nn.1.gz
+man/man1/nnacct.1m.gz
+man/man1/nnadmin.1m.gz
+man/man1/nncheck.1.gz
+man/man1/nngoback.1.gz
+man/man1/nngrab.1.gz
+man/man1/nngrep.1.gz
+man/man1/nnpost.1.gz
+man/man1/nnstats.1m.gz
+man/man1/nntidy.1.gz
+man/man1/nnusage.1m.gz
+man/man1/nnview.1.gz
+man/man8/nnmaster.8.gz
+man/man8/nnspew.8.gz
 @dirrm lib/nn/help
 @dirrm lib/nn



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402081310.s18DAw6W091248>