Sun Apr 24 21:42:06 2011 UTC ()
We no longer need -I/usr/include/krb5.


(elric)
diff -r1.60 -r1.61 src/libexec/ftpd/Makefile
diff -r1.47 -r1.48 src/libexec/telnetd/Makefile
diff -r1.51 -r1.52 src/usr.bin/login/Makefile
diff -r1.41 -r1.42 src/usr.bin/passwd/Makefile
diff -r1.49 -r1.50 src/usr.bin/su/Makefile
diff -r1.44 -r1.45 src/usr.bin/telnet/Makefile

cvs diff -r1.60 -r1.61 src/libexec/ftpd/Makefile (expand / switch to unified diff)

--- src/libexec/ftpd/Makefile 2009/03/15 07:48:36 1.60
+++ src/libexec/ftpd/Makefile 2011/04/24 21:42:06 1.61
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.60 2009/03/15 07:48:36 lukem Exp $ 1# $NetBSD: Makefile,v 1.61 2011/04/24 21:42:06 elric Exp $
2# @(#)Makefile 8.2 (Berkeley) 4/4/94 2# @(#)Makefile 8.2 (Berkeley) 4/4/94
3 3
4.include <bsd.own.mk> 4.include <bsd.own.mk>
5 5
6PROG= ftpd 6PROG= ftpd
7SRCS= cmds.c conf.c ftpd.c ftpcmd.y logutmp.c logwtmp.c popen.c 7SRCS= cmds.c conf.c ftpd.c ftpcmd.y logutmp.c logwtmp.c popen.c
8CPPFLAGS+=-I${.CURDIR} -DSUPPORT_UTMP -DSUPPORT_UTMPX -DLOGIN_CAP 8CPPFLAGS+=-I${.CURDIR} -DSUPPORT_UTMP -DSUPPORT_UTMPX -DLOGIN_CAP
9DPADD+= ${LIBCRYPT} ${LIBUTIL} 9DPADD+= ${LIBCRYPT} ${LIBUTIL}
10LDADD+= -lcrypt -lutil 10LDADD+= -lcrypt -lutil
11MAN= ftpd.conf.5 ftpusers.5 ftpd.8 11MAN= ftpd.conf.5 ftpusers.5 ftpd.8
12MLINKS= ftpusers.5 ftpchroot.5 12MLINKS= ftpusers.5 ftpchroot.5
13 13
14.if defined(NO_INTERNAL_LS) 14.if defined(NO_INTERNAL_LS)
@@ -33,23 +33,22 @@ CPPFLAGS+=-DSKEY @@ -33,23 +33,22 @@ CPPFLAGS+=-DSKEY
33DPADD+= ${LIBSKEY} 33DPADD+= ${LIBSKEY}
34LDADD+= -lskey 34LDADD+= -lskey
35.endif 35.endif
36.endif # USE_PAM == no 36.endif # USE_PAM == no
37 37
38ftpd.o ftpcmd.o: version.h 38ftpd.o ftpcmd.o: version.h
39 39
40#.if (${USE_KERBEROS} != "no") 40#.if (${USE_KERBEROS} != "no")
41# 41#
42#.PATH: ${NETBSDSRCDIR}/usr.bin/login 42#.PATH: ${NETBSDSRCDIR}/usr.bin/login
43# 43#
44#SRCS+= k5login.c 44#SRCS+= k5login.c
45#CPPFLAGS+=-DKERBEROS5 45#CPPFLAGS+=-DKERBEROS5
46#CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5 
47#DPADD+= ${LIBKRB5} ${LIBASN1} 46#DPADD+= ${LIBKRB5} ${LIBASN1}
48#LDADD+= -lkrb5 -lasn1 47#LDADD+= -lkrb5 -lasn1
49# 48#
50#DPADD+= ${LIBCRYPTO} ${{LIBCRYPT} ${LIBROKEN} ${LIBCOM_ERR} 49#DPADD+= ${LIBCRYPTO} ${{LIBCRYPT} ${LIBROKEN} ${LIBCOM_ERR}
51#LDADD+= -lcrypto -lcrypt -lroken -lcom_err 50#LDADD+= -lcrypto -lcrypt -lroken -lcom_err
52# 51#
53#.endif 52#.endif
54 53
55.include <bsd.prog.mk> 54.include <bsd.prog.mk>

cvs diff -r1.47 -r1.48 src/libexec/telnetd/Makefile (expand / switch to unified diff)

