aboutsummaryrefslogtreecommitdiffstats
path: root/security/bcwipe/Makefile
blob: b913cd86a126a3644f65b26216a3247792ab615d (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
35
36
# New ports collection makefile for:   bcwipe
# Date created:                                Mar 4, 2001
# Whom:                                        crow
#
# $FreeBSD$
#

PORTNAME=   bcwipe
PORTVERSION=    1.6.1
CATEGORIES= security
MASTER_SITES=   http://www.jetico.com/linux/ \
        http://bsd.desa-hosting.de/distfiles/security/
DISTNAME=   BCWipe-${PORTVERSION:S/./-/g:S/-/./}

MAINTAINER= dako@desa-hosting.de
COMMENT=    BCWipe securely erases data from magnetic and solid-state memory

NO_CDROM=   yes

WRKSRC=     ${WRKDIR}/${PORTNAME}
CFLAGS+=    -DOS_FreeBSD
MAKE_ARGS+= CFLAGS="${CFLAGS}"

MAN1=       bcwipe.1
PLIST_FILES=    bin/bcwipe

post-patch:
    @${REINPLACE_CMD} -e "s,fprintf(stderr\,string),fprintf(stderr\,\"%s\"\,string),g" ${WRKSRC}/wipe.c
    @${REINPLACE_CMD} -e "s,if (NULL == mktemp(result)),if (mkstemp(result) == -1),g" ${WRKSRC}/wipe.c
    @${REINPLACE_CMD} -e "s,mktemp,mkstemp,g" ${WRKSRC}/wipe.c

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/bcwipe ${PREFIX}/bin
    @${INSTALL_MAN} ${WRKSRC}/bcwipe.1 ${MAN1PREFIX}/man/man1

.include <bsd.port.mk>