diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2002-06-25 04:59:10 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2002-06-25 04:59:10 +0000 |
commit | 3a42b3e2230357a9823bd582eef4f3b0464d0a04 (patch) | |
tree | fb2b460bb9ec478eb5e513f5db946c152c188c0a /security | |
parent | 3f751261eaecf6d12c10f891fdb1194fe45c7e90 (diff) |
change --with-privsep-path if OPENSSH_OVERWRITE_BASE is in effect.
Submitted by: brad@brad-x.com
Notes
Notes:
svn path=/head/; revision=61901
Diffstat (limited to 'security')
-rw-r--r-- | security/hpn-ssh/Makefile | 9 | ||||
-rw-r--r-- | security/openssh-portable/Makefile | 9 |
2 files changed, 12 insertions, 6 deletions
diff --git a/security/hpn-ssh/Makefile b/security/hpn-ssh/Makefile index 2640cf594d1c..204b61faec5f 100644 --- a/security/hpn-ssh/Makefile +++ b/security/hpn-ssh/Makefile @@ -24,7 +24,6 @@ MAN8= sftp-server.8 sshd.8 ssh-keysign.8 CRYPTOLIBS= -L${OPENSSLLIB} -lcrypto GNU_CONFIGURE= yes CONFIGURE_ARGS+= --prefix=${PREFIX} --with-md5-passwords -CONFIGURE_ARGS+= --with-privsep-path=${PREFIX}/empty CLEAN= etc/ssh_config etc/sshd_config etc/moduli \ etc/ssh_host_key etc/ssh_host_key.pub \ etc/ssh_host_dsa_key etc/ssh_host_dsa_key.pub \ @@ -49,7 +48,11 @@ PREFIX= /usr MANPREFIX= ${PREFIX}/share CONFIGURE_ARGS+= --mandir=${MANPREFIX}/man \ --sysconfdir=/etc/ssh --localstatedir=/var +EMPTYDIR= ${PREFIX}/empty +.else +EMPTYDIR= /var/empty .endif +CONFIGURE_ARGS+= --with-privsep-path=${EMPTYDIR} .if defined(BATCH) EXTRA_PATCHES+= ${FILESDIR}/batch.patch @@ -81,10 +84,10 @@ pre-configure: .endif pre-install: + -${MKDIR} ${EMPTYDIR} if ! pw groupshow sshd; then pw groupadd sshd -g 22; fi if ! pw usershow sshd; then pw useradd sshd -g sshd -u 22 \ - -h - -d ${PREFIX}/empty -s /nonexistent -c "sshd privilege separation"; fi - ${MKDIR} ${PREFIX}/empty + -h - -d ${EMPTYDIR} -s /nonexistent -c "sshd privilege separation"; fi post-install: @${CAT} ${PKGMESSAGE} diff --git a/security/openssh-portable/Makefile b/security/openssh-portable/Makefile index 2640cf594d1c..204b61faec5f 100644 --- a/security/openssh-portable/Makefile +++ b/security/openssh-portable/Makefile @@ -24,7 +24,6 @@ MAN8= sftp-server.8 sshd.8 ssh-keysign.8 CRYPTOLIBS= -L${OPENSSLLIB} -lcrypto GNU_CONFIGURE= yes CONFIGURE_ARGS+= --prefix=${PREFIX} --with-md5-passwords -CONFIGURE_ARGS+= --with-privsep-path=${PREFIX}/empty CLEAN= etc/ssh_config etc/sshd_config etc/moduli \ etc/ssh_host_key etc/ssh_host_key.pub \ etc/ssh_host_dsa_key etc/ssh_host_dsa_key.pub \ @@ -49,7 +48,11 @@ PREFIX= /usr MANPREFIX= ${PREFIX}/share CONFIGURE_ARGS+= --mandir=${MANPREFIX}/man \ --sysconfdir=/etc/ssh --localstatedir=/var +EMPTYDIR= ${PREFIX}/empty +.else +EMPTYDIR= /var/empty .endif +CONFIGURE_ARGS+= --with-privsep-path=${EMPTYDIR} .if defined(BATCH) EXTRA_PATCHES+= ${FILESDIR}/batch.patch @@ -81,10 +84,10 @@ pre-configure: .endif pre-install: + -${MKDIR} ${EMPTYDIR} if ! pw groupshow sshd; then pw groupadd sshd -g 22; fi if ! pw usershow sshd; then pw useradd sshd -g sshd -u 22 \ - -h - -d ${PREFIX}/empty -s /nonexistent -c "sshd privilege separation"; fi - ${MKDIR} ${PREFIX}/empty + -h - -d ${EMPTYDIR} -s /nonexistent -c "sshd privilege separation"; fi post-install: @${CAT} ${PKGMESSAGE} |