1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00
freebsd-ports/security/bcwipe/Makefile
2017-11-18 06:57:40 +00:00

34 lines
1016 B
Makefile

# Created by: crow
# $FreeBSD$
PORTNAME= bcwipe
PORTVERSION= 1.9.13
CATEGORIES= security
MASTER_SITES= http://www.jetico.com/linux/ \
http://bsd.desa-hosting.de/distfiles/security/
DISTNAME= BCWipe-${PORTVERSION:S/./-/g:S/-/./}
MAINTAINER= cy@FreeBSD.org
COMMENT= BCWipe securely erases data from magnetic and solid-state memory
NO_CDROM= Non-commercial distribution and use only
USES= cpe
CPE_VENDOR= jetico
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/./-/g:S/-/./}
GNU_CONFIGURE= yes
MAKE_ARGS+= CFLAGS="${CFLAGS}"
PLIST_FILES= bin/bcwipe man/man1/bcwipe.1.gz
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 ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/bcwipe.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.include <bsd.port.mk>