head	1.15;
access;
symbols
	RELEASE_8_3_0:1.11
	RELEASE_9_0_0:1.11
	RELEASE_7_4_0:1.10
	RELEASE_8_2_0:1.10
	RELEASE_6_EOL:1.10
	RELEASE_8_1_0:1.9
	RELEASE_7_3_0:1.8
	RELEASE_8_0_0:1.8
	RELEASE_7_2_0:1.6
	RELEASE_7_1_0:1.5
	RELEASE_6_4_0:1.5
	RELEASE_5_EOL:1.2
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.1
	PRE_XORG_7:1.1
	RELEASE_4_EOL:1.1
	RELEASE_6_2_0:1.1
	RELEASE_6_1_0:1.1
	RELEASE_5_5_0:1.1;
locks; strict;
comment	@# @;


1.15
date	2012.11.17.05.57.30;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2012.08.15.01.04.30;	author dougb;	state Exp;
branches;
next	1.13;

1.13
date	2012.08.05.23.19.36;	author dougb;	state Exp;
branches;
next	1.12;

1.12
date	2012.06.24.23.55.03;	author sylvio;	state Exp;
branches;
next	1.11;

1.11
date	2011.11.29.06.42.57;	author wen;	state Exp;
branches;
next	1.10;

1.10
date	2010.11.09.12.33.00;	author sunpoet;	state Exp;
branches;
next	1.9;

1.9
date	2010.03.20.15.40.15;	author miwi;	state Exp;
branches;
next	1.8;

1.8
date	2009.08.30.10.31.11;	author linimon;	state Exp;
branches;
next	1.7;

1.7
date	2009.08.22.00.20.33;	author amdmi3;	state Exp;
branches;
next	1.6;

1.6
date	2009.02.01.07.01.32;	author beech;	state Exp;
branches;
next	1.5;

1.5
date	2008.09.02.23.33.53;	author beech;	state Exp;
branches;
next	1.4;

1.4
date	2008.07.15.02.38.51;	author beech;	state Exp;
branches;
next	1.3;

1.3
date	2008.06.25.02.52.33;	author beech;	state Exp;
branches;
next	1.2;

1.2
date	2007.12.13.03.11.02;	author beech;	state Exp;
branches;
next	1.1;

1.1
date	2006.01.23.19.37.26;	author pav;	state Exp;
branches;
next	;


desc
@@


1.15
log
@Switch exporter over
@
text
@# New ports collection makefile for:	smbftpd
# Date created:		2006-01-22
# Whom:			Jui-Nan Lin <jnlin@@csie.nctu.edu.tw>
#
# $FreeBSD: head/ftp/smbftpd/Makefile 302555 2012-08-15 01:04:30Z dougb $
#

PORTNAME=	smbftpd
PORTVERSION=	2.4
CATEGORIES=	ftp
MASTER_SITES=	SF/${PORTNAME}/SmbFTPD/${PORTVERSION}	\
		http://www.twbsd.org/download/download.php?file=smbftpd/

MAINTAINER=	jnlin@@csie.nctu.edu.tw
COMMENT=	FTP daemon using Samba-like share management mechanism

OPTIONS_DEFINE=	MYSQL PGSQL SSL ICONV
MYSQL_DESC=	Users database is a MySQL database
PGSQL_DESC=	Users database is a PostgreSQL database
SSL_DESC=	Enable SSL/TLS support
ICONV_DESC=	Enable codepage to unicode conversion for UTF-8 FTP

HAS_CONFIGURE=	yes
MAKE_ENV=	OSTYPE=FreeBSD
CONFIGURE_ARGS=	"--prefix=${PREFIX}"

USE_PERL5=	yes
USE_RC_SUBR=	${PORTNAME}

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL=	yes
CONFIGURE_ARGS+=	"--with-mysql"
.endif

.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL=	yes
CONFIGURE_ARGS+=	"--with-pgsql"
.endif

.if ${PORT_OPTIONS:MICONV}
USE_ICONV=	yes
CONFIGURE_ARGS+=	"--with-iconv"
.endif

.if ${PORT_OPTIONS:MSSL}
CONFIGURE_ARGS+=	"--with-ssl"
.endif

post-extract:
	@@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}

post-patch:
	@@${REINPLACE_CMD} -e '/^CONFIGS = / s|\.conf|&.sample|g' ${WRKSRC}/Makefile
	@@cd ${WRKSRC}/conf/ && (${LS} *.conf | ${XARGS} -I % ${MV} % %.sample)

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


1.14
log
@SVN rev 302555 on 2012-08-15 01:04:30Z by dougb

Fix problem introduced in r302141. The directory for the  unpacked source
files is unversioned, so it conflicts with the name of the rc.d script in
WRKDIR after SUB_FILES is applied.
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.13
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
@a26 1
WRKSRC=		${WRKDIR}/${PORTNAME}
d51 3
@


1.12
log
@- Update to 2.4

