aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/smbftpd/Makefile
blob: 93211ed4b463052d751f24b7bf8c1d9716fa76b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Created by: Jui-Nan Lin <jnlin@freebsd.cs.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@freebsd.cs.nctu.edu.tw
COMMENT=    FTP daemon using Samba-like share management mechanism

OPTIONS_DEFINE= MYSQL PGSQL SSL ICONV
ICONV_DESC= Enable codepage to unicode conversion for UTF-8 FTP

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

USES=       perl5
USE_RC_SUBR=    ${PORTNAME}

MYSQL_USE=  MYSQL=yes
MYSQL_CONFIGURE_WITH=   mysql
PGSQL_USES= pgsql
PGSQL_CONFIGURE_WITH=   pgsql
ICONV_USES= iconv
ICONV_CONFIGURE_WITH=   iconv
SSL_CONFIGURE_WITH=     ssl

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)

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-user ${STAGEDIR}${PREFIX}/bin
    @${MKDIR} ${STAGEDIR}${ETCDIR}
    ${INSTALL_DATA} ${WRKSRC}/conf/*.sample ${STAGEDIR}${ETCDIR}

.include <bsd.port.mk>