head	1.1;
branch	1.1.1;
access;
symbols
	RELENG_8_4:1.1.1.3.0.30
	RELENG_9_1_0_RELEASE:1.1.1.3
	RELENG_9_1:1.1.1.3.0.28
	RELENG_9_1_BP:1.1.1.3
	RELENG_8_3_0_RELEASE:1.1.1.3
	RELENG_8_3:1.1.1.3.0.26
	RELENG_8_3_BP:1.1.1.3
	RELENG_9_0_0_RELEASE:1.1.1.3
	RELENG_9_0:1.1.1.3.0.24
	RELENG_9_0_BP:1.1.1.3
	RELENG_9:1.1.1.3.0.22
	RELENG_9_BP:1.1.1.3
	RELENG_7_4_0_RELEASE:1.1.1.3
	RELENG_8_2_0_RELEASE:1.1.1.3
	RELENG_7_4:1.1.1.3.0.20
	RELENG_7_4_BP:1.1.1.3
	RELENG_8_2:1.1.1.3.0.18
	RELENG_8_2_BP:1.1.1.3
	RELENG_8_1_0_RELEASE:1.1.1.3
	RELENG_8_1:1.1.1.3.0.16
	RELENG_8_1_BP:1.1.1.3
	RELENG_7_3_0_RELEASE:1.1.1.3
	RELENG_7_3:1.1.1.3.0.14
	RELENG_7_3_BP:1.1.1.3
	RELENG_8_0_0_RELEASE:1.1.1.3
	RELENG_8_0:1.1.1.3.0.12
	RELENG_8_0_BP:1.1.1.3
	RELENG_8:1.1.1.3.0.10
	RELENG_8_BP:1.1.1.3
	RELENG_7_2_0_RELEASE:1.1.1.3
	RELENG_7_2:1.1.1.3.0.8
	RELENG_7_2_BP:1.1.1.3
	RELENG_7_1_0_RELEASE:1.1.1.3
	RELENG_6_4_0_RELEASE:1.1.1.2.2.1
	RELENG_7_1:1.1.1.3.0.6
	RELENG_7_1_BP:1.1.1.3
	RELENG_6_4:1.1.1.2.2.1.0.6
	RELENG_6_4_BP:1.1.1.2.2.1
	RELENG_7_0_0_RELEASE:1.1.1.3
	RELENG_6_3_0_RELEASE:1.1.1.2.2.1
	RELENG_7_0:1.1.1.3.0.4
	RELENG_7_0_BP:1.1.1.3
	RELENG_6_3:1.1.1.2.2.1.0.4
	RELENG_6_3_BP:1.1.1.2.2.1
	RELENG_7:1.1.1.3.0.2
	RELENG_7_BP:1.1.1.3
	RELENG_6_2_0_RELEASE:1.1.1.2.2.1
	RELENG_6_2:1.1.1.2.2.1.0.2
	RELENG_6_2_BP:1.1.1.2.2.1
	nbsd_20060831:1.1.1.3
	RELENG_5_5_0_RELEASE:1.1.1.1.8.1
	RELENG_5_5:1.1.1.1.8.1.0.6
	RELENG_5_5_BP:1.1.1.1.8.1
	RELENG_6_1_0_RELEASE:1.1.1.2
	RELENG_6_1:1.1.1.2.0.6
	RELENG_6_1_BP:1.1.1.2
	RELENG_6_0_0_RELEASE:1.1.1.2
	RELENG_6_0:1.1.1.2.0.4
	RELENG_6_0_BP:1.1.1.2
	RELENG_6:1.1.1.2.0.2
	RELENG_6_BP:1.1.1.2
	RELENG_5_4_0_RELEASE:1.1.1.1.8.1
	RELENG_5_4:1.1.1.1.8.1.0.4
	RELENG_5_4_BP:1.1.1.1.8.1
	RELENG_4_11_0_RELEASE:1.1.1.1.4.1
	RELENG_4_11:1.1.1.1.4.1.0.6
	RELENG_4_11_BP:1.1.1.1.4.1
	RELENG_5_3_0_RELEASE:1.1.1.1.8.1
	RELENG_5_3:1.1.1.1.8.1.0.2
	RELENG_5_3_BP:1.1.1.1.8.1
	nbsd_20040809:1.1.1.2
	RELENG_5:1.1.1.1.0.8
	RELENG_5_BP:1.1.1.1
	RELENG_4_10_0_RELEASE:1.1.1.1.4.1
	RELENG_4_10:1.1.1.1.4.1.0.4
	RELENG_4_10_BP:1.1.1.1.4.1
	RELENG_5_2_1_RELEASE:1.1.1.1
	RELENG_5_2_0_RELEASE:1.1.1.1
	RELENG_5_2:1.1.1.1.0.6
	RELENG_5_2_BP:1.1.1.1
	RELENG_4_9_0_RELEASE:1.1.1.1.4.1
	RELENG_4_9:1.1.1.1.4.1.0.2
	RELENG_4_9_BP:1.1.1.1.4.1
	RELENG_4:1.1.1.1.0.4
	RELENG_5_1_0_RELEASE:1.1.1.1
	RELENG_5_1:1.1.1.1.0.2
	RELENG_5_1_BP:1.1.1.1
	nbsd_20030122:1.1.1.1
	nbsd_20030105:1.1.1.1
	LUKEM:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2003.01.06.00.06.47;	author obrien;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2003.01.06.00.06.47;	author obrien;	state Exp;
branches
	1.1.1.1.4.1
	1.1.1.1.8.1;
next	1.1.1.2;

1.1.1.2
date	2004.08.18.06.29.47;	author obrien;	state Exp;
branches
	1.1.1.2.2.1;
next	1.1.1.3;

1.1.1.3
date	2006.08.31.16.55.07;	author obrien;	state Exp;
branches
	1.1.1.3.30.1;
next	;

1.1.1.1.4.1
date	2003.08.24.17.46.48;	author obrien;	state Exp;
branches;
next	;

1.1.1.1.8.1
date	2004.08.21.03.45.51;	author obrien;	state Exp;
branches;
next	;

1.1.1.2.2.1
date	2006.09.07.19.29.41;	author obrien;	state Exp;
branches;
next	;

1.1.1.3.30.1
date	2006.08.31.16.55.07;	author svnexp;	state dead;
branches;
next	1.1.1.3.30.2;

1.1.1.3.30.2
date	2013.03.28.13.01.39;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@#	$NetBSD: Makefile,v 1.49 2002/08/22 00:09:38 christos Exp $
#	@@(#)Makefile	8.2 (Berkeley) 4/4/94

.include <bsd.own.mk>

PROG=	ftpd
SRCS=	cmds.c conf.c ftpd.c ftpcmd.y logutmp.c logwtmp.c popen.c
CPPFLAGS+=-I${.CURDIR} -DSUPPORT_UTMP -DSUPPORT_UTMPX
DPADD+=	${LIBCRYPT} ${LIBUTIL}
LDADD+=	-lcrypt -lutil
MAN=	ftpd.conf.5 ftpusers.5 ftpd.8
MLINKS=	ftpusers.5 ftpchroot.5

# for `internal' ls
SRCS+=	ls.c cmp.c print.c stat_flags.c util.c
.PATH:	${NETBSDSRCDIR}/bin/ls

CPPFLAGS+=-DINET6
.include <bsd.own.mk>

WARNS=2

.if (${USE_SKEY} != "no")
CPPFLAGS+=-DSKEY
DPADD+= ${LIBSKEY}
LDADD+= -lskey
.endif

ftpd.o ftpcmd.o: version.h

# XXX Kerberos support is broken right now.
#.PATH:	${NETBSDSRCDIR}/usr.bin/login

#.ifdef KERBEROS5
#SRCS+=	k5login.c
#CPPFLAGS+=-DKERBEROS5
#DPADD+= ${LIBKRB5} ${LIBK5CRYPTO} ${LIBCOM_ERR}
#LDADD+= -lkrb5 -lk5crypto -lcom_err
#.else
#SRCS+=	klogin.c
#CPPFLAGS+=-DKERBEROS
#DPADD+= ${LIBKRB} ${LIBDES} ${LIBCOM_ERR}
#LDADD+= -lkrb -kdes -lcom_err
#.endif

.include <bsd.prog.mk>
@


1.1.1.1
log
@Import of LukeM's ftpd taken from the NetBSD CVS repo on 5-Jan-2003.
The "portable" release of this is just lagging way too far behind
what is in NetBSD's base.
@
text
@@


1.1.1.1.8.1
log
@MFC: Import of LukeM's ftpd taken from the NetBSD CVS repo on 9-Aug-2004.

Approved by:	re(kensmith)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.51 2003-07-23 08:01:27 itojun Exp $
d31 1
a31 2
#.if (${USE_KERBEROS} != "no")
#
d33 2
a34 1
#
d37 7
a43 12
#CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
#DPADD+=	${LIBKRB5} ${LIBASN1}
#LDADD+= -lkrb5 -lasn1
#
#SRCS+= klogin.c
#CPPFLAGS+=-DKERBEROS -I${DESTDIR}/usr/include/kerberosIV
#DPADD+=	${LIBKRB}
#LDADD+= -lkrb
#
#DPADD+=	${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
#LDADD+=	-lcrypto -lroken -lcom_err
#
@


1.1.1.2
log
@Import of LukeM's ftpd taken from the NetBSD CVS repo on 9-Aug-2004.
This closes the remotely exploitable vulnerability documented at
ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2004-009.txt.asc
http://www.vuxml.org/freebsd/c4b025bb-f05d-11d8-9837-000c41e2cdad.html
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.51 2003-07-23 08:01:27 itojun Exp $
d31 1
a31 2
#.if (${USE_KERBEROS} != "no")
#
d33 2
a34 1
#
d37 7
a43 12
#CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
#DPADD+=	${LIBKRB5} ${LIBASN1}
#LDADD+= -lkrb5 -lasn1
#
#SRCS+= klogin.c
#CPPFLAGS+=-DKERBEROS -I${DESTDIR}/usr/include/kerberosIV
#DPADD+=	${LIBKRB}
#LDADD+= -lkrb
#
#DPADD+=	${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
#LDADD+=	-lcrypto -lroken -lcom_err
#
@


1.1.1.2.2.1
log
@MFC: LukeM's ftpd taken from the NetBSD CVS repo on 31-Aug-2006.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.56 2006/03/23 20:14:16 wiz Exp $
d8 1
a8 1
CPPFLAGS+=-I${.CURDIR} -DSUPPORT_UTMP -DSUPPORT_UTMPX -DLOGIN_CAP
a17 1
.if (${USE_INET6} != "no")
d19 1
a19 1
.endif
a27 5
.if (${USE_PAM} != "no")
CPPFLAGS+=-DUSE_PAM
DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
LDADD+= -lpam ${PAM_STATIC_LDADD}
.endif
d41 7
a47 2
#DPADD+=	${LIBCRYPTO} ${{LIBCRYPT} ${LIBROKEN} ${LIBCOM_ERR}
#LDADD+=	-lcrypto -lcrypt -lroken -lcom_err
@


1.1.1.3
log
@Import of LukeM's ftpd taken from the NetBSD CVS repo on 31-Aug-2006.
+ Add PAM and LOGIN_CAP support. Mostly from FreeBSD.
+ Implement option "-D", for running ftpd in standalone mode (daemon).
+ NLST should return 450 instead of 550 upon error, per RFC 959.
+ Add recvbufsize configuration option
+ Remove unreachable code (res could never be NULL here), Coverity CID 712.
+ Set file to NULL after calling fclose(), Coverity CID 2669.
+ Make sure that "su" is initialized before dereferencing it, Coverity CID 1075.
+ Cleanup utmp and utmpx support.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.56 2006/03/23 20:14:16 wiz Exp $
d8 1
a8 1
CPPFLAGS+=-I${.CURDIR} -DSUPPORT_UTMP -DSUPPORT_UTMPX -DLOGIN_CAP
a17 1
.if (${USE_INET6} != "no")
d19 1
a19 1
.endif
a27 5
.if (${USE_PAM} != "no")
CPPFLAGS+=-DUSE_PAM
DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
LDADD+= -lpam ${PAM_STATIC_LDADD}
.endif
d41 7
a47 2
#DPADD+=	${LIBCRYPTO} ${{LIBCRYPT} ${LIBROKEN} ${LIBCOM_ERR}
#LDADD+=	-lcrypto -lcrypt -lroken -lcom_err
@


1.1.1.3.30.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:01:39 +0000
@
text
@d1 52
@


1.1.1.3.30.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 52
#	$NetBSD: Makefile,v 1.56 2006/03/23 20:14:16 wiz Exp $
#	@@(#)Makefile	8.2 (Berkeley) 4/4/94

.include <bsd.own.mk>

PROG=	ftpd
SRCS=	cmds.c conf.c ftpd.c ftpcmd.y logutmp.c logwtmp.c popen.c
CPPFLAGS+=-I${.CURDIR} -DSUPPORT_UTMP -DSUPPORT_UTMPX -DLOGIN_CAP
DPADD+=	${LIBCRYPT} ${LIBUTIL}
LDADD+=	-lcrypt -lutil
MAN=	ftpd.conf.5 ftpusers.5 ftpd.8
MLINKS=	ftpusers.5 ftpchroot.5

# for `internal' ls
SRCS+=	ls.c cmp.c print.c stat_flags.c util.c
.PATH:	${NETBSDSRCDIR}/bin/ls

.if (${USE_INET6} != "no")
CPPFLAGS+=-DINET6
.endif

WARNS=2

.if (${USE_SKEY} != "no")
CPPFLAGS+=-DSKEY
DPADD+= ${LIBSKEY}
LDADD+= -lskey
.endif
.if (${USE_PAM} != "no")
CPPFLAGS+=-DUSE_PAM
DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
LDADD+= -lpam ${PAM_STATIC_LDADD}
.endif

ftpd.o ftpcmd.o: version.h

#.if (${USE_KERBEROS} != "no")
#
#.PATH:	${NETBSDSRCDIR}/usr.bin/login
#
#SRCS+=	k5login.c
#CPPFLAGS+=-DKERBEROS5
#CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
#DPADD+=	${LIBKRB5} ${LIBASN1}
#LDADD+= -lkrb5 -lasn1
#
#DPADD+=	${LIBCRYPTO} ${{LIBCRYPT} ${LIBROKEN} ${LIBCOM_ERR}
#LDADD+=	-lcrypto -lcrypt -lroken -lcom_err
#
#.endif

.include <bsd.prog.mk>
@


1.1.1.1.4.1
log
@MFC: LukeM's ftpd taken from the NetBSD CVS repo on 5-Jan-2003.
@
text
@@

