aboutsummaryrefslogtreecommitdiffstats
path: root/security/openssh-portable/Makefile
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2002-06-26 15:06:14 +0800
committerdinoex <dinoex@FreeBSD.org>2002-06-26 15:06:14 +0800
commitfb4b6bfff1a7bcc36c6455654dfd293a02d4d2f2 (patch)
tree313aefcc5e0323fa14ac4af5c2ae3299924e2042 /security/openssh-portable/Makefile
parent49624146441003fb826dbe85b32de543c7ba97e5 (diff)
downloadfreebsd-ports-gnome-fb4b6bfff1a7bcc36c6455654dfd293a02d4d2f2.tar.gz
freebsd-ports-gnome-fb4b6bfff1a7bcc36c6455654dfd293a02d4d2f2.tar.zst
freebsd-ports-gnome-fb4b6bfff1a7bcc36c6455654dfd293a02d4d2f2.zip
Streamline OPENSSH_OVERWRITE_BASE=yes
Diffstat (limited to 'security/openssh-portable/Makefile')
-rw-r--r--security/openssh-portable/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/security/openssh-portable/Makefile b/security/openssh-portable/Makefile
index 9ba5fd1725e4..a37a28004dc5 100644
--- a/security/openssh-portable/Makefile
+++ b/security/openssh-portable/Makefile
@@ -50,6 +50,7 @@ MANPREFIX= ${PREFIX}/share
CONFIGURE_ARGS+= --mandir=${MANPREFIX}/man --localstatedir=/var
EMPTYDIR= /var/empty
ETCSSH= /etc/ssh
+PLIST_SUB+= NOTBASE="@comment "
.else
.if exists(/var/empty)
EMPTYDIR= /var/empty
@@ -57,6 +58,7 @@ EMPTYDIR= /var/empty
EMPTYDIR= ${PREFIX}/empty
.endif
ETCSSH= ${PREFIX}/etc/ssh
+PLIST_SUB+= NOTBASE=""
.endif
PLIST_SUB+= EMPTYDIR=${EMPTYDIR}
CONFIGURE_ARGS+= --sysconfdir=${ETCSSH}
@@ -108,7 +110,9 @@ pre-install:
.endfor
post-install:
+.if defined(OPENSSH_OVERWRITE_BASE)
${INSTALL_SCRIPT} ${WRKSRC}/sshd.sh ${PREFIX}/etc/rc.d/sshd.sh.sample
+.endif
${INSTALL_DATA} -c ${WRKSRC}/ssh_config.out ${ETCSSH}/ssh_config-dist
${INSTALL_DATA} -c ${WRKSRC}/sshd_config.out ${ETCSSH}/sshd_config-dist
@${CAT} ${PKGMESSAGE}