--- src/libexec/telnetd/Makefile 2011/04/15 18:05:45 1.47
+++ src/libexec/telnetd/Makefile 2011/04/24 21:42:06 1.48
@@ -1,37 +1,36 @@ @@ -1,37 +1,36 @@
1# $NetBSD: Makefile,v 1.47 2011/04/15 18:05:45 elric Exp $ 1# $NetBSD: Makefile,v 1.48 2011/04/24 21:42:06 elric Exp $
2# from: @(#)Makefile 8.2 (Berkeley) 12/15/93 2# from: @(#)Makefile 8.2 (Berkeley) 12/15/93
3 3
4WARNS?= 2 # XXX: const issues in sys_term.c 4WARNS?= 2 # XXX: const issues in sys_term.c
5 5
6.include <bsd.own.mk> 6.include <bsd.own.mk>
7 7
8MAN= telnetd.8 8MAN= telnetd.8
9 9
10PROG= telnetd 10PROG= telnetd
11CPPFLAGS+=-DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS 11CPPFLAGS+=-DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS
12CPPFLAGS+=-DOLD_ENVIRON -DENV_HACK -DSECURELOGIN -DSUPPORT_UTMP -DSUPPORT_UTMPX 12CPPFLAGS+=-DOLD_ENVIRON -DENV_HACK -DSECURELOGIN -DSUPPORT_UTMP -DSUPPORT_UTMPX
13SRCS= authenc.c global.c slc.c state.c sys_term.c telnetd.c \ 13SRCS= authenc.c global.c slc.c state.c sys_term.c telnetd.c \
14 termstat.c utility.c 14 termstat.c utility.c
15DPADD= ${LIBTELNETDIR}/libtelnet.a ${LIBTERMINFO} ${LIBUTIL} 15DPADD= ${LIBTELNETDIR}/libtelnet.a ${LIBTERMINFO} ${LIBUTIL}
16LDADD+= ${LIBTELNETDIR}/libtelnet.a -lterminfo -lutil 16LDADD+= ${LIBTELNETDIR}/libtelnet.a -lterminfo -lutil
17 17
18CPPFLAGS+=-I${NETBSDSRCDIR}/lib 18CPPFLAGS+=-I${NETBSDSRCDIR}/lib
19CPPFLAGS+=-I${.CURDIR} 19CPPFLAGS+=-I${.CURDIR}
20 20
21LIBTELNETDIR!= cd ${.CURDIR}/../../lib/libtelnet; ${PRINTOBJDIR} 21LIBTELNETDIR!= cd ${.CURDIR}/../../lib/libtelnet; ${PRINTOBJDIR}
22 22
23.if (${USE_KERBEROS} != "no") 23.if (${USE_KERBEROS} != "no")
24CPPFLAGS+=-I${DESTDIR}/usr/include/krb5 
25CPPFLAGS+=-DKRB5 -DAUTHENTICATION -DENCRYPTION 24CPPFLAGS+=-DKRB5 -DAUTHENTICATION -DENCRYPTION
26LDADD+= -lkrb5 -lasn1 -lcrypto -lcrypt 25LDADD+= -lkrb5 -lasn1 -lcrypto -lcrypt
27DPADD+= ${LIBKRB5} ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} 26DPADD+= ${LIBKRB5} ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT}
28 27
29.if (${USE_PAM} != "no") 28.if (${USE_PAM} != "no")
30LDADD+= -lpam ${PAM_STATIC_LDADD} 29LDADD+= -lpam ${PAM_STATIC_LDADD}
31DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD} 30DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
32.endif 31.endif
33 32
34LDADD+= -ldes -lcom_err -lroken 33LDADD+= -ldes -lcom_err -lroken
35DPADD+= ${LIBDES} ${LIBCOM_ERR} ${LIBROKEN} 34DPADD+= ${LIBDES} ${LIBCOM_ERR} ${LIBROKEN}
36 35
37.endif 36.endif

cvs diff -r1.51 -r1.52 src/usr.bin/login/Makefile (expand / switch to unified diff)

