From a890d205fe7a3211f3477fb10b76e1fc3f9226bc Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Sat, 23 Jan 2010 13:09:55 +0000 Subject: [PATCH] Use $SUB_FILES to dynamically update pkg-message PR: 143109 Submitted by: Sevan Janiyan --- net/micro_proxy/Makefile | 3 ++- net/micro_proxy/{pkg-message => files/pkg-message.in} | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename net/micro_proxy/{pkg-message => files/pkg-message.in} (100%) diff --git a/net/micro_proxy/Makefile b/net/micro_proxy/Makefile index b26ae8573044..0f12ebfdcb2e 100644 --- a/net/micro_proxy/Makefile +++ b/net/micro_proxy/Makefile @@ -20,6 +20,7 @@ MAKE_JOBS_SAFE= yes WRKSRC= ${WRKDIR}/${PORTNAME} PLIST_FILES= libexec/micro_proxy MAN8= micro_proxy.8 +SUB_FILES= pkg-message do-build: ${CC} ${CFLAGS} -c ${WRKSRC}/${PORTNAME}.c -o ${WRKSRC}/${PORTNAME}.o @@ -30,6 +31,6 @@ do-install: ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MANPREFIX}/man/man8 post-install: - @${SED} -e 's|%%PREFIX%%|${PREFIX}|' ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} .include diff --git a/net/micro_proxy/pkg-message b/net/micro_proxy/files/pkg-message.in similarity index 100% rename from net/micro_proxy/pkg-message rename to net/micro_proxy/files/pkg-message.in