PR:		ports/169025
Submitted by:	John Chen <johnpupu@@gmail.com>
Approved by:	Jui-Nan Lin <jnlin@@csie.nctu.edu.tw> (maintainer)
@
text
@d29 1
a29 1
USE_RC_SUBR=	${PORTNAME}.sh
@


1.11
log
@- Update to 2.3

PR:		ports/162933
Submitted by:	Jui-Nan Lin <jnlin@@csie.nctu.edu.tw> (maintainer)
Feature safe:	yes
@
text
@d9 1
a9 1
PORTVERSION=	2.3
d17 5
a21 4
OPTIONS=	MYSQL "Users database is a MySQL database" off \
		PGSQL "Users database is a PostgreSQL database" off \
		SSL "Enable SSL/TLS support" off \
		ICONV "Enable codepage to unicode conversion for UTF-8 FTP" off
d33 1
a33 1
.if defined(WITH_MYSQL)
d38 1
a38 1
.if defined(WITH_PGSQL)
d43 1
a43 1
.if defined(WITH_ICONV)
d48 1
a48 1
.if defined(WITH_SSL)
a51 4
.if ${OSVERSION} > 900007
BROKEN=		fails to build with new utmpx
.endif

@


1.10
log
@- Install configuration files as *.sample to avoid overriding existing ones
- Use ETCDIR
- Bump PORTEVISION

PR:		ports/150145
Submitted by:	Sergey Zaykov <mail_of_sergey@@mail.ru> (based on)
Approved by:	Jui-Nan Lin <jnlin@@csie.nctu.edu.tw> (maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	2.2
PORTREVISION=	1
d26 1
@


1.9
log
@- Mark BROKEN on HEAD: fails to build with new utmpx

Reported by:	pointyhat
@
text
@d10 1
d28 1
a28 1
USE_RC_SUBR=	smbftpd.sh
d55 4
@


1.8
log
@Move the definitions of USE_PERL5 and USE_RC_SUBR above the inclusion
of bsd.port.pre.mk where they belong.

Hat:		portmgr
@
text
@a13 1

d50 4
@


1.7
log
@- Switch SourceForge ports to the new File Release System: categories starting with E,F
@
text
@a26 2
.include <bsd.port.pre.mk>

d30 2
@


1.6
log
@- Update to 2.2
- Fixed FreeBSD security advisory FreeBSD-SA-08:12.ftpd
- Fixed a typo on smbftpd-user help
- Fixed the bug of wrong file time when file time is 2008/12/30

PR:		ports/131201
Submitted by:	Hung-Yi Chen <gaod@@hychen.org>
Approved by:	Jui-Nan Lin <jnlin@@csie.nctu.edu.tw> (maintainer)
@
text
@d11 1
a11 1
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}	\
d13 1
a13 1
MASTER_SITE_SUBDIR=	${PORTNAME}
@


1.5
log
@- Update to 2.1

PR:		ports/127009
Submitted by:	Jui-Nan Lin <jnlin@@csie.nctu.edu.tw> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	2.1
d11 1
a11 1
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
@


1.4
log
@- Fix error in procname path

PR:		ports/125355
Submitted by:	Johnpupu <johnpupu@@gmail.com>
Approved by:	Jui-Nan Lin <jnlin@@csie.nctu.edu.tw> (maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	2.0
PORTREVISION=	1
@


1.3
log
@- Update to 2.0

Added file(s):
- files/patch-Makefile
- files/smbftpd.sh.in

PR:		ports/124363
Submitted by:	Jui-Nan Lin <jnlin@@csie.nctu.edu.tw> (maintainer)
@
text
@d10 1
@


1.2
log
@- Update to 0.9.7

- Bug fixes:
- Support PROT in SSL mode. Fixes:
- Filezilla, TurboFTP fail to connect in SSLv3 mode.
- Fix vulnerability caused by misuse of fprintf().

PR:		ports/117908
Approved by:	Jui-Nan Lin <jnlin@@csie.nctu.edu.tw> (maintainer),
		linimon (mentor)
Security:	http://www.vuxml.org/freebsd/b2571f88-a867-11dc-a6f0-00a0cce0781e.html
@
text
@d9 1
a9 1
PORTVERSION=	0.97
d11 3
a13 1
MASTER_SITES=	http://www.twbsd.org/download/download.php?file=smbftpd/
d18 5
d24 5
a28 1
USE_OPENSSL=	yes
d30 1
d32 18
a49 1
MAKE_ENV=	OSTYPE=FreeBSD
d51 1
a51 1
.include <bsd.port.mk>
@


1.1
log
@SmbFTPD is a FTP daemon modified from the FTP daemon of FreeBSD 5.4. esides
keep original FreeBSD ftpd features, it enhances the user permission control,
integrate configuration files, and more useful features.  SmbFTPD also support
SSL/TLS encryption.

WWW:	http://www.twbsd.org/enu/smbftpd/index.php

PR:		ports/92181
Submitted by:	Jui-Nan Lin <jnlin@@csie.nctu.edu.tw>
@
text
@d9 1
a9 1
PORTVERSION=	0.96
@

