aboutsummaryrefslogtreecommitdiff
path: root/secure/libexec
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2010-04-21 06:33:10 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2010-04-21 06:33:10 +0000
commit124981e16f7eb2b6f4bc10c9e65b66ff8a8b2c17 (patch)
tree4a4ac3c87833639254d471ad239d16a4fbbe8e52 /secure/libexec
parent6cf6ace6cd75c9a99f4bb0d53556e828f4afb2bf (diff)
Notes
Diffstat (limited to 'secure/libexec')
-rw-r--r--secure/libexec/Makefile2
-rw-r--r--secure/libexec/sftp-server/Makefile5
-rw-r--r--secure/libexec/ssh-keysign/Makefile2
-rw-r--r--secure/libexec/ssh-pkcs11-helper/Makefile16
4 files changed, 22 insertions, 3 deletions
diff --git a/secure/libexec/Makefile b/secure/libexec/Makefile
index 1c3ee015a5e7..0c680e4d7b9a 100644
--- a/secure/libexec/Makefile
+++ b/secure/libexec/Makefile
@@ -4,7 +4,7 @@
SUBDIR=
.if ${MK_OPENSSH} != "no"
-SUBDIR+=sftp-server ssh-keysign
+SUBDIR+=sftp-server ssh-keysign ssh-pkcs11-helper
.endif
.include <bsd.subdir.mk>
diff --git a/secure/libexec/sftp-server/Makefile b/secure/libexec/sftp-server/Makefile
index 22ce649452f1..7069cff90159 100644
--- a/secure/libexec/sftp-server/Makefile
+++ b/secure/libexec/sftp-server/Makefile
@@ -5,8 +5,11 @@ SRCS= sftp-server.c sftp-common.c sftp-server-main.c
MAN= sftp-server.8
CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
+# required when linking with a dynamic libssh
+SRCS+= roaming_dummy.c
+
DPADD= ${LIBSSH} ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
-LDADD= -lssh -lcrypt -lcrypto -lz
+LDADD= -lssh -lcrypt -lcrypto -lz
.include <bsd.prog.mk>
diff --git a/secure/libexec/ssh-keysign/Makefile b/secure/libexec/ssh-keysign/Makefile
index 6018b948265b..75f1b6c4c28d 100644
--- a/secure/libexec/ssh-keysign/Makefile
+++ b/secure/libexec/ssh-keysign/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PROG= ssh-keysign
-SRCS= ssh-keysign.c readconf.c
+SRCS= ssh-keysign.c readconf.c roaming_dummy.c
MAN= ssh-keysign.8
CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
.if defined(ENABLE_SUID_SSH)
diff --git a/secure/libexec/ssh-pkcs11-helper/Makefile b/secure/libexec/ssh-pkcs11-helper/Makefile
new file mode 100644
index 000000000000..f575a08afead
--- /dev/null
+++ b/secure/libexec/ssh-pkcs11-helper/Makefile
@@ -0,0 +1,16 @@
+# $FreeBSD$
+
+PROG= ssh-pkcs11-helper
+SRCS= ssh-pkcs11.c ssh-pkcs11-helper.c
+SRCS+= roaming_dummy.c
+MAN= ssh-pkcs11-helper.8
+CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
+
+DPADD= ${LIBSSH} ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
+LDADD= -lssh -lcrypt -lcrypto -lz
+
+.include <bsd.prog.mk>
+
+.PATH: ${SSHDIR}
+
+${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h