summaryrefslogtreecommitdiffstats
path: root/security/openssh/files/patch-sshd-Makefile
blob: f50ffc14895812ea7f2c0d79f37bdba9e974976e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--- sshd/Makefile.orig	Thu May 23 13:33:56 2002
+++ sshd/Makefile	Thu May 23 13:36:15 2002
@@ -5,8 +5,8 @@
 PROG=	sshd
 BINOWN=	root
 BINMODE=555
-BINDIR=	/usr/sbin
-MAN=	sshd.8
+BINDIR=	/sbin
+MAN8=	sshd.8
 CFLAGS+=-DHAVE_LOGIN_CAP
 #CFLAGS+=-DBSD_AUTH
 
@@ -17,9 +17,10 @@
 	auth-skey.c auth-bsdauth.c monitor_mm.c monitor.c
 
 .include <bsd.own.mk> # for KERBEROS and AFS
+.include "../Makefile.inc"
 
 .if (${KERBEROS5:L} == "yes")
-CFLAGS+=-DKRB5 -I${DESTDIR}/usr/include/kerberosV
+CFLAGS+=-DKRB5 -I/usr/include/kerberosV
 SRCS+=  auth-krb5.c
 LDADD+= -lkrb5 -lkafs -lasn1 -lcom_err
 DPADD+= ${LIBKRB5} ${LIBKAFS} ${LIBASN1} ${LIBCOM_ERR}
@@ -31,15 +32,15 @@
 LDADD+=  -lkafs
 DPADD+=  ${LIBKAFS}
 .endif # AFS
-CFLAGS+= -DKRB4 -I${DESTDIR}/usr/include/kerberosIV
+CFLAGS+= -DKRB4 -I/usr/include/kerberosIV
 SRCS+=	auth-krb4.c
-LDADD+=	 -lkrb
+LDADD+=	 -lkrb -lcom_err
 DPADD+=	 ${LIBKRB}
 .endif # KERBEROS
 
 .include <bsd.prog.mk>
 
-LDADD+=	-lcrypto -lutil -lz -ldes
+LDADD+=	${CRYPTOLIBS} -lcrypt -lutil -lz
 DPADD+=	${LIBCRYPTO} ${LIBUTIL} ${LIBZ} ${LIBDES}
 
 .if (${TCP_WRAPPERS:L} == "yes")
OpenPOWER on IntegriCloud