aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/foremost/Makefile
blob: 9d6f30f2c1fe4a36618d691435eb74f41f801b04 (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
30
31
32
33
34
# Ports collection makefile for:  foremost
# Date created:           16 June 2004
# Whom:               Yonatan <Yonatan@xpert.com>
#
# $FreeBSD$
#

PORTNAME=   foremost
PORTVERSION=    1.4
PORTREVISION=   1
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
MAN1=       foremost.1
USE_GCC=    3.4+

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
    @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/${MAN1}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/foremost.conf ${PREFIX}/etc/foremost.conf.sample
    ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1

.include <bsd.port.mk>