2013-09-20 19:23:18 +02:00
|
|
|
# Created by: Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
|
2006-01-23 20:37:26 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= smbftpd
|
2012-06-25 01:55:03 +02:00
|
|
|
PORTVERSION= 2.4
|
2006-01-23 20:37:26 +01:00
|
|
|
CATEGORIES= ftp
|
2009-08-22 02:20:34 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/SmbFTPD/${PORTVERSION} \
|
2008-06-25 04:52:33 +02:00
|
|
|
http://www.twbsd.org/download/download.php?file=smbftpd/
|
2009-08-22 02:20:34 +02:00
|
|
|
|
2006-01-23 20:37:26 +01:00
|
|
|
MAINTAINER= jnlin@csie.nctu.edu.tw
|
|
|
|
COMMENT= FTP daemon using Samba-like share management mechanism
|
|
|
|
|
2012-06-25 01:55:03 +02:00
|
|
|
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
|
2008-06-25 04:52:33 +02:00
|
|
|
|
2006-01-23 20:37:26 +01:00
|
|
|
HAS_CONFIGURE= yes
|
2008-06-25 04:52:33 +02:00
|
|
|
MAKE_ENV= OSTYPE=FreeBSD
|
|
|
|
CONFIGURE_ARGS= "--prefix=${PREFIX}"
|
|
|
|
|
2013-09-14 14:04:18 +02:00
|
|
|
USES= perl5
|
2012-08-06 01:19:36 +02:00
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
2006-01-23 20:37:26 +01:00
|
|
|
|
2013-09-20 19:23:18 +02:00
|
|
|
NO_STAGE= yes
|
2009-08-30 12:31:11 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-06-25 01:55:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
2008-06-25 04:52:33 +02:00
|
|
|
USE_MYSQL= yes
|
|
|
|
CONFIGURE_ARGS+= "--with-mysql"
|
|
|
|
.endif
|
|
|
|
|
2012-06-25 01:55:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
2008-06-25 04:52:33 +02:00
|
|
|
USE_PGSQL= yes
|
|
|
|
CONFIGURE_ARGS+= "--with-pgsql"
|
|
|
|
.endif
|
|
|
|
|
2012-06-25 01:55:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MICONV}
|
2013-04-27 10:50:46 +02:00
|
|
|
USES+= iconv
|
2008-06-25 04:52:33 +02:00
|
|
|
CONFIGURE_ARGS+= "--with-iconv"
|
|
|
|
.endif
|
|
|
|
|
2012-06-25 01:55:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MSSL}
|
2008-06-25 04:52:33 +02:00
|
|
|
CONFIGURE_ARGS+= "--with-ssl"
|
|
|
|
.endif
|
2006-01-23 20:37:26 +01:00
|
|
|
|
2012-08-15 03:04:30 +02:00
|
|
|
post-extract:
|
|
|
|
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
|
|
|
|
|
2010-11-09 13:33:00 +01: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 04:52:33 +02:00
|
|
|
.include <bsd.port.post.mk>
|