2001-04-23 15:46:38 +00:00
|
|
|
# New ports collection makefile for: pure-ftpd
|
|
|
|
# Date created: 22 April 2001
|
|
|
|
# Whom: Frank DENIS
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pure-ftpd
|
2006-02-21 16:05:27 +00:00
|
|
|
PORTVERSION= 1.0.21
|
2008-02-14 11:55:22 +00:00
|
|
|
PORTREVISION= 2
|
2001-04-23 15:46:38 +00:00
|
|
|
CATEGORIES= ftp ipv6
|
2006-02-21 16:05:27 +00:00
|
|
|
MASTER_SITES= http://download.pureftpd.org/pub/pure-ftpd/releases/ \
|
|
|
|
ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/ \
|
2002-11-23 21:50:20 +00:00
|
|
|
ftp://ftp2.fr.pureftpd.org/pub/mirrors/ftp.fr.pureftpd.org/pub/pure-ftpd/releases/ \
|
|
|
|
ftp://ftp3.fr.pureftpd.org/pure-ftpd/releases/ \
|
2002-04-03 20:48:09 +00:00
|
|
|
ftp://ftp.dk.pureftpd.org/mirrors/pure-ftpd/releases/ \
|
|
|
|
ftp://ftp.es.pureftpd.org/mirror/pureftpd/latest/releases/ \
|
2002-11-23 21:50:20 +00:00
|
|
|
ftp://ftp.nl.pureftpd.org/pub/pure-ftpd/releases/ \
|
2002-02-23 17:54:14 +00:00
|
|
|
ftp://ftp.fr.pureftpd.org/pub/pure-ftpd/releases/ \
|
2002-11-23 21:50:20 +00:00
|
|
|
ftp://ftp.cn.pureftpd.org/pub/pureftpd/pure-ftpd/releases/ \
|
2002-02-23 17:54:14 +00:00
|
|
|
${MASTER_SITE_SOURCEFORGE}
|
2001-04-23 15:46:38 +00:00
|
|
|
MASTER_SITE_SUBDIR= pureftpd
|
|
|
|
|
2006-09-04 08:22:51 +00:00
|
|
|
MAINTAINER= garga@FreeBSD.org
|
2003-02-21 12:06:51 +00:00
|
|
|
COMMENT= A small, easy to set up, fast and very secure FTP server
|
2001-04-23 15:46:38 +00:00
|
|
|
|
2008-02-14 11:55:22 +00:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
SUB_LIST= PAM_DIR=${PAM_DIR} PAM_TARGET=${PAM_TARGET}
|
2004-03-08 22:33:50 +00:00
|
|
|
USE_BZIP2= yes
|
2004-06-25 11:22:19 +00:00
|
|
|
USE_PERL5_RUN= yes
|
2006-02-21 16:05:27 +00:00
|
|
|
USE_RC_SUBR= pure-ftpd.sh
|
2001-04-23 15:46:38 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2008-02-14 11:55:22 +00:00
|
|
|
CONFIGURE_ARGS= --with-everything \
|
|
|
|
--with-paranoidmsg \
|
|
|
|
--with-virtualchroot \
|
|
|
|
--with-tls \
|
|
|
|
--with-largefile \
|
|
|
|
--sysconfdir=${PREFIX}/etc
|
2003-12-04 14:08:00 +00:00
|
|
|
|
2004-06-25 11:22:19 +00:00
|
|
|
MAN8= pure-ftpd.8 pure-ftpwho.8 pure-mrtginfo.8 pure-statsdecode.8 \
|
|
|
|
pure-uploadscript.8 pure-pw.8 pure-pwconvert.8 pure-quotacheck.8 \
|
|
|
|
pure-authd.8
|
|
|
|
|
2008-02-14 11:55:22 +00:00
|
|
|
OPTIONS= LDAP "Support for users in LDAP directories" off \
|
|
|
|
MYSQL "Support for users in MySQL database" off \
|
|
|
|
PAM "Support for PAM authentication" on \
|
|
|
|
PGSQL "Support for users in PostgreSQL database" off \
|
|
|
|
PRIVSEP "Enable privilege separation" off \
|
2004-07-24 11:18:47 +00:00
|
|
|
PERUSERLIMITS "Per-user concurrency limits" off \
|
2005-04-02 16:32:48 +00:00
|
|
|
THROTTLING "Bandwidth throttling" off \
|
2008-02-14 11:55:22 +00:00
|
|
|
BANNER "Show ${PORTNAME} welcome upon session start" on \
|
|
|
|
UPLOADSCRIPT "Support uploadscript daemon" off \
|
|
|
|
UTF8 "Support for charset conversion (expreimental)" off \
|
2006-06-09 19:01:14 +00:00
|
|
|
SENDFILE "Support for the sendfile syscall" on
|
2004-06-25 11:22:19 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2001-04-23 15:46:38 +00:00
|
|
|
# language support requested?
|
|
|
|
.if defined(WITH_LANG)
|
|
|
|
CONFIGURE_ARGS+= --with-language="${WITH_LANG}"
|
|
|
|
.endif
|
2001-08-23 17:18:23 +00:00
|
|
|
|
2003-02-11 03:45:24 +00:00
|
|
|
# ldap support requested?
|
2003-10-06 12:50:26 +00:00
|
|
|
.if defined(WITH_LDAP)
|
2003-12-04 14:08:00 +00:00
|
|
|
USE_OPENLDAP= YES
|
2001-08-23 17:18:23 +00:00
|
|
|
CONFIGURE_ARGS+= --with-ldap
|
|
|
|
.endif
|
|
|
|
|
2003-02-11 03:45:24 +00:00
|
|
|
# mysql support requested?
|
2003-10-06 12:50:26 +00:00
|
|
|
.if defined(WITH_MYSQL)
|
2003-12-04 14:08:00 +00:00
|
|
|
USE_MYSQL= YES
|
2001-08-23 17:18:23 +00:00
|
|
|
CONFIGURE_ARGS+= --with-mysql
|
|
|
|
.endif
|
|
|
|
|
2003-10-06 12:50:26 +00:00
|
|
|
# postgresql support requested?
|
2001-12-24 03:03:49 +00:00
|
|
|
.if defined(WITH_PGSQL)
|
2008-02-14 11:55:22 +00:00
|
|
|
USE_PGSQL= YES
|
2001-12-24 03:03:49 +00:00
|
|
|
CONFIGURE_ARGS+= --with-pgsql
|
|
|
|
.endif
|
|
|
|
|
2003-02-11 03:45:24 +00:00
|
|
|
# privilege separation requested?
|
|
|
|
.if defined(WITH_PRIVSEP)
|
|
|
|
CONFIGURE_ARGS+= --with-privsep
|
|
|
|
.endif
|
|
|
|
|
2004-06-25 11:22:19 +00:00
|
|
|
# per-user concurrency limits requested?
|
|
|
|
.if defined(WITH_PERUSERLIMITS)
|
|
|
|
CONFIGURE_ARGS+= --with-peruserlimits
|
|
|
|
.endif
|
|
|
|
|
2004-07-24 11:18:47 +00:00
|
|
|
# throttling requested?
|
|
|
|
.if defined(WITH_THROTTLING)
|
|
|
|
CONFIGURE_ARGS+= --with-throttling
|
|
|
|
.endif
|
|
|
|
|
2004-02-28 21:24:03 +00:00
|
|
|
# different certificate file location?
|
|
|
|
.if defined(WITH_CERTFILE)
|
|
|
|
CONFIGURE_ARGS+= --with-certfile=${WITH_CERTFILE}
|
|
|
|
.endif
|
|
|
|
|
2001-08-23 17:18:23 +00:00
|
|
|
# if mysql or ldap are disabled, enable pam
|
2004-07-24 11:18:47 +00:00
|
|
|
.if !defined(WITHOUT_PAM)
|
2001-08-23 17:18:23 +00:00
|
|
|
CONFIGURE_ARGS+= --with-pam
|
|
|
|
.endif
|
|
|
|
|
2005-04-02 16:32:48 +00:00
|
|
|
# for paranoia
|
|
|
|
.if defined(WITHOUT_BANNER)
|
|
|
|
CONFIGURE_ARGS+= --without-banner
|
|
|
|
.endif
|
|
|
|
|
2005-09-27 18:04:20 +00:00
|
|
|
# support uploadscript?
|
|
|
|
.if defined (WITH_UPLOADSCRIPT)
|
|
|
|
CONFIGURE_ARGS+= --with-uploadscript
|
|
|
|
.endif
|
|
|
|
|
2006-02-21 16:05:27 +00:00
|
|
|
# RFC 2640 charset conversion requested?
|
|
|
|
.if defined(WITH_UTF8)
|
|
|
|
USE_ICONV= YES
|
|
|
|
CONFIGURE_ARGS+= --with-rfc2640
|
|
|
|
.endif
|
|
|
|
|
2006-06-09 19:01:14 +00:00
|
|
|
.if defined(WITH_SENDFILE)
|
|
|
|
CONFIGURE_ARGS+= --with-sendfile
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-sendfile
|
|
|
|
.endif
|
|
|
|
|
2001-07-15 08:33:04 +00:00
|
|
|
PAM_TEMPL?= ${FILESDIR}/pam.conf.5
|
2003-12-04 14:08:00 +00:00
|
|
|
PAM_DIR?= ${EXAMPLESDIR}/pam
|
2001-07-15 08:33:04 +00:00
|
|
|
PAM_TARGET?= pure-ftpd
|
|
|
|
|
2007-02-03 13:17:21 +00:00
|
|
|
PORTDOCS= AUTHORS CONTACT COPYING HISTORY NEWS \
|
2001-06-13 18:26:53 +00:00
|
|
|
README README.Configuration-File README.Contrib README.LDAP \
|
2001-12-24 03:03:49 +00:00
|
|
|
README.Netfilter README.MySQL README.PGSQL README.Virtual-Users \
|
2002-04-03 20:48:09 +00:00
|
|
|
README.Authentication-Modules THANKS pure-ftpd.png \
|
2003-08-13 10:42:47 +00:00
|
|
|
pureftpd.schema README.TLS
|
2008-02-14 11:55:22 +00:00
|
|
|
PORTEXAMPLES= *
|
2001-05-29 13:10:33 +00:00
|
|
|
|
2004-06-25 11:22:19 +00:00
|
|
|
CONTRIB= xml_python_processors.txt pure-stat.pl pure-vpopauth.pl
|
2001-06-13 18:26:53 +00:00
|
|
|
|
2001-04-23 15:46:38 +00:00
|
|
|
pre-fetch:
|
2003-12-04 14:08:00 +00:00
|
|
|
@${ECHO_MSG} "You can use the following additional options:"
|
2004-02-28 21:24:03 +00:00
|
|
|
@${ECHO_MSG} "WITH_CERTFILE=/path - Set different location of certificate file for TLS"
|
2003-12-04 14:08:00 +00:00
|
|
|
@${ECHO_MSG} "WITH_LANG=lang - Enable compilation of language support, lang is one of"
|
|
|
|
@${ECHO_MSG} " english, german, romanian, french, french-funny, polish, spanish,"
|
|
|
|
@${ECHO_MSG} " dutch, italian, brazilian-portuguese, danish, slovak, korean,"
|
2004-03-08 22:33:50 +00:00
|
|
|
@${ECHO_MSG} " norwegian, swedish, russian, traditional-chinese, simplified-chinese,"
|
|
|
|
@${ECHO_MSG} " hungarian, catalan and czech."
|
2003-12-04 14:08:00 +00:00
|
|
|
@${ECHO_MSG} ""
|
2001-04-23 15:46:38 +00:00
|
|
|
|
2003-06-18 19:01:24 +00:00
|
|
|
post-patch:
|
2008-02-14 11:55:22 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|$${exec_prefix}|${PREFIX}|g' \
|
|
|
|
${WRKSRC}/configuration-file/pure-config.pl.in
|
|
|
|
@${REINPLACE_CMD} -e 's,SYNTAX SYNTAX,SYNTAX,' \
|
|
|
|
${WRKSRC}/pureftpd.schema
|
2003-06-18 19:01:24 +00:00
|
|
|
|
2001-04-23 15:46:38 +00:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/pureftpd-ldap.conf ${PREFIX}/etc/pureftpd-ldap.conf.sample
|
2001-08-21 11:23:34 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/pureftpd-mysql.conf ${PREFIX}/etc/pureftpd-mysql.conf.sample
|
2001-12-24 03:03:49 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/pureftpd-pgsql.conf ${PREFIX}/etc/pureftpd-pgsql.conf.sample
|
2001-04-23 15:46:38 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/configuration-file/pure-ftpd.conf ${PREFIX}/etc/pure-ftpd.conf.sample
|
2008-02-14 11:55:22 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/configuration-file/pure-config.pl ${PREFIX}/sbin/
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
2003-12-04 14:08:00 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC}/contrib && ${INSTALL_SCRIPT} ${CONTRIB} ${EXAMPLESDIR}
|
2008-02-14 11:55:22 +00:00
|
|
|
${MKDIR} ${PAM_DIR}
|
|
|
|
${INSTALL_DATA} ${PAM_TEMPL} ${PAM_DIR}/${PAM_TARGET}
|
|
|
|
.endif
|
2001-04-23 15:46:38 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-12-04 14:08:00 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2007-02-03 13:17:21 +00:00
|
|
|
. for doc in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
|
|
|
. endfor
|
2001-04-23 15:46:38 +00:00
|
|
|
.endif
|
2005-09-27 18:04:20 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2001-04-23 15:46:38 +00:00
|
|
|
|
2001-07-15 08:33:04 +00:00
|
|
|
.include <bsd.port.post.mk>
|