summaryrefslogtreecommitdiff
path: root/sysutils/foremost/Makefile
blob: 4bd4b7cb59e84f30fa42fd845eaad51801f2cd5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Created by: Yonatan <Yonatan@xpert.com>
# $FreeBSD$

PORTNAME=	foremost
PORTVERSION=	1.5.7
CATEGORIES=	sysutils
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
ALL_TARGET=	freebsd
MAN8=		foremost.8

PLIST_FILES=	bin/foremost etc/foremost.conf.sample

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}

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

.include <bsd.port.mk>