From 682f31469c964ded36240904f1d32884c0ab9cc4 Mon Sep 17 00:00:00 2001 From: ehaupt Date: Sat, 23 Jan 2010 13:09:55 +0000 Subject: Use $SUB_FILES to dynamically update pkg-message PR: 143109 Submitted by: Sevan Janiyan --- net/micro_proxy/Makefile | 3 ++- net/micro_proxy/files/pkg-message.in | 18 ++++++++++++++++++ net/micro_proxy/pkg-message | 18 ------------------ 3 files changed, 20 insertions(+), 19 deletions(-) create mode 100644 net/micro_proxy/files/pkg-message.in delete mode 100644 net/micro_proxy/pkg-message (limited to 'net/micro_proxy') 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/files/pkg-message.in b/net/micro_proxy/files/pkg-message.in new file mode 100644 index 000000000000..83738e8a1d19 --- /dev/null +++ b/net/micro_proxy/files/pkg-message.in @@ -0,0 +1,18 @@ +=============================================================================== + +Micro_proxy has been successfully installed. If you want to run micro_proxy +with inetd add + + webproxy 8080/tcp + +to services(5), + + webproxy stream tcp nowait nobody %%PREFIX%%/libexec/micro_proxy -R 10000 micro_proxy + +to inetd.conf(5), + + enable_inetd="YES" + +to rc.conf(5) and restart inetd(8). See micro_proxy(8) for more information. + +=============================================================================== diff --git a/net/micro_proxy/pkg-message b/net/micro_proxy/pkg-message deleted file mode 100644 index 83738e8a1d19..000000000000 --- a/net/micro_proxy/pkg-message +++ /dev/null @@ -1,18 +0,0 @@ -=============================================================================== - -Micro_proxy has been successfully installed. If you want to run micro_proxy -with inetd add - - webproxy 8080/tcp - -to services(5), - - webproxy stream tcp nowait nobody %%PREFIX%%/libexec/micro_proxy -R 10000 micro_proxy - -to inetd.conf(5), - - enable_inetd="YES" - -to rc.conf(5) and restart inetd(8). See micro_proxy(8) for more information. - -=============================================================================== -- cgit