Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Feb 2014 18:30:45 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r344937 - head/sysutils/foremost
Message-ID:  <201402181830.s1IIUjQo085257@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Tue Feb 18 18:30:44 2014
New Revision: 344937
URL: http://svnweb.freebsd.org/changeset/ports/344937
QAT: https://qat.redports.org/buildarchive/r344937/

Log:
  Stage support

Modified:
  head/sysutils/foremost/Makefile

Modified: head/sysutils/foremost/Makefile
==============================================================================
--- head/sysutils/foremost/Makefile	Tue Feb 18 18:29:02 2014	(r344936)
+++ head/sysutils/foremost/Makefile	Tue Feb 18 18:30:44 2014	(r344937)
@@ -9,22 +9,20 @@ MASTER_SITES=	http://foremost.sourceforg
 MAINTAINER=	onatan@gmail.com
 COMMENT=	Console program to recover files based on their headers and footers
 
-USE_GMAKE=	yes
+USES=		gmake
 ALL_TARGET=	freebsd
-MAN8=		foremost.8
 
-PLIST_FILES=	bin/foremost etc/foremost.conf.sample
+PLIST_FILES=	bin/foremost etc/foremost.conf.sample man/man8/foremost.8.gz
 
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e 's|gcc|${CC}|; s|-Wall -O2|${CFLAGS}|' ${WRKSRC}/Makefile
 	@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/config.c
-	@${GZCAT} ${WRKSRC}/${MAN8}.gz | ${SED} -e 's|/etc|${PREFIX}/etc|' \
-	> ${WRKSRC}/${MAN8}
+	@${GZCAT} ${WRKSRC}/foremost.8.gz | ${SED} -e 's|/etc|${PREFIX}/etc|' \
+	> ${WRKSRC}/foremost.8
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-	${INSTALL_DATA} ${WRKSRC}/foremost.conf ${PREFIX}/etc/foremost.conf.sample
-	${INSTALL_MAN} ${WRKSRC}/${MAN8} ${MAN8PREFIX}/man/man8
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/foremost.conf ${STAGEDIR}${PREFIX}/etc/foremost.conf.sample
+	${INSTALL_MAN} ${WRKSRC}/foremost.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
 
 .include <bsd.port.mk>



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