1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00

- OPTIONS += sftp

PR:             143018
Submitted by:   zloidemon <g.veniamin@googlemail.com>
This commit is contained in:
Philip M. Gollucci 2010-02-11 20:06:07 +00:00
parent c5d3ea2ddd
commit cf4f3a721c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=249610

View File

@ -7,6 +7,7 @@
PORTNAME= proftpd
DISTVERSION= 1.3.3rc2
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= ftp
MASTER_SITES= ftp://ftp.proftpd.org/distrib/source/ \
@ -32,7 +33,8 @@ MAN8= proftpd.8 ftpshut.8 ftpdctl.8 ftpscrub.8
PORTDOCSdoc= Configuration.html faq.html
PORTDOCScontrib=mod_ifsession.html mod_radius.html mod_rewrite.html \
mod_tls.html mod_wrap2.html mod_wrap2_file.html mod_wrap2_sql.html \
mod_ban.html mod_quotatab_radius.html ftpasswd.html
mod_ban.html mod_quotatab_radius.html ftpasswd.html mod_sftp.html \
mod_sftp_sql.html mod_sftp_pam.html
PORTDOCSmodule= mod_auth_file.html mod_auth_pam.html mod_cap.html mod_ctrls.html \
mod_delay.html mod_dso.html mod_facl.html mod_facts.html \
mod_ident.html mod_lang.html
@ -85,7 +87,10 @@ OPTIONS= IPV6 "Use IPv6" off \
NLS "Use nls (builds mod_lang)" off \
UNIQUE "Include mod_unique_id" off \
CLAMAV "Include mod_clamav" off \
DIGEST "Include mod_digest" off
DIGEST "Include mod_digest" off \
SFTP "Include mod_sftp" off\
SFTP_SQL "Include mod_sftp_sql" off \
SFTP_PAM "Include mod_sftp_pam" off
MODULES?=
LIBDIRS?=
@ -267,6 +272,37 @@ DISTFILES+= mod_digest.c:digest
MODULES:=${MODULES}:mod_digest
.endif
.if defined(WITH_SFTP)
USE_SQLITE= yes
MODULES:=${MODULES}:mod_sftp
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
PLIST_SUB+= SFTP=""
PLIST_FILES+= include/${PORTNAME}/mod_sftp.h
.else
PLIST_SUB+= SFTP="@comment "
.endif
.if defined(WITH_SFTP_SQL)
USE_SQLITE= yes
MODULES:=${MODULES}:mod_sftp_sql
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
PLIST_SUB+= SFTP_SQL=""
.else
PLIST_SUB+= SFTP_SQL="@comment "
.endif
.if defined(WITH_SFTP_PAM)
USE_SQLITE= yes
MODULES:=${MODULES}:mod_sftp_pam
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
PLIST_SUB+= SFTP_PAM=""
.else
PLIST_SUB+= SFTP_PAM="@comment "
.endif
# mod_ifsession should be the last item in the modules list
.if !defined(WITHOUT_IFSESSION)
MODULES:=${MODULES}:mod_ifsession