1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00
freebsd-ports/textproc/unrtf/Makefile
Simon L. B. Nielsen 3fc1c8dae9 - Mark forbidden due to buffer overflow vulnerability which may for
example be explioted when running unrtf automated in scripts.
- Set one month expiration date.

VuXML:		http://vuxml.FreeBSD.org/f2d5e56e-67eb-11d9-a9e7-0001020eed82.html
Approved by:	erwin (mentor)
2005-01-16 19:06:11 +00:00

38 lines
1.0 KiB
Makefile

# New ports collection makefile for: unrtf
# Date created: 26 March 2002
# Whom: Oliver Braun <obraun@informatik.unibw-muenchen.de>
#
# $FreeBSD$
PORTNAME= unrtf
PORTVERSION= 0.19.3
CATEGORIES= textproc
MASTER_SITES= http://unrtf.50megs.com/ \
${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= A converter from RTF to several formats, including HTML and LaTeX
FORBIDDEN= http://vuxml.FreeBSD.org/f2d5e56e-67eb-11d9-a9e7-0001020eed82.html
DEPRECATED= ${FORBIDDEN}
EXPIRATION_DATE=2005-02-16
USE_REINPLACE= yes
ALL_TARGET= unrtf
MAN1= unrtf.1
PLIST_FILES= bin/unrtf
post-patch:
@${REINPLACE_CMD} -e "s|^CC|#CC| ; s|^CFLAGS|#CFLAGS| ; \
s|
||" ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s|<malloc\.h>|<stdlib.h>|" ${WRKSRC}/malloc.c
${REINPLACE_CMD} -e 's/printf (op->\(.*\))/printf (op->\1 == NULL ? "" : op->\1)/' ${WRKSRC}/convert.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/unrtf ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/unrtf.1 ${MAN1PREFIX}/man/man1
.include <bsd.port.mk>