aboutsummaryrefslogtreecommitdiff
path: root/security/openssh-portable
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2013-09-29 14:54:20 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2013-09-29 14:54:20 +0000
commitf636d59d6544485386ea04172e8bc8e0048ff115 (patch)
tree299ea850392f8d90dc14a57e394cbfe30708fc2d /security/openssh-portable
parent06178e7241fa8ec2a0c42d0bba4c528358031dfb (diff)
downloadports-f636d59d6544485386ea04172e8bc8e0048ff115.tar.gz
ports-f636d59d6544485386ea04172e8bc8e0048ff115.zip
Fix sshd.8 referring to LOCALBASE with OVERWRITE_BASE
Notes
Notes: svn path=/head/; revision=328704
Diffstat (limited to 'security/openssh-portable')
-rw-r--r--security/openssh-portable/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/openssh-portable/Makefile b/security/openssh-portable/Makefile
index d1ba6813eed7..10f2e8113347 100644
--- a/security/openssh-portable/Makefile
+++ b/security/openssh-portable/Makefile
@@ -227,8 +227,10 @@ post-patch:
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|' \
${WRKSRC}/pathnames.h ${WRKSRC}/sshd_config.5 \
${WRKSRC}/ssh_config.5
+.if !${PORT_OPTIONS:MOVERWRITE_BASE}
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${LOCALBASE}|' \
-e 's|%%RC_SCRIPT_NAME%%|${RC_SCRIPT_NAME}|' ${WRKSRC}/sshd.8
+.endif
@${REINPLACE_CMD} -E -e 's|SSH_VERSION|TMP_SSH_VERSION|' \
-e 's|.*SSH_RELEASE.*||' ${WRKSRC}/version.h
@${ECHO_CMD} '#define FREEBSD_PORT_VERSION " FreeBSD-${PKGNAME}"' >> \