Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= smbftpd |
8 |
PORTNAME= smbftpd |
9 |
PORTVERSION= 2.3 |
9 |
PORTVERSION= 2.4 |
10 |
CATEGORIES= ftp |
10 |
CATEGORIES= ftp |
11 |
MASTER_SITES= SF/${PORTNAME}/SmbFTPD/${PORTVERSION} \ |
11 |
MASTER_SITES= SF/${PORTNAME}/SmbFTPD/${PORTVERSION} \ |
12 |
http://www.twbsd.org/download/download.php?file=smbftpd/ |
12 |
http://www.twbsd.org/download/download.php?file=smbftpd/ |
Lines 14-23
Link Here
|
14 |
MAINTAINER= jnlin@csie.nctu.edu.tw |
14 |
MAINTAINER= jnlin@csie.nctu.edu.tw |
15 |
COMMENT= FTP daemon using Samba-like share management mechanism |
15 |
COMMENT= FTP daemon using Samba-like share management mechanism |
16 |
|
16 |
|
17 |
OPTIONS= MYSQL "Users database is a MySQL database" off \ |
17 |
OPTIONS_DEFINE= MYSQL PGSQL SSL ICONV |
18 |
PGSQL "Users database is a PostgreSQL database" off \ |
18 |
MYSQL_DESC= Users database is a MySQL database |
19 |
SSL "Enable SSL/TLS support" off \ |
19 |
PGSQL_DESC= Users database is a PostgreSQL database |
20 |
ICONV "Enable codepage to unicode conversion for UTF-8 FTP" off |
20 |
SSL_DESC= Enable SSL/TLS support |
|
|
21 |
ICONV_DESC= Enable codepage to unicode conversion for UTF-8 FTP |
21 |
|
22 |
|
22 |
HAS_CONFIGURE= yes |
23 |
HAS_CONFIGURE= yes |
23 |
MAKE_ENV= OSTYPE=FreeBSD |
24 |
MAKE_ENV= OSTYPE=FreeBSD |
Lines 29-57
Link Here
|
29 |
|
30 |
|
30 |
.include <bsd.port.pre.mk> |
31 |
.include <bsd.port.pre.mk> |
31 |
|
32 |
|
32 |
.if defined(WITH_MYSQL) |
33 |
.if ${PORT_OPTIONS:MMYSQL} |
33 |
USE_MYSQL= yes |
34 |
USE_MYSQL= yes |
34 |
CONFIGURE_ARGS+= "--with-mysql" |
35 |
CONFIGURE_ARGS+= "--with-mysql" |
35 |
.endif |
36 |
.endif |
36 |
|
37 |
|
37 |
.if defined(WITH_PGSQL) |
38 |
.if ${PORT_OPTIONS:MPGSQL} |
38 |
USE_PGSQL= yes |
39 |
USE_PGSQL= yes |
39 |
CONFIGURE_ARGS+= "--with-pgsql" |
40 |
CONFIGURE_ARGS+= "--with-pgsql" |
40 |
.endif |
41 |
.endif |
41 |
|
42 |
|
42 |
.if defined(WITH_ICONV) |
43 |
.if ${PORT_OPTIONS:MICONV} |
43 |
USE_ICONV= yes |
44 |
USE_ICONV= yes |
44 |
CONFIGURE_ARGS+= "--with-iconv" |
45 |
CONFIGURE_ARGS+= "--with-iconv" |
45 |
.endif |
46 |
.endif |
46 |
|
47 |
|
47 |
.if defined(WITH_SSL) |
48 |
.if ${PORT_OPTIONS:MSSL} |
48 |
CONFIGURE_ARGS+= "--with-ssl" |
49 |
CONFIGURE_ARGS+= "--with-ssl" |
49 |
.endif |
50 |
.endif |
50 |
|
51 |
|
51 |
.if ${OSVERSION} > 900007 |
|
|
52 |
BROKEN= fails to build with new utmpx |
53 |
.endif |
54 |
|
55 |
post-patch: |
52 |
post-patch: |
56 |
@${REINPLACE_CMD} -e '/^CONFIGS = / s|\.conf|&.sample|g' ${WRKSRC}/Makefile |
53 |
@${REINPLACE_CMD} -e '/^CONFIGS = / s|\.conf|&.sample|g' ${WRKSRC}/Makefile |
57 |
@cd ${WRKSRC}/conf/ && (${LS} *.conf | ${XARGS} -I % ${MV} % %.sample) |
54 |
@cd ${WRKSRC}/conf/ && (${LS} *.conf | ${XARGS} -I % ${MV} % %.sample) |