summaryrefslogtreecommitdiffstats
path: root/secure/usr.sbin
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2000-02-24 17:00:55 +0000
committermarkm <markm@FreeBSD.org>2000-02-24 17:00:55 +0000
commite2eb48858809b3595e98ebc530d7f382cdd3fc40 (patch)
treebaca66ae2b943e94eefb4af6fa76f99f9a4b3962 /secure/usr.sbin
parentf7c4b7763a0f4fb1a11bc2510ac393bb72db1057 (diff)
downloadFreeBSD-src-e2eb48858809b3595e98ebc530d7f382cdd3fc40.zip
FreeBSD-src-e2eb48858809b3595e98ebc530d7f382cdd3fc40.tar.gz
Add the OpenSSH userland-building Makefiles.
Diffstat (limited to 'secure/usr.sbin')
-rw-r--r--secure/usr.sbin/Makefile8
-rw-r--r--secure/usr.sbin/Makefile.inc4
-rw-r--r--secure/usr.sbin/sshd/Makefile43
3 files changed, 55 insertions, 0 deletions
diff --git a/secure/usr.sbin/Makefile b/secure/usr.sbin/Makefile
new file mode 100644
index 0000000..041f303
--- /dev/null
+++ b/secure/usr.sbin/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+SUBDIR=
+.if !defined(NO_OPENSSH)
+SUBDIR+=sshd
+.endif
+
+.include <bsd.subdir.mk>
diff --git a/secure/usr.sbin/Makefile.inc b/secure/usr.sbin/Makefile.inc
new file mode 100644
index 0000000..928489b
--- /dev/null
+++ b/secure/usr.sbin/Makefile.inc
@@ -0,0 +1,4 @@
+# $FreeBSD$
+
+BINDIR= /usr/sbin
+.include "${.CURDIR}/../../Makefile.inc"
diff --git a/secure/usr.sbin/sshd/Makefile b/secure/usr.sbin/sshd/Makefile
new file mode 100644
index 0000000..6a36c29
--- /dev/null
+++ b/secure/usr.sbin/sshd/Makefile
@@ -0,0 +1,43 @@
+# $FreeBSD$
+#
+
+SSHSRC= ${.CURDIR}/../../../crypto/openssh
+
+PROG= sshd
+BINOWN= root
+BINMODE=555
+MAN8= sshd.8
+
+SRCS= sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c \
+ pty.c log-server.c login.c servconf.c serverloop.c
+
+CFLAGS= -DLIBWRAP
+
+.include <bsd.own.mk>
+
+.PATH: ${SSHSRC}
+
+.if defined(MAKE_KERBEROS4) && \
+ ((${MAKE_KERBEROS4} == "yes") || (${MAKE_KERBEROS4} == "YES"))
+CFLAGS+= -DKRB4
+SRCS+= auth-krb4.c
+LDADD+= -lkrb -lcom_err
+DPADD+= ${LIBKRB} ${LIBCOM_ERR}
+.endif # MAKE_KERBEROS4
+
+.if defined(MAKE_KERBEROS5) && \
+ ((${MAKE_KERBEROS5} == "yes") || (${MAKE_KERBEROS5} == "YES"))
+CFLAGS+= -DKRB5
+SRCS+= auth-krb5.c
+LDADD+= -lkrb5 -lcom_err
+DPADD+= ${LIBKRB5} ${LIBCOM_ERR}
+.endif # MAKE_KERBEROS5
+
+.include <bsd.prog.mk>
+
+LDADD+= -L${.OBJDIR}/../../lib/libssh -lssh -lcrypt -lcrypto -lutil -lz -lwrap
+DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBUTIL} ${LIBZ} ${LIBWRAP}
+.if defined(RSAREF) && ${RSAREF} == YES
+LDADD+= -lRSAglue
+DPADD+= ${LIBRSAGLUE}
+.endif
OpenPOWER on IntegriCloud