lang/nawk: Sanitize MANPREFIX

Approved by:	portmgr (blanket)
This commit is contained in:
Muhammad Moinur Rahman 2024-01-21 18:47:38 +01:00
parent 6d6f27bc95
commit 13f7fbc201

View file

@ -1,6 +1,6 @@
PORTNAME= nawk
PORTVERSION= 20121220
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= lang
MASTER_SITES= https://BSDforge.com/projects/source/lang/nawk/
DISTNAME= awk
@ -14,7 +14,7 @@ NO_WRKSUBDIR= yes
MAKEFILE= makefile
ALL_TARGET= a.out
CFLAGS+= -DHAS_ISBLANK
PLIST_FILES= bin/nawk man/man1/nawk.1.gz
PLIST_FILES= bin/nawk share/man/man1/nawk.1.gz
post-patch:
@${REINPLACE_CMD} -e 's|awk|nawk|g' ${WRKSRC}/awk.1
@ -22,6 +22,6 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/a.out ${STAGEDIR}${PREFIX}/bin/nawk
${INSTALL_MAN} ${WRKSRC}/awk.1 \
${STAGEDIR}${MANPREFIX}/man/man1/nawk.1
${STAGEDIR}${MANPREFIX}/share/man/man1/nawk.1
.include <bsd.port.mk>