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
|
2004-07-18 12:01:20 +00:00
|
|
|
PORTVERSION= 1.0.20
|
2004-07-21 21:44:10 +00:00
|
|
|
PORTREVISION= 1
|
2001-04-23 15:46:38 +00:00
|
|
|
CATEGORIES= ftp ipv6
|
2002-02-23 17:54:14 +00:00
|
|
|
MASTER_SITES= 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
|
|
|
|
|
2001-08-21 11:23:34 +00:00
|
|
|
MAINTAINER= j@pureftpd.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
|
|
|
|
2004-03-08 22:33:50 +00:00
|
|
|
USE_BZIP2= yes
|
2003-06-18 19:01:24 +00:00
|
|
|
USE_REINPLACE= yes
|
2004-06-25 11:22:19 +00:00
|
|
|
USE_PERL5_RUN= yes
|
|
|
|
USE_RC_SUBR= yes
|
2001-04-23 15:46:38 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-12-04 14:08:00 +00:00
|
|
|
CONFIGURE_ARGS= --with-everything \
|
2001-10-26 07:32:00 +00:00
|
|
|
--with-paranoidmsg \
|
2001-12-24 03:03:49 +00:00
|
|
|
--with-virtualchroot \
|
2003-08-13 10:42:47 +00:00
|
|
|
--with-tls \
|
2003-10-21 14:18:21 +00:00
|
|
|
--with-largefile \
|
2003-06-18 19:01:24 +00:00
|
|
|
--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
|
|
|
|
|
|
|
|
OPTIONS= LDAP "Support for users in LDAP directories" off \
|
|
|
|
MYSQL "Support for users in MySQL database" off \
|
|
|
|
PGSQL "Support for users in PostgreSQL database" off \
|
|
|
|
PRIVSEP "Enable privilege separation" off \
|
|
|
|
PERUSERLIMITS "Per-user concurrency limits" off
|
|
|
|
|
|
|
|
.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)
|
2004-05-25 09:19:42 +00:00
|
|
|
POSTGRESQL_PORT?= databases/postgresql7
|
2003-12-04 14:08:00 +00:00
|
|
|
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
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-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
|
2001-12-24 03:03:49 +00:00
|
|
|
.if !defined(WITH_LDAP) && !defined(WITH_MYSQL) && !defined(WITH_PGSQL)
|
2001-08-23 17:18:23 +00:00
|
|
|
CONFIGURE_ARGS+= --with-pam
|
|
|
|
.endif
|
|
|
|
|
2001-07-15 08:33:04 +00:00
|
|
|
.if ${OSVERSION} > 500000
|
|
|
|
PAM_TEMPL?= ${FILESDIR}/pam.conf.5
|
|
|
|
.else
|
|
|
|
. if ${OSVERSION} > 400000
|
|
|
|
PAM_TEMPL?= ${FILESDIR}/pam.conf.4
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
.if defined(PAM_TEMPL)
|
2003-12-04 14:08:00 +00:00
|
|
|
PAM_DIR?= ${EXAMPLESDIR}/pam
|
2001-07-15 08:33:04 +00:00
|
|
|
PAM_TARGET?= pure-ftpd
|
|
|
|
.endif
|
|
|
|
|
2001-05-29 13:10:33 +00:00
|
|
|
DOCS= 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
|
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:
|
|
|
|
@${REINPLACE_CMD} -e 's|$${exec_prefix}|${PREFIX}|g' ${WRKSRC}/configuration-file/pure-config.pl.in
|
|
|
|
|
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
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/configuration-file/pure-config.pl ${PREFIX}/sbin/
|
2003-12-04 14:08:00 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC}/contrib && ${INSTALL_SCRIPT} ${CONTRIB} ${EXAMPLESDIR}
|
2001-04-23 15:46:38 +00:00
|
|
|
${CHMOD} 755 ${PREFIX}/sbin/pure-config.pl
|
|
|
|
.if !defined(NOPORTDOCS)
|
2003-12-04 14:08:00 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
2001-04-23 15:46:38 +00:00
|
|
|
.endif
|
2004-06-25 11:22:19 +00:00
|
|
|
@${SED} -e "s|%%PREFIX%%|${PREFIX}|g" -e "s|%%RC_SUBR%%|${RC_SUBR}|g" \
|
|
|
|
< ${FILESDIR}/pure-ftpd.sh.sample > ${WRKDIR}/pure-ftpd.sh
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/pure-ftpd.sh ${PREFIX}/etc/rc.d
|
2001-07-15 08:33:04 +00:00
|
|
|
.if defined(PAM_TEMPL)
|
|
|
|
${MKDIR} ${PAM_DIR}
|
|
|
|
${INSTALL_DATA} ${PAM_TEMPL} ${PAM_DIR}/${PAM_TARGET}
|
2003-12-04 14:08:00 +00:00
|
|
|
@${ECHO_MSG} "Now you need to examine ${PAM_DIR}/${PAM_TARGET}"
|
|
|
|
@${ECHO_MSG} "and add the relevant PAM configuration lines to your /etc/pam.conf file."
|
2001-07-15 08:33:04 +00:00
|
|
|
.endif
|
2001-04-23 15:46:38 +00:00
|
|
|
|
2001-07-15 08:33:04 +00:00
|
|
|
.include <bsd.port.post.mk>
|