1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-29 08:08:37 +00:00

Move ssh into a dedicated package

Flag config files as "to be merged on upgrade"
This commit is contained in:
Baptiste Daroussin 2015-03-05 20:25:09 +00:00
parent a0b88a5d1f
commit 0bd7d22e03
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/release-pkg/; revision=279674
14 changed files with 19 additions and 3 deletions

View File

@ -276,7 +276,7 @@ distribution:
${_+_}cd ${.CURDIR}/sendmail; ${MAKE} distribution ${_+_}cd ${.CURDIR}/sendmail; ${MAKE} distribution
.endif .endif
.if ${MK_OPENSSH} != "no" .if ${MK_OPENSSH} != "no"
cd ${.CURDIR}; ${INSTALL} ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 644 \ cd ${.CURDIR}; ${INSTALL} -T package=ssh,config -o ${BINOWN} -g ${BINGRP} -m 644 \
${SSH} ${DESTDIR}/etc/ssh ${SSH} ${DESTDIR}/etc/ssh
.endif .endif
.if ${MK_OPENSSL} != "no" .if ${MK_OPENSSL} != "no"

View File

@ -111,7 +111,6 @@ FILES= DAEMON \
securelevel \ securelevel \
serial \ serial \
sppp \ sppp \
${_sshd} \
statd \ statd \
static_arp \ static_arp \
static_ndp \ static_ndp \
@ -246,7 +245,8 @@ FILES+= keyserv
.endif .endif
.if ${MK_OPENSSH} != "no" .if ${MK_OPENSSH} != "no"
_sshd= sshd FILESGROUPS+= SSH
SSH= sshd
.endif .endif
.if ${MK_PF} != "no" .if ${MK_PF} != "no"
@ -298,4 +298,8 @@ ACPIDIR= /etc/rc.d
ACPIMODE= ${BINMODE} ACPIMODE= ${BINMODE}
ACPIPACKAGE= acpi ACPIPACKAGE= acpi
SSHDIR= /etc/rc.d
SSHMODE= ${BINMODE}
SSHPACKAGE= ssh
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -6,6 +6,7 @@ SSHDIR= ${.CURDIR}/../../../../crypto/openssh
LIB= pam_ssh LIB= pam_ssh
MAN= pam_ssh.8 MAN= pam_ssh.8
SRCS= pam_ssh.c SRCS= pam_ssh.c
PACKAGE= ssh
# required when linking with a dynamic libssh # required when linking with a dynamic libssh
SRCS+= roaming_dummy.c SRCS+= roaming_dummy.c

View File

@ -19,6 +19,7 @@ SRCS= authfd.c authfile.c bufaux.c bufbn.c buffer.c \
kexc25519.c kexc25519c.c poly1305.c chacha.c cipher-chachapoly.c \ kexc25519.c kexc25519c.c poly1305.c chacha.c cipher-chachapoly.c \
ssh-ed25519.c digest-openssl.c hmac.c \ ssh-ed25519.c digest-openssl.c hmac.c \
sc25519.c ge25519.c fe25519.c ed25519.c verify.c hash.c blocks.c sc25519.c ge25519.c fe25519.c ed25519.c verify.c hash.c blocks.c
PACKAGE= ssh
# gss-genr.c should be in $SRCS but causes linking problems, so it is # gss-genr.c should be in $SRCS but causes linking problems, so it is
# compiled directly into sshd instead. # compiled directly into sshd instead.

View File

@ -1,5 +1,6 @@
# $FreeBSD$ # $FreeBSD$
BINDIR?= /usr/libexec BINDIR?= /usr/libexec
PACKAGE= ssh
.include "../Makefile.inc" .include "../Makefile.inc"

View File

@ -5,6 +5,7 @@
PROG= scp PROG= scp
SRCS= scp.c SRCS= scp.c
CFLAGS+=-I${SSHDIR} -include ssh_namespace.h CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
PACKAGE= ssh
.if !defined(NO_SHARED) .if !defined(NO_SHARED)
# required when linking with a dynamic libssh # required when linking with a dynamic libssh

