1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Stage support

This commit is contained in:
Antoine Brodin 2014-02-18 18:30:44 +00:00
parent 95f9414be9
commit a9c9154800
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344937

View File

@ -9,22 +9,20 @@ MASTER_SITES= http://foremost.sourceforge.net/pkg/
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>