2006-01-23 19:37:26 +00:00
|
|
|
# New ports collection makefile for: smbftpd
|
|
|
|
# Date created: 2006-01-22
|
|
|
|
# Whom: Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= smbftpd
|
2011-11-29 06:42:57 +00:00
|
|
|
PORTVERSION= 2.3
|
2006-01-23 19:37:26 +00:00
|
|
|
CATEGORIES= ftp
|
2009-08-22 00:20:34 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/SmbFTPD/${PORTVERSION} \
|
2008-06-25 02:52:33 +00:00
|
|
|
http://www.twbsd.org/download/download.php?file=smbftpd/
|
2009-08-22 00:20:34 +00:00
|
|
|
|
2006-01-23 19:37:26 +00:00
|
|
|
MAINTAINER= jnlin@csie.nctu.edu.tw
|
|
|
|
COMMENT= FTP daemon using Samba-like share management mechanism
|
|
|
|
|
2008-06-25 02:52:33 +00:00
|
|
|
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
|
|
|
|
|
2006-01-23 19:37:26 +00:00
|
|
|
HAS_CONFIGURE= yes
|
2008-06-25 02:52:33 +00:00
|
|
|
MAKE_ENV= OSTYPE=FreeBSD
|
|
|
|
CONFIGURE_ARGS= "--prefix=${PREFIX}"
|
|
|
|
|
2011-11-29 06:42:57 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2006-01-23 19:37:26 +00:00
|
|
|
USE_PERL5= yes
|
2010-11-09 12:33:00 +00:00
|
|
|
USE_RC_SUBR= ${PORTNAME}.sh
|
2006-01-23 19:37:26 +00:00
|
|
|
|
2009-08-30 10:31:11 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-06-25 02:52:33 +00:00
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
USE_MYSQL= yes
|
|
|
|
CONFIGURE_ARGS+= "--with-mysql"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
USE_PGSQL= yes
|
|
|
|
CONFIGURE_ARGS+= "--with-pgsql"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ICONV)
|
|
|
|
USE_ICONV= yes
|
|
|
|
CONFIGURE_ARGS+= "--with-iconv"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SSL)
|
|
|
|
CONFIGURE_ARGS+= "--with-ssl"
|
|
|
|
.endif
|
2006-01-23 19:37:26 +00:00
|
|
|
|
2010-03-20 15:45:21 +00:00
|
|
|
.if ${OSVERSION} > 900007
|
|
|
|
BROKEN= fails to build with new utmpx
|
|
|
|
.endif
|
|
|
|
|
2010-11-09 12:33:00 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/^CONFIGS = / s|\.conf|&.sample|g' ${WRKSRC}/Makefile
|
|
|
|
@cd ${WRKSRC}/conf/ && (${LS} *.conf | ${XARGS} -I % ${MV} % %.sample)
|
|
|
|
|
2008-06-25 02:52:33 +00:00
|
|
|
.include <bsd.port.post.mk>
|