View File

@ -5,6 +5,7 @@
PROG= sftp PROG= sftp
SRCS= sftp.c sftp-client.c sftp-common.c sftp-glob.c progressmeter.c SRCS= sftp.c sftp-client.c sftp-common.c sftp-glob.c progressmeter.c
CFLAGS+=-I${SSHDIR} -include ssh_namespace.h CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
PACKAGE= ssh
.if !defined(NO_SHARED) .if !defined(NO_SHARED)
# required when linking with a dynamic libssh # required when linking with a dynamic libssh

View File

@ -5,6 +5,7 @@
PROG= ssh-add PROG= ssh-add
SRCS+= ssh-add.c SRCS+= ssh-add.c
CFLAGS+=-I${SSHDIR} -include ssh_namespace.h CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
PACKAGE= ssh
.if !defined(NO_SHARED) .if !defined(NO_SHARED)
# required when linking with a dynamic libssh # required when linking with a dynamic libssh

View File

@ -5,6 +5,7 @@
PROG= ssh-agent PROG= ssh-agent
SRCS= ssh-agent.c SRCS= ssh-agent.c
CFLAGS+=-I${SSHDIR} -include ssh_namespace.h CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
PACKAGE= ssh
.if !defined(NO_SHARED) .if !defined(NO_SHARED)
# required when linking with a dynamic libssh # required when linking with a dynamic libssh

View File

@ -5,6 +5,7 @@
PROG= ssh-keygen PROG= ssh-keygen
SRCS= ssh-keygen.c SRCS= ssh-keygen.c
CFLAGS+=-I${SSHDIR} -include ssh_namespace.h CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
PACKAGE= ssh
.if !defined(NO_SHARED) .if !defined(NO_SHARED)
# required when linking with a dynamic libssh # required when linking with a dynamic libssh

View File

@ -5,6 +5,7 @@
PROG= ssh-keyscan PROG= ssh-keyscan
SRCS= ssh-keyscan.c roaming_dummy.c SRCS= ssh-keyscan.c roaming_dummy.c
CFLAGS+=-I${SSHDIR} -include ssh_namespace.h CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
PACKAGE= ssh
LIBADD= ssh LIBADD= ssh

View File

@ -7,6 +7,7 @@ CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
LINKS= ${BINDIR}/ssh ${BINDIR}/slogin LINKS= ${BINDIR}/ssh ${BINDIR}/slogin
MAN= ssh.1 ssh_config.5 MAN= ssh.1 ssh_config.5
MLINKS= ssh.1 slogin.1 MLINKS= ssh.1 slogin.1
PACKAGE= ssh
SRCS= ssh.c readconf.c clientloop.c sshtty.c \ SRCS= ssh.c readconf.c clientloop.c sshtty.c \
sshconnect.c sshconnect1.c sshconnect2.c mux.c \ sshconnect.c sshconnect1.c sshconnect2.c mux.c \

View File

@ -18,6 +18,7 @@ SRCS= sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c \
roaming_common.c roaming_serv.c \ roaming_common.c roaming_serv.c \
sandbox-null.c sandbox-rlimit.c sandbox-systrace.c sandbox-darwin.c \ sandbox-null.c sandbox-rlimit.c sandbox-systrace.c sandbox-darwin.c \
sandbox-seccomp-filter.c sandbox-capsicum.c sandbox-seccomp-filter.c sandbox-capsicum.c
PACKAGE= ssh
# gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile # gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile
SRCS+= gss-genr.c SRCS+= gss-genr.c

View File

@ -2,5 +2,6 @@
SCRIPTS= ssh-copy-id.sh SCRIPTS= ssh-copy-id.sh
MAN= ssh-copy-id.1 MAN= ssh-copy-id.1
PACKAGE= ssh
.include <bsd.prog.mk> .include <bsd.prog.mk>