1997-10-12 18:04:36 +04:00
|
|
|
# $NetBSD: Makefile,v 1.23 1997/10/12 14:04:36 mycroft Exp $
|
1995-04-11 06:44:45 +04:00
|
|
|
# @(#)Makefile 8.2 (Berkeley) 4/4/94
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1997-04-19 09:13:26 +04:00
|
|
|
# XXX Work-around a compiler bug for now... can't use -O
|
|
|
|
.if (${MACHINE_ARCH} == "powerpc")
|
|
|
|
CFLAGS=
|
|
|
|
.endif
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
PROG= ftpd
|
* implement /etc/ftpd.conf, which adds support for the following features,
controllable on a per class (which is one of: real, chroot, guest,
all or none) basis:
* on-the-fly execution of a command to build the file (a ``conversion''),
providing support for "get dirname.tar" and the like.
* displaying the contents of a file when a directory is entered
for the first time.
* maximum value for timeout (replaces -T).
* control usage of CHMOD, DELE, MKD, RMD, UMASK; replacing -DINSECURE_GUEST.
* notifying the user of the existance of a files matching a glob
pattern when a directory is entered for the first time.
* default value for timeout (replaces -t).
* default umask (replaces -DGUEST_CMASK and -u).
The conversion, display, and notify functionality was based on code by
Simon Burge <simonb@telstra.com.au>.
* clean up and re-order parts of the man page into subsections.
* STAT displays the settings defined for the class of the current user.
* bump version from 6.00 to 7.00, because of ftpd.conf.
* deprecate -DGUEST_CMASK and -DINSECURE_GUEST in the Makefile, and
-t, -T and -u, as ftpd.conf allows finer control of these.
* add "nostderr" argument to ftpd_popen(), because you don't want the
stderr stream mixing with the stdout stream during a conversion,
as this can corrupt the stream.
1997-06-14 12:43:26 +04:00
|
|
|
SRCS= conf.c ftpd.c ftpcmd.c logwtmp.c popen.c
|
1997-10-12 17:08:41 +04:00
|
|
|
CPPFLAGS+=-DHASSETPROCTITLE -Dunix
|
|
|
|
DPADD+= ${LIBCRYPT}
|
|
|
|
LDADD+= -lcrypt
|
1994-12-22 12:57:51 +03:00
|
|
|
MAN= ftpd.8
|
1993-03-21 12:45:37 +03:00
|
|
|
CLEANFILES+=ftpcmd.c y.tab.h
|
1994-03-30 06:49:15 +04:00
|
|
|
.PATH: ${.CURDIR}/../../usr.bin/ftp ${.CURDIR}/../../usr.bin/login
|
1993-10-07 05:16:39 +03:00
|
|
|
|
1997-10-12 17:08:41 +04:00
|
|
|
.include <bsd.prog.mk>
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1997-10-12 17:08:41 +04:00
|
|
|
.ifdef SKEY
|
|
|
|
CPPFLAGS+=-DSKEY
|
|
|
|
DPADD+= ${LIBSKEY}
|
|
|
|
LDADD+= -lskey
|
1997-10-12 17:09:11 +04:00
|
|
|
.endif
|
1997-10-12 17:08:41 +04:00
|
|
|
|
1997-10-12 18:04:36 +04:00
|
|
|
.ifdef KERBEROS5
|
|
|
|
SRCS+= k5login.c
|
|
|
|
CPPFLAGS+=-DKERBEROS5
|
|
|
|
DPADD+= ${LIBKRB5} ${LIBCRYPTO}
|
|
|
|
LDADD+= -lkrb5 -lcrypto -lcom_err
|
|
|
|
.elifdef KERBEROS
|
1997-10-12 17:08:41 +04:00
|
|
|
SRCS+= klogin.c
|
|
|
|
CPPFLAGS+=-DKERBEROS
|
1997-10-12 18:04:36 +04:00
|
|
|
DPADD+= ${LIBKRB} ${LIBDES}
|
|
|
|
LDADD+= -lkrb -ldes
|
1994-03-30 06:49:15 +04:00
|
|
|
.endif
|