openbsd-ports/net/pure-ftpd/Makefile

85 lines
2.3 KiB
Makefile
Raw Normal View History

2013-03-11 07:35:43 -04:00
# $OpenBSD: Makefile,v 1.63 2013/03/11 11:35:55 espie Exp $
COMMENT= small, easy to set up, fast and very secure FTP server
DISTNAME= pure-ftpd-1.0.36
CATEGORIES= net
MASTER_SITES= http://download.pureftpd.org/pub/pure-ftpd/releases/ \
ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/ \
ftp://ftp4.fr.pureftpd.org/pub/pure-ftpd/releases/ \
2002-08-26 10:39:29 -04:00
ftp://ftp.dk.pureftpd.org/mirrors/pure-ftpd/releases/ \
ftp://ftp.nl.pureftpd.org/pub/pure-ftpd/releases/ \
2002-05-15 13:42:24 -04:00
${MASTER_SITE_SOURCEFORGE:=pureftpd/}
HOMEPAGE= http://www.pureftpd.org/
MAINTAINER= Brad Smith <brad@comstyle.com>
# BSD
PERMIT_PACKAGE_CDROM= Yes
2004-12-15 19:31:20 -05:00
WANTLIB= c crypto ssl
SEPARATE_BUILD= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --with-everything \
--with-paranoidmsg \
--with-rfc2640 \
2006-03-03 23:30:11 -05:00
--with-tls
MODULES= converters/libiconv
FLAVORS= ldap mysql postgresql virtual_chroot
2001-12-17 15:33:34 -05:00
FLAVOR?=
.if ${FLAVOR:Mldap}
2010-11-19 17:31:32 -05:00
LIB_DEPENDS+= openldap-client->=2,<3:databases/openldap
WANTLIB += ldap>=2 lber
CONFIGURE_ARGS+= --with-ldap="${LOCALBASE}"
DOCS+= README.LDAP pureftpd.schema
CONF_FILE+= pureftpd-ldap.conf
.endif
.if ${FLAVOR:Mmysql}
2010-11-19 17:31:32 -05:00
LIB_DEPENDS+= databases/mysql
WANTLIB += lib/mysql/mysqlclient>=10
CONFIGURE_ARGS+= --with-mysql="${LOCALBASE}"
DOCS+= README.MySQL
CONF_FILE+= pureftpd-mysql.conf
2004-12-15 19:31:20 -05:00
WANTLIB+= m z
.endif
.if ${FLAVOR:Mpostgresql}
2010-11-19 17:31:32 -05:00
LIB_DEPENDS+= databases/postgresql
WANTLIB += pq>=2
CONFIGURE_ARGS+= --with-pgsql="${LOCALBASE}"
DOCS+= README.PGSQL
CONF_FILE+= pureftpd-pgsql.conf
2004-12-15 19:31:20 -05:00
WANTLIB+= m z
.endif
.if ${FLAVOR:Mvirtual_chroot}
CONFIGURE_ARGS+= --with-virtualchroot
.endif
DOCS+= README README.Configuration-File README.Contrib README.TLS \
README.Virtual-Users README.Authentication-Modules pure-ftpd.png
CONTRIB= xml_python_processors.txt pure-vpopauth.pl
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pure-ftpd
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pure-ftpd
${INSTALL_PROGRAM} ${WRKBUILD}/configuration-file/pure-config.pl \
${PREFIX}/sbin
${INSTALL_DATA} ${WRKBUILD}/configuration-file/pure-ftpd.conf \
${PREFIX}/share/examples/pure-ftpd/pure-ftpd.conf.sample
cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/pure-ftpd
.if defined(CONF_FILE) && !empty(CONF_FILE)
cd ${WRKSRC}; ${INSTALL_DATA} ${CONF_FILE} \
${PREFIX}/share/examples/pure-ftpd
.endif
cd ${WRKSRC}/contrib; ${INSTALL_DATA} ${CONTRIB} \
${PREFIX}/share/examples/pure-ftpd
.include <bsd.port.mk>