# New ports collection makefile for:	moftpd
# Date created:				Mar 19, 2004
# Whom:					Clement Laforet <clement@FreeBSD>org>
#
# $FreeBSD: ports/ftp/moftpd/Makefile,v 1.5 2004/04/16 21:46:01 clement Exp $
#

PORTNAME=	moftpd
PORTVERSION=	1.2
CATEGORIES=	ftp ipv6
MASTER_SITES=	ftp://ftp.morth.org/moftpd/ \
		${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	clement

MAINTAINER=	clement@FreeBSD.org
COMMENT=	A powerful FTP server supporting IPv6, TLS, and much more

GNU_CONFIGURE=	yes
USE_OPENSSL=	yes
USE_GMAKE=	yes
USE_PERL5_BUILD=yes
CONFIGURE_ENV+=	LIBS="${LIBS}"
MAN8=		moftpd.8 moftpadmin.8
LIBS+=		-lcrypt

.if defined(WITH_MYSQL)
CFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib/mysql
.else
CONFIGURE_ARGS+=	--without-sql
.endif

.include <bsd.port.mk>
