diff options
author | okazaki <okazaki@FreeBSD.org> | 2005-05-09 15:06:22 +0800 |
---|---|---|
committer | okazaki <okazaki@FreeBSD.org> | 2005-05-09 15:06:22 +0800 |
commit | e06c835873cc1ab017764e10b9f25dd12dfd96b8 (patch) | |
tree | f8e40d3b1ccf0c885bdc0cff4400fc471fe3802f /japanese/groff/Makefile | |
parent | e3356c0e14727ca3f4d0388774c9774797b2dbd8 (diff) | |
download | freebsd-ports-graphics-e06c835873cc1ab017764e10b9f25dd12dfd96b8.tar.gz freebsd-ports-graphics-e06c835873cc1ab017764e10b9f25dd12dfd96b8.tar.zst freebsd-ports-graphics-e06c835873cc1ab017764e10b9f25dd12dfd96b8.zip |
Security update to ja-groff.
- Fix insecure temporary file handling of pic2graph, eqn2graph [1] and groffer [2].
Utilize PORTDOCS.
PR: ports/80671
Submitted by: KOMATSU Shinichiro
VuXML: 01bb84e2-bd88-11d9-a281-02e018374e71 [1],
169f422f-bd88-11d9-a281-02e018374e71 [2]
Diffstat (limited to 'japanese/groff/Makefile')
-rw-r--r-- | japanese/groff/Makefile | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/japanese/groff/Makefile b/japanese/groff/Makefile index 13f29ddaf5a..dfd8c0ca0ec 100644 --- a/japanese/groff/Makefile +++ b/japanese/groff/Makefile @@ -7,7 +7,8 @@ PORTNAME= groff PORTVERSION= 1.18.1 -PORTREVISION= 7 +DISTVERSIONSUFFIX= .1 +PORTREVISION= 8 CATEGORIES= japanese print MASTER_SITES= ${MASTER_SITE_LOCAL:S,%SUBDIR%,okazaki/&,} \ ${MASTER_SITE_DEBIAN:S,$,:debian,} @@ -16,7 +17,7 @@ DISTFILES= ${DISTNAME:S,-,_,}.orig${EXTRACT_SUFX}:debian ${TMAC_DISTNAME}.tar.gz PATCH_SITES= ${MASTER_SITE_DEBIAN} PATCH_SITE_SUBDIR= pool/main/g/groff -PATCHFILES= ${DISTNAME:S,-,_,}-15.diff.gz +PATCHFILES= ${DISTNAME:S,-,_,}-7.diff.gz PATCH_DIST_STRIP= -p1 MAINTAINER= okazaki@FreeBSD.org @@ -44,7 +45,6 @@ TMACDIR= share/groff/${PORTVERSION}/tmac SITETMACDIR= share/groff/site-tmac MDOCDIR= ${TMACDIR}/mdoc INFODIR= ${PREFIX}/info -DOCSDIR= ${PREFIX}/share/doc/groff/${PORTVERSION} PLIST_SUB= GROFF_VERSION=${PORTVERSION} MAN1= addftinfo.1 afmtodit.1 \ @@ -69,6 +69,11 @@ DOCUMENTS= ChangeLog.jp NEWS PROBLEMS README README.jp .include <bsd.port.pre.mk> +.if !defined(NOPORTDOCS) +INSTALL_TARGET= install install_doc +PORTDOCS= ${PORTVERSION} +.endif + # nl_langinfo(CODESET) drops the support of ja_JP.EUC after 5.1-RELEASE .if ${OSVERSION} > 501100 LOCALE_CMD?= /usr/bin/locale @@ -98,7 +103,17 @@ PLIST_SUB+= INFO="" WITHOUT_WCHAR_H= yes .endif +POST_INSTALL_SEQ= install-links +.if !defined(WITHOUT_INFO) +POST_INSTALL_SEQ+= install-info +.endif +.if !defined(NOPORTDOCS) +POST_INSTALL_SEQ+= install-documents +.endif + post-patch: + ${REINPLACE_CMD} -e 's|\(install_data\)|\1 install_doc|g;' \ + ${WRKSRC}/Makefile.in .if defined(WITHOUT_WCHAR_H) ${REINPLACE_CMD} -e 's|#include <wchar[.]h>||g;' \ ${WRKSRC}/src/libs/libgroff/encoding.cc @@ -112,14 +127,6 @@ post-build: cd ${WRKSRC} && ${FIND} font -name DESC \ | ${XARGS} ${REINPLACE_CMD} -e 's|pro \(.*\)|pro ${PREFIX}/bin/\1|g;' -POST_INSTALL_SEQ= install-links -.if !defined(WITHOUT_INFO) -POST_INSTALL_SEQ+= install-info -.endif -.if !defined(NOPORTDOCS) -POST_INSTALL_SEQ+= install-documents -.endif - post-install: ${POST_INSTALL_SEQ} .for F in ${SITETMACFILES} ${INSTALL_DATA} ${TMACBASE}/${F} ${PREFIX}/${SITETMACDIR} @@ -132,9 +139,9 @@ post-install: ${POST_INSTALL_SEQ} .endfor install-documents: - @${MKDIR} ${DOCSDIR} + @${MKDIR} ${DOCSDIR}/${PORTVERSION} .for F in ${DOCUMENTS} - ${INSTALL_DATA} ${INSTALL_WRKSRC}/${F} ${DOCSDIR} + ${INSTALL_DATA} ${INSTALL_WRKSRC}/${F} ${DOCSDIR}/${PORTVERSION} .endfor install-info: |