--- src/usr.bin/login/Makefile 2009/12/29 19:26:13 1.51
+++ src/usr.bin/login/Makefile 2011/04/24 21:42:06 1.52
@@ -1,40 +1,40 @@ @@ -1,40 +1,40 @@
1# $NetBSD: Makefile,v 1.51 2009/12/29 19:26:13 christos Exp $ 1# $NetBSD: Makefile,v 1.52 2011/04/24 21:42:06 elric Exp $
2# @(#)Makefile 8.1 (Berkeley) 7/19/93 2# @(#)Makefile 8.1 (Berkeley) 7/19/93
3 3
4WARNS?= 2 # XXX -Wcast-qual issues 4WARNS?= 2 # XXX -Wcast-qual issues
5 5
6.include <bsd.own.mk> 6.include <bsd.own.mk>
7 7
8USE_FORT?= yes # setuid 8USE_FORT?= yes # setuid
9PROG= login 9PROG= login
10SRCS= copyrightstr.c 10SRCS= copyrightstr.c
11DPADD+= ${LIBUTIL} ${LIBCRYPT} 11DPADD+= ${LIBUTIL} ${LIBCRYPT}
12LDADD+= -lutil -lcrypt 12LDADD+= -lutil -lcrypt
13BINOWN= root 13BINOWN= root
14BINMODE=4555 14BINMODE=4555
15 15
16SRCS+= common.c 16SRCS+= common.c
17.if (${USE_PAM} != "no") 17.if (${USE_PAM} != "no")
18SRCS+= login_pam.c 18SRCS+= login_pam.c
19LDADD+= -lpam ${PAM_STATIC_LDADD} 19LDADD+= -lpam ${PAM_STATIC_LDADD}
20DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD} 20DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
21.else # USE_PAM == no 21.else # USE_PAM == no
22SRCS+= login.c 22SRCS+= login.c
23CPPFLAGS+=-DLOGIN_CAP -DSUPPORT_UTMP -DSUPPORT_UTMPX 23CPPFLAGS+=-DLOGIN_CAP -DSUPPORT_UTMP -DSUPPORT_UTMPX
24 24
25.if (${USE_KERBEROS} != "no") 25.if (${USE_KERBEROS} != "no")
26SRCS+= k5login.c 26SRCS+= k5login.c
27CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5 27CPPFLAGS+=-DKERBEROS5
28DPADD+= ${LIBKRB5} ${LIBASN1} 28DPADD+= ${LIBKRB5} ${LIBASN1}
29LDADD+= -lkrb5 -lasn1 29LDADD+= -lkrb5 -lasn1
30 30
31DPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR} 31DPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
32LDADD+= -lcrypto -lroken -lcom_err 32LDADD+= -lcrypto -lroken -lcom_err
33.endif 33.endif
34 34
35.if (${USE_SKEY} != "no") 35.if (${USE_SKEY} != "no")
36CPPFLAGS+=-DSKEY 36CPPFLAGS+=-DSKEY
37DPADD+= ${LIBSKEY} 37DPADD+= ${LIBSKEY}
38LDADD+= -lskey 38LDADD+= -lskey
39.endif 39.endif
40.endif # USE_PAM == no 40.endif # USE_PAM == no

cvs diff -r1.41 -r1.42 src/usr.bin/passwd/Makefile (expand / switch to unified diff)

