freebsd-ports/ftp/smbftpd/Makefile
Doug Barton f9b6bb72bd 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.
2012-08-15 01:04:30 +00:00

58 lines
1.3 KiB
Makefile

# New ports collection makefile for: smbftpd
# Date created: 2006-01-22
# Whom: Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
#
# $FreeBSD$
#
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>