mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
- Don't generate keys if BATCH is defined,
they will be generated when the package is installed. - Update MAN1, MAN8
This commit is contained in:
parent
bdc02315c8
commit
7a5330284c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=43867
@ -19,8 +19,9 @@ MAINTAINER= dirk.meyer@dinoex.sub.org
|
||||
|
||||
USE_OPENSSL= YES
|
||||
|
||||
MAN1= scp.1 slogin.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh.1
|
||||
MAN8= sshd.8
|
||||
MAN1= scp.1 slogin.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh.1 \
|
||||
ssh-keyscan.1 sftp.1
|
||||
MAN8= sshd.8 sftp-server.8
|
||||
MANCOMPRESSED= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
@ -69,6 +70,7 @@ post-patch:
|
||||
${WRKSRC}/pathnames.h
|
||||
|
||||
post-install:
|
||||
.if !defined(BATCH)
|
||||
.if !exists(${PREFIX}/etc/ssh_host_key)
|
||||
@${ECHO_MSG} ">> Generating an RSA secret host key."
|
||||
${PREFIX}/bin/ssh-keygen -N "" -f ${PREFIX}/etc/ssh_host_key
|
||||
@ -77,6 +79,7 @@ post-install:
|
||||
@${ECHO_MSG} ">> Generating a DSA secret host key."
|
||||
${PREFIX}/bin/ssh-keygen -d -N "" -f ${PREFIX}/etc/ssh_host_dsa_key
|
||||
.endif
|
||||
.endif
|
||||
.if !exists(${PREFIX}/etc/rc.d/sshd.sh)
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/sshd.sh ${PREFIX}/etc/rc.d/
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user