2003-12-20 14:38:37 +01:00
|
|
|
# $NetBSD: Makefile,v 1.7 2003/12/20 13:38:37 grant Exp $
|
2003-02-27 05:53:34 +01:00
|
|
|
#
|
|
|
|
|
2003-12-18 02:14:59 +01:00
|
|
|
DISTNAME= tnftpd-20031217
|
2003-12-20 14:38:37 +01:00
|
|
|
PKGREVISION= 1
|
2003-02-27 05:53:34 +01:00
|
|
|
CATEGORIES= net
|
2003-07-18 00:50:55 +02:00
|
|
|
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/tnftp/
|
2003-02-27 05:53:34 +01:00
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= lukem@NetBSD.org
|
2003-02-27 05:53:34 +01:00
|
|
|
COMMENT= The NetBSD FTP Daemon
|
|
|
|
|
|
|
|
CONFLICTS= wu-ftpd-[0-9]*
|
|
|
|
CONFLICTS+= kth-krb4-[0-9]*
|
2003-12-18 02:49:05 +01:00
|
|
|
CONFLICTS+= lukemftpd-[0-9]*
|
2003-02-27 05:53:34 +01:00
|
|
|
|
2003-12-18 02:49:05 +01:00
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
MANCOMPRESSED_IF_MANZ= YES
|
2003-12-20 14:38:37 +01:00
|
|
|
USE_PKGINSTALL= YES
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
|
|
|
|
|
|
CONF_FILES+= ${EXAMPLEDIR}/ftpd.conf ${PKG_SYSCONFDIR}/ftpd.conf
|
|
|
|
CONF_FILES+= ${EXAMPLEDIR}/ftpusers ${PKG_SYSCONFDIR}/ftpusers
|
2003-02-27 05:53:34 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
# Include SOCKS firewall support
|
2003-12-18 02:49:05 +01:00
|
|
|
.if defined(USE_SOCKS) && (${USE_SOCKS} == "4" || ${USE_SOCKS} == "5")
|
|
|
|
. if ${USE_SOCKS} == "4"
|
2003-02-27 05:53:34 +01:00
|
|
|
DEPENDS+= socks4-2.2:../../net/socks4
|
|
|
|
CONFIGURE_ARGS+= --with-socks4
|
2003-12-18 02:49:05 +01:00
|
|
|
. else
|
2003-02-27 05:53:34 +01:00
|
|
|
DEPENDS+= socks5-1.0.2:../../net/socks5
|
|
|
|
CONFIGURE_ARGS+= --with-socks5
|
2003-12-18 02:49:05 +01:00
|
|
|
. endif
|
2003-02-27 05:53:34 +01:00
|
|
|
.endif
|
|
|
|
|
2003-12-18 02:49:05 +01:00
|
|
|
.if defined(USE_INET6) && ${USE_INET6} == "YES"
|
2003-02-27 05:53:34 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
|
|
|
|
2003-12-19 22:30:00 +01:00
|
|
|
OPSYSVARS+= MAKE_ENV
|
|
|
|
MAKE_ENV.SunOS+= CPPFLAGS=""
|
2003-02-27 05:53:34 +01:00
|
|
|
|
2003-12-18 02:14:59 +01:00
|
|
|
EXAMPLEDIR= ${PREFIX}/share/examples/tnftpd
|
|
|
|
|
2003-02-27 05:53:34 +01:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/tnftpd ${PREFIX}/libexec
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/ftpd.conf.5 ${PREFIX}/man/man5
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/ftpusers.5 ${PREFIX}/man/man5
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/ftpd.8 ${PREFIX}/man/man8
|
2003-12-18 02:14:59 +01:00
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/ftpd.conf ${EXAMPLEDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/ftpusers ${EXAMPLEDIR}
|
2003-02-27 05:53:34 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|