freebsd-ports/textproc/unrtf/Makefile
Alexey Dokuchaev a134d2757d - Attempt to fix the exploitable security issue described at
http://www.vuxml.org/freebsd/f2d5e56e-67eb-11d9-a9e7-0001020eed82.html by
  replacing strcat() with strncat().  Please note that I wasn't able to
  reproduce the exploit described at
  http://tigger.uic.edu/~jlongs2/holes/unrtf.txt on my 5.3-STABLE system.
  Feedback from someone who can reproduce the exploit with an unpatched unrtf
  would be appreciated
- Bump PORTREVISION
- Remove old master site that doesn't seem to have the distfile any more

VuXML:		f2d5e56e-67eb-11d9-a9e7-0001020eed82
PR:		ports/76852
Submitted by:	Stefan Walter <sw(at)gegenunendlich.de>
2005-02-11 13:33:02 +00:00

33 lines
888 B
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
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= A converter from RTF to several formats, including HTML and LaTeX
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>