c984c19121
solution with less code replication. use realpath() in logcmd() so that all logged filenames are sane. * support `REST STREAM' in `FEAT' reply (from draft-ietf-ftpext-mlst-05) * in 'HELP', suffix unimplemented commands with `-' instead of `*'; the former is easier to differentiate from `+'. * deprecate curdir() now that logcmd() doesn't use it. * ensure all filename buffers are at least MAXPATHLEN+1 in size. * move jmp_buf errcatch out of extern.h, removing need to #include <setjmp.h> in every file.
39 lines
794 B
Makefile
39 lines
794 B
Makefile
# $NetBSD: Makefile,v 1.29 1998/12/28 04:54:00 lukem Exp $
|
|
# @(#)Makefile 8.2 (Berkeley) 4/4/94
|
|
|
|
PROG= ftpd
|
|
SRCS= conf.c ftpd.c ftpcmd.y logwtmp.c popen.c util.c
|
|
CPPFLAGS+=-DHASSETPROCTITLE
|
|
DPADD+= ${LIBCRYPT}
|
|
LDADD+= -lcrypt
|
|
MAN= ftpd.8
|
|
MLINKS+=ftpd.8 ftpd.conf.5
|
|
.PATH: ${.CURDIR}/../../usr.bin/ftp ${.CURDIR}/../../usr.bin/login
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.ifdef SKEY
|
|
CPPFLAGS+=-DSKEY
|
|
DPADD+= ${LIBSKEY}
|
|
LDADD+= -lskey
|
|
.endif
|
|
|
|
.ifdef KERBEROS5
|
|
SRCS+= k5login.c
|
|
CPPFLAGS+=-DKERBEROS5
|
|
DPADD+= ${LIBKRB5} ${LIBCRYPTO}
|
|
LDADD+= -lkrb5 -lcrypto -lcom_err
|
|
.elifdef KERBEROS
|
|
SRCS+= klogin.c
|
|
CPPFLAGS+=-DKERBEROS
|
|
DPADD+= ${LIBKRB} ${LIBDES}
|
|
LDADD+= -lkrb -ldes
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
# XXX Work-around a compiler bug for now... can't use -O
|
|
.if (${MACHINE_ARCH} == "powerpc")
|
|
COPTS+=-O0
|
|
.endif
|