--- src/usr.bin/passwd/Makefile 2007/05/28 12:06:29 1.41
+++ src/usr.bin/passwd/Makefile 2011/04/24 21:42:06 1.42
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.41 2007/05/28 12:06:29 tls Exp $ 1# $NetBSD: Makefile,v 1.42 2011/04/24 21:42:06 elric Exp $
2# from: @(#)Makefile 8.3 (Berkeley) 4/2/94 2# from: @(#)Makefile 8.3 (Berkeley) 4/2/94
3 3
4.include <bsd.own.mk> 4.include <bsd.own.mk>
5 5
6USE_FORT?= yes # setuid 6USE_FORT?= yes # setuid
7PROG= passwd 7PROG= passwd
8SRCS= local_passwd.c passwd.c 8SRCS= local_passwd.c passwd.c
9MAN= passwd.1 9MAN= passwd.1
10 10
11CPPFLAGS+=-I${.CURDIR} -DLOGIN_CAP 11CPPFLAGS+=-I${.CURDIR} -DLOGIN_CAP
12 12
13.if (${USE_YP} != "no") 13.if (${USE_YP} != "no")
14SRCS+= yp_passwd.c 14SRCS+= yp_passwd.c
@@ -16,27 +16,27 @@ CPPFLAGS+=-DYP @@ -16,27 +16,27 @@ CPPFLAGS+=-DYP
16DPADD+= ${LIBRPCSVC} 16DPADD+= ${LIBRPCSVC}
17LDADD+= -lrpcsvc 17LDADD+= -lrpcsvc
18LINKS+= ${BINDIR}/passwd ${BINDIR}/yppasswd 18LINKS+= ${BINDIR}/passwd ${BINDIR}/yppasswd
19MAN+= yppasswd.1 19MAN+= yppasswd.1
20.endif 20.endif
21 21
22DPADD+= ${LIBCRYPT} ${LIBUTIL} 22DPADD+= ${LIBCRYPT} ${LIBUTIL}
23LDADD+= -lcrypt -lutil 23LDADD+= -lcrypt -lutil
24 24
25BINOWN= root 25BINOWN= root
26BINMODE=4555 26BINMODE=4555
27 27
28.if (${USE_KERBEROS} != "no") 28.if (${USE_KERBEROS} != "no")
29CPPFLAGS+= -DKERBEROS5 -I${DESTDIR}/usr/include/krb5 29CPPFLAGS+= -DKERBEROS5
30SRCS+= krb5_passwd.c 30SRCS+= krb5_passwd.c
31 31
32DPADD+= ${LIBKRB5} ${LIBCRYPTO} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN} ${LIBCRYPT} 32DPADD+= ${LIBKRB5} ${LIBCRYPTO} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN} ${LIBCRYPT}
33LDADD+= -lkrb5 -lcrypto -lasn1 -lcom_err -lroken -lcrypt 33LDADD+= -lkrb5 -lcrypto -lasn1 -lcom_err -lroken -lcrypt
34LINKS+= ${BINDIR}/passwd ${BINDIR}/kpasswd 34LINKS+= ${BINDIR}/passwd ${BINDIR}/kpasswd
35MAN+= kpasswd.1 35MAN+= kpasswd.1
36.endif 36.endif
37 37
38.if (${USE_PAM} != "no") 38.if (${USE_PAM} != "no")
39CPPFLAGS+=-DUSE_PAM 39CPPFLAGS+=-DUSE_PAM
40SRCS+= pam_passwd.c 40SRCS+= pam_passwd.c
41LDADD+=-lpam ${PAM_STATIC_LDADD} 41LDADD+=-lpam ${PAM_STATIC_LDADD}
42DPADD+=${LIBPAM} ${PAM_STATIC_DPADD} 42DPADD+=${LIBPAM} ${PAM_STATIC_DPADD}

cvs diff -r1.49 -r1.50 src/usr.bin/su/Makefile (expand / switch to unified diff)

--- src/usr.bin/su/Makefile 2008/04/06 09:54:37 1.49
+++ src/usr.bin/su/Makefile 2011/04/24 21:42:06 1.50
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.49 2008/04/06 09:54:37 lukem Exp $ 1# $NetBSD: Makefile,v 1.50 2011/04/24 21:42:06 elric Exp $
2# from: @(#)Makefile 8.1 (Berkeley) 7/19/93 2# from: @(#)Makefile 8.1 (Berkeley) 7/19/93
3 3
4.include <bsd.own.mk> 4.include <bsd.own.mk>
5 5
6USE_FORT?= yes # setuid 6USE_FORT?= yes # setuid
7PROG= su 7PROG= su
8BINOWN= root 8BINOWN= root
9BINMODE=4555 9BINMODE=4555
10 10
11.PATH.c: ${.CURDIR}/../newgrp 11.PATH.c: ${.CURDIR}/../newgrp
12CPPFLAGS+=-I${.CURDIR}/../newgrp 12CPPFLAGS+=-I${.CURDIR}/../newgrp
13CPPFLAGS+=-DLOGIN_CAP 13CPPFLAGS+=-DLOGIN_CAP
14CPPFLAGS+=-DALLOW_GROUP_CHANGE 14CPPFLAGS+=-DALLOW_GROUP_CHANGE
@@ -35,27 +35,27 @@ LDADD+= -lcrypt -lutil @@ -35,27 +35,27 @@ LDADD+= -lcrypt -lutil
35#CPPFLAGS+=-DSU_GROUP=\"sugroup\" 35#CPPFLAGS+=-DSU_GROUP=\"sugroup\"
36 36
37# Uncomment the following line to make su 37# Uncomment the following line to make su
38# treat group wheel (SUGROUP) and/or ROOTAUTH as an indirect 38# treat group wheel (SUGROUP) and/or ROOTAUTH as an indirect
39# list of groups. 39# list of groups.
40#CPPFLAGS+=-DSU_INDIRECT_GROUP 40#CPPFLAGS+=-DSU_INDIRECT_GROUP
41 41
42.if (${USE_KERBEROS} != "no") 42.if (${USE_KERBEROS} != "no")
43.ifdef AFS 43.ifdef AFS
44DPADD+= ${LIBKAFS} 44DPADD+= ${LIBKAFS}
45LDADD+= -lkafs 45LDADD+= -lkafs
46.endif 46.endif
47 47
48CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5 48CPPFLAGS+=-DKERBEROS5
49DPADD+= ${LIBKRB5} ${LIBASN1} 49DPADD+= ${LIBKRB5} ${LIBASN1}
50LDADD+= -lkrb5 -lasn1 50LDADD+= -lkrb5 -lasn1
51 51
52DPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR} 52DPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
53LDADD+= -lcrypto -lroken -lcom_err 53LDADD+= -lcrypto -lroken -lcom_err
54.endif 54.endif
55 55
56.if (${USE_SKEY} != "no") 56.if (${USE_SKEY} != "no")
57CPPFLAGS+=-DSKEY 57CPPFLAGS+=-DSKEY
58DPADD+= ${LIBSKEY} 58DPADD+= ${LIBSKEY}
59LDADD+= -lskey 59LDADD+= -lskey
60.endif 60.endif
61 61

