summaryrefslogtreecommitdiff
path: root/ftp/pure-ftpd/Makefile
blob: b2ec6939e24c2887775e75dd5d2b5b2785d379ac (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
52
53
54
# New ports collection makefile for:	pure-ftpd
# Date created:				22 April 2001
# Whom:					Frank DENIS
#
# $FreeBSD$
#

PORTNAME=	pure-ftpd
PORTVERSION=	0.98.2
CATEGORIES=	ftp ipv6
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	pureftpd

MAINTAINER=	j@4u.net

.if defined(WITH_DMALLOC)
LIB_DEPENDS+=	dmalloc.1:${PORTSDIR}/devel/dmalloc
.endif

GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=	--with-pam --with-cookie --with-throttling \
			--with-ratios --with-ftpwho --with-largefile \
			--with-uploadscript
# language support requested?
.if defined(WITH_LANG)
CONFIGURE_ARGS+=	--with-language="${WITH_LANG}"
.endif
# use of dmalloc requested?
.if defined(WITH_DMALLOC)
CONFIGURE_ARGS+=	--with-dmalloc
CFLAGS+=	-I${LOCALBASE}/include -L${LOCALBASE}/lib
.endif

MAN8=		pure-ftpd.8 pure-ftpwho.8 pure-mrtginfo.8 pure-uploadscript.8

pre-fetch:
	@${ECHO} "You can use the following additional options:"
	@${ECHO} "WITH_DMALLOC	- enable use of the dmalloc library;"
	@${ECHO} "WITH_LANG=lang	- enable compilation of language support, lang is one of"
	@${ECHO} "		  english, german, romanian, french, polish or spanish."

post-install:
	${INSTALL_DATA} ${WRKSRC}/pureftpd-ldap.conf ${PREFIX}/etc/pureftpd-ldap.conf.sample
	${INSTALL_DATA} ${WRKSRC}/configuration-file/pure-ftpd.conf ${PREFIX}/etc/pure-ftpd.conf.sample
	${INSTALL_DATA} ${WRKSRC}/configuration-file/pure-config.pl ${PREFIX}/sbin/
	${CHMOD} 755 ${PREFIX}/sbin/pure-config.pl
.if !defined(NOPORTDOCS)
	@${MKDIR} ${PREFIX}/share/doc/pure-ftpd
.for file in COPYING HISTORY NEWS README README.Configuration-File README.LDAP README.Netfilter THANKS
	${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/pure-ftpd
.endfor
.endif

.include <bsd.port.mk>