summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd/Makefile
diff options
context:
space:
mode:
authordavidn <davidn@FreeBSD.org>1997-04-26 12:12:10 +0000
committerdavidn <davidn@FreeBSD.org>1997-04-26 12:12:10 +0000
commita1afe7148074c37601ddb27c0db42c7e7e29ac69 (patch)
tree91a142b078eba657ed76e534ddca5851a3f61c20 /libexec/ftpd/Makefile
parent6323aa10bffe459912ba8b2f8592c7ac4ffd8705 (diff)
downloadFreeBSD-src-a1afe7148074c37601ddb27c0db42c7e7e29ac69.zip
FreeBSD-src-a1afe7148074c37601ddb27c0db42c7e7e29ac69.tar.gz
Adds optional "internal ls" support for ftpd, by collecting
modules from src/bin/ls, and handling exec(_PATH_LS,..) as a special case, very useful in an environment where many users are given chroot access. "~/etc/{s}pwd.db" files are still needed if uid/gid->user/group translation is desired. To enable this it must be compiled with the make variable FTP_INTERNAL_LS defined, either in /etc/make.conf or the environment.
Diffstat (limited to 'libexec/ftpd/Makefile')
-rw-r--r--libexec/ftpd/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/libexec/ftpd/Makefile b/libexec/ftpd/Makefile
index 20fc19f..6bb3bdb 100644
--- a/libexec/ftpd/Makefile
+++ b/libexec/ftpd/Makefile
@@ -1,5 +1,5 @@
# @(#)Makefile 8.2 (Berkeley) 4/4/94
-# $Id: Makefile,v 1.19 1997/02/22 14:21:26 peter Exp $
+# $Id: Makefile,v 1.20 1997/04/23 04:56:39 davidn Exp $
PROG= ftpd
MAN8= ftpd.8
@@ -12,6 +12,13 @@ DPADD= ${LIBSKEY} ${LIBMD} ${LIBCRYPT} ${LIBUTIL}
CLEANFILES+=ftpcmd.c y.tab.h
+.ifdef FTPD_INTERNAL_LS
+LSDIR= ../../bin/ls
+.PATH: ${.CURDIR}/${LSDIR}
+SRCS+= ls.c cmp.c print.c stat_flags.c util.c
+CFLAGS+=-DINTERNAL_LS -Dmain=ls_main -I${.CURDIR}/${LSDIR}
+.endif
+
.if exists(${DESTDIR}/usr/lib/libkrb.a) && defined(MAKE_EBONES)
.PATH: ${.CURDIR}/../../usr.bin/login
SRCS+= klogin.c
OpenPOWER on IntegriCloud