head	1.10;
access;
symbols
	RELEASE_8_3_0:1.8
	RELEASE_9_0_0:1.4
	RELEASE_7_4_0:1.3
	RELEASE_8_2_0:1.3
	RELEASE_6_EOL:1.3
	RELEASE_8_1_0:1.3
	RELEASE_7_3_0:1.2
	RELEASE_8_0_0:1.2;
locks; strict;
comment	@# @;


1.10
date	2012.11.17.05.57.31;	author svnexp;	state Exp;
branches;
next	1.9;

1.9
date	2012.08.05.23.19.36;	author dougb;	state Exp;
branches;
next	1.8;

1.8
date	2012.02.28.21.28.21;	author flo;	state Exp;
branches;
next	1.7;

1.7
date	2012.01.09.16.39.53;	author scheidell;	state Exp;
branches;
next	1.6;

1.6
date	2011.12.23.19.18.55;	author scheidell;	state Exp;
branches;
next	1.5;

1.5
date	2011.12.21.13.18.23;	author scheidell;	state Exp;
branches;
next	1.4;

1.4
date	2011.09.23.22.22.32;	author amdmi3;	state Exp;
branches;
next	1.3;

1.3
date	2010.04.18.19.05.19;	author erwin;	state Exp;
branches;
next	1.2;

1.2
date	2009.07.26.15.03.11;	author miwi;	state Exp;
branches;
next	1.1;

1.1
date	2009.06.16.03.53.39;	author pgollucci;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Switch exporter over
@
text
@# New ports collection makefile for: vsftpd-ext
# Date created:		11 Mar 2009
# Whom:			Maxim Ignatenko
#
# $FreeBSD: head/ftp/vsftpd-ext/Makefile 302141 2012-08-05 23:19:36Z dougb $
#

PORTNAME=	vsftpd-ext
PORTVERSION=	${UPSTREAMVERSION}.${EXTVERSION}
PORTREVISION=	1
CATEGORIES=	ftp ipv6
MASTER_SITES=	http://vsftpd.devnet.ru/files/${UPSTREAMVERSION}/ext.${EXTVERSION}/
PKGNAMESUFFIX?=	${SSL_SUFFIX}${PKGNAMESUFFIX2}
DISTNAME=	vsFTPd-${UPSTREAMVERSION}-ext${EXTVERSION}
EXTRACT_SUFX=	.tgz

MAINTAINER=	gelraen.ua@@gmail.com
COMMENT=	A FTP daemon that aims to be "very secure". Extended build

CONFLICTS=	vsftpd-2* vsftpd${SSL_SUFFIX}${PKGNAMESUFFIX2}-2*

UPSTREAMVERSION=	2.3.5
EXTVERSION=	1

WRKSRC=	${WRKDIR}/vsFTPd-${UPSTREAMVERSION}-ext.${EXTVERSION}
ALL_TARGET=	vsftpd
MAN5=		vsftpd.conf.5
MAN8=		vsftpd.8
DOCFILES=	AUDIT BENCHMARKS BUGS Changelog FAQ INSTALL LICENSE \
		README README.security README.ssl REFS REWARD \
		SIZE SPEED TODO TUNING

OPTIONS=	RC_SCRIPT	"install RC_SCRIPT"		on \
		VSFTPD_SSL	"Include support for SSL"	off

.include <bsd.port.pre.mk>

.if defined(WITH_RC_SCRIPT)
USE_RC_SUBR=	vsftpd
.endif

.if defined(WITH_VSFTPD_SSL) && !defined(WITHOUT_SSL)
.if ${OSVERSION} < 700000
WITH_OPENSSL_PORT=	yes
.endif
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
SSL_SUFFIX=	-ssl
CFLAGS+=	-I${OPENSSLINC}
LDFLAGS+=	-L${OPENSSLLIB}
.endif

