summaryrefslogtreecommitdiff
path: root/ftp/moftpd/Makefile
blob: b71a4e6cf970d44d3a5e6c1f522f5c9b62b3ea87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for:	moftpd
# Date created:				Mar 19, 2004
# Whom:					Clement Laforet <clement@FreeBSD>org>
#
# $FreeBSD$
#

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

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

DEPRECATED=     Upstream disapear and distfile is no more available
EXPIRATION_DATE=        2011-05-01

USE_RC_SUBR=	moftpd
USE_PERL5_BUILD=yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV+=	LIBS="${LIBS}" CFLAGS="${CFLAGS}"
CONFIGURE_ARGS=	--localstatedir=/var
MAKE_JOBS_UNSAFE=	yes

MAN8=		moftpd.8 moftpadmin.8
LIBS+=		-lcrypt

.if defined(WITHOUT_TLS)
CONFIGURE_ARGS+=	--without-tls
.elif defined(WITH_GNUTLS)
CONFIGURE_ARGS+=	--without-openssl
LIB_DEPENDS+=		gnutls.40:${PORTSDIR}/security/gnutls
LIBS=			-L${LOCALBASE}/lib -lgnutls
CFLAGS+=		-I${LOCALBASE}/include
.else
USE_OPENSSL=	yes
CONFIGURE_ARGS+=	--without-gnutls
.endif

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

.include <bsd.port.mk>