2013-03-22 12:18:39 +01:00
|
|
|
# Created by: Yonatan <Yonatan@xpert.com>
|
2004-12-15 13:39:25 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= foremost
|
2013-03-22 12:18:39 +01:00
|
|
|
PORTVERSION= 1.5.7
|
2004-12-15 13:39:25 +01:00
|
|
|
CATEGORIES= sysutils
|
2013-03-22 12:18:39 +01:00
|
|
|
MASTER_SITES= http://foremost.sourceforge.net/pkg/
|
2004-12-15 13:39:25 +01:00
|
|
|
|
2005-01-29 20:54:56 +01:00
|
|
|
MAINTAINER= onatan@gmail.com
|
2004-12-15 13:39:25 +01:00
|
|
|
COMMENT= Console program to recover files based on their headers and footers
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2005-06-30 22:34:54 +02:00
|
|
|
ALL_TARGET= freebsd
|
2009-02-12 18:58:46 +01:00
|
|
|
MAN8= foremost.8
|
2004-12-15 13:39:25 +01:00
|
|
|
|
|
|
|
PLIST_FILES= bin/foremost etc/foremost.conf.sample
|
|
|
|
|
|
|
|
post-patch:
|
2005-06-30 22:34:54 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|gcc|${CC}|; s|-Wall -O2|${CFLAGS}|' ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/config.c
|
2009-02-12 18:58:46 +01:00
|
|
|
@${GZCAT} ${WRKSRC}/${MAN8}.gz | ${SED} -e 's|/etc|${PREFIX}/etc|' \
|
|
|
|
> ${WRKSRC}/${MAN8}
|
2004-12-15 13:39:25 +01:00
|
|
|
|
2005-06-30 22:34:54 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/foremost.conf ${PREFIX}/etc/foremost.conf.sample
|
2009-02-12 18:58:46 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/${MAN8} ${MAN8PREFIX}/man/man8
|
2004-12-15 13:39:25 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|