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
|
2001-10-04 18:09:51 +00:00
|
|
|
PORTVERSION= 0.99.9
|
2001-04-23 15:46:38 +00:00
|
|
|
CATEGORIES= ftp ipv6
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= pureftpd
|
|
|
|
|
2001-08-21 11:23:34 +00:00
|
|
|
MAINTAINER= j@pureftpd.org
|
2001-04-23 15:46:38 +00:00
|
|
|
|
|
|
|
.if defined(WITH_DMALLOC)
|
|
|
|
LIB_DEPENDS+= dmalloc.1:${PORTSDIR}/devel/dmalloc
|
|
|
|
.endif
|
|
|
|
|
2001-08-21 11:23:34 +00:00
|
|
|
.if defined(WITH_LDAP)
|
|
|
|
LIB_DEPENDS+= ldap:${PORTSDIR}/net/openldap2
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
LIB_DEPENDS+= mysqlclient:${PORTSDIR}/databases/mysql323-client
|
|
|
|
.endif
|
|
|
|
|
2001-04-23 15:46:38 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2001-08-23 17:18:23 +00:00
|
|
|
CONFIGURE_ARGS+= --with-everything --with-paranoidmsg
|
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
|
|
|
|
|
|
|
# ldap support requested ?
|
|
|
|
.if defined(WITH_LDAP)
|
|
|
|
CONFIGURE_ARGS+= --with-ldap
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# mysql support requested ?
|
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
CONFIGURE_ARGS+= --with-mysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# if mysql or ldap are disabled, enable pam
|
|
|
|
.if !defined(WITH_LDAP) && !defined(WITH_MYSQL)
|
|
|
|
CONFIGURE_ARGS+= --with-pam
|
|
|
|
.endif
|
|
|
|
|
2001-04-23 15:46:38 +00:00
|
|
|
# use of dmalloc requested?
|
|
|
|
.if defined(WITH_DMALLOC)
|
|
|
|
CONFIGURE_ARGS+= --with-dmalloc
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
|
|
|
|
.endif
|
|
|
|
|
2001-08-23 17:18:23 +00:00
|
|
|
MAN8= pure-ftpd.8 pure-ftpwho.8 pure-mrtginfo.8 pure-statsdecode.8 \
|
2001-10-04 18:09:51 +00:00
|
|
|
pure-uploadscript.8 pure-pw.8 pure-pwconvert.8 pure-quotacheck.8
|
2001-04-23 15:46:38 +00:00
|
|
|
|
2001-07-15 08:33:04 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.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)
|
|
|
|
PAM_DIR?= ${PREFIX}/share/examples/${PORTNAME}/pam
|
|
|
|
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-10-03 15:41:09 +00:00
|
|
|
README.Netfilter README.MySQL README.Virtual-Users \
|
2001-10-04 18:09:51 +00:00
|
|
|
THANKS poweredby.jpg
|
2001-05-29 13:10:33 +00:00
|
|
|
|
2001-06-13 18:26:53 +00:00
|
|
|
CONTRIB= xml_python_processors.txt
|
|
|
|
|
2001-04-23 15:46:38 +00:00
|
|
|
pre-fetch:
|
|
|
|
@${ECHO} "You can use the following additional options:"
|
2001-08-23 17:18:23 +00:00
|
|
|
@${ECHO} "WITH_DMALLOC=1 - enable use of the dmalloc library;"
|
2001-10-04 18:09:51 +00:00
|
|
|
@${ECHO} "WITH_LDAP=1 - Support for users in LDAP \
|
|
|
|
directories;"
|
|
|
|
@${ECHO} "WITH_MYSQL=1 - Support for users in MySQL databases;"
|
|
|
|
@${ECHO} "WITH_LANG=lang - enable compilation of language \
|
|
|
|
support, lang is one of"
|
|
|
|
@${ECHO} " english, german, romanian, french, polish, spanish, dutch,"
|
|
|
|
@${ECHO} " italian, brazilian-portuguese or danish."
|
2001-08-23 17:18:23 +00:00
|
|
|
@${ECHO}
|
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-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/
|
2001-06-13 18:26:53 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/pure-ftpd
|
|
|
|
(cd ${WRKSRC}/contrib && ${INSTALL_SCRIPT} ${CONTRIB} ${PREFIX}/share/examples/pure-ftpd)
|
2001-04-23 15:46:38 +00:00
|
|
|
${CHMOD} 755 ${PREFIX}/sbin/pure-config.pl
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/pure-ftpd
|
2001-05-29 13:10:33 +00:00
|
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/pure-ftpd)
|
2001-04-23 15:46:38 +00:00
|
|
|
.endif
|
2001-07-15 08:33:04 +00:00
|
|
|
.if defined(PAM_TEMPL)
|
|
|
|
${MKDIR} ${PAM_DIR}
|
|
|
|
${INSTALL_DATA} ${PAM_TEMPL} ${PAM_DIR}/${PAM_TARGET}
|
|
|
|
@${ECHO} "Now you need to examine ${PAM_DIR}/${PAM_TARGET}"
|
|
|
|
@${ECHO} "and add the relevant PAM configuration lines to your /etc/pam.conf file."
|
|
|
|
.endif
|
2001-04-23 15:46:38 +00:00
|
|
|
|
2001-07-15 08:33:04 +00:00
|
|
|
.include <bsd.port.post.mk>
|