do-configure:
	${REINPLACE_CMD} -e "s|/etc/vsftpd|${PREFIX}/etc|" \
		${WRKSRC}/builddefs.h
	${REINPLACE_CMD} \
		-e '/^CC/s/=/?=/' \
		-e '/^CFLAGS/{s/=/+=/;s/-O[0-9]//;}' \
		-e '/^LIBS/s|=.*|= `./vsf_findlibs.sh`|' \
		-e '/^LINK/s/=.*/=/' \
		${WRKSRC}/Makefile
	${REINPLACE_CMD} -e '/-lutil/d' ${WRKSRC}/vsf_findlibs.sh
	${REINPLACE_CMD} -e \
		"s|#undef VSF_BUILD_TCPWRAPPERS|#define VSF_BUILD_TCPWRAPPERS 1|" \
		${WRKSRC}/builddefs.h
	@@${ECHO_CMD} "secure_chroot_dir=${PREFIX}/share/vsftpd/empty" >> \
		${WRKSRC}/vsftpd.conf
	@@${ECHO_CMD} >>${WRKSRC}/vsftpd.conf ""
	@@${ECHO_CMD} >>${WRKSRC}/vsftpd.conf \
		"# If using vsftpd in standalone mode, uncomment the next two lines:"
	@@${ECHO_CMD} >>${WRKSRC}/vsftpd.conf "# listen=YES"
	@@${ECHO_CMD} >>${WRKSRC}/vsftpd.conf "# background=YES"
	${REINPLACE_CMD} -e "s|/etc/v|${PREFIX}/etc/v|" \
		-e 's|delay_failed_logins|delay_failed_login|' \
		-e 's|delay_successful_logins|delay_successful_login|' \
		${WRKSRC}/vsftpd.8 ${WRKSRC}/vsftpd.conf.5 ${WRKSRC}/tunables.c
.if !defined(WITHOUT_SSL) && defined(WITH_VSFTPD_SSL)
	${REINPLACE_CMD} -e \
		"s|#undef VSF_BUILD_SSL|#define VSF_BUILD_SSL 1|" \
		${WRKSRC}/builddefs.h
.endif

pre-install:
	${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/vsftpd ${PREFIX}/libexec/
	${INSTALL_DATA} ${WRKSRC}/vsftpd.conf ${PREFIX}/etc/vsftpd.conf.dist
	${INSTALL} -d ${PREFIX}/share/vsftpd/empty
	@@if [ ! -e ${PREFIX}/etc/vsftpd.conf ]; then \
		${INSTALL_DATA} ${WRKSRC}/vsftpd.conf ${PREFIX}/etc/ ; \
	fi
	${MKDIR} ${PREFIX}/share/vsftpd/empty
	@@for i in ${MAN8} ; do \
		${INSTALL_MAN} -m 644 ${WRKSRC}/$${i} ${MANPREFIX}/man/man8/ ; \
		done
	@@for i in ${MAN5} ; do \
		${INSTALL_MAN} -m 644 ${WRKSRC}/$${i} ${MANPREFIX}/man/man5/ ; \
		done
	${MKDIR} /var/ftp
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for i in ${DOCFILES}
	${INSTALL_DATA} -m 644 ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.for i in EXAMPLE SECURITY
	${MKDIR} ${DOCSDIR}/${i}
	${CP} -p -R -L ${WRKSRC}/${i}/./ ${DOCSDIR}/${i}/
	${CHMOD} -R -L a+rX,go-w ${DOCSDIR}/${i}/
.endfor
.endif

.include <bsd.port.post.mk>
@


1.9
log
@SVN rev 302141 on 2012-08-05 23:19:36Z by dougb

Move the rc.d scripts of the form *.sh.in to *.in

Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.8
log
@The previous patch was supposed to fix vsftpd so that it would look for the
configuration file in /usr/local/etc/vsftpd.conf but it did not, currently it is
looking for the file in /usr/local/etc/vsftpd//usr/local/etc/vsftpd.conf, this
patch makes it look for /usr/local/etc/vsftpd.conf as also specified in
pkg-plist.

Approved by:	maintainer
@
text
@d39 1
a39 1
USE_RC_SUBR=	vsftpd.sh
@


1.7
log
@- Update to 2.3.5-ext1 [1]
- Fix path to vsftpd.conf in defs.h and builddefs.h old path /usr/local/etc/vsftpd.conf is not defined correctly [1]
- patch-sysdeputil.c removed (FreeBSD already detected in sources) [1]

PR:		ports/163940 [1]
Submitted by:	Svyatoslav Lempert <svyatoslav.lempert@@gmail.com> [1]
Approved by:	gelraen.ua@@gmail.com (maintainer), gabor (mentor, implicit)
@
text
@d10 1
d53 1
a53 3
	${REINPLACE_CMD} -e "s|vsftpd.conf|${PREFIX}/etc/vsftpd.conf|" \
		${WRKSRC}/defs.h ${WRKSRC}/vsftpd.conf
	${REINPLACE_CMD} -e "s|/etc/vsftpd|${PREFIX}/etc/vsftpd|" \
@


1.6
log
@- respect CC/CFLAGS/STRIP on vsftpd-ext

PR:             ports/163550
Submitted by:   Jan Beich <jbeich@@tormail.net>
Approved by:    gelraen.ua@@gmail.com (maintainer), gabor(mentor)
@
text
@a8 2
UPSTREAMVERSION=	2.3.4
EXTVERSION=	2
a9 1
PORTREVISION=	1
d21 3
d52 1
a52 1
	${REINPLACE_CMD} -e "s|/etc/vsftpd.conf|${PREFIX}/etc/vsftpd.conf|" \
d54 2
@


1.5
log
@- Update to 2.3.4 ext2 [1]
- Unbreak build on 9.x [1]
- rename RC_NG to RC_SCRIPT standard [2]

PR:		ports/163246
Submitted by:	Maxim Ignatenko <gelraen.ua@@gmail.com> (maintainer) [1]
Approved by:	gabor (mentor) [2]
@
text
@d12 1
a31 2
LDFLAGS+=	-lwrap

d55 4
a58 3
		-e "s|^CC 	=	gcc|CC	= ${CC}|" \
		-e "s|^CFLAGS	=|CFLAGS	= ${CFLAGS}|" \
		-e "s|	-Wl,-s| -Wl,-s ${LDFLAGS}|" \
d60 1
@


1.4
log
@- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
@
text
@d9 3
a11 1
PORTVERSION=	2.1.2
d13 1
a13 1
MASTER_SITES=	ftp://vsftpd.beasts.org/users/cevans/
d15 2
a16 5
DISTNAME=	vsftpd-${PORTVERSION}

PATCH_SITES=	http://vsftpd.devnet.ru/files/${PORTVERSION}/ext.1/diff/
PATCHFILES=	vsftpd-${PORTVERSION}-ext1.diff.gz
PATCH_DIST_STRIP=-p2
d23 1
d33 1
a33 1
OPTIONS=	RC_NG		"install RC_NG script"		off \
d38 1
a38 5
.if ${OSVERSION} >= 900007
BROKEN=		does not build
.endif

.if defined(WITH_RC_NG)
@


1.3
log
@Mark BROKEN on 9.x: does not build
@
text
@a53 2
.else
MAKE_ENV+=	LDFLAGS="${LDFLAGS}"
@


1.2
log
@- Update to 2.1.2

PR:		136902
Submitted by:	Maxim Ignatenko <gelraen.ua@@gmail.com> (maintainer)
@
text
@d38 4
@


1.1
log
@Extended build of vsftpd with additional features.
- Added char convertion without iconv for some charsets.
- Added rules for anonymous access based on user's IP address masks.
- Added rules for user access only from defined IPs.
- Allow or disallow delete files by anonymous.
- Added chowning anonymous uploaded files by user IP.
- Added new parametr double_377 (by default 1). This paramert switch off telnet specific character \377.
- Changed find libs in "vsf_findlibs.sh".
- Different speed for upload and download data transfer rates for anonymous and local users.

WWW: http://vsftpd.devnet.ru/eng/

PR:		ports/132556
Submitted by:	Maxim Ignatenko
@
text
@d9 1
a9 1
PORTVERSION=	2.1.0
d12 1
a12 1
PKGNAMESUFFIX?=	1${SSL_SUFFIX}${PKGNAMESUFFIX2}
@