cvs diff -r1.44 -r1.45 src/usr.bin/telnet/Makefile (expand / switch to unified diff)

--- src/usr.bin/telnet/Makefile 2010/02/03 15:34:46 1.44
+++ src/usr.bin/telnet/Makefile 2011/04/24 21:42:06 1.45
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.44 2010/02/03 15:34:46 roy Exp $ 1# $NetBSD: Makefile,v 1.45 2011/04/24 21:42:06 elric Exp $
2# 2#
3# Copyright (c) 1990 The Regents of the University of California. 3# Copyright (c) 1990 The Regents of the University of California.
4# All rights reserved. 4# All rights reserved.
5# 5#
6# Redistribution and use in source and binary forms, with or without 6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions 7# modification, are permitted provided that the following conditions
8# are met: 8# are met:
9# 1. Redistributions of source code must retain the above copyright 9# 1. Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer. 10# notice, this list of conditions and the following disclaimer.
11# 2. Redistributions in binary form must reproduce the above copyright 11# 2. Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the 12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution. 13# documentation and/or other materials provided with the distribution.
14# 3. All advertising materials mentioning features or use of this software 14# 3. All advertising materials mentioning features or use of this software
@@ -53,27 +53,26 @@ SRCS= authenc.c commands.c main.c networ @@ -53,27 +53,26 @@ SRCS= authenc.c commands.c main.c networ
53 53
54CPPFLAGS+=-I${NETBSDSRCDIR}/lib 54CPPFLAGS+=-I${NETBSDSRCDIR}/lib
55CPPFLAGS+=-DIPSEC 55CPPFLAGS+=-DIPSEC
56LDADD+= -lipsec 56LDADD+= -lipsec
57DPADD+= ${LIBIPSEC} 57DPADD+= ${LIBIPSEC}
58 58
59.if (${USE_INET6} != "no") 59.if (${USE_INET6} != "no")
60CPPFLAGS+=-DINET6 60CPPFLAGS+=-DINET6
61.endif 61.endif
62 62
63LIBTELNETDIR!= cd ${.CURDIR}/../../lib/libtelnet; ${PRINTOBJDIR} 63LIBTELNETDIR!= cd ${.CURDIR}/../../lib/libtelnet; ${PRINTOBJDIR}
64 64
65.if (${USE_KERBEROS} != "no") 65.if (${USE_KERBEROS} != "no")
66CPPFLAGS+=-I${DESTDIR}/usr/include/krb5 
67CPPFLAGS+=-DKRB5 -DFORWARD -DAUTHENTICATION -DENCRYPTION 66CPPFLAGS+=-DKRB5 -DFORWARD -DAUTHENTICATION -DENCRYPTION
68LDADD+= -lkrb5 -lasn1 -lcrypto -lcrypt 67LDADD+= -lkrb5 -lasn1 -lcrypto -lcrypt
69DPADD+= ${LIBKRB5} ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} 68DPADD+= ${LIBKRB5} ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT}
70 69
71.if (${USE_PAM} != "no") 70.if (${USE_PAM} != "no")
72LDADD+= -lpam ${PAM_STATIC_LDADD} 71LDADD+= -lpam ${PAM_STATIC_LDADD}
73DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD} 72DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
74.endif 73.endif
75 74
76LDADD+= -ldes -lcom_err -lroken 75LDADD+= -ldes -lcom_err -lroken
77DPADD+= ${LIBDES} ${LIBCOM_ERR} ${LIBROKEN} 76DPADD+= ${LIBDES} ${LIBCOM_ERR} ${LIBROKEN}
78.endif 77.endif
79 78