Skip to content

Commit

Permalink
textproc/2bsd-diff: Sanitize MANPREFIX
Browse files Browse the repository at this point in the history
Approved by:    portmgr (blanket)
  • Loading branch information
5u623l20 committed Jan 22, 2024
1 parent b25a6c3 commit 7a89727
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions textproc/2bsd-diff/Makefile
@@ -1,6 +1,6 @@
PORTNAME= diff
PORTVERSION= 2.11.1
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= https://www.tuhs.org/Archive/Distributions/UCB/2.11BSD/ \
http://www.d20hobbies.com/2.11BSD/
Expand All @@ -16,7 +16,7 @@ WRKSRC= ${WRKDIR}/bin/diff

PLIST_FILES= bin/2diff \
libexec/2diffh \
man/man1/2diff.1.gz
share/man/man1/2diff.1.gz

post-patch:
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
Expand Down
2 changes: 1 addition & 1 deletion textproc/2bsd-diff/files/patch-Makefile
Expand Up @@ -39,4 +39,4 @@
- install -s diffh ${DESTDIR}/usr/libexec/diffh
+ ${BSD_INSTALL_PROGRAM} diff ${DESTDIR}${DIFF}
+ ${BSD_INSTALL_PROGRAM} diffh ${DESTDIR}${DIFFH}
+ ${BSD_INSTALL_MAN} ../../man/man1/diff.1 ${DESTDIR}${MANPREFIX}/man/man1/2diff.1
+ ${BSD_INSTALL_MAN} ../../man/man1/diff.1 ${DESTDIR}${PREFIX}/share/man/man1/2diff.1

0 comments on commit 7a89727

Please sign in to comment.