a26448af43
* implement draft-ietf-ftpext-mlst-10 commands, especially MLST and MLSD. we already supported SIZE and MDTM. add the appropriate FEAT output lines. * migrate a lot of the command code from ftpcmd.y and ftpd.c to cmds.c * make dataconn(), feat(), lookup(), opts() and sizecmd() public * modify struct tab so that it has a `flags' instead of `implemented' element, and remove the `hasopts' element. If flags == 1, the command is implemented. if flags == 2, the command is implemented and takes options * add macros ISDOTDIR(x) (is x ".") and ISDOTDOTDIR(x) (is x "..") * modify lreply() so that lreply(-2, ...) just outputs the given info without a prefix or trailing \r\n. this saves doing b = printf(); total_* += b; * enhance statcmd(). still needs work in the LPRT status stuff. * crank version
36 lines
752 B
Makefile
36 lines
752 B
Makefile
# $NetBSD: Makefile,v 1.41 2000/06/14 13:44:21 lukem Exp $
|
|
# @(#)Makefile 8.2 (Berkeley) 4/4/94
|
|
|
|
SRCTOP= ../..
|
|
.include <bsd.crypto.mk>
|
|
|
|
PROG= ftpd
|
|
SRCS= cmds.c conf.c ftpd.c ftpcmd.y logutmp.c logwtmp.c popen.c
|
|
CPPFLAGS+=-DHASSETPROCTITLE
|
|
# CPPFLAGS+=-DDEBUG # XXX for lukem testing
|
|
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: ${.CURDIR}/../../bin/ls
|
|
|
|
CPPFLAGS+=-DINET6
|
|
.include <bsd.own.mk>
|
|
|
|
.ifdef SKEY
|
|
CPPFLAGS+=-DSKEY
|
|
DPADD+= ${LIBSKEY}
|
|
LDADD+= -lskey
|
|
.endif
|
|
|
|
ftpd.o ftpcmd.o: version.h
|
|
|
|
.if defined(CRYPTOPATH)
|
|
.sinclude "${CRYPTOPATH}/libexec/ftpd/Makefile.frag"
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|