View | Details | Raw Unified | Return to bug 169025 | Differences between
and this patch

Collapse All | Expand All

(-)./Makefile (-13 / +10 lines)
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)
(-)./distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (smbftpd-2.3.tar.gz) = e80f30623b75a343eb3e35da4340e6d600b07eaf510eda6813955a1ba8c21fdc
1
SHA256 (smbftpd-2.4.tar.gz) = 2ed59e76d1e30b7a930954a5585a30eeaf8a5d7da11670e5fcf7bbc4d20d20d5
2
SIZE (smbftpd-2.3.tar.gz) = 139472
2
SIZE (smbftpd-2.4.tar.gz) = 139650
(-)./pkg-plist (-2 / +1 lines)
Lines 1-8 Link Here
1
@comment $FreeBSD: ports/ftp/smbftpd/pkg-plist,v 1.3 2010/11/09 12:33:00 sunpoet Exp $
2
bin/smbftpd-user
1
bin/smbftpd-user
3
%%ETCDIR%%/smbftpd.conf.sample
2
%%ETCDIR%%/smbftpd.conf.sample
4
%%ETCDIR%%/smbftpd_share.conf.sample
5
%%ETCDIR%%/smbftpd_mysql.conf.sample
3
%%ETCDIR%%/smbftpd_mysql.conf.sample
6
%%ETCDIR%%/smbftpd_pgsql.conf.sample
4
%%ETCDIR%%/smbftpd_pgsql.conf.sample
5
%%ETCDIR%%/smbftpd_share.conf.sample
7
sbin/smbftpd
6
sbin/smbftpd
8
@dirrmtry %%ETCDIR%%
7
@dirrmtry %%ETCDIR%%

Return